CN112559025A - Configuration information updating synchronization method and equipment - Google Patents

Configuration information updating synchronization method and equipment Download PDF

Info

Publication number
CN112559025A
CN112559025A CN202011487968.3A CN202011487968A CN112559025A CN 112559025 A CN112559025 A CN 112559025A CN 202011487968 A CN202011487968 A CN 202011487968A CN 112559025 A CN112559025 A CN 112559025A
Authority
CN
China
Prior art keywords
configuration information
configuration
module
changed
information
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
CN202011487968.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.)
China Life Insurance Co Ltd China
Original Assignee
China Life Insurance Co Ltd China
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 China Life Insurance Co Ltd China filed Critical China Life Insurance Co Ltd China
Priority to CN202011487968.3A priority Critical patent/CN112559025A/en
Publication of CN112559025A publication Critical patent/CN112559025A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

One or more embodiments of the present disclosure provide a method and device for updating and synchronizing configuration information, which relate to the field of communications technologies. The configuration information updating and synchronizing method in the present disclosure includes: the configuration center acquires the operation of a user and extracts pre-stored configuration information; the configuration center changes the corresponding configuration items and/or configuration data in the configuration information according to the operation of the user to obtain the changed configuration information; and the configuration center synchronously stores the changed configuration information so that the changed configuration information can be acquired by the application program. The technical problem that configuration information such as an application stack, a theme, a version and group information which the application stack belongs to cannot be updated in a hot mode and only the overall configuration can be updated in a hot mode in the prior art is solved; therefore, the change operation of a single configuration item and configuration data is realized and stored.

Description

