CN115460077A - Configuration information updating method and device, storage medium and electronic device - Google Patents
Configuration information updating method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN115460077A CN115460077A CN202211066947.3A CN202211066947A CN115460077A CN 115460077 A CN115460077 A CN 115460077A CN 202211066947 A CN202211066947 A CN 202211066947A CN 115460077 A CN115460077 A CN 115460077A
- Authority
- CN
- China
- Prior art keywords
- configuration information
- target
- environment
- system environment
- state
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000003860 storage Methods 0.000 title claims abstract description 18
- 238000012986 modification Methods 0.000 claims abstract description 12
- 230000004048 modification Effects 0.000 claims abstract description 12
- 238000004590 computer program Methods 0.000 claims description 16
- 230000006870 function Effects 0.000 claims description 8
- 230000001960 triggered effect Effects 0.000 claims description 8
- 230000006978 adaptation Effects 0.000 abstract description 8
- 230000001360 synchronised effect Effects 0.000 abstract description 7
- 238000005516 engineering process Methods 0.000 abstract description 5
- 238000012360 testing method Methods 0.000 description 29
- 238000011161 development Methods 0.000 description 16
- 238000004519 manufacturing process Methods 0.000 description 11
- 230000005540 biological transmission Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 238000009826 distribution Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008447 perception Effects 0.000 description 2
- 241001417527 Pempheridae Species 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a method, a device, a storage medium and an electronic device for updating configuration information, wherein the method comprises the following steps: repeatedly executing the following operations until the target configuration information obtained after modification in the target system environment is acquired: under the condition that first configuration information of a state corresponding to a first system environment exists, loading the first configuration information into the first system environment to indicate that the first configuration information is modified in the first system environment to obtain second configuration information; adjusting a state of the second configuration information to a state corresponding to an environment adjacent to and behind the first system environment included in the plurality of system environments; and loading the target configuration information into the last system environment so as to update the configuration information of the target intelligent device into the target configuration information. The problem that the adaptation rate of synchronous loading of the modified configuration information in the corresponding system environment is low in the related technology is solved.
Description
Technical Field
The embodiment of the invention relates to the field of Internet of things, in particular to a configuration information updating method, a configuration information updating device, a storage medium and an electronic device.
Background
The Internet of things (IoT) is an important component of a new generation of information technology and is also an important development stage of the information era. The internet of things is the internet with connected objects and comprises two layers: firstly, the core and the foundation of the internet of things are still the internet, namely, the internet is an extended and expanded network on the basis of the internet; and secondly, the system extends and expands to any article to article for information exchange and communication. The internet of things is widely applied to network convergence through communication perception technologies such as intelligent perception and identification technologies, and is also called as the third wave of development of the world information industry after computers and the internet.
In the related art, the operation of the program does not leave the configuration data, the configuration data defines the operation rule of the program logic, and the program logic is executed by loading the configuration data when the program is started or reading the configuration data in real time in the program operation process through the definition of the configuration data. The programs include not only application programs but also various business system fields, for example, various workflows of an OA (Office Automation) system, various message notification templates of a CRM (Customer Relationship Management) system, marketing scheme configuration of a marketing system, and the like. The massive adoption of the program configuration data brings great flexibility and customizability to the system and promotes the vigorous development of business, but only one part of the configuration data of most systems is modified to directly take effect, and if the modification is wrong, the configuration data can be restored only by a mode of changing back. Therefore, when the system needs to be upgraded and the number of modification points of the configuration data is large, not only a large amount of configuration data needs to be modified, but also the consistency between the modified configuration data and the system environment that needs to be synchronously loaded needs to be ensured.
For the problem of low adaptation rate of synchronous loading of modified configuration information in a corresponding system environment in the related art, an effective solution has not been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for updating configuration information, a storage medium and an electronic device, which are used for at least solving the problem that the adaptation rate of the modified configuration information in the corresponding system environment is low in the related art.
According to an embodiment of the present invention, there is provided a method for updating configuration information, including: repeatedly executing the following operations until target configuration information obtained after modification in a target system environment is obtained, wherein the target system environment is an environment included in a plurality of system environments in which configuration information of a target intelligent device needs to be sequentially loaded, and the target system environment is an environment adjacent to the last system environment included in the plurality of system environments; the repeatedly performed operations include: under the condition that first configuration information of a state corresponding to a first system environment is determined to exist, loading the first configuration information into the first system environment to indicate that the first configuration information is modified in the first system environment to obtain second configuration information, wherein the first system environment is any one environment in a plurality of system environments; adjusting a state of the second configuration information to a state corresponding to an environment adjacent to and behind the first system environment included in the plurality of system environments; loading the target configuration information into the last system environment to update the configuration information of the target intelligent device into the target configuration information; wherein each of the system environments is a configuration information that allows only loading of a state corresponding to itself.
In an exemplary embodiment, in a case where the first system environment is a first system environment included in a plurality of the system environments, before the first configuration information is loaded into the first system environment, the method further includes: acquiring the first configuration information from a target cloud platform; adjusting a state of the first configuration information to a state corresponding to the first system environment.
In an exemplary embodiment, the obtaining the first configuration information from the target cloud platform includes: copying published configuration information of the target intelligent device included in the target cloud platform to obtain the first configuration information.
In an exemplary embodiment, the obtaining the first configuration information from the target cloud platform includes: under the condition that a target instruction is received, acquiring the first configuration information from the target cloud platform; wherein the target instruction is triggered if it is determined that the configuration information of the target smart device needs to be updated.
In one exemplary embodiment, the method further comprises: configuring the state of corresponding configuration information for each system environment in advance; configuring, for each of the system environments, a function that allows only configuration information of a state corresponding to itself to be loaded.
In an exemplary embodiment, the states of the configuration information corresponding to different system environments are different; or the states of the configuration information corresponding to at least two adjacent system environments included in the plurality of system environments are the same.
According to another embodiment of the present invention, there is provided an apparatus for updating configuration information, including: an execution module, configured to repeatedly execute the following operations until target configuration information obtained after modification in a target system environment is obtained, where the target system environment is an environment included in multiple system environments in which configuration information of a target intelligent device needs to be sequentially loaded, and the target system environment is an environment adjacent to a last system environment included in the multiple system environments; the repeatedly performed operations include: under the condition that first configuration information of a state corresponding to a first system environment is determined to exist, loading the first configuration information into the first system environment to indicate that the first configuration information is modified in the first system environment to obtain second configuration information, wherein the first system environment is any one environment in a plurality of system environments; adjusting a state of the second configuration information to a state corresponding to an environment adjacent to and behind the first system environment included in the plurality of system environments; a loading module, configured to load the target configuration information into the last system environment, so as to update the configuration information of the target intelligent device to the target configuration information; and each system environment is configuration information which only allows loading of the state corresponding to the system environment.
According to another embodiment of the present invention, there is also provided a target cloud platform system including: the product center comprises the configuration information updating device; wherein a plurality of the system environments are deployed in the target cloud platform system.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to, when executed, perform the steps of any of the method embodiments described above.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the configuration information is repeatedly modified in a plurality of system environments, and the state of the modified configuration information is adjusted to the state corresponding to the next environment to be loaded with the configuration information, so that the plurality of system environments can uniquely and accurately load the configuration information in the corresponding state, the consistency of the configuration in each system environment is ensured, the probability of configuration abnormity is reduced, the problem of low adaptation rate of synchronous loading of the modified configuration information in the corresponding system environment in the related technology is solved, and the effects of improving the adaptation rate and efficiency of synchronous loading of the modified configuration information in the corresponding system environment are achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for updating configuration information according to an embodiment of the present invention;
FIG. 3 is a flowchart of a stateful configuration publishing method, according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an internet of things cloud platform system according to an embodiment of the present invention;
fig. 5 is a block diagram of a configuration information updating apparatus according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the method running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of an updating method of configuration information according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the method for updating configuration information in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In this embodiment, a method for updating configuration information is provided, and fig. 2 is a flowchart of a method for updating configuration information according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, repeatedly executing the following operations until the target configuration information obtained after modification in a target system environment is obtained, wherein the target system environment is an environment included in a plurality of system environments in which the configuration information of the target intelligent device needs to be sequentially loaded, and the target system environment is an environment adjacent to the last system environment included in the plurality of system environments; the repeatedly performed operations include: under the condition that first configuration information of a state corresponding to a first system environment is determined to exist, loading the first configuration information into the first system environment to indicate that the first configuration information is modified in the first system environment to obtain second configuration information, wherein the first system environment is any one environment in a plurality of system environments; adjusting a state of the second configuration information to a state corresponding to an environment adjacent to and behind the first system environment included in the plurality of system environments;
and step S204, loading the target configuration information into the last system environment so as to update the configuration information of the target intelligent equipment into the target configuration information.
Each system environment is configuration information which only allows loading of the state corresponding to the system environment.
The above operations may be performed by a system with communication capability, for example, a target cloud platform system, or a product center in the target cloud platform system, or a controller or a processor in the system, or a controller or a processor existing separately, or other processing devices or processing units with similar processing capabilities.
In the above embodiment, the configuration information of the target intelligent device may be one, certainly, there may be multiple types, when the configuration information includes multiple types of information, different types of configuration information may represent different functions of the target intelligent device, and in practical applications, multiple types of target configuration information may be acquired, and then all the configuration information included in the target intelligent device or configuration information that needs to be partially updated is determined as the target configuration information, and in addition, multiple types of configuration information included in the target intelligent device may be updated at the same time, in this case, configuration information with a higher priority or a higher weight included in the target intelligent device may be updated preferentially according to the priority or the weight of the multiple types of configuration information, of course, multiple types of configuration information included in the target intelligent device may also be updated randomly, configuration information corresponding to the type of the target configuration information included in the target intelligent device may also be updated by using the target configuration information that is acquired preferentially, and the examples of the target configuration information and the configuration information of the target intelligent device are only one exemplary embodiment, and the examples of the target configuration information and the configuration information of the target intelligent device are not limited to the above examples.
In the above embodiments, the system environment includes, but is not limited to, a development environment, a test environment, a pre-release environment, a gray scale environment, a production environment, and a formal environment, where the configuration state loaded by each environment may be defined in the system in advance, for example, the development environment loads a development state configuration, the test environment loads a test state configuration, the pre-release environment loads a pre-release state configuration, the formal environment loads a formal environment, the gray scale environment loads a gray scale state configuration, and the production environment loads a production state configuration, and the order of loading configuration information of corresponding states in different system environments may be random, or may be sorted according to the priority or weight of each system environment, for example, when the priority or weight of a system environment is: when the development environment > the test environment > the pre-development environment > the gray level environment > the production environment > the formal environment, the order of loading the configuration information of the corresponding state by the system environment is as follows: the development environment > the test environment > the pre-development environment > the gray-scale environment > the production environment > the formal environment, in addition, in the practical application, the configuration information of the state corresponding to the release environment may be loaded first, then the configuration information of the state corresponding to the test environment may be loaded, and the order of loading the configuration information of the corresponding state by different system environments may be adjusted again according to the practical application condition after being defined in advance.
In the above embodiment, the modifying of the configuration information in the multiple system environments is repeatedly performed, and the state of the modified configuration information is adjusted to the state corresponding to the next environment in which the configuration information is to be loaded, so that the multiple system environments can uniquely and accurately load the configuration information in the corresponding state, the consistency of the configuration in each system environment is ensured, the probability of configuration abnormality is reduced, the problem of low adaptation rate of synchronous loading of the modified configuration information in the corresponding system environment in the related art is solved, and the effects of improving the adaptation rate and efficiency of synchronous loading of the modified configuration information in the corresponding system environment are achieved.
In an exemplary embodiment, in a case where the first system environment is a first system environment included in the plurality of system environments, before the first configuration information is loaded into the first system environment, the method further includes: acquiring first configuration information from a target cloud platform; the state of the first configuration information is adjusted to a state corresponding to the first system environment. In this embodiment, the target cloud platform may be an internet of things cloud platform, the internet of things cloud platform is an intelligent internet platform for performing interactive communication between people, between objects, and between people and objects, and may be a delivery platform for providing unified services for various different internet of things applications.
In the foregoing embodiment, the target cloud platform may store configuration information of a plurality of intelligent devices in advance, and then may obtain first configuration information from the configuration information of the plurality of intelligent devices, or the target cloud platform issues the configuration information of the plurality of intelligent devices to the product center in advance to store, and then obtains the first configuration information from the product center, or the product center obtains the configuration information of the plurality of intelligent devices from the target cloud platform periodically, it should be noted that the obtaining manner of the first configuration information is only an exemplary embodiment, and the obtaining manner of the first configuration information is not limited to the above example.
In one exemplary embodiment, the obtaining the first configuration information from the target cloud platform includes: and copying published configuration information of the target intelligent device included in the target cloud platform to obtain first configuration information. In this embodiment, the configuration information issued by the target intelligent device may be multiple, and further, the multiple configuration information may be copied to obtain multiple different types of first configuration information, and also multiple configuration information of the same type may be obtained, for example, the configuration information of a control module included in the target intelligent device, where if two control times exist in the configuration information of the control module, one is long-term control and the other is short-term control, and further, the target intelligent device may issue configuration information of long-term control of one control module and configuration information of short-term control of one control module, and the like.
In the above embodiment, the target cloud platform may store configuration information of the plurality of intelligent devices in advance, and further may copy configuration information that has been issued by the target intelligent device from the configuration information of the plurality of intelligent devices included in the target cloud platform, so as to obtain first configuration information, or the target cloud platform may issue the configuration information of the plurality of intelligent devices to the product center in advance to store, and further may copy the configuration information that has been issued by the target intelligent device from the configuration information of the plurality of intelligent devices stored in the product center, so as to obtain the first configuration information, or the product center may periodically obtain the configuration information of the plurality of intelligent devices from the target cloud platform, and further may periodically copy the configuration information that has been issued by the target intelligent device from the configuration information of the plurality of intelligent devices stored in the product center, and so on.
In the above embodiments, the configuration information included in the target smart device includes, but is not limited to, language configuration information, message pushing pattern configuration information, object model description configuration information, device distribution network flow configuration information, and the like.
In one exemplary embodiment, the obtaining the first configuration information from the target cloud platform includes: under the condition that a target instruction is received, first configuration information is obtained from a target cloud platform; wherein the target instruction is triggered if it is determined that the configuration information of the target smart device needs to be updated. In this embodiment, the configuration information of the target intelligent device may have one or more types, and when a target instruction triggered when it is determined that some or all of the configuration information included in the plurality of types of configuration information needs to be updated is received, the one or some or all of the first configuration information that needs to be updated is obtained from the target cloud platform through the target instruction, that is, the corresponding first configuration information is directly obtained through the target instruction, so that the update efficiency of the configuration information of the target intelligent device is further accelerated.
In the above embodiment, the target instruction may be triggered manually by an operator or an administrator, for example, the operator or the administrator determines that the configuration information of the target smart device needs to be updated, and then manually touches or clicks a key to trigger the target instruction, or may trigger the target instruction automatically at regular intervals, for example, an automatic trigger target instruction may be set to update the configuration information of the target smart device every week, every half month, every month, or the like, the target instruction device may also be triggered by other devices when determining that the configuration information needs to be updated, and the update instruction of other devices may also be triggered manually or automatically at regular intervals by the operator or the administrator, it should be noted that the triggering manner of the target instruction is only an exemplary embodiment, and the triggering manner of the target instruction is not limited to the above examples.
In one exemplary embodiment, the method further comprises: configuring the state of corresponding configuration information for each system environment in advance; a function allowing only loading of configuration information of a state corresponding to itself is configured for each system environment. In this embodiment, the state of the corresponding configuration information is configured for each system environment in advance, and in the case that a certain system environment needs to load the configuration information of the corresponding state, only the function of allowing the system environment to load the configuration information of the state corresponding to the system environment is allowed, so as to avoid the problem of difference in synchronous loading of the configuration information in the system environment of the corresponding state, thereby effectively improving the adaptation degree of the configuration information and the system environment of the corresponding state, in addition, when the configuration information of the state corresponding to the system environment is loaded in different system environments, the loading sequence may be performed according to the priority or the weight of the system environment, for example, the configuration information of the state corresponding to the system environment may be loaded preferentially by the system environment with the prior priority or with the large weight, or one system environment may be randomly selected from the system environments needing to load the configuration information of the state corresponding to the system environment, or the configuration information of the state corresponding to each system environment may be loaded simultaneously to all the system environments needing to load the configuration information, the loading sequence of the configuration information may also be adjusted according to the actual application situation, and it is further noted that the loading sequence of the configuration information is only an exemplary embodiment, and the loading sequence is not limited to the above.
In the above embodiment, when the system environment includes a development environment, a test environment, a pre-release environment, a production environment, a formal environment, and the like, a state of configuration information corresponding to the development environment may be a development state, a state of configuration information corresponding to the test environment may be a test state, a state of configuration information corresponding to the pre-release environment may be a pre-release state, a state of configuration information corresponding to the production environment may be a production state, and a state of configuration information corresponding to the formal environment may be a formal state, where different system environments may configure configuration information of the same state, but contents of configuration information may differ, for example, both the test environment and the pre-release environment may load configuration information of the test state, and test data in configuration information of the test state corresponding to the test environment may not coincide with test data in configuration information of the test state corresponding to the pre-release environment.
In an exemplary embodiment, the states of the configuration information corresponding to different system environments are different; or, the states of the configuration information corresponding to at least two adjacent system environments included in the plurality of system environments are the same. In this embodiment, the multiple system environments may include, for example, a test environment, a pre-release environment, a formal environment, a development environment, a grayscale environment, a production environment, and other environments, where the test environment and the pre-release environment may both load configuration information of a test state, and the formal environment may load configuration information of a formal state, the development environment may load configuration information of a development state, the grayscale environment may load configuration information of a grayscale state, and the production environment may load configuration information of a production state, where different configuration information may correspond to the same state, that is, the states of configuration information corresponding to different system environments may be the same, but specific contents of the configuration information may differ.
It is to be understood that the above-described embodiments are only a few, but not all, embodiments of the present invention.
The present invention will be described in detail with reference to the following specific examples:
in an embodiment of the present invention, a flow of a stateful configuration issuing method is further provided, and fig. 3 is a flow chart of a stateful configuration issuing method according to an embodiment of the present invention, as shown in fig. 3, the flow includes the following steps:
step S302, a user copies a published intelligent hardware configuration in an Internet of things cloud platform to generate configuration copy information, wherein the copy configuration is set to be in a test state;
step S304, each environment loads configuration information of a corresponding state, and the configuration information can be released step by step after verification is passed;
and step S306, when the copy configuration information is set to be in a release state, the copy configuration takes effect instead of the existing formal configuration.
The following describes each flow involved in the process of stateful configuration release:
1. a user copies a published intelligent hardware configuration (corresponding to published configuration information of the target intelligent device) in an internet of things cloud platform (corresponding to the target cloud platform), and generates configuration copy information (corresponding to the first configuration information), wherein the copy configuration is set to be in a test state;
1) The configuration information of the present application is multi-dimensional product configuration information of an intelligent hardware product, including but not limited to: multi-language configuration information, message push file configuration information, object model description configuration information, equipment distribution network flow configuration information and the like;
2) The user copies the issued intelligent hardware configuration to generate copy information:
a. at this time, the formal environment (corresponding to the system environment) still adopts the product configuration in a formal state (published), and the copy configuration is not effective in the formal environment;
b. when a user creates configuration for the first time, the configuration state of a corresponding product is defaulted to be a test state (initial), and the release is allowed after the test;
c. when the user updates the configuration for the second time, the configuration content item which modifies the issued state is allowed not to generate the copy and is directly effective.
2. Loading configuration information of a corresponding state in each environment, and gradually releasing the configuration state after the user passes verification;
1) The configuration state loaded by each environment is defined in the system in advance, for example, the test environment loads a test state configuration (corresponding to the above copy configuration), the pre-release environment loads a pre-release state configuration (configuration information obtained from the previous system environment and configuration information for modifying the state into a pre-release state), and the formal environment loads a formal state configuration (configuration information obtained from the previous environment and configuration information for modifying the state into a release non-pre-release state); the multiple environments correspond to the configuration of the same state (that is, the states corresponding to different configuration information may be the same, that is, the states of the configuration information corresponding to different system environments may be the same, but the specific contents of the configuration information may be different), for example, the test environment (corresponding to the system environment) and the pre-release environment (corresponding to the system environment) load the configuration of the test state in a unified manner; when there are more environments, more configuration states matched with the environments can be defined;
2) After each environment passes the verification, the user may release the configuration state step by step, for example, the test is released to the pre-release state, and the pre-release state is released to the official state.
3. And when the copy configuration information is set to be in a release state, the copy configuration takes effect instead of the existing formal configuration.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for updating configuration information is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a configuration information updating apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes:
an execution module 42, configured to repeatedly execute the following operations until target configuration information obtained after modification in a target system environment is obtained, where the target system environment is an environment included in multiple system environments that need to sequentially load configuration information of a target smart device, and the target system environment is an environment adjacent to a last system environment included in the multiple system environments;
the repeatedly performed operations include: under the condition that first configuration information of a state corresponding to a first system environment is determined to exist, loading the first configuration information into the first system environment to indicate that the first configuration information is modified in the first system environment to obtain second configuration information, wherein the first system environment is any one environment in a plurality of system environments; adjusting a state of the second configuration information to a state corresponding to an environment adjacent to and behind the first system environment included in the plurality of system environments;
a loading module 44, configured to load the target configuration information into the last system environment, so as to update the configuration information of the target smart device into the target configuration information;
and each system environment is configuration information which only allows loading of the state corresponding to the system environment.
In an exemplary embodiment, the apparatus further includes:
an obtaining module, configured to, when the first system environment is a first system environment included in the plurality of system environments, obtain the first configuration information from a target cloud platform before loading the first configuration information into the first system environment;
and the adjusting module is used for adjusting the state of the first configuration information to a state corresponding to the first system environment.
In an exemplary embodiment, the obtaining module includes:
the replication sub-module is configured to replicate the published configuration information of the target intelligent device included in the target cloud platform to obtain the first configuration information.
In an exemplary embodiment, the obtaining module further includes:
the obtaining sub-module is used for obtaining the first configuration information from the target cloud platform under the condition that a target instruction is received;
wherein the target instruction is triggered if it is determined that the configuration information of the target smart device needs to be updated.
In an exemplary embodiment, the apparatus further includes:
the first configuration module is used for configuring the state of corresponding configuration information for each system environment in advance;
and the second configuration module is used for configuring a function which only allows loading of configuration information of a state corresponding to the second configuration module for each system environment.
In an exemplary embodiment, the states of the configuration information corresponding to different system environments are different; or the states of the configuration information corresponding to at least two adjacent system environments included in the plurality of system environments are the same.
In this embodiment, a target cloud platform system is further provided, including:
the product center comprises the configuration information updating device;
wherein a plurality of the system environments are deployed in the target cloud platform system.
Fig. 5 is a schematic diagram of an internet of things cloud platform system according to an embodiment of the present invention, and as shown in fig. 5, the embodiment is described by taking a service system of the internet of things cloud platform including three sets of environments as an example: namely, including test environment, pre-release environment and formal environment to and the product center of each environment of intercommunication, client, intelligent hardware all are connected with thing allies oneself with cloud platform:
1) Clients of the present application include, but are not limited to: mobile end APP (Application), wechat applet, PC (Personal computer) client, web (world Wide Web) page, etc.;
2) The intelligent hardware of the present application includes but is not limited to: intelligent cameras, intelligent door locks, sweeper, intelligent bulbs and the like;
3) The product center of the application comprises two parts, and is responsible for providing corresponding intelligent hardware configuration information for each environment:
the product center comprises two main parts which are specifically as follows:
a. the configuration management system is responsible for providing operation interfaces such as configuration modification, release and the like;
b. the configuration information storage is responsible for the configuration information storage of the core and comprises structural configuration storage and unstructured configuration storage; the unstructured configuration comprises resource files such as pictures, videos and the like, and the resource files are stored in an object storage and a block storage; structured configurations include, for example, multi-lingual information, push documents, etc., stored in databases including, but not limited to, mysql (relational database management system), mongoDB (distributed file storage based database), etc.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method for updating configuration information, comprising:
repeatedly executing the following operations until target configuration information obtained after modification in a target system environment is obtained, wherein the target system environment is an environment included in a plurality of system environments in which configuration information of a target intelligent device needs to be sequentially loaded, and the target system environment is an environment adjacent to the last system environment included in the plurality of system environments;
the repeatedly performed operations include: under the condition that first configuration information of a state corresponding to a first system environment is determined to exist, loading the first configuration information into the first system environment to indicate that the first configuration information is modified in the first system environment to obtain second configuration information, wherein the first system environment is any one environment in a plurality of system environments; adjusting a state of the second configuration information to a state corresponding to an environment adjacent to and behind the first system environment included in the plurality of system environments;
loading the target configuration information into the last system environment to update the configuration information of the target intelligent device into the target configuration information;
and each system environment is configuration information which only allows loading of the state corresponding to the system environment.
2. The method according to claim 1, wherein in a case where the first system environment is a first system environment included in a plurality of the system environments, before loading the first configuration information into the first system environment, the method further comprises:
acquiring the first configuration information from a target cloud platform;
adjusting a state of the first configuration information to a state corresponding to the first system environment.
3. The method of claim 2, wherein the obtaining the first configuration information from the target cloud platform comprises:
copying the published configuration information of the target intelligent device included in the target cloud platform to obtain the first configuration information.
4. The method of claim 2, wherein the obtaining the first configuration information from the target cloud platform comprises:
under the condition that a target instruction is received, acquiring the first configuration information from the target cloud platform;
wherein the target instruction is triggered if it is determined that the configuration information of the target smart device needs to be updated.
5. The method of claim 1, further comprising:
configuring the state of corresponding configuration information for each system environment in advance;
configuring, for each of the system environments, a function that allows only configuration information of a state corresponding to itself to be loaded.
6. The method of claim 5,
the states of the configuration information corresponding to different system environments are different; or,
the states of the configuration information corresponding to at least two adjacent system environments included in the plurality of system environments are the same.
7. An apparatus for updating configuration information, comprising:
an execution module, configured to repeatedly execute the following operations until target configuration information obtained after modification in a target system environment is obtained, where the target system environment is an environment included in a plurality of system environments in which configuration information of a target intelligent device needs to be sequentially loaded, and the target system environment is an environment adjacent to a last system environment included in the plurality of system environments; the repeatedly performed operations include: under the condition that first configuration information of a state corresponding to a first system environment is determined to exist, loading the first configuration information into the first system environment to indicate that the first configuration information is modified in the first system environment to obtain second configuration information, wherein the first system environment is any one environment in a plurality of system environments; adjusting a state of the second configuration information to a state corresponding to an environment adjacent to and behind the first system environment included in the plurality of system environments;
a loading module, configured to load the target configuration information into the last system environment, so as to update the configuration information of the target intelligent device to the target configuration information;
and each system environment is configuration information which only allows loading of the state corresponding to the system environment.
8. A target cloud platform system, comprising:
a product center, wherein the product center comprises means for updating the configuration information of claim 7;
wherein a plurality of the system environments are deployed in the target cloud platform system.
9. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method as claimed in any of claims 1 to 6 are implemented when the computer program is executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211066947.3A CN115460077B (en) | 2022-09-01 | 2022-09-01 | Configuration information updating method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211066947.3A CN115460077B (en) | 2022-09-01 | 2022-09-01 | Configuration information updating method and device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115460077A true CN115460077A (en) | 2022-12-09 |
CN115460077B CN115460077B (en) | 2024-06-18 |
Family
ID=84300383
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211066947.3A Active CN115460077B (en) | 2022-09-01 | 2022-09-01 | Configuration information updating method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115460077B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110321012A1 (en) * | 2010-06-25 | 2011-12-29 | International Business Machines Corporation | Non-Intrusive Measurement of Content Quality Using Dry Runs with Roll-back |
WO2017145899A1 (en) * | 2016-02-24 | 2017-08-31 | 日本電気株式会社 | Management system, test method and recording medium |
CN107491390A (en) * | 2017-08-15 | 2017-12-19 | 深圳市慧择时代科技有限公司 | The method and device of replacement test environment configuration information |
CN109828779A (en) * | 2018-12-26 | 2019-05-31 | 中国平安人寿保险股份有限公司 | Environment changing method, apparatus, terminal installation and storage medium |
CN110413528A (en) * | 2019-07-31 | 2019-11-05 | 中国工商银行股份有限公司 | Test environment intelligent configuration method and system |
CN111324441A (en) * | 2020-02-19 | 2020-06-23 | 深圳乐信软件技术有限公司 | Operating environment switching method and device, computer equipment and storage medium |
CN111694750A (en) * | 2020-06-29 | 2020-09-22 | 深圳前海微众银行股份有限公司 | Method and device for constructing software testing environment |
CN112148342A (en) * | 2019-06-27 | 2020-12-29 | 北京达佳互联信息技术有限公司 | Component configuration method and device, electronic equipment and storage medium |
CN112650815A (en) * | 2021-01-19 | 2021-04-13 | 青岛海尔科技有限公司 | Method and device for synchronizing environmental data, storage medium and electronic device |
CN112671566A (en) * | 2020-12-16 | 2021-04-16 | 平安普惠企业管理有限公司 | Data processing method and device, computer equipment and readable storage medium |
-
2022
- 2022-09-01 CN CN202211066947.3A patent/CN115460077B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110321012A1 (en) * | 2010-06-25 | 2011-12-29 | International Business Machines Corporation | Non-Intrusive Measurement of Content Quality Using Dry Runs with Roll-back |
WO2017145899A1 (en) * | 2016-02-24 | 2017-08-31 | 日本電気株式会社 | Management system, test method and recording medium |
CN107491390A (en) * | 2017-08-15 | 2017-12-19 | 深圳市慧择时代科技有限公司 | The method and device of replacement test environment configuration information |
CN109828779A (en) * | 2018-12-26 | 2019-05-31 | 中国平安人寿保险股份有限公司 | Environment changing method, apparatus, terminal installation and storage medium |
CN112148342A (en) * | 2019-06-27 | 2020-12-29 | 北京达佳互联信息技术有限公司 | Component configuration method and device, electronic equipment and storage medium |
CN110413528A (en) * | 2019-07-31 | 2019-11-05 | 中国工商银行股份有限公司 | Test environment intelligent configuration method and system |
CN111324441A (en) * | 2020-02-19 | 2020-06-23 | 深圳乐信软件技术有限公司 | Operating environment switching method and device, computer equipment and storage medium |
CN111694750A (en) * | 2020-06-29 | 2020-09-22 | 深圳前海微众银行股份有限公司 | Method and device for constructing software testing environment |
CN112671566A (en) * | 2020-12-16 | 2021-04-16 | 平安普惠企业管理有限公司 | Data processing method and device, computer equipment and readable storage medium |
CN112650815A (en) * | 2021-01-19 | 2021-04-13 | 青岛海尔科技有限公司 | Method and device for synchronizing environmental data, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN115460077B (en) | 2024-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112000348B (en) | Control method, device and computer equipment for service gray level release | |
US11762697B2 (en) | Method and apparatus for scheduling resource for deep learning framework | |
CN108874558B (en) | Message subscription method of distributed transaction, electronic device and readable storage medium | |
CN109032796B (en) | Data processing method and device | |
CN109298924B (en) | Timing task management method, computer readable storage medium and terminal device | |
CN109885612B (en) | Synchronous validation method and device for intelligent contracts of block chains | |
CN113127564B (en) | Parameter synchronization method and device | |
CN111784318A (en) | Data processing method and device, electronic equipment and storage medium | |
CN111988429A (en) | Algorithm scheduling method and system | |
CN111459629A (en) | Azkaban-based project operation method and device and terminal equipment | |
CN116302708A (en) | Data backup method, device, equipment and storage medium based on load balancing | |
CN110737458A (en) | code updating method and related device | |
CN114546588A (en) | Task deployment method and device, storage medium and electronic device | |
CN116737393B (en) | Resource deployment method and device, storage medium and electronic equipment | |
CN112506590A (en) | Interface calling method and device and electronic equipment | |
CN104462353B (en) | Database batch synchronization processing method and processing device | |
CN109814911A (en) | Method, apparatus, computer equipment and storage medium for Manage Scripts program | |
CN113741931B (en) | Software upgrading method and device, electronic equipment and readable storage medium | |
CN115460077B (en) | Configuration information updating method and device, storage medium and electronic device | |
CN115328457A (en) | Method and device for realizing form page based on parameter configuration | |
CN114675872B (en) | Data processing method, device, equipment and storage medium for application program | |
US20140172955A1 (en) | Distributed mobile enterprise application platform | |
US20210182284A1 (en) | System and method for data ingestion and workflow generation | |
CN112559001A (en) | Method and device for updating application | |
US11330079B2 (en) | Environment for developing of distributed multicloud applications |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |