CN112671550A - Method for preventing equipment configuration from being lost in cloud computing - Google Patents

Method for preventing equipment configuration from being lost in cloud computing Download PDF

Info

Publication number
CN112671550A
CN112671550A CN202011017309.3A CN202011017309A CN112671550A CN 112671550 A CN112671550 A CN 112671550A CN 202011017309 A CN202011017309 A CN 202011017309A CN 112671550 A CN112671550 A CN 112671550A
Authority
CN
China
Prior art keywords
configuration
equipment
processor
cloud computing
redis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011017309.3A
Other languages
Chinese (zh)
Inventor
刘永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unicloud Technology Co Ltd
Original Assignee
Unicloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Unicloud Technology Co Ltd filed Critical Unicloud Technology Co Ltd
Priority to CN202011017309.3A priority Critical patent/CN112671550A/en
Publication of CN112671550A publication Critical patent/CN112671550A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The invention provides a method for preventing equipment configuration from being lost in cloud computing, which comprises the following steps: s1, the upper layer issues configuration to the agent, the agent judges whether the command is a timing saving configuration command, if not, the step S2 is executed; if yes, go to step S3; s2, firstly storing the configuration into a redis, and issuing the configuration to a device; s3, issuing a save command to the equipment to ensure that the equipment configuration is persistent to the equipment; s4, once the equipment is restarted, the upper layer executes the configuration recovery function and executes the step S5; s5, circularly inquiring whether configuration information exists in redis, and if so, executing the step S6; otherwise, ending the flow; and S6, reading the configuration and issuing the configuration to the equipment, and deleting the corresponding redis persistent configuration. The method for preventing the equipment configuration from being lost in the cloud computing can ensure that all issued configuration information can be recovered even if the equipment is powered off and the configuration is lost under the condition of ensuring that the minimum storage space is used as much as possible, thereby ensuring that the service can be recovered to be normal.

Description