Configuration information updating synchronization method and equipment
Technical Field
One or more embodiments of the present disclosure relate to the field of communications technologies, and in particular, to a method and an apparatus for synchronizing update of configuration information.
Background
In a development environment and a test environment, a developer or an operation and maintenance worker can configure a configuration center through an interface, the configuration center can be simply understood as a service module, related micro-services are connected to the configuration center, and parameters modified on the configuration center can be obtained in a real-time connection mode; the current popular configuration center in the industry is Apollo (Apollo), can be used for centralized management of the configuration of different environments and different clusters, can be pushed to an application end in real time after configuration modification, has the characteristics of standard authority, flow control and the like, and is suitable for a micro-service configuration management scene; specifically, in the prior art, two ways are generally adopted for obtaining the configuration, pull can ensure that data can be obtained by pulling certainly, pull generally adopts a way of pulling regularly, even if the network does not pull the data to obtain the data in a certain time, the timer can pull the data to obtain the data in the next time, and finally the configuration is obtained by updating; the push can avoid the delay existing in the acquisition of the pull timer, and the quasi-real-time updating can be basically realized.
However, when the push mode is applied, if the network is jittered and the push of a certain time is not successfully pushed, the configured update is lost; in addition, no matter the existing Apollo (Apollo) configuration is actively pulled or waits for being pushed, the client needs to specify information such as environment, project, name space, version and the like; the information of the application stack, the theme, the version and the group which belong to the application stack can not be updated in a hot mode, and only the whole configuration can be updated in a hot mode.
Based on this, a micro-service configuration management scene which can synchronize the modified configuration with the application end in real time and has the characteristics of standard authority, flow control and the like is needed.
Disclosure of Invention
In view of the above, one or more embodiments of the present disclosure are directed to a method and apparatus for synchronizing update of configuration information.
One or more embodiments of the present disclosure provide a configuration information update synchronization method, including:
the configuration center acquires the operation of a user and extracts pre-stored configuration information;
the configuration center changes the corresponding configuration items and/or configuration data in the configuration information according to the change operation of the user to obtain the changed configuration information;
and the configuration center synchronously stores the changed configuration information so that the changed configuration information can be acquired by the application program.
Based on the same inventive concept, one or more embodiments of the present disclosure also provide an electronic device, including:
a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the configuration information update synchronizer as described above when executing the program.
It can be seen from the disclosure that, according to the configuration information update synchronization method and apparatus provided in one or more embodiments of the disclosure, based on a response-type obtaining manner, corresponding configuration information is directly filled or changed according to a user operation, values of each configuration item and each configuration data can be directly set on a user operation interface, an interface of configuration information in a uniform format is adopted, configuration differentiation is performed in multiple dimensions, based on contents of each configuration information that cannot be directly modified in an operation interface in the prior art, it is achieved that each configuration item can be set or modified individually, correspondingly, an application configuration can be stripped from an application code or a file, and configuration is performed in a configuration center, so that the configuration itself is independent of application release and effective, that is, after the user operation modifies the configuration information, the modified configuration information can be synchronized to a server by applying the technical scheme of the disclosure, meanwhile, the server and the application program can realize the synchronous interaction of the configuration information, so that the response speed of the change is improved in the change which only needs configuration modification.
Drawings
In order to more clearly illustrate one or more embodiments of the present disclosure or prior art solutions, reference will now be made briefly to the attached drawings, which are needed in the description of embodiments or prior art, and it should be apparent that the attached drawings in the description below are merely one or more embodiments of the present disclosure, and that other drawings may be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flow diagram of a core method of a configuration information update synchronization method of one or more embodiments of the present disclosure;
FIG. 2 is a framework diagram of information interaction between a configuration center and an application in accordance with one or more embodiments of the present disclosure;
FIG. 3 is a flow diagram of one embodiment of a configuration data update synchronization method according to one or more embodiments of the present disclosure;
FIG. 4 is a flow diagram of one embodiment of a configuration information update synchronization method according to one or more embodiments of the present disclosure;
FIG. 5 is a framework diagram of information interaction between a configuration center and an application in accordance with one or more embodiments of the present disclosure;
fig. 6 is a schematic view of an electronic device of one or more embodiments of the present disclosure.
Detailed Description
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
It is to be noted that unless otherwise defined, technical or scientific terms used in one or more embodiments of the present disclosure should have the ordinary meaning as understood by one of ordinary skill in the art to which the present disclosure belongs. The use of "first," "second," and similar terms in one or more embodiments of the present disclosure is not intended to indicate any order, quantity, or importance, but rather is used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items.
As described in the background section, existing Apollo (Apollo) configuration centers are not able to update individual configuration items that are already stored in the server. The existing apollo framework generally adopts two ways to acquire the configuration: pull can guarantee that certain data is obtained by pulling, pull generally adopts the way of pulling regularly, even if the network does not pull to obtain data in a certain time, then the timer can pull to obtain data in the next time, finally guarantee to update to obtain configuration; the push is also beneficial to avoiding the delay existing in the acquisition of the push timer and basically achieving the quasi-real-time updating, but the push also has problems, and if the network shakes, the push of a certain time is not successfully pushed, and the configured update is lost. In carrying out the present disclosure, the applicant has found that a major problem with existing apollo frame configuration centers is that: the configuration items are as follows: information of an application stack, a theme, a version and a group can only be stored uniformly, and corresponding individual configuration items in a server cannot be changed and updated, so that if configuration needs to be changed, only the overall configuration can be updated, redundancy of information input exists, unnecessary operation waste is caused, and working time is reduced; in addition, when the server receives the configuration information, the application stack, the theme, the version and the group information of the project cannot be distinguished independently; in addition, it is to be noted that in the claims of the present disclosure, the representative condition is defined in response to the determination, that is, when a certain condition is established.
In view of this, one or more embodiments of the present disclosure provide a method for synchronizing update of configuration information and an electronic device, where the method for synchronizing update of configuration information includes: the configuration information pre-stored in the configuration center can be extracted to obtain the extracted configuration information, the extracted configuration information can respectively change the configuration items and/or the configuration data through the operation of a user to obtain the changed configuration information, so that the change of a single configuration item and the configuration data is realized, the changed configuration information is obtained by an application program, and the information based on the configuration items in the prior art can only be uniformly stored and cannot change and update the corresponding independent configuration items in the server; the scheme of the disclosure can realize the change of a single configuration item and configuration data and a plurality of configuration items and/or configuration data, and enable the application program to obtain, can further reduce program redundancy, accelerate the running speed, and can change the pre-stored configuration information related to the operation of a user, and perform hot update on the server (namely, a storage module).
The technical solution of one or more embodiments of the present disclosure is further described in detail below by specific embodiments, with reference to fig. 1 to 6.
As an alternative embodiment, in order to change pre-stored configuration information and obtain the changed configuration information by an application, referring to fig. 1, one or more embodiments of the present disclosure provide a configuration information update synchronization method, including:
s101, a configuration center acquires user operation and extracts pre-stored configuration information;
s102, the configuration center changes the corresponding configuration items and/or configuration data in the configuration information according to the change operation of the user to obtain changed configuration information;
s103, the configuration center synchronously stores the changed configuration information so that the changed configuration information can be acquired by the application program.
Based on the above steps, further, the configuration center includes an obtaining module (Protal), an interface module (Service), and a storage module (Consul Server), where the obtaining module (Protal) obtains the operation of the user, and the operation of the user includes: a user triggers an extraction module on an interface to generate an extraction command, the extraction command is sent to a storage module (Consul Server) through an interface module (Service), the storage module (Consul Server) receives the extraction command, corresponding internally stored configuration information is sent to an acquisition module (Protal) through the interface module (Service), and the configuration information is displayed on an interface of the acquisition module (Protal), and the information of each configuration item can be displayed on the interface; in addition, the changed configuration information is obtained by changing the corresponding configuration item and/or configuration data in the configuration information after the obtaining module (Protal) obtains the change operation; further, the configuration center synchronously stores the changed configuration information, specifically including: the acquisition module (Protal) sends the changed configuration information to the interface module (Service), the interface module (Service) sends the changed configuration information to the storage module (Consul Server), and the storage module (Consul Server) stores the changed configuration information.
Further, the creation of each configuration item of the change operation corresponds to the information transmission of a separate configuration item and/or corresponding configuration data, and the configuration items correspond to the configuration data one to one. That is, when one configuration item is added, the configuration data corresponding to the configuration item can be directly input; in addition, if the configuration item is not changed, only the configuration data is changed, the value of the corresponding configuration data can be directly changed; it is noted that in one or more embodiments of the present disclosure, the obtaining module (Protal) obtains a user operation, where the user operation includes: an operation of creating a configuration item; the configuration items comprise application stacks, themes, versions and groups; further, the application stack is provided with at least one; the application stack comprises at least one theme, each of said themes comprising at least one version, each of said versions comprising at least one group, i.e. each of said groups is provided with at least one group.
That is, in one or more embodiments of the present disclosure, each configuration item and corresponding configuration data can be individually changed, where a configuration item can also be newly added, and the newly added configuration item can fill in the value of the configuration data corresponding to the configuration item, so that, regardless of modifying a certain item or certain several configuration items therein, the modified configuration information obtained after modification can be stored in the storage module (Consul Server), and the modified configuration information can be acquired by the application program through interaction between the application program and the storage module (Consul Server) or the interface module (Service).
Based on the above general inventive concept, several cases in which the modified configuration information can be acquired by the application program are specifically described as follows: (the following method includes the above-mentioned modified operation to obtain the modified configuration information, and the operation of modifying the configuration item and/or configuration information is the same as the above-mentioned corresponding content, and is not described in detail below)
As an alternative embodiment, in order to implement that the configuration center actively sends the changed configuration information to the application program, referring to fig. 2, one or more embodiments of the present disclosure provide a method for synchronizing update of configuration information:
s201, an interface module (Service) acquires starting information of an application program;
s202, the configuration center acquires the operation of a user and extracts pre-stored configuration information;
s203, the configuration center changes the corresponding configuration items and/or configuration data in the configuration information according to the operation of the user to obtain changed configuration information;
s204, storing the changed configuration information to a storage module (Consul Server) through an interface module (Service); meanwhile, the changed configuration information is sent to a message queue module through an interface module (Service), and then is sent to a callback module (Call Back) through the message queue module, namely, the changed configuration information is stored in the callback module (Call Back);
s205, an api interface of an interface module (Service) is called by an application program, so that a callback module (Call Back) sends the changed configuration information to the application program; so that the changed configuration information can be acquired by the application.
Further, the configuration center comprises an acquisition module (Protal), an interface module (Service) and a storage module (Consul Server), wherein the changed configuration information is obtained by changing the corresponding configuration items and/or configuration data in the configuration information after the acquisition module (Protal) acquires the change operation; the configuration center synchronously stores the changed configuration information, and specifically includes: the acquisition module (Protal) sends the changed configuration information to the interface module (Service), the interface module (Service) sends the changed configuration information to the storage module (Consul Server), and the storage module (Consul Server) stores the changed configuration information; meanwhile, the configuration center further comprises a message queue module and a callback module (Call Back): when the interface module (Service) comprises an api callback interface, the changed configuration information reaches the message queue module through the interface module (Service), and the changed configuration information is sent to the callback module (Call Back) through the message queue module; the sending direction of the changed configuration information is not affected by whether the application program is started or not, so that the changed configuration information is stored in an intermediate storage medium, namely a callback module (Call Back). It should be noted that only the interface module (Service) preferentially obtains the start-up information of the application program, and then performs the change operation on the obtaining module (Protal), so that the callback module (Call Back) sends the changed configuration information to the application program, that is, the changed configuration information is obtained by the application program.
As an alternative embodiment, in order to realize that the application program actively acquires the changed configuration information, the following two ways are implemented:
first way, referring to fig. 3, one or more embodiments of the present disclosure provide a configuration information update synchronization method:
s301, a configuration center acquires user operation and extracts pre-stored configuration information;
s302, the configuration center changes the corresponding configuration items and/or configuration data in the configuration information according to the operation of a user to obtain changed configuration information;
s303, storing the changed configuration information into a storage module (Consul Server) through an interface module (Service);
s304, the interface module (Service) acquires the starting information of the application program;
s305, a monitoring module is arranged in the application program, an interface module (Service) acquires the authority verification information of the sdk monitoring module in the application program, after the authority verification is passed, the sdk monitoring module in the application program acquires and monitors the change of the configuration information of the storage module (Consul Server), and synchronously modifies the corresponding configuration information of the application program, so that the application program actively acquires the modified configuration information and modifies the corresponding configuration information in the application program.
Second way, referring to fig. 4, one or more embodiments of the present disclosure provide a configuration information update synchronization method:
s401, the interface module (Service) acquires starting information of an application program;
s402, the configuration center acquires the operation of the user and extracts the pre-stored configuration information;
s403, the configuration center changes the corresponding configuration items and/or configuration data in the configuration information according to the operation of the user to obtain changed configuration information;
s404, storing the changed configuration information to a storage module (Consul Server) through an interface module (Service);
s405, a monitoring module is arranged in the application program, an interface module (Service) acquires the authority verification information of the sdk monitoring module in the application program, after the authority verification is passed, the sdk monitoring module in the application program acquires and monitors the change of the configuration information of the storage module (Consul Server), and synchronously modifies the corresponding configuration information of the application program, so that the application program actively acquires the modified configuration information and modifies the corresponding configuration information in the application program.
As an optional embodiment, the present disclosure is run during the application startup process, that is, no matter the configuration information is modified after the application is started, or the application is started after the configuration information is modified, the sdk snooping module in the method performs active acquisition and snooping actions, and actively acquires the corresponding modified configuration information in the storage module (Consul Server). That is, the adk snooping module will function as long as it is in the application startup state; similarly, the configuration center in the disclosure includes an acquisition module (Protal), an interface module (Service), and a storage module (Consul Server), where the acquisition module (Protal) acquires an operation of a user, extracts pre-stored configuration information, and performs a change operation on a configuration item and/or configuration data of corresponding configuration information to obtain changed configuration information; specifically, the configuration center stores the changed configuration information synchronously, including one of the two storage modes, where the changed configuration information is stored in a storage module (Consul Server) through an interface module (Service); the second configuration center also comprises a message queue module and a storage module (Consul Server), the changed configuration information is sent to the message queue module through an interface module (Service), then sent to a Call-Back module (Call Back) by the message queue module, and the changed configuration information is stored in the Call-Back module (Call Back).
Specifically, the application program is provided with an sdk monitoring module; when the changed operation is located before the application program is started, preferentially performing the changed operation to obtain changed configuration information, storing the changed configuration information to the storage module (Consul Server) through the interface module (Service), then obtaining the application program starting information through the interface module (Service), obtaining the authority verification information of the sdk monitoring module in the application program through the storage module (Service), and after the authority verification, obtaining and monitoring the change of the configuration information of the storage module (Consul Server) through the sdk monitoring module in the application program to synchronously modify the corresponding configuration information of the application program; it should be noted that, an sdk monitoring module is provided in the application program, when the sdk monitoring module runs, it is necessary to preferentially send permission verification information, including user ID, ID key and other verification information, to the storage module (Consul Server) through the interface module (Service), after the verification information passes, under the action of the sdk monitoring module, the application program can monitor the real-time configuration information in the storage module (Consul Server), and when the modification of the real-time configuration information is monitored, the application program can modify the configuration information of itself accordingly, thereby implementing the function of acquiring the configuration information in real time by the application program.
Or the application program is provided with sdk monitoring modules; when the changed operation is located after the application is started, the application is preferentially started, in the process of starting the application, the interface module (Service) acquires application starting information, the storage module (Consul Server) acquires authority verification information of the sdk monitoring module in the application through the interface module (Service), after the authority verification, the sdk monitoring module in the application performs pulling action at intervals, including acquiring and monitoring the change of the configuration information of the storage module (Consul Server), when the application is started, the changed operation is performed to acquire the changed configuration information, the changed configuration information is stored to the storage module (Consul Server) through the interface module (Service), and the pulling action is performed at intervals due to the skid monitoring module, when the skd monitoring module monitors the change of the configuration information in the storage module (Consul Server), the corresponding configuration information of the application program can be synchronously modified; it should be noted that an sdk monitoring module is arranged in the application program, when the sdk monitoring module is applied, the application program needs to preferentially send authority verification information, including verification information such as a user ID and an ID key, to the interface module (Service), after the verification information passes, under the action of the sdk monitoring module, the application program can monitor real-time configuration information in a storage module (Consul Server), and when modification of the real-time configuration information is monitored in the monitoring process, the application program can correspondingly modify the configuration information of the application program; therefore, the function of acquiring the configuration information of the application program in real time is realized.
The above provides several ways of information storage and information synchronization for a method and device for synchronizing update of configuration information for one or more embodiments of the present disclosure.
No matter which method is adopted to synchronize the information of the application program and the configuration center, the mode of operation on the configuration items and/or the configuration data in the configuration information is the same, the operation of adding and deleting the configuration items is carried out, the corresponding configuration data is changed or added, meanwhile, the acquisition module (Protal) is provided with a sending module, the sending module is triggered after the configuration items and the configuration data are changed, the changed configuration items and the corresponding configuration data are sent to an interface module (Service), and then the flows of storage, active sending and active acquisition (monitoring) of the changed configuration information are carried out.
Based on the same inventive concept, the configuration center update synchronization apparatus corresponding to any of the above-described embodiments, with reference to fig. 5, includes: the system comprises an acquisition module (Protal), a storage module (Consul Server) and an interface module (Service); the acquisition module (Protal) is configured to extract the pre-stored configuration information, and meanwhile, the acquisition module (Protal) acquires the change operation of the pre-stored configuration information to obtain the changed configuration information, the interface module (Service) is configured to acquire the changed configuration information sent by the acquisition module (Protal) and send the changed configuration information to the storage module (Consul Server), and the storage module (Consul Server) is configured to store the changed configuration information; the interface module (Service) can also be configured to send the modified configuration information to the application program, so that the modified configuration information can be obtained by the application program (the modification operation is described in embodiment 1, and details are not described here).
As an alternative embodiment, referring to fig. 5, the configuration information update synchronization apparatus further includes a message queue module and a Callback module (Call Back) (Callback), and meanwhile, the interface module (Service) includes an api interface; the changed configuration information is sent to a message queue module through an interface module (Service), then sent to a callback module (Call Back) through the message queue module and stored to the callback module (Call Back); after the application program is started and the configuration information is changed, the application program calls an api interface of an interface module (Service) so that a callback module (Call Back) sends the changed configuration information to the application program, and the application program can acquire the changed configuration information in real time.
As an alternative embodiment, referring to fig. 5, the application is provided with sdk snooping module, and only in the state of application startup, sdk snooping module will function, that is, sdk snooping module sends right verification information to the storage module (Consul Server) through the interface module (Service), where the right verification information includes: user ID and ID key, etc.; after the verification information passes, the sdk monitoring module monitors and acquires the change of the configuration information in the storage module (Consul Server), the sdk monitoring module acquires the change of the configuration information in the storage module (Consul Server) at intervals, and when the modification of the real-time configuration information is monitored, the application program can modify the configuration information of the application program correspondingly, so that the function of acquiring the configuration information of the application program in real time is realized.
As an alternative embodiment, referring to fig. 5, the configuration information update synchronization apparatus further includes a log storage module (summary Server), i.e., an audio module, which is used for log recording and auditing functions, and stores records of operations in the configuration information update synchronization process.
As an alternative embodiment, referring to fig. 5, the configuration information update synchronization apparatus further includes a database module, which is configured to receive data of the audio module, and at the same time, data of the extraction and modification operations of the configuration information on the acquisition module (Protal), i.e., the Portal module, are stored in the database module.
As an alternative embodiment, referring to fig. 5, the configuration information update synchronization apparatus further includes a Backup module, and a user performs a timed Backup on a storage module (consistent Server), so as to ensure the security of data.
As an optional embodiment, the configuration information updating synchronization device is suitable for a production environment, a test environment and a research and development environment, wherein the configuration information of an acquisition module (Protal) in any environment, namely a Portal module, is subjected to change operation, and the change operation is synchronized to the Portal modules in other environments for synchronous change operation; therefore, the configuration information updating and synchronizing method in the scheme can save environment deployment aiming at configuration data updating and synchronizing of a research and development environment, a test environment and a production environment, and operation redundancy is saved.
One or more embodiments of the present disclosure provide a method and an apparatus for synchronizing update of configuration information, where the method and apparatus perform normalized configuration management through a uniform interface, and perform configuration differentiation through multiple dimensions, such as an application stack, a theme, a version, and a group. The application can strip the configuration from the application code or file and configure in the configuration center, so that the configuration is independent and the application release is effective, and the response speed of the change is improved when the change only needs to be modified. A plurality of sets of configuration centers are deployed in testing and production, and the configuration of the testing environment can be pushed to the configuration center of the production environment through one-key release, so that the consistency of the testing environment and the delivery of the production environment is ensured. And finally, by sharing a uniform configuration center, each system is prevented from building a respective configuration center, so that resources are reused, the cost of resources, operation and maintenance, use and learning is reduced, and meanwhile, information among users is isolated through the control of authority, and the safety of data is ensured.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the modules may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present disclosure.
The apparatus of the foregoing embodiment is used to implement the corresponding method for updating and synchronizing configuration information in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, one or more embodiments of the present disclosure further provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method for synchronizing update of configuration information according to any of the above-mentioned embodiments is implemented.
Fig. 6 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided by the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 can store an operating system and other application programs, and when the technical solution provided by the embodiments of the present disclosure is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. Moreover, those skilled in the art will appreciate that the above-described apparatus may also contain only those components necessary to implement embodiments of the present disclosure, and need not contain all of the components shown in the figures.
The electronic device of the foregoing embodiment is used to implement the corresponding method for updating and synchronizing configuration information in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above-described embodiment methods, one or more embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the configuration information update synchronization method according to any of the above-described embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the foregoing embodiment are used to enable the computer to execute the configuration information update synchronization method according to any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiment, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the present disclosure, features in the above embodiments or in different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present disclosure as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures, for simplicity of illustration and discussion, and so as not to obscure one or more embodiments of the disclosure. Furthermore, devices may be shown in block diagram form in order to avoid obscuring one or more embodiments of the present disclosure, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which one or more embodiments of the present disclosure are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that one or more embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
It is intended that the one or more embodiments of the present disclosure embrace all such alternatives, modifications and variations as fall within the broad scope of the appended claims. Accordingly, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of one or more embodiments of the disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. A method for synchronizing update of configuration information, comprising:
the configuration center acquires the operation of a user and extracts pre-stored configuration information;
the configuration center changes the corresponding configuration items and/or configuration data in the configuration information according to the change operation of the user to obtain the changed configuration information;
and the configuration center synchronously stores the changed configuration information so that the changed configuration information can be acquired by the application program.
2. The method of claim 1, the configuration center comprising an acquisition module, an interface module, and a storage module; the configuration information after being changed is obtained by changing the corresponding configuration item and/or configuration data in the configuration information after the obtaining module obtains the change operation;
the configuration center synchronously stores the changed configuration information, and specifically includes:
the acquisition module sends the changed configuration information to the interface module, the interface module sends the changed configuration information to the storage module, and the storage module stores the changed configuration information.
3. The method of claim 2, the storage module storing the changed configuration information, thereafter further comprising:
and in response to determining that the interface module acquires a calling request sent by an application program, calling the changed configuration information in the storage module, and sending the changed configuration information to the application program.
4. The method of claim 2, the configuration center further comprising a message queue module and a callback module:
the configuration center synchronously stores the changed configuration information, and the method comprises the following steps:
and in response to determining that the interface module comprises an api callback interface, the modified configuration information reaches the message queue module through the interface module, and the modified configuration information is sent to the callback module through the message queue module.
5. The method of claim 3, the storage module storing the changed configuration information, thereafter further comprising:
and after the obtaining module obtains the change operation, responding to the starting information of the application program obtained by the interface module, and obtaining the real-time configuration information in the storage module by the application program through the interface module, wherein the real-time configuration information comprises the configuration information after the change operation.
6. The method of claim 4, the configuration center synchronously storing the changed configuration information, comprising:
and the api callback interface sends the changed configuration information to the application program through the callback module according to a calling request sent by the application program.
7. The method according to any one of claims 4 to 6, after the configuration center synchronously stores the changed configuration information, further comprising:
in response to determining that the interface module acquires the application startup information, the interface module acquires sdk monitoring module authorization verification information of the application, and after authorization verification, the configuration information of the storage module can be acquired and monitored by the sdk monitoring module for synchronously modifying the corresponding configuration information of the application.
8. The method of claim 7, wherein the first and second light sources are selected from the group consisting of,
the creation of each configuration item of the change operation corresponds to the information transmission of a separate configuration item and/or corresponding configuration data, and the configuration items correspond to the configuration data one by one.
9. The method of claim 8, the obtaining module obtaining user actions, the user actions comprising: an operation of creating a configuration item;
the configuration items comprise application stacks, themes, versions and groups;
the application stack is provided with at least one;
the application stack includes at least one theme, each of the theme includes at least one version, each of the versions includes at least one group.
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 processor implements the method according to any of claims 1 to 9 when executing the program.
CN202011487968.3A 2020-12-16 2020-12-16 Configuration information updating synchronization method and equipment Pending CN112559025A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011487968.3A CN112559025A (en) 2020-12-16 2020-12-16 Configuration information updating synchronization method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011487968.3A CN112559025A (en) 2020-12-16 2020-12-16 Configuration information updating synchronization method and equipment

