Service updating method and device, computer equipment and storage medium
1. A service updating method is applied to a control node, the control node is deployed in a power monitoring system, a plurality of working nodes are also deployed in the power monitoring system, and the method comprises the following steps:
acquiring a service deployment instruction and a mirror image file, wherein the service deployment instruction carries a target service identifier, and a service updating program suitable for the power monitoring system is stored in the mirror image file;
determining a plurality of target working nodes corresponding to the target service identification according to the service deployment instruction;
generating service deployment request information, and respectively sending the service deployment request information to each target working node;
acquiring service deployment response information fed back by the target working node according to local load information when the target working node receives the service deployment request information; the service deployment response information comprises deployment ready response information fed back by a first target working node when the load information is determined to meet a preset load condition, and deployment non-ready response information fed back by a second target working node when the load information is determined not to meet the preset load condition;
and respectively sending the image files to a plurality of first target working nodes which feed back the deployment ready response information, so that each first target working node runs a service updating program stored in the image file based on the created container, and thus realizing service updating of the power monitoring system.
2. The method of claim 1, wherein the determining, according to the service deployment instruction, a plurality of target work nodes corresponding to the target service identifier comprises:
acquiring a preset list, wherein the preset list records the mapping relation between the service identification and the corresponding working node;
analyzing the service deployment instruction to obtain a corresponding target service identifier;
and searching a plurality of target working nodes corresponding to the target service identification from the preset list based on the mapping relation between the service identification and the corresponding working nodes.
3. The method according to claim 1, wherein the sending the image file to the plurality of first target working nodes that feed back the deployment ready response information, respectively, so that each of the first target working nodes runs the service update program stored in the image file based on the created container, comprises:
forming a first node set by a plurality of first target working nodes feeding back deployment ready response information;
and sending the image file to each first target working node in the first node set so that each first target working node runs the service updating program stored in the image file based on the created container.
4. The method of claim 1, further comprising:
forming a second node set by a plurality of second target working nodes which feed back and deploy the non-ready response information;
according to a preset time interval, resending the service deployment request information to each second target working node in the second node set so that each second target working node reconfirms local load information, and feeding back corresponding deployment ready response information or deployment non-ready response information to the control node according to the current reconfigured load information;
and when acquiring deployment ready response information fed back by the second target working node, sending the image file to the second target working node, so that the second target working node runs a service updating program stored in the image file based on the created container.
5. A service updating method is applied to a working node, the working node is deployed in a power monitoring system, a control node is also deployed in the power monitoring system, and the method comprises the following steps:
when the service deployment request information transmitted by the control node is acquired, determining local load information;
when the load information meets a preset load condition, generating corresponding deployment ready response information and creating a container for running the mirror image file;
when the load information does not meet the preset load condition, generating corresponding deployment non-ready response information;
feeding back currently generated deployment ready response information or deployment non-ready response information to the control node, and receiving a mirror image file fed back by the control node according to the deployment ready response information; the mirror image file stores a service updating program applicable to the power monitoring system;
and when the image file is successfully received, operating a service updating program stored in the image file based on the created container so as to realize service updating of the power monitoring system.
6. The method according to claim 5, wherein the working node is deployed in a service module in a power monitoring system, and the service deployment request information includes environment configuration information required for running the image file;
the determining local load information when the service deployment request information transmitted by the control node is acquired includes:
determining a current load value required by the operation of the service module, and determining a load increase value corresponding to the environment configuration information;
and determining local load information according to the current load value and the load increment value.
7. A service renewal apparatus, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a service deployment instruction and a mirror image file, the service deployment instruction carries a target service identifier, and a service updating program suitable for the power monitoring system is stored in the mirror image file;
a first determining module, configured to determine, according to the service deployment instruction, a plurality of target working nodes corresponding to the target service identifier;
the first sending module is used for generating service deployment request information and respectively sending the service deployment request information to each target working node;
the second obtaining module is used for obtaining service deployment response information fed back by the target working node according to local load information when the target working node receives the service deployment request information; the service deployment response information comprises deployment ready response information fed back by a first target working node when the load information is determined to meet a preset load condition, and deployment non-ready response information fed back by a second target working node when the load information is determined not to meet the preset load condition;
and the second sending module is used for respectively sending the image files to a plurality of first target working nodes which feed back the deployment ready response information, so that each first target working node runs a service updating program stored in the image file based on the created container, and the service updating of the power monitoring system is realized.
8. A service renewal apparatus, the apparatus comprising:
the second determining module is used for determining local load information when the service deployment request information transmitted by the control node is acquired;
the first information generation module is used for generating corresponding deployment ready response information and creating a container for running the mirror image file when the load information meets a preset load condition;
the second information generation module is used for generating corresponding deployment non-ready response information when the load information does not meet the preset load condition;
the feedback module is used for feeding back currently generated deployment ready response information or deployment non-ready response information to the control node and receiving the image file fed back by the control node according to the deployment ready response information; the mirror image file stores a service updating program applicable to the power monitoring system
And the operation module is used for operating the service updating program stored in the image file based on the created container when the image file is successfully received so as to realize service updating of the power monitoring system.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any of claims 1-6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
Background
The power monitoring system has the monitoring functions of steady-state data monitoring, dynamic data monitoring, protection data monitoring, station-side video, environment monitoring and the like. In the related art, the application services for realizing the monitoring functions are deployed in the physical host cluster, and the physical host cluster operates the application services to achieve the purpose of maintaining the operation of the power grid. However, when upgrading and updating the application service version of the power monitoring system, a certain shutdown maintenance time window is often required, and the operation and maintenance personnel will terminate the service to the host computer in the shutdown maintenance time window to perform shutdown upgrading and updating, and such an operation inevitably affects the reliability of the power monitoring system.
Disclosure of Invention
In view of the above, it is necessary to provide a service update method, apparatus, computer device and storage medium capable of improving reliability of a power monitoring system.
A service updating method is applied to a control node, the control node is deployed in a power monitoring system, a plurality of working nodes are also deployed in the power monitoring system, and the method comprises the following steps:
acquiring a service deployment instruction and a mirror image file, wherein the service deployment instruction carries a target service identifier, and a service updating program suitable for the power monitoring system is stored in the mirror image file;
determining a plurality of target working nodes corresponding to the target service identification according to the service deployment instruction;
generating service deployment request information, and respectively sending the service deployment request information to each target working node;
acquiring service deployment response information fed back by the target working node according to local load information when the target working node receives the service deployment request information; the service deployment response information comprises deployment ready response information fed back by a first target working node when the load information is determined to meet a preset load condition, and deployment non-ready response information fed back by a second target working node when the load information is determined not to meet the preset load condition;
and respectively sending the image files to a plurality of first target working nodes which feed back the deployment ready response information, so that each first target working node runs a service updating program stored in the image file based on the created container, and thus realizing service updating of the power monitoring system.
A service updating method is applied to a working node, the working node is deployed in a power monitoring system, a control node is also deployed in the power monitoring system, and the method comprises the following steps:
when the service deployment request information transmitted by the control node is acquired, determining local load information;
when the load information meets a preset load condition, generating corresponding deployment ready response information and creating a container for running the mirror image file;
when the load information does not meet the preset load condition, generating corresponding deployment non-ready response information;
feeding back currently generated deployment ready response information or deployment non-ready response information to the control node, and receiving a mirror image file fed back by the control node according to the deployment ready response information; the mirror image file stores a service updating program applicable to the power monitoring system;
and when the image file is successfully received, operating a service updating program stored in the image file based on the created container so as to realize service updating of the power monitoring system.
A service update apparatus, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a service deployment instruction and a mirror image file, the service deployment instruction carries a target service identifier, and a service updating program suitable for the power monitoring system is stored in the mirror image file;
a first determining module, configured to determine, according to the service deployment instruction, a plurality of target working nodes corresponding to the target service identifier;
the first sending module is used for generating service deployment request information and respectively sending the service deployment request information to each target working node;
the second obtaining module is used for obtaining service deployment response information fed back by the target working node according to local load information when the target working node receives the service deployment request information; the service deployment response information comprises deployment ready response information fed back by a first target working node when the load information is determined to meet a preset load condition, and deployment non-ready response information fed back by a second target working node when the load information is determined not to meet the preset load condition;
and the second sending module is used for respectively sending the image files to a plurality of first target working nodes which feed back the deployment ready response information, so that each first target working node runs a service updating program stored in the image file based on the created container, and the service updating of the power monitoring system is realized.
A service update apparatus, the apparatus comprising:
the second determining module is used for determining local load information when the service deployment request information transmitted by the control node is acquired;
the first information generation module is used for generating corresponding deployment ready response information and creating a container for running the mirror image file when the load information meets a preset load condition;
the second information generation module is used for generating corresponding deployment non-ready response information when the load information does not meet the preset load condition;
the feedback module is used for feeding back currently generated deployment ready response information or deployment non-ready response information to the control node and receiving the image file fed back by the control node according to the deployment ready response information; the mirror image file stores a service updating program applicable to the power monitoring system;
and the operation module is used for operating the service updating program stored in the image file based on the created container when the image file is successfully received so as to realize service updating of the power monitoring system.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a service deployment instruction and a mirror image file, wherein the service deployment instruction carries a target service identifier, and a service updating program suitable for the power monitoring system is stored in the mirror image file;
determining a plurality of target working nodes corresponding to the target service identification according to the service deployment instruction;
generating service deployment request information, and respectively sending the service deployment request information to each target working node;
acquiring service deployment response information fed back by the target working node according to local load information when the target working node receives the service deployment request information; the service deployment response information comprises deployment ready response information fed back by a first target working node when the load information is determined to meet a preset load condition, and deployment non-ready response information fed back by a second target working node when the load information is determined not to meet the preset load condition;
and respectively sending the image files to a plurality of first target working nodes which feed back the deployment ready response information, so that each first target working node runs a service updating program stored in the image file based on the created container, and thus realizing service updating of the power monitoring system.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when acquiring service deployment request information transmitted by a control node, determining local load information;
when the load information meets a preset load condition, generating corresponding deployment ready response information and creating a container for running the mirror image file;
when the load information does not meet the preset load condition, generating corresponding deployment non-ready response information;
feeding back currently generated deployment ready response information or deployment non-ready response information to the control node, and receiving a mirror image file fed back by the control node according to the deployment ready response information; the mirror image file stores a service updating program applicable to the power monitoring system;
and when the image file is successfully received, operating a service updating program stored in the image file based on the created container so as to realize service updating of the power monitoring system.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a service deployment instruction and a mirror image file, wherein the service deployment instruction carries a target service identifier, and a service updating program suitable for the power monitoring system is stored in the mirror image file;
determining a plurality of target working nodes corresponding to the target service identification according to the service deployment instruction;
generating service deployment request information, and respectively sending the service deployment request information to each target working node;
acquiring service deployment response information fed back by the target working node according to local load information when the target working node receives the service deployment request information; the service deployment response information comprises deployment ready response information fed back by a first target working node when the load information is determined to meet a preset load condition, and deployment non-ready response information fed back by a second target working node when the load information is determined not to meet the preset load condition;
and respectively sending the image files to a plurality of first target working nodes which feed back the deployment ready response information, so that each first target working node runs a service updating program stored in the image file based on the created container, and thus realizing service updating of the power monitoring system.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when acquiring service deployment request information transmitted by a control node, determining local load information;
when the load information meets a preset load condition, generating corresponding deployment ready response information and creating a container for running the mirror image file;
when the load information does not meet the preset load condition, generating corresponding deployment non-ready response information;
feeding back currently generated deployment ready response information or deployment non-ready response information to the control node, and receiving a mirror image file fed back by the control node according to the deployment ready response information; the mirror image file stores a service updating program applicable to the power monitoring system;
and when the image file is successfully received, operating a service updating program stored in the image file based on the created container so as to realize service updating of the power monitoring system.
According to the service updating method, the service updating device, the computer equipment and the storage medium, the control node acquires the service deployment instruction and the image file, forwards the generated service deployment request information to each target working node determined according to the service deployment instruction, and receives the service deployment response information fed back according to the local load information when each target working node receives the service deployment request information through the control node. At this time, based on the received service deployment response information, the control node can screen out a first target working node of which the local load information meets the preset load condition from each target working node, and forward the image file to the screened first target working node so as to control the first target working node to run a service updating program stored in the image file through a created container, so that deployment of application service is realized, blind sending of the image file to the target working node is avoided being influenced, and the service updating efficiency is improved under the condition that the working performance of the target working node is not influenced. In addition, when the new version of service is updated, the target working node does not need to be stopped in the whole deployment process, and the influence on the reliability of the power monitoring system can be effectively avoided.
Drawings
FIG. 1 is a diagram of an application environment of a service update method in one embodiment;
FIG. 2 is a system architecture diagram of a power monitoring system in one embodiment;
FIG. 3 is a flow diagram illustrating a method for service update in one embodiment;
FIG. 4 is a flow chart illustrating a service update method according to another embodiment;
FIG. 5 is a flowchart illustrating a method for updating services of a federated control node and a worker node in one embodiment;
FIG. 6 is a block diagram of a service update apparatus in one embodiment;
FIG. 7 is a block diagram showing the construction of a service renewal apparatus according to another embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The service updating method provided by the application can be applied to the application environment shown in fig. 1. As shown in fig. 1, a power monitoring system is disposed in a current application environment, and a Master node (i.e., a control node) and a plurality of Worker nodes (i.e., work nodes) are also disposed in the power monitoring system. The Master node is electrically connected to each Worker node, and each Worker node is also provided with a POD (container).
In one embodiment, when the service updating method is applied to a Master node for service updating, the method includes the following steps:
firstly, a Master node acquires a service deployment instruction and a mirror image file, wherein the service deployment instruction carries a target service identifier, and a service updating program suitable for the power monitoring system is stored in the mirror image file. And then, determining a plurality of target Worker nodes corresponding to the target service identifications by the Master node according to the service deployment instruction. And then, generating service deployment request information by the Master node, and respectively sending the service deployment request information to each target Worker node. And then, the Master node acquires service deployment response information fed back by the target Worker node according to the local load information when the target Worker node receives the service deployment request information. And finally, respectively sending the image files to a plurality of first target Worker nodes which feed back the deployment ready response information by the Master node, and running a service updating program stored in the image files by each first target Worker node based on the created POD so as to realize service updating of the power monitoring system.
In one embodiment, when the service updating method is applied to a Worker node for service updating, the method comprises the following steps:
firstly, when a Worker node acquires service deployment request information transmitted by a Master node, local load information is determined. And then, when the load information is determined to meet the preset load condition, generating corresponding deployment ready response information by the Worker node, and creating a POD for running the image file. Or when the load information is determined not to meet the preset load condition, generating corresponding deployment non-ready response information by the Worker node. Then, feeding back currently generated deployment ready response information or deployment non-ready response information to the Master node by the Worker node, and receiving an image file fed back by the Master node according to the deployment ready response information; the mirror image file stores a service updating program suitable for the power monitoring system. And finally, when the Worker node successfully receives the image file, operating a service updating program stored in the image file based on the created POD so as to realize service updating of the power monitoring system.
In one embodiment, as shown in fig. 1, the plurality of Worker nodes may be divided into A, B, C and D service modules. Each service module at least comprises one Worker node, and a plurality of Worker nodes belonging to the same service module (such as the A service module) can jointly realize the corresponding function of the A service module so as to achieve the aim of maintaining the operation of the power grid. In one embodiment: (1) the service module can be a steady-state data monitoring module, a dynamic data monitoring module, a protection data monitoring module, a station side video and environment monitoring module and the like; illustratively, a plurality of Worker nodes in the steady-state data monitoring module realize the monitoring function of the steady-state data of the plant station end together; a plurality of Worker nodes in the dynamic data monitoring module commonly realize the monitoring function of the dynamic data of the plant station end; a plurality of Worker nodes in the protection data monitoring module commonly realize the monitoring function of the protection data of the plant station end; and a plurality of Worker nodes in the station side video and environment monitoring module jointly realize the monitoring function of the video and the environment of the station side. (2) Each service module acquires corresponding station end data from the front-end server through the bus, and further realizes corresponding functions.
It should be noted that the Master node is used as a Master control node of the node cluster, and is mainly responsible for managing the node cluster, providing a resource data access entry, and allocating an application service to a corresponding Worker node. And the Worker nodes are used as working nodes in the node cluster, each Worker node is provided with a container, and each Worker node runs the application service provided by the Master node through the created container, so that the application service is updated without shutdown, and the reliability of the power monitoring system is improved.
In one embodiment, please refer to fig. 2, which is a system architecture diagram of a power monitoring system. As shown in fig. 2, the power monitoring system is provided with a steady-state monitoring module, a dynamic monitoring module, a protection operation monitoring module, and a station-side video and environment monitoring module. Each service module obtains corresponding station data from the front-end server through the bus (as shown in fig. 2, the station data includes steady-state data, dynamic data, protection data, and video data), and further realizes corresponding functions.
It should be noted that, in an embodiment, the application service modules that implement the monitoring functions may be deployed in a physical host cluster, and the physical host cluster operates the application service modules to achieve the purpose of maintaining the operation of the power grid. In an actual scenario, for the consideration of security and disaster tolerance, each application service module that implements the same monitoring function is typically deployed to different physical hosts in a hardware resource pool, for example, each application service module that implements a steady-state monitoring function is deployed to different physical hosts, such as a physical host a and a physical host B. Therefore, when the physical host A goes down, the physical host B or other hosts can be controlled to operate the pre-deployed steady-state monitoring module, and the complete failure of the steady-state monitoring function is avoided.
In one embodiment, as shown in fig. 3, a service update method is provided, which is described by taking the method as an example applied to the control node in fig. 1, and includes the following steps:
step S302, a service deployment instruction and a mirror image file are obtained, wherein the service deployment instruction carries a target service identifier, and a service updating program suitable for the power monitoring system is stored in the mirror image file.
The service deployment instruction refers to an instruction command sent to the control node by a manager when application service deployment needs to be performed on a working node in a certain service module. The working nodes are divided in corresponding service modules, and each service module comprises at least one working node. The target service identifier is used for marking a service module corresponding to the application service to be deployed, so that the control node can determine which working nodes need to deploy the application service to be deployed currently according to the service identifier. The image file is similar to the compressed package, and a specific series of files are made into a single file according to a certain format, so that the image file is convenient for a user to download and use.
Specifically, when an application service needs to be deployed to a work node in a certain service module, firstly, a manager operates a corresponding processing device to generate an image file and a service deployment instruction. And then, the management personnel controls the processing equipment to send a service deployment instruction and an image file to the control node. And finally, the control node acquires the service deployment instruction and the image file sent by the manager.
In one embodiment, a specific field may be set in the service deployment instruction to enable encapsulation of the target service identification. For example, a field of a second byte may be set in the service deployment instruction as the service identifier, so as to improve the security of the data.
Step S304, according to the service deployment instruction, determining a plurality of target working nodes corresponding to the target service identification.
Specifically, determining a plurality of target working nodes corresponding to the target service identifier according to the service deployment instruction includes: acquiring a preset list, wherein the preset list records the mapping relation between the service identification and the corresponding working node; analyzing the service deployment instruction to obtain a corresponding target service identifier; and searching a plurality of target working nodes corresponding to the target service identification from a preset list based on the mapping relation between the service identification and the corresponding working nodes.
In one embodiment, the preset list records a mapping relationship between the service identifier and the corresponding working node, and after the control node receives the service deployment instruction, the control node extracts the target service identifier from the service deployment instruction. Then, the control node searches out a target working node corresponding to the target service identifier from a preset list based on the mapping relation between the pre-recorded service identifier and the corresponding working node. Based on the node searching mode, the searching work of the target working node is facilitated, and the service updating efficiency is improved.
Step S306, generating service deployment request information, and respectively sending the service deployment request information to each target working node.
Specifically, after the control node determines the target working nodes, the control node sends a deployment request message to each target working node, so that the target working nodes can make sure that a service update task of an application service to be deployed currently exists according to the received deployment request message, and when a load level meets a preset load condition (for example, the load level is less than a preset load threshold, that is, the current load level is low), a container for running the image file is created locally, so that the image file is run based on the created container, and an update operation of the service is realized.
Step S308, service deployment response information fed back according to local load information is obtained when the target working node receives the service deployment request information; the service deployment response information comprises deployment ready response information fed back by the first target working node when the load information is determined to meet the preset load condition, and deployment non-ready response information fed back by the second target working node when the load information is determined not to meet the preset load condition.
Specifically, when receiving the service deployment request information, the target working node feeds back service deployment response information to the control node according to the load information of the target working node. The service deployment response information comprises deployment ready response information and deployment non-ready response information.
In one embodiment, the target work node deploys a service module (for example, the service module may be the service module a illustrated in fig. 1) in the power monitoring system, and when the target work node receives the service deployment request information, the service deployment response information is generated according to the following steps:
first, the target working node determines a current load value required to run the service module and a load increase value required to run the image file (in an embodiment, the target working node may determine the load increase value based on the obtained environment configuration information required to run the image file).
And then, the target working node determines local load information according to the current load value and the load increment value.
And then, when the load information determined based on the steps meets the preset load condition, generating deployment ready response information by the target working node, wherein the deployment ready response information is transmitted to the control node, and determining which first target working nodes can be currently deployed with the application service to be deployed according to the acquired deployment ready response information by the control node. In one embodiment, the preset load condition may be that a local load value determined based on the load information is compared with a preset load threshold value, and when the local load value is smaller than the preset load threshold value, the target work node is controlled to generate the deployment ready response information.
And then, when the load information determined based on the steps does not meet the preset load condition, feeding back and deploying the non-ready response information to the control node by the target working node. In one embodiment, when the local load value determined based on the load information is greater than the preset load threshold, the target working node generates deployment non-ready response information, wherein the deployment non-ready response information is transmitted to the control node, so that the control node determines, according to the acquired deployment non-ready response information, which second target working nodes are higher in load and are not suitable for deploying the application service.
Furthermore, the control node can determine which first target working nodes are low in load currently according to the acquired deployment ready response information and the acquired deployment non-ready response information, and can deploy corresponding application services to the first target working nodes; and determining which second target working nodes have higher loads and are not suitable for deploying application services, so that the influence on blindly sending the mirror image file to the second target working nodes is avoided, and the service updating efficiency can be improved under the condition that the working performance of the second target working nodes is not influenced.
Step S310, sending the image file to each of the plurality of first target working nodes that feed back the deployment ready response information, so that each first target working node runs the service update program stored in the image file based on the created container, thereby implementing service update on the power monitoring system.
Specifically, the sending of the image file to the plurality of first target working nodes that feed back the deployment ready response information, so that each first target working node runs the service update program stored in the image file based on the created container, includes: forming a first node set by a plurality of first target working nodes feeding back deployment ready response information; and sending the image file to each first target working node in the first node set so that each first target working node runs the service updating program stored in the image file based on the created container.
In one embodiment, for a first target working node returning a deployment ready response message, it is stated that the working node is ready for service deployment, so that the first target working nodes form a first node set, and a control node sends an image file to each first target working node in the first node set, so that each first target working node runs the image file allocated by the control node based on a created container, thereby avoiding performing shutdown upgrade updating and improving the reliable operation of the power monitoring system.
In the service updating method, the control node acquires the service deployment instruction and the image file, forwards the generated service deployment request information to each target working node determined according to the service deployment instruction, and receives the service deployment response information fed back by the local load information when each target working node receives the service deployment request information. At this time, based on the received service deployment response information, the control node can screen out a first target working node of which the local load information meets the preset load condition from each target working node, and forward the image file to the screened first target working node so as to control the first target working node to run a service updating program stored in the image file through a created container, so that deployment of application service is realized, blind sending of the image file to the target working node is avoided being influenced, and the service updating efficiency is improved under the condition that the working performance of the target working node is not influenced. In addition, when the new version of service is updated, the target working node does not need to be stopped in the whole deployment process, and the influence on the reliability of the power monitoring system can be effectively avoided.
In one embodiment, the method further comprises: forming a second node set by a plurality of second target working nodes which feed back and deploy the non-ready response information; according to a preset time interval, resending service deployment request information to each second target working node in the second node set so that each second target working node reconfirms local load information, and feeding back corresponding deployment ready response information or deployment non-ready response information to the control node according to the current reconfigured load information; and when the deployment ready response information fed back by the second target working node is acquired, sending the image file to the second target working node so that the second target working node runs the service updating program stored in the image file based on the created container.
It can be understood that for the second working nodes returning the deploy not ready response message, the loads of the second working nodes are high, the containers for running the image files cannot be created, and therefore the second working nodes are grouped into the second node set. In one embodiment, after a preset time interval (e.g., 10 minutes, etc.), in order to determine again whether the second working node is ready for service deployment, the control node resends the deployment request message to each second working node in the second node set so that each second working node can re-determine the current local load value, and determine whether the container can be created according to the currently re-determined local load value.
In the above embodiment, for the second working node that returns the deployment non-ready response message, it is described that no container has been created in these nodes, after a preset time interval, the control node resends the deployment request message to the second working node, so that the second working node can redetermine the current load value, and determine whether a container for running the image file can be created according to the redetermined current load value, so that the service update efficiency is improved without affecting the working performance of the second working node, and the influence on the reliability of the power monitoring system can be effectively avoided.
In one embodiment, as shown in fig. 4, another service updating method is provided, which is described by taking the method as an example applied to the working node in fig. 1, and includes the following steps:
step S402, when the service deployment request information transmitted via the control node is acquired, determining local load information.
Specifically, the working node is deployed in a service module in the power monitoring system, and the service deployment request information includes environment configuration information required for running the image file; when the service deployment request information transmitted by the control node is acquired, determining local load information, including: determining a current load value required by the operation of the service module, and determining a load increase value corresponding to the environment configuration information; and determining local load information according to the current load value and the load increment value.
In one embodiment, the current load value is calculated by the worker node according to the following formula:
L0=α1*s01+α2*s02+α3*s03+α4*s04 (1)
wherein s01 to s04 respectively indicate a Central Processing Unit (CPU) utilization rate, a memory utilization rate, an Input/Output (I/O) utilization rate, and a network bandwidth utilization rate of the power monitoring system at the current time; alpha 1-alpha 4 are given weight coefficients. Of course, s01 to s04 may be other load monitoring indexes, such as a load of a CPU, and the embodiment of the present application is not limited thereto.
In one embodiment, in an aspect, the service deployment request information includes environment configuration information, which may be CPU utilization, memory utilization, I/O utilization, network bandwidth utilization, and the like, and the above formula (1) is also applicable to calculating the load increase value. On the other hand, when the local load information is determined, the current load value and the load increment value may be summed, and the working node determines the local load information based on the currently obtained summation result. Of course, when determining the local load information, a difference calculation may also be performed on the current load value and the load added value in a difference calculation manner, and then the local load information is determined based on the obtained difference calculation result, which is not limited in the embodiment of the present application.
And S404, when the load information meets the preset load condition, generating corresponding deployment ready response information, and creating a container for running the mirror image file.
In one embodiment, the working node obtains a preset load condition, where the load condition may be that whether a summation result between a current load value and a load added value of the corresponding working node is smaller than a preset load threshold is judged, and when the summation result is smaller than the preset load threshold, the corresponding first working node is controlled to generate deployment ready response information, and a container for running the image file is created. It can be understood that, when the summation result obtained in the above step is smaller than the preset load threshold, the load level of the first working node may be considered to be low, and the deployment of the application service may be performed based on the node. In addition, after the corresponding first working node successfully creates the container for running the image file locally, a deployment ready response message is returned to the control node by the node to inform the control node that the first working node is ready for service deployment currently, and the image file of the deployment service can be received.
Step S406, when the load information does not satisfy the preset load condition, generating corresponding deployment non-ready response information.
In an embodiment, the preset load condition may be that whether a summation result between a current load value and a load added value of the corresponding working node is greater than a preset load threshold is judged, and when the summation result is greater than the preset load threshold, the corresponding second working node is controlled to generate a deployment non-ready response message. It can be understood that, when the summation result obtained in the above steps is greater than the preset load threshold, the current load of the second working node may be considered to be high, and the node is not suitable for deployment of the application service. Therefore, in the current embodiment, in the case that the sum of the current load value and the load added value is greater than the preset load threshold, the corresponding second working node cannot successfully create the container for running the image file, and at this time, a deployment not ready response message is returned to the control node by the second working node.
Step S408, feeding back the currently generated deployment ready response information or deployment non-ready response information to the control node, and receiving the mirror image file fed back by the control node according to the deployment ready response information; the mirror image file stores a service updating program suitable for the power monitoring system.
Specifically, the currently generated deployment ready response information or deployment non-ready response information is fed back to the control node by the working node, the control node feeds back the image file to the first working node which feeds back the deployment ready response information according to the acquired deployment ready response information, the first working node receives the image file fed back by the control system, and the image file is operated by a pre-established container, so that the deployment of the application service is realized.
Step S410, when the image file is successfully received, the service updating program stored in the image file is operated based on the created container, so that service updating of the power monitoring system is achieved.
It can be understood that the first working node which receives the image file transmitted by the control node runs the image file based on the created container, so that the application service is upgraded and updated without shutdown, and the reliability of the power monitoring system is improved.
According to the service updating method, when the service deployment request information transmitted by the control node is acquired through the working node, local load information is determined, and corresponding deployment ready response information or deployment non-ready response information is generated according to the load information; the method comprises the steps of generating corresponding deployment ready response information or deployment non-ready response information, transmitting the generated deployment ready response information or the generated deployment non-ready response information to a control node through a working node, screening out first target working nodes with load information meeting preset load conditions from all previously determined target working nodes through the control node based on the acquired deployment ready response information, controlling the control node to forward mirror images to the screened first target working nodes, running service updating programs stored in the mirror images through established containers by the first target working nodes, achieving deployment of application services, avoiding influences on blindly sending the mirror images to the target working nodes, and improving service updating efficiency under the condition that the working performance of the target working nodes is not influenced. In addition, when the new version of service is updated, the target working node does not need to be stopped in the whole deployment process, and the influence on the reliability of the power monitoring system can be effectively avoided.
In one embodiment, referring to fig. 5, in an embodiment, when the joint control node and the working node perform service update, the method includes the following steps:
step S501, a Master node (namely a control node) receives a service deployment instruction and a mirror image file, wherein the service deployment instruction carries a service identifier, and a service updating program suitable for the power monitoring system is stored in the mirror image file.
Step S502, the Master node determines at least one target Worker node (namely a target working node) corresponding to the service identifier according to the obtained service identifier; the target Worker node can be understood as a target Worker node 1, a target Worker node 2 and a target Worker node 3 shown in fig. 5.
Step S503, the Master node sends service deployment request messages to the target Worker nodes respectively.
Step S504, the target Worker node receives the service deployment request message transmitted by the Master node, and according to the service deployment request message, when the load level of the target Worker node is determined to be low and the target Worker node is suitable for running the new version application service, a container for running the mirror image file is created.
Step S505, when the containers in the corresponding first target Worker node (i.e. when the containers are successfully created in the target Worker node 1 and the target Worker node 2), a deployment ready response message is returned to the Master node by the containers.
Step S506, when the corresponding second target Worker node determines that the load level of the second target Worker node is higher and is not suitable for creating a container, that is, when container creation is unsuccessful (that is, when container creation fails in the target Worker node 3), a deployment non-ready response message is returned to the Master node by the second target Worker node.
Step S507, the Master node sends a mirror image file to a corresponding first target Worker node when acquiring the service deployment response message; the mirror image file stores a service updating program suitable for the power monitoring system.
Step S508, after the first target Worker node receives the image file from the Master node, the image file is operated through the created container.
Step S509, the Master node forms a second target Worker node set with the second target Worker nodes returning to the non-ready deployment response message, and resends the service deployment request message to each second target Worker node in the second target Worker node set according to a preset time interval. As shown in fig. 5, on one hand, the control node divides the target Worker node 1 and the target Worker node 2 into a first target Worker node set, and on the other hand, divides the target Worker node 3 into a second target Worker node set. It should be noted that, for the target Worker node 3, after a preset time interval elapses, the Master node resends the deployment request message to the target Worker node 3 to determine whether the target Worker node 3 is ready for service deployment. Aiming at the target Worker node 1 and the target Worker node 2, the Master node respectively sends mirror image files to the target Worker node 1 and the target Worker node 2, and the service updating program stored in the mirror image files is operated by the containers established in the target Worker node 1 and the target Worker node 2 to complete service deployment.
It should be understood that although the various steps in the flow charts of fig. 3-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 3-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided a service update apparatus 600, including: a first obtaining module 601, a first determining module 602, a first sending module 603, a second obtaining module 604, and a second sending module 605, wherein:
the first obtaining module 601 is configured to obtain a service deployment instruction and a mirror image file, where the service deployment instruction carries a target service identifier, and the mirror image file stores a service update program applicable to the power monitoring system.
The first determining module 602 is configured to determine, according to the service deployment instruction, a plurality of target work nodes corresponding to the target service identifier.
The first sending module 603 is configured to generate service deployment request information, and send the service deployment request information to each target work node respectively.
The second obtaining module 604 is configured to obtain service deployment response information fed back by the target working node according to the local load information when receiving the service deployment request information; the service deployment response information comprises deployment ready response information fed back by the first target working node when the load information is determined to meet the preset load condition, and deployment non-ready response information fed back by the second target working node when the load information is determined not to meet the preset load condition.
The second sending module 605 is configured to send the image files to the multiple first target working nodes that feed back the deployment ready response information, so that each first target working node runs the service update program stored in the image file based on the created container, so as to implement service update on the power monitoring system.
In an embodiment, the first determining module 602 is further configured to obtain a preset list, where a mapping relationship between a service identifier and a corresponding working node is recorded in the preset list; analyzing the service deployment instruction to obtain a corresponding target service identifier; and searching a plurality of target working nodes corresponding to the target service identification from a preset list based on the mapping relation between the service identification and the corresponding working nodes.
In one embodiment, the second sending module 605 is further configured to group the plurality of first target working nodes fed back with the deployment ready response information into a first node set; and sending the image file to each first target working node in the first node set so that each first target working node runs the service updating program stored in the image file based on the created container.
In one embodiment, the apparatus further comprises a redirection module, wherein:
the redirection module is used for forming a second node set by a plurality of second target working nodes which feed back and deploy the non-ready response information; according to a preset time interval, resending service deployment request information to each second target working node in the second node set so that each second target working node reconfirms local load information, and feeding back corresponding deployment ready response information or deployment non-ready response information to the control node according to the current reconfigured load information; and when the deployment ready response information fed back by the second target working node is acquired, sending the image file to the second target working node so that the second target working node runs the service updating program stored in the image file based on the created container.
The service updating device obtains the service deployment instruction and the image file through the control node, controls the control node to forward the generated service deployment request information to each target working node determined according to the service deployment instruction, and receives the service deployment response information fed back by the local load information when each target working node receives the service deployment request information. At this time, based on the received service deployment response information, the control node can screen out a first target working node of which the local load information meets the preset load condition from each target working node, and forward the image file to the screened first target working node, so that the first target working node runs a service updating program stored in the image file through a created container, deployment of application service is realized, influence on blind sending of the image file to the target working node is avoided, and the service updating efficiency is improved under the condition that the working performance of the target working node is not influenced. In addition, when the new version of service is updated, the target working node does not need to be stopped in the whole deployment process, and the influence on the reliability of the power monitoring system can be effectively avoided.
In an embodiment, as shown in fig. 7, the present application further provides another service updating apparatus 700, which includes a second determining module 701, a first information generating module 702, a second information generating module 703, a feedback module 704, and an operating module 705, where:
the second determining module 701 is configured to determine local load information when the service deployment request information transmitted via the control node is acquired.
The first information generating module 702 is configured to generate corresponding deployment ready response information and create a container for running the image file when the load information meets a preset load condition.
The second information generating module 703 is configured to generate corresponding deployment non-ready response information when the load information does not satisfy the preset load condition.
The feedback module 704 is configured to feed back currently generated deployment ready response information or deployment non-ready response information to the control node, and receive an image file fed back by the control node according to the deployment ready response information; the mirror image file stores a service updating program suitable for the power monitoring system.
The running module 705 is configured to run a service update program stored in the image file based on the created container when the image file is successfully received, so as to implement service update on the power monitoring system.
In one embodiment, the service deployment request information includes environment configuration information required to run the image file; the second determining module 701 is further configured to determine a current load value required for operating the service module, and determine a load added value corresponding to the environment configuration information; and determining local load information according to the current load value and the load increment value.
The service updating device determines local load information when the control work node acquires service deployment request information transmitted by the control node, and generates corresponding deployment ready response information or deployment non-ready response information according to the load information; the method comprises the steps that corresponding deployment ready response information or deployment non-ready response information is generated and transmitted to a control node through a working node, the control node is controlled to screen out a first target working node with load information meeting preset load conditions from each previously determined target working node based on the acquired deployment ready response information, the control node is controlled to forward a mirror image file to the screened first target working node, the first target working node runs a service updating program stored in the mirror image file through a created container, deployment of application services is achieved, the mirror image file is prevented from being sent to the target working node blindly, and service updating efficiency is improved under the condition that working performance of the target working node is not affected. In addition, when the new version of service is updated, the target working node does not need to be stopped in the whole deployment process, and the influence on the reliability of the power monitoring system can be effectively avoided.
For the specific definition of the service updating apparatus, reference may be made to the above definition of the service updating method, which is not described herein again. The modules in the service updating apparatus can be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal or a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, and a communication interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a service update method.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: acquiring a service deployment instruction and a mirror image file, wherein the service deployment instruction carries a target service identifier, and a service updating program suitable for the power monitoring system is stored in the mirror image file; determining a plurality of target working nodes corresponding to the target service identification according to the service deployment instruction; generating service deployment request information, and respectively sending the service deployment request information to each target working node; acquiring service deployment response information fed back by the target working node according to local load information when the target working node receives the service deployment request information; the service deployment response information comprises deployment ready response information fed back by the first target working node when the load information is determined to meet the preset load condition, and deployment non-ready response information fed back by the second target working node when the load information is determined not to meet the preset load condition; and respectively sending the image files to a plurality of first target working nodes which feed back the deployment ready response information, and running a service updating program stored in the image files by each first target working node based on the established container so as to realize service updating of the power monitoring system.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a preset list, wherein the preset list records the mapping relation between the service identification and the corresponding working node; analyzing the service deployment instruction to obtain a corresponding target service identifier; and searching a plurality of target working nodes corresponding to the target service identification from a preset list based on the mapping relation between the service identification and the corresponding working nodes.
In one embodiment, the processor, when executing the computer program, further performs the steps of: forming a first node set by a plurality of first target working nodes feeding back deployment ready response information; and sending the image file to each first target working node in the first node set so that each first target working node runs the service updating program stored in the image file based on the created container.
In one embodiment, the processor, when executing the computer program, further performs the steps of: forming a second node set by a plurality of second target working nodes which feed back and deploy the non-ready response information; according to a preset time interval, resending service deployment request information to each second target working node in the second node set so that each second target working node reconfirms local load information, and feeding back corresponding deployment ready response information or deployment non-ready response information to the control node according to the current reconfigured load information; and when the deployment ready response information fed back by the second target working node is acquired, sending the image file to the second target working node so that the second target working node runs the service updating program stored in the image file based on the created container.
The computer equipment obtains the service deployment instruction and the image file through the control node, the control node forwards the generated service deployment request information to each target working node determined according to the service deployment instruction, and the control node receives service deployment response information fed back by local load information when receiving the service deployment request information. At this time, based on the received service deployment response information, the control node can be controlled to screen out a first target working node of which the local load information meets the preset load condition from each target working node, and the control node is controlled to forward the image file to the screened first target working node, so that the first target working node runs the service updating program stored in the image file through the created container, deployment of the application service is realized, influence on blind sending of the image file to the target working node is avoided, and the service updating efficiency is improved under the condition that the working performance of the target working node is not influenced. In addition, when the new version of service is updated, the target working node does not need to be stopped in the whole deployment process, and the influence on the reliability of the power monitoring system can be effectively avoided.
In one embodiment, there is provided another computer apparatus comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: when acquiring service deployment request information transmitted by a control node, determining local load information; when the load information meets a preset load condition, generating corresponding deployment ready response information and creating a container for running the mirror image file; when the load information does not meet the preset load condition, generating corresponding deployment non-ready response information; feeding back currently generated deployment ready response information or deployment non-ready response information to the control node, and receiving the image file fed back by the control node according to the deployment ready response information; the mirror image file stores a service updating program suitable for the power monitoring system; and when the image file is successfully received, operating a service updating program stored in the image file based on the created container so as to realize service updating of the power monitoring system.
In one embodiment, the service deployment request message includes environment configuration information required to run the image file, and the processor when executing the computer program further performs the steps of: determining a current load value required by the operation of the service module, and determining a load increase value corresponding to the environment configuration information; and determining local load information according to the current load value and the load increment value.
The computer equipment determines local load information when acquiring service deployment request information transmitted by a control node through the control working node, and generates corresponding deployment ready response information or deployment non-ready response information according to the load information; the method comprises the steps that corresponding deployment ready response information or deployment non-ready response information is generated and transmitted to a control node through a working node, the control node is controlled to screen out a first target working node with load information meeting preset load conditions from each previously determined target working node based on the acquired deployment ready response information, the control node is controlled to forward a mirror image file to the screened first target working node, the first target working node runs a service updating program stored in the mirror image file through a created container, deployment of application services is achieved, the mirror image file is prevented from being sent to the target working node blindly, and service updating efficiency is improved under the condition that working performance of the target working node is not affected. In addition, when the new version of service is updated, the target working node does not need to be stopped in the whole deployment process, and the influence on the reliability of the power monitoring system can be effectively avoided.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring a service deployment instruction and a mirror image file, wherein the service deployment instruction carries a target service identifier, and a service updating program suitable for the power monitoring system is stored in the mirror image file; determining a plurality of target working nodes corresponding to the target service identification according to the service deployment instruction; generating service deployment request information, and respectively sending the service deployment request information to each target working node; acquiring service deployment response information fed back by the target working node according to local load information when the target working node receives the service deployment request information; the service deployment response information comprises deployment ready response information fed back by the first target working node when the load information is determined to meet the preset load condition, and deployment non-ready response information fed back by the second target working node when the load information is determined not to meet the preset load condition; and respectively sending the image files to a plurality of first target working nodes which feed back the deployment ready response information, and running a service updating program stored in the image files by each first target working node based on the established container so as to realize service updating of the power monitoring system.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a preset list, wherein the preset list records the mapping relation between the service identification and the corresponding working node; analyzing the service deployment instruction to obtain a corresponding target service identifier; and searching a plurality of target working nodes corresponding to the target service identification from a preset list based on the mapping relation between the service identification and the corresponding working nodes.
In one embodiment, the computer program when executed by the processor further performs the steps of: forming a first node set by a plurality of first target working nodes feeding back deployment ready response information; and sending the image file to each first target working node in the first node set so that each first target working node runs the service updating program stored in the image file based on the created container.
In one embodiment, the computer program when executed by the processor further performs the steps of: forming a second node set by a plurality of second target working nodes which feed back and deploy the non-ready response information; according to a preset time interval, resending service deployment request information to each second target working node in the second node set so that each second target working node reconfirms local load information, and feeding back corresponding deployment ready response information or deployment non-ready response information to the control node according to the current reconfigured load information; and when the deployment ready response information fed back by the second target working node is acquired, sending the image file to the second target working node so that the second target working node runs the service updating program stored in the image file based on the created container.
The storage medium acquires the service deployment instruction and the image file through the control node, controls the control node to forward the generated service deployment request information to each target working node determined according to the service deployment instruction, and receives service deployment response information fed back by each target working node according to local load information when receiving the service deployment request information. At this time, based on the received service deployment response information, the control node can be controlled to screen out a first target working node of which the local load information meets the preset load condition from each target working node, and the control node is controlled to forward the image file to the screened first target working node, so that the first target working node is controlled to run a service updating program stored in the image file based on the created container, deployment of application service is achieved, influence on blind sending of the image file to the target working node is avoided, and the service updating efficiency is improved under the condition that the working performance of the target working node is not influenced. In addition, when the new version of service is updated, the target working node does not need to be stopped in the whole deployment process, and the influence on the reliability of the power monitoring system can be effectively avoided.
In one embodiment, another computer-readable storage medium is also provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: when acquiring service deployment request information transmitted by a control node, determining local load information; when the load information meets a preset load condition, generating corresponding deployment ready response information and creating a container for running the mirror image file; when the load information does not meet the preset load condition, generating corresponding deployment non-ready response information; feeding back currently generated deployment ready response information or deployment non-ready response information to the control node, and receiving the image file fed back by the control node according to the deployment ready response information; the mirror image file stores a service updating program suitable for the power monitoring system; and when the image file is successfully received, operating a service updating program stored in the image file based on the created container so as to realize service updating of the power monitoring system.
In one embodiment, the service deployment request information includes environment configuration information required to run the image file, and the computer program when executed by the processor further performs the steps of: determining a current load value required by the operation of the service module, and determining a load increase value corresponding to the environment configuration information; and determining local load information according to the current load value and the load increment value.
The storage medium determines local load information when the control working node acquires service deployment request information transmitted by the control node, and generates corresponding deployment ready response information or deployment non-ready response information according to the load information; the method comprises the steps that corresponding deployment ready response information or deployment non-ready response information is generated and transmitted to a control node through a working node, the control node is controlled to screen out a first target working node with load information meeting preset load conditions from each previously determined target working node based on the acquired deployment ready response information, the control node is controlled to forward a mirror image file to the screened first target working node, the first target working node runs a service updating program stored in the mirror image file through a created container, deployment of application services is achieved, the mirror image file is prevented from being sent to the target working node blindly, and service updating efficiency is improved under the condition that working performance of the target working node is not affected. In addition, when the new version of service is updated, the target working node does not need to be stopped in the whole deployment process, and the influence on the reliability of the power monitoring system can be effectively avoided.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种可编程逻辑器件在线升级方法及系统