Method for preventing equipment configuration from being lost in cloud computing
Technical Field
The invention belongs to the field of cloud computing, and particularly relates to a method for preventing equipment configuration from being lost in cloud computing.
Background
The controller which currently issues configuration to the data center is mainly sent to the equipment by an Agent, but the equipment configuration is lost due to the fact that the equipment possibly faces the problems of power failure, restarting and the like. The prior art can issue a configuration storage command to the equipment periodically to ensure the configuration persistence of the equipment.
Once the device configuration is issued, the device restart will cause the device configuration to be lost in the time between the device receiving the save command. The prior art supports the recovery of all issued device configurations, but may cause device configuration conflicts; or an out of sync device configuration results in a partial configuration loss.
Disclosure of Invention
In view of this, the present invention is directed to provide a method for preventing a device configuration from being lost in cloud computing, so as to ensure that a command issued by an Agent can synchronize partial missing configurations when a device is restarted, that is, ensure that the device configuration is completely consistent with the issued configuration.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a method for preventing equipment configuration from being lost in cloud computing comprises the following steps:
s1, the upper layer issues configuration to the agent, the agent judges whether the command is a timing saving configuration command, if not, the step S2 is executed; if yes, go to step S3;
s2, firstly storing the configuration into a redis, and issuing the configuration to a device;
s3, issuing a save command to the equipment to ensure that the equipment configuration is persistent to the equipment;
s4, once the equipment is restarted, the upper layer executes the configuration recovery function and executes the step S5;
s5, circularly inquiring whether configuration information exists in redis, and if so, executing the step S6; otherwise, ending the flow;
and S6, reading the configuration and issuing the configuration to the equipment, and deleting the corresponding redis persistent configuration.
Further, an electronic device comprises a processor and a memory which is connected with the processor in a communication mode and used for storing executable instructions of the processor, wherein the processor is used for executing a method for preventing device configuration loss in cloud computing.
Further, a server includes at least one processor, and a memory communicatively coupled to the processor, the memory storing instructions executable by the at least one processor, the instructions being executable by the processor to cause the at least one processor to perform a method for preventing device configuration loss in cloud computing.
Further, a computer readable storage medium stores a computer program, and the computer program, when executed by a processor, implements a method for preventing a device configuration from being lost in cloud computing.
Compared with the prior art, the method for preventing the equipment configuration from being lost in the cloud computing has the following advantages:
the method for preventing the equipment configuration from being lost in the cloud computing can ensure that all issued configuration information can be recovered even if the equipment is powered off and the configuration is lost under the condition of ensuring that the minimum storage space is used as much as possible, thereby ensuring that the service can be recovered to be normal.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a conceptual illustration of method steps according to an embodiment of the invention;
FIG. 2 is a schematic view of the process flow of FIG. 1 according to an embodiment of the present invention;
fig. 3 is a schematic view of the processing flow chart of fig. 2 according to the embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless otherwise specified.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art through specific situations.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1 to 3, a method for preventing device configuration loss in cloud computing includes the following steps:
s1, the upper layer issues configuration to the agent, the agent judges whether the command is a timing saving configuration command, if not, the step S2 is executed; if yes, go to step S3;
s2, firstly storing the configuration into a redis, and issuing the configuration to a device;
s3, issuing a save command to the equipment to ensure that the equipment configuration is persistent to the equipment;
s4, once the equipment is restarted, the upper layer executes the configuration recovery function and executes the step S5;
s5, circularly inquiring whether configuration information exists in redis, and if so, executing the step S6; otherwise, ending the flow;
and S6, reading the configuration and issuing the configuration to the equipment, and deleting the corresponding redis persistent configuration.
An electronic device comprises a processor and a memory which is connected with the processor in a communication mode and is used for storing executable instructions of the processor, wherein the processor is used for executing a method for preventing device configuration from being lost in cloud computing.
A server comprising at least one processor, and a memory communicatively coupled to the processor, the memory storing instructions executable by the at least one processor, the instructions being executable by the processor to cause the at least one processor to perform a method of preventing device configuration loss in cloud computing.
A computer-readable storage medium stores a computer program that, when executed by a processor, implements a method of preventing device configuration loss in cloud computing.
In the specific implementation process, the implementation method comprises the following steps of adding a device configuration persistence function and deleting the persistence configuration function periodically on the basis of the prior art, namely, only keeping the configuration of the device which is not persisted by the Agent.
The system architecture is described as follows: the functions comprise message communication, data persistence and configuration recovery. Where the message traffic is defined using a standard Restful interface.
As shown in fig. 1, a direct relationship between an Agent and a device and a persistent database redis is shown, the redis is responsible for storing a configuration issued each time, and once the device configuration is successfully saved, the configuration in the redis is cleared, so as to prevent redundant configuration caused by excessive data.
The scheme flow is described as follows:
1. the upper layer issues configuration to the Agent, and the Agent judges whether the configuration command is a timing saving configuration command or not, and if the configuration command is not a timing saving configuration command, the step 2 is executed; if yes, executing step 3;
2. firstly, storing the configuration into a redis, and issuing the configuration to a device;
3. issuing a save command to the device to ensure that the device configuration is persisted to the device;
4. once the equipment is restarted, the upper layer executes the configuration recovery function and executes the step 5;
5. circularly inquiring whether the configuration information exists in the redis, and if so, executing the step 6;
otherwise, ending the flow.
6. Reading the configuration and transmitting the configuration to the equipment, and deleting the corresponding redis persistent configuration.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (4)

1. A method for preventing equipment configuration from being lost in cloud computing is characterized by comprising the following steps:
s1, the upper layer issues configuration to the agent, the agent judges whether the command is a timing saving configuration command, if not, the step S2 is executed, and if so, the step S3 is executed;
s2, firstly storing the configuration into a redis, and issuing the configuration to a device;
s3, issuing a save command to the equipment to ensure that the equipment configuration is persistent to the equipment;
s4, once the equipment is restarted, the upper layer executes the configuration recovery function and executes the step S5;
s5, circularly inquiring whether configuration information exists in redis, and if so, executing the step S6; otherwise, ending the flow;
and S6, reading the configuration and issuing the configuration to the equipment, and deleting the corresponding redis persistent configuration.
2. An electronic device comprising a processor and a memory communicatively coupled to the processor and configured to store processor-executable instructions, wherein: the processor is configured to perform the method for preventing device configuration loss in cloud computing according to claim 1.
3. A server comprising at least one processor, and a memory communicatively coupled to the processor, the memory storing instructions executable by the at least one processor, wherein: the instructions are executed by the processors to cause the at least one processor to perform the method for preventing device configuration loss in cloud computing according to claim 1.
4. A computer-readable storage medium storing a computer program, characterized in that: the computer program, when executed by a processor, implements the method of claim 1 for preventing device configuration loss in cloud computing.
CN202011017309.3A 2020-09-24 2020-09-24 Method for preventing equipment configuration from being lost in cloud computing Pending CN112671550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011017309.3A CN112671550A (en) 2020-09-24 2020-09-24 Method for preventing equipment configuration from being lost in cloud computing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011017309.3A CN112671550A (en) 2020-09-24 2020-09-24 Method for preventing equipment configuration from being lost in cloud computing