Publications (1)

Publication Number Publication Date
CN112559025A true CN112559025A (en) 2021-03-26

Family

ID=75064263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011487968.3A Pending CN112559025A (en) 2020-12-16 2020-12-16 Configuration information updating synchronization method and equipment

Country Status (1)

Country Link
CN (1) CN112559025A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114924806A (en) * 2022-04-07 2022-08-19 南京慧尔视软件科技有限公司 Dynamic synchronization method, device, equipment and medium for configuration information

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7139894B1 (en) * 2003-09-12 2006-11-21 Microsoft Corporation System and methods for sharing configuration information with multiple processes via shared memory
CN101079763A (en) * 2006-06-12 2007-11-28 腾讯科技(深圳)有限公司 A remote configuration and management system and method of servers
CN106980625A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of method of data synchronization, apparatus and system
CN108710496A (en) * 2018-05-17 2018-10-26 腾讯科技(深圳)有限公司 Configuration update method, device, equipment and the storage medium of application program
CN111045745A (en) * 2018-10-10 2020-04-21 北京京东金融科技控股有限公司 Method and system for managing configuration information
CN111708586A (en) * 2020-06-22 2020-09-25 平安养老保险股份有限公司 Application starting configuration item loading method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7139894B1 (en) * 2003-09-12 2006-11-21 Microsoft Corporation System and methods for sharing configuration information with multiple processes via shared memory
CN101079763A (en) * 2006-06-12 2007-11-28 腾讯科技(深圳)有限公司 A remote configuration and management system and method of servers
CN106980625A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of method of data synchronization, apparatus and system
CN108710496A (en) * 2018-05-17 2018-10-26 腾讯科技(深圳)有限公司 Configuration update method, device, equipment and the storage medium of application program
CN111045745A (en) * 2018-10-10 2020-04-21 北京京东金融科技控股有限公司 Method and system for managing configuration information
CN111708586A (en) * 2020-06-22 2020-09-25 平安养老保险股份有限公司 Application starting configuration item loading method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114924806A (en) * 2022-04-07 2022-08-19 南京慧尔视软件科技有限公司 Dynamic synchronization method, device, equipment and medium for configuration information
CN114924806B (en) * 2022-04-07 2024-03-26 南京慧尔视软件科技有限公司 Dynamic synchronization method, device, equipment and medium for configuration information

Similar Documents

Publication Publication Date Title
CN109542865B (en) Method, device, system and medium for synchronizing configuration files of distributed cluster system
WO2018103521A1 (en) Monitoring method for server, device, and storage medium
CN111614490B (en) Management system and method for managed container cluster based on top-level container cluster
CN110752947A (en) K8s cluster deployment method and device, and deployment platform
CN110908658A (en) Micro-service and micro-application system, data processing method and device
CN107741852B (en) Service deployment method based on cluster software
CN109032796B (en) Data processing method and device
CN111722885B (en) Program running method and device and electronic equipment
US20170033980A1 (en) Agent manager for distributed transaction monitoring system
CN105786539B (en) File downloading method and device
CN111064626A (en) Configuration updating method, device, server and readable storage medium
CN113553178A (en) Task processing method and device and electronic equipment
CN115357662A (en) Data synchronization method, device and medium
CN112559025A (en) Configuration information updating synchronization method and equipment
CN110069406B (en) Automatic triggering TPC-DS test method and system
US10795747B2 (en) File synchronizing service status monitoring and error handling
CN110753121A (en) Mirror image warehouse deployment method, device, equipment and medium
CN115996179A (en) Service node testing method and device, readable medium and electronic equipment
CN116301951B (en) Micro-service application installation upgrading method and device based on kubernetes
CN111767176B (en) Method and device for remotely controlling terminal equipment
CN107566519B (en) Code operation method and device, server and server cluster
CN115617420A (en) Application program generation method, device, equipment and storage medium
CN107301089B (en) APP deployment and calling method and terminal
CN113230661A (en) Data synchronization method and device, computer readable medium and electronic equipment
CN110221854B (en) Multi-process data updating method, device, medium and electronic equipment

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