Publications (1)

Publication Number Publication Date
CN112671550A true CN112671550A (en) 2021-04-16

Family

ID=75402752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011017309.3A Pending CN112671550A (en) 2020-09-24 2020-09-24 Method for preventing equipment configuration from being lost in cloud computing

Country Status (1)

Country Link
CN (1) CN112671550A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170163478A1 (en) * 2015-12-02 2017-06-08 Le Holdings (Beijing) Co., Ltd. Method,electronic device and system for updating client configuration in key-value pair database
CN107979498A (en) * 2018-01-03 2018-05-01 深圳市吉祥腾达科技有限公司 A kind of mesh network clusters and the big document transmission method based on the cluster
CN109815049A (en) * 2017-11-21 2019-05-28 北京金山云网络技术有限公司 Node delay machine restoration methods, device, electronic equipment and storage medium
CN110581779A (en) * 2019-08-16 2019-12-17 苏州迈科网络安全技术股份有限公司 Configuration issuing platform system and configuration issuing method based on local cache
CN111130872A (en) * 2019-12-19 2020-05-08 紫光云技术有限公司 Method for restoring network equipment configuration in cloud computing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170163478A1 (en) * 2015-12-02 2017-06-08 Le Holdings (Beijing) Co., Ltd. Method,electronic device and system for updating client configuration in key-value pair database
CN109815049A (en) * 2017-11-21 2019-05-28 北京金山云网络技术有限公司 Node delay machine restoration methods, device, electronic equipment and storage medium
CN107979498A (en) * 2018-01-03 2018-05-01 深圳市吉祥腾达科技有限公司 A kind of mesh network clusters and the big document transmission method based on the cluster
CN110581779A (en) * 2019-08-16 2019-12-17 苏州迈科网络安全技术股份有限公司 Configuration issuing platform system and configuration issuing method based on local cache
CN111130872A (en) * 2019-12-19 2020-05-08 紫光云技术有限公司 Method for restoring network equipment configuration in cloud computing

Similar Documents

Publication Publication Date Title
US9946655B2 (en) Storage system and storage control method
CN107562385B (en) Method, device and equipment for reading data by distributed storage client
CN106789741B (en) Consumption method and device of message queue
KR101279710B1 (en) Plc data log module and method for storing data in the same
US9697078B2 (en) Method and device for auto recovery storage of JBOD array
CN102681917A (en) Operating system (OS) and recovery method thereof
CN112208589B (en) Cross-line operation method, system, device, electronic equipment and storage medium
CN102571850A (en) Transaction committing system, method and equipment
CN113254275A (en) MySQL high-availability architecture method based on distributed block device
CN112162899A (en) Big data cluster service based monitoring method and system
CN112671550A (en) Method for preventing equipment configuration from being lost in cloud computing
CN114844809A (en) Multi-factor arbitration method and device based on network heartbeat and kernel disk heartbeat
CN111104146A (en) Embedded equipment with high stability and maintainability
CN102143614B (en) Updating method and home gateway equipment
CN102833096B (en) The high-availability system of a kind of low cost realizes method and device
CN111414277A (en) Data recovery method, device, electronic equipment and medium
CN116755533A (en) Method and device for realizing single-node power failure of multi-node server
CN103117955B (en) Method for message transmission and device, system
CN114880137A (en) Message processing method and device, electronic equipment and storage medium
CN114610238A (en) Method and device for safely using distributed storage for bare metal
CN113918364A (en) Redis-based lightweight message queue processing method and device
JP2015057685A (en) Monitoring system
CN110764697B (en) Data management method and device
CN112269687A (en) Method and device for updating configuration in real time based on user mode file system
CN110737544A (en) System for automatically rolling back openstack virtual machine configuration change failures

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210416