CN109586948A - Update method, apparatus, computer equipment and the storage medium of system configuration data - Google Patents

Update method, apparatus, computer equipment and the storage medium of system configuration data Download PDF

Info

Publication number
CN109586948A
CN109586948A CN201811204622.0A CN201811204622A CN109586948A CN 109586948 A CN109586948 A CN 109586948A CN 201811204622 A CN201811204622 A CN 201811204622A CN 109586948 A CN109586948 A CN 109586948A
Authority
CN
China
Prior art keywords
configuration parameter
update
data
memory
system configuration
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
CN201811204622.0A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811204622.0A priority Critical patent/CN109586948A/en
Publication of CN109586948A publication Critical patent/CN109586948A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0859Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions
    • H04L41/0863Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions by rolling back to previous configuration versions

Abstract

This application involves data synchronization processing technology, in particular to a kind of method, apparatus, computer equipment and storage medium for updating system configuration data.The described method includes: receiving the update request of system configuration data to be updated;When carrying the first configuration parameter for updating system configuration data in update request, the system configuration data of caching in memory is updated according to first configuration parameter;And first configuration parameter is updated in the database of setting;Other servers into distributed system send update notification, so that the server for receiving the update notification obtains first configuration parameter from the database, with the system configuration data of synchronized update caching in memory.It can be improved the update efficiency of system configuration data using this method.

Description

Update method, apparatus, computer equipment and the storage medium of system configuration data
Technical field
This application involves field of computer technology, more particularly to a kind of method, apparatus for updating system configuration data, meter Calculate machine equipment and storage medium.
Background technique
The operating of many business platforms all relies on the normal operation of server, and server needs to use phase in the process of running The system configuration data answered configures system accordingly, the system configuration data of server can by text-only file into Row configuration;There are also being configured based on database, configuration item is present in tables of data.Meeting loading system is matched after starting server Data are set into caching, are configured so that business platform obtains system configuration data from caching.
In the scheme of traditional update system configuration data, server needs to update certain configuration parameters in the process of running When, then system configuration data can be updated accordingly.So that the configuration parameter updated in system configuration data is come into force, needs Restart server new system configuration data is loaded into caching.
Then, restarting server not only reduces the update efficiency of system configuration data, but also will affect business The normal operation of platform.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of update efficiency that can be improved system configuration data Update system configuration data method, apparatus, computer equipment and storage medium.
A method of updating system configuration data, which comprises
Receive the update request of system configuration data to be updated;
When carrying the first configuration parameter for updating system configuration data in update request, according to described first Configuration parameter is updated the system configuration data of caching in memory;And
First configuration parameter is updated in the database of setting;
Other servers into distributed system send update notification, so as to receive the server of the update notification First configuration parameter is obtained, from the database with the system configuration data of synchronized update caching in memory.
In one of the embodiments, the method also includes:
When carrying the Data Identification for updating system configuration data in update request, obtain from the database It takes and matched second configuration parameter of the Data Identification;
The system configuration data of caching in memory is updated according to the second configuration parameter of acquisition;
Other servers into distributed system send update notification, so as to receive the server of the update notification Utilize the system configuration data of the second configuration parameter synchronized update caching in memory.
System configuration of second configuration parameter according to acquisition to caching in memory in one of the embodiments, Data, which are updated, includes:
Compare the second configuration parameter obtained configuration parameter corresponding with system configuration data in memory is cached;
When determining that second configuration parameter is different from the caching configuration parameter in memory and described second configures The modification time of parameter is when after the modification time of the configuration parameter, then
The system configuration data of caching in memory is updated according to the second configuration parameter of acquisition.
System configuration of second configuration parameter according to acquisition to caching in memory in one of the embodiments, Data, which are updated, includes:
By the version number of second configuration parameter configuration parameter corresponding with system configuration data in memory is cached Version number compares;
When the version number of second configuration parameter is higher than the caching corresponding configuration parameter of system configuration data in memory Version number when, then
The system configuration data of caching in memory is updated according to the second configuration parameter of acquisition.
It is described in one of the embodiments, to include: in the database of setting by first configuration parameter update
The keyword for characterizing first configuration parameter is obtained from first configuration parameter;
From the database lookup of setting and the target component of acquired keyword match;
The target component found is replaced with into first configuration parameter.
In one of the embodiments, the method also includes:
When receiving update request, record receives the receiving time for updating request;
It obtains and initiates the corresponding user identifier of the update request;
The update received request, the receiving time and the user identifier are stored in trace list, so as to Check the root of problem according to the data of preservation when something goes wrong in system configuration file.
A kind of device updating system configuration data, described device include:
Request receiving module is updated, the update for receiving system configuration data to be updated is requested;
Data update module, for updating the first configuration ginseng carried in request for updating system configuration data when described When number, the system configuration data of caching in memory is updated according to first configuration parameter;And described first is matched Parameter is set to update in the database of setting;
It notifies sending module, update notification is sent for other servers into distributed system, so as to receive institute The server for stating update notification obtains first configuration parameter from the database, in memory with synchronized update caching System configuration data.
Described device in one of the embodiments, further include:
Configuration parameter obtains module, for updating the data mark carried in request for updating system configuration data when described When knowledge, obtain and matched second configuration parameter of the Data Identification from the database;
The data update module is also used to the system configuration according to the second configuration parameter of acquisition to caching in memory Data are updated;
The notice sending module is also used to other servers into distributed system and sends update notification, so as to receive The system configuration data of the caching of second configuration parameter synchronized update described in server by utilizing to the update notification in memory.
The data update module is also used to compare the second configuration parameter and caching of acquisition in one of the embodiments, The corresponding configuration parameter of system configuration data in memory;Described in determining second configuration parameter and caching in memory Configuration parameter is different and the modification time of second configuration parameter is when after the modification time of the configuration parameter, then root The system configuration data of caching in memory is updated according to the second configuration parameter of acquisition.
In one of the embodiments, the data update module be also used to by the version number of second configuration parameter with The version number for caching the corresponding configuration parameter of system configuration data in memory compares;When the version of second configuration parameter This number be higher than caching in memory the version number of the corresponding configuration parameter of system configuration data when, then according to the second of acquisition configuration Parameter is updated the system configuration data of caching in memory.
The data update module is also used to obtain from first configuration parameter and be used in one of the embodiments, Characterize the keyword of first configuration parameter;The target of database lookup and acquired keyword match from setting is joined Number;The target component found is replaced with into first configuration parameter.
Described device in one of the embodiments, further include:
Logging modle, for when receiving update request, record to receive the receiving time for updating request;
User identifier obtains module, initiates the corresponding user identifier of the update request for obtaining;
Preserving module, for the update received request, the receiving time and the user identifier to be stored in Trace list, to check the root of problem according to the data of preservation when something goes wrong in system configuration file.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device performs the steps of when executing the computer program
Receive the update request of system configuration data to be updated;
When carrying the first configuration parameter for updating system configuration data in update request, according to described first Configuration parameter is updated the system configuration data of caching in memory;And
First configuration parameter is updated in the database of setting;
Other servers into distributed system send update notification, so as to receive the server of the update notification First configuration parameter is obtained, from the database with the system configuration data of synchronized update caching in memory.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
Receive the update request of system configuration data to be updated;
When carrying the first configuration parameter for updating system configuration data in update request, according to described first Configuration parameter is updated the system configuration data of caching in memory;And
First configuration parameter is updated in the database of setting;
Other servers into distributed system send update notification, so as to receive the server of the update notification First configuration parameter is obtained, from the database with the system configuration data of synchronized update caching in memory.
Method, apparatus, computer equipment and the storage medium of above-mentioned update system configuration data receive and update request, root The system configuration data of caching in memory is updated according to the first configuration parameter updated in request, due to need to update Configuration parameter is loaded directly into memory and is updated to system configuration data, and not needing restarting server just can make to update Configuration take-effective, improve the update efficiency of system configuration data.In addition, can also into distributed system other servers hair Send update notification, instruction receive server by utilizing the first configuration parameter synchronized update caching of update notification in memory be System configuration data, solves the problems, such as distributed system synchronized update, ensure that business platform in server update system configuration It can be operated normally during data.
Detailed description of the invention
Fig. 1 is the application scenario diagram that the method for system configuration data is updated in one embodiment;
Fig. 2 is the flow diagram that the method for system configuration data is updated in one embodiment;
Fig. 3 is process the step of updating the system configuration data of other servers in distributed system in one embodiment Schematic diagram;
Fig. 4 is the structural block diagram that the device of system configuration data is updated in one embodiment;
Fig. 5 is the structural block diagram that the device of system configuration data is updated in another embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
The method provided by the present application for updating system configuration data, can be applied in application environment as shown in Figure 1.Clothes Be engaged in device 1 receive terminal send system configuration data to be updated update request, when update request in carry be used for more new system When the first configuration parameter of configuration data, the system configuration data of caching in memory is carried out more according to the first configuration parameter Newly;And the first configuration parameter is updated in the database of setting;Other servers into distributed system send update notification, So that the server for receiving update notification obtains the first configuration parameter from database, in memory with synchronized update caching System configuration data.
Wherein, updating request can be initiated by terminal, which can be, but not limited to be various personal computers, notebook Computer, smart phone, tablet computer and portable wearable device.In addition, distributed system can be made of multiple servers Server cluster realize.
In one embodiment, it as shown in Fig. 2, providing a kind of method for updating system configuration data, answers in this way For being illustrated for the server in Fig. 1, comprising the following steps:
S202 receives the update request of system configuration data to be updated.
Wherein, system configuration data refers to configuration data required for runtime server.
In one embodiment, the operation interface that update request can be that user passes through in terminal triggers;It can also be because being System service provider has updated a certain configuration parameter in system configuration data, then by the service equipment of System Service Provider Triggering.Specifically, server is received is requested by the update of terminal triggering or service equipment triggering.
In one embodiment, when receiving update request, server record receives the receiving time for updating request; It obtains and initiates to update the corresponding user identifier of request;The update request, receiving time and the user identifier that receive are stored in Trace list, to check the root of problem according to the data of preservation when something goes wrong in system configuration file.Wherein, Yong Hubiao Knowledge can be user account or physical address or IP address.
For example, server record receives the time that configuration data updates request, so that when determination is during tracing Carry out the update of system configuration data.
S204 matches when carrying the first configuration parameter for updating system configuration data in update request according to first Parameter is set to be updated the system configuration data of caching in memory.
Wherein, the first configuration parameter can be single configuration parameter, be also possible to a plurality of configuration parameter, be also possible to simple Object or JSON (JavaScript Object Notation, JavaScript object numbered musical notation) format or XML The configuration file of (Extensible Markup Language, extensible markup language) format.Delay in server local memory System configuration data has been deposited, has provided high-performance, quick configuration access for system.
In one embodiment, when updating carrying single configuration parameter in request, server is then asked from configuration data update It solves and single configuration parameter is precipitated, the configuration data of caching in memory is updated using the single configuration parameter.Alternatively, When updating the configuration file for carrying JSON format in request, server then goes out the configuration text of JSON format from update request analysis Part is updated the system configuration data of caching in memory using the configuration file of the JSON format.
S206 updates the first configuration parameter in the database of setting.
Wherein, database can be any one of Mysql, SQL Server, Oracle and SQLite.
In one embodiment, S206 can specifically include: be obtained from the first configuration parameter for characterizing the first configuration The keyword of parameter;From the database lookup of setting and the target component of acquired keyword match;The target that will be found Parameter replaces with the first configuration parameter.It may be implemented to be updated configuration parameter in database by the above method, it is ensured that number According to the configuration parameter in library be newest parameter, in order to it is subsequent restart server when newest match can be obtained from database Set parameter starting.
S208, other servers into distributed system send update notification, so as to receive the service of update notification Device obtains the first configuration parameter from database, with the system configuration data of synchronized update caching in memory.
In one embodiment, it in the server update notification that other servers are sent into compartment system, can carry The label of first configuration parameter.Other servers in compartment system after receiving update notification, from database obtain with The target component of the tag match updates the configuration data of caching in memory using matched target component.
In one embodiment, when receiving update request, server record receives the receiving time for updating request; It obtains and initiates to update the corresponding user identifier of request;The update request, receiving time and the user identifier that receive are stored in Trace list, to check the root of problem according to the data of preservation when something goes wrong in system configuration file.
In one embodiment, server can phase to store in other servers in active detecting distributed system Answer the more new state of configuration parameter;When determining that the configuration parameter stored in other servers updates, from other servers It is middle to read updated configuration parameter;The configuration data of caching in memory is updated using updated configuration parameter.
Wherein, the update of the corresponding configuration parameter stored in other servers in server active detecting distributed system The mode of state includes: that other servers of the server into distributed system are sent for indicating whether to have updated configuration parameter Status request determined whether to have updated configuration according to the feedback information when receiving the feedback information for status request Parameter.For example, receiving the server of status request, more new record is searched whether in trace list, if so, then feedback form Show the feedback information for having updated configuration parameter;If nothing, feedback representation does not update the feedback information of configuration parameter.
In above-described embodiment, receive update request, according to update request in the first configuration parameter to caching in memory System configuration data be updated, due to need the configuration parameter that updates be loaded directly into memory and to system configuration data into Row updates, and not needing restarting server just can make the configuration take-effective updated, improves the update efficiency of system configuration data. In addition, can also other servers into distributed system send update notification, instruction receives the server benefit of update notification With the system configuration data of the first configuration parameter synchronized update caching in memory, solve asking for distributed system synchronized update Topic, ensure that business platform can operate normally during server update system configuration data.
In one embodiment, as shown in figure 3, this method can also include:
S302 is obtained from database when carrying the Data Identification for updating system configuration data in update request With matched second configuration parameter of Data Identification.
Wherein, Data Identification can be the keyword of configuration parameter, can be found from database by the keyword Matched configuration parameter.
In one embodiment, the parameter when having updated the configuration parameter of new version in database or in database It changes, or when user generates trigger action by terminal, server generates the update request for carrying Data Identification. Server searches matched second configuration parameter according to Data Identification from database.
S304 is updated the system configuration data of caching in memory according to the second configuration parameter of acquisition.
In one embodiment, S304 can specifically include: the second configuration parameter and caching for comparing acquisition are in memory The corresponding configuration parameter of system configuration data;When determine the second configuration parameter it is different from caching configuration parameter in memory and The modification time of second configuration parameter is when after the modification time of configuration parameter, then according to the second configuration parameter of acquisition to slow The system configuration data deposited in memory is updated.
Specifically, when determine obtain the second configuration parameter it is different from configuration parameter corresponding in system configuration data and After the former modification time when the modification time of the latter, indicate that the second configuration parameter obtained is in database by updating institute The most recent parameters obtained, server is using the second configuration parameter obtained to the caching corresponding configuration of system configuration data in memory Parameter is updated.If configuration parameter is identical or modification time is identical, the second configuration parameter obtained is indicated in the database Without update, then do not need to caching in memory the corresponding configuration parameter of system configuration data be updated.Due to data Configuration parameter in library can be automatically updated into caching after being modified, and the configuration updated can be made by not needing to restart server It comes into force, the operation of platform will not be influenced by not only increasing update efficiency.
For example, it is assumed that the configuration parameter A in database updates, it is configuration parameter A' after update, server is got After configuration parameter A', its configuration parameter A corresponding with system configuration data in memory is cached is compared, since configuration is joined A' are different from configuration parameter A and the modification time of configuration parameter A' is after the modification time of configuration parameter A for number, and expression configures Parameter A' is the new version of configuration parameter A, and server is using the configuration parameter A' obtained to caching system configuration number in memory It is updated according to corresponding configuration parameter A.
In one embodiment, S304 can specifically include: in memory by the version number of the second configuration parameter and caching The version number of the corresponding configuration parameter of system configuration data compares;Within the version number of the second configuration parameter is higher than and is buffered in When depositing the version number of the corresponding configuration parameter of middle system configuration data, then according to the second configuration parameter of acquisition to being buffered in memory In system configuration data be updated.When the version number of the second configuration parameter is less than or equal to caching system configuration in memory When the version number of the corresponding configuration parameter of data, then do not update.
S306, other servers into distributed system send update notification, so as to receive the service of update notification Device caches system configuration data in memory using the second configuration parameter synchronized update.
In one embodiment, it in the server update notification that other servers are sent into compartment system, can carry The label of second configuration parameter.Other servers in compartment system after receiving update notification, from database obtain with The target component of the tag match updates the configuration data of caching in memory using matched target component.
In above-described embodiment, reception updates request, is used to update system configuration data according to what is carried in update request Data Identification obtains matched second configuration parameter from database, according to the second configuration parameter to caching in memory be System configuration data is updated, due to needing the configuration parameter updated to be loaded directly into memory and carrying out more to system configuration data Newly, not needing restarting server just can make the configuration take-effective updated, improve the update efficiency of system configuration data.This Outside, can also other servers into distributed system send update notification, instruction receives the server by utilizing of update notification The system configuration data of second configuration parameter synchronized update caching in memory, solves asking for distributed system synchronized update Topic, ensure that business platform can operate normally during server update system configuration data.
As an example, as shown in Figure 1, when server 1 receive terminal transmission about update system configuration data Update request when, first detect in update request whether carry the first configuration parameter for updating system configuration data, if It is then to be updated according to the first configuration parameter to the system configuration data of caching in memory, and more by the first configuration parameter Newly in database, then the server 2 into distributed system to server n sends update notification, so as to receive update The server 2 of notice obtains the first configuration parameter to server n from database, caches system in memory with synchronized update Configuration data.In addition, when detect update request in carry the Data Identification for updating system configuration data when, from database Middle acquisition and matched second configuration parameter of Data Identification, the system according to the second configuration parameter of acquisition to caching in memory Configuration data is updated, and then the server 2 into distributed system to server n sends update notification, so as to receive The server 2 of update notification searches the second configuration parameter according to Data Identification from database to server n, utilizes the second configuration Parameter synchronization updates the system configuration data of caching in memory.It should be noted that send update notification in carry with The matched Data Identification of second configuration parameter.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 4, providing a kind of device for updating system configuration data, comprising: update is asked Ask receiving module 402, data update module 404 and notice sending module 406, in which:
Request receiving module 402 is updated, the update for receiving system configuration data to be updated is requested;
Data update module 404 is joined for working as the first configuration for updating and being carried in request for updating system configuration data When number, the system configuration data of caching in memory is updated according to the first configuration parameter;And more by the first configuration parameter Newly in the database of setting;
It notifies sending module 406, update notification is sent for other servers into distributed system, so as to receive The server of update notification obtains the first configuration parameter from database, with the system configuration number of synchronized update caching in memory According to.
In one of the embodiments, as shown in figure 5, device further include: configuration parameter obtains module 408;Wherein:
Configuration parameter obtains module 408, for working as the data mark for updating and being carried in request for updating system configuration data When knowledge, obtained and matched second configuration parameter of Data Identification from database;
Data update module 404 is also used to the system configuration number according to the second configuration parameter of acquisition to caching in memory According to being updated;
Notice sending module 406 is also used to other servers into distributed system and sends update notification, so as to receive Server by utilizing the second configuration parameter synchronized update to update notification caches system configuration data in memory.
In above-described embodiment, receive update request, according to update request in the first configuration parameter to caching in memory System configuration data be updated, due to need the configuration parameter that updates be loaded directly into memory and to system configuration data into Row updates, and not needing restarting server just can make the configuration take-effective updated, improves the update efficiency of system configuration data. In addition, can also other servers into distributed system send update notification, instruction receives the server benefit of update notification With the system configuration data of the first configuration parameter synchronized update caching in memory, solve asking for distributed system synchronized update Topic, ensure that business platform can operate normally during server update system configuration data.
Data update module 404 is also used to compare the second configuration parameter and caching of acquisition in one of the embodiments, The corresponding configuration parameter of system configuration data in memory;When determining the second configuration parameter and caching configuration parameter in memory Different and the second configuration parameter modification time is when after the modification time of configuration parameter, then according to the second of acquisition the configuration Parameter is updated the system configuration data of caching in memory.
Data update module 404 is also used to the version number of the second configuration parameter and caching in one of the embodiments, The version number of the corresponding configuration parameter of system configuration data compares in memory;When the version number of the second configuration parameter is higher than When caching the version number of the corresponding configuration parameter of system configuration data in memory, then according to the second configuration parameter of acquisition to slow The system configuration data deposited in memory is updated.
Data update module 404 is also used to obtain from the first configuration parameter for characterizing in one of the embodiments, The keyword of first configuration parameter;From the database lookup of setting and the target component of acquired keyword match;It will search To target component replace with the first configuration parameter.
In above-described embodiment, reception updates request, is used to update system configuration data according to what is carried in update request Data Identification obtains matched second configuration parameter from database, according to the second configuration parameter to caching in memory be System configuration data is updated, due to needing the configuration parameter updated to be loaded directly into memory and carrying out more to system configuration data Newly, not needing restarting server just can make the configuration take-effective updated, improve the update efficiency of system configuration data.This Outside, can also other servers into distributed system send update notification, instruction receives the server by utilizing of update notification The system configuration data of second configuration parameter synchronized update caching in memory, solves asking for distributed system synchronized update Topic, ensure that business platform can operate normally during server update system configuration data.
In one of the embodiments, as shown in figure 5, device further include: logging modle 410, user identifier obtain module 412 and preserving module 414;Wherein:
Logging modle 410, for when receiving update request, record to receive the receiving time for updating request;
User identifier obtains module 412, initiates to update the corresponding user identifier of request for obtaining;
Preserving module 414, update request, receiving time and user identifier for will receive are stored in trace list, To check the root of problem according to the data of preservation when something goes wrong in system configuration file.
About the specific restriction for the device for updating system configuration data, may refer to above for update system configuration number According to method restriction, details are not described herein.Modules in the device of above-mentioned update system configuration data can whole or portion Divide and is realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of computer equipment In processor in, can also be stored in a software form in the memory in computer equipment, in order to processor calling hold The corresponding operation of the above modules of row.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 6.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is for data such as storage system configuration data.The network interface of the computer equipment is used for and external end End passes through network connection communication.To realize a kind of side for updating system configuration data when the computer program is executed by processor Method.
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with Computer program, the processor perform the steps of the update for receiving system configuration data to be updated when executing computer program Request;When carrying the first configuration parameter for updating system configuration data in update request, according to the first configuration parameter pair The system configuration data of caching in memory is updated;And the first configuration parameter is updated in the database of setting;To distribution Other servers in formula system send update notification, so that the server for receiving update notification obtains first from database Configuration parameter, with the system configuration data of synchronized update caching in memory.
In one embodiment, it also performs the steps of when processor executes computer program and is carried when in update request When for updating the Data Identification of system configuration data, obtained and matched second configuration parameter of Data Identification from database; The system configuration data of caching in memory is updated according to the second configuration parameter of acquisition;Its into distributed system Its server sends update notification, so that server by utilizing the second configuration parameter synchronized update for receiving update notification is buffered in System configuration data in memory.
In one embodiment, comparison obtains second is also performed the steps of when processor executes computer program to match Set parameter configuration parameter corresponding with system configuration data in memory is cached;The second configuration parameter and memory is buffered in when determining In configuration parameter is different and the modification time of the second configuration parameter is when after the modification time of configuration parameter, then according to obtaining The second configuration parameter taken is updated the system configuration data of caching in memory.
In one embodiment, it also performs the steps of when processor executes computer program by the second configuration parameter The version number of version number's configuration parameter corresponding with system configuration data in memory is cached compares;When the second configuration parameter Version number be higher than caching in memory the version number of the corresponding configuration parameter of system configuration data when, then according to the second of acquisition Configuration parameter is updated the system configuration data of caching in memory.
In one embodiment, it is also performed the steps of from the first configuration parameter when processor executes computer program Obtain the keyword for characterizing the first configuration parameter;From the database lookup of setting and the target of acquired keyword match Parameter;The target component found is replaced with into the first configuration parameter.
In one embodiment, it is also performed the steps of when processor executes computer program and is receiving update request When, record receives the receiving time for updating request;It obtains and initiates to update the corresponding user identifier of request;It will receive more New request, receiving time and user identifier are stored in trace list, so as in system configuration file when something goes wrong according to preservation Data investigation problem root.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of the update request for receiving system configuration data to be updated when being executed by processor;It is requested when updating When middle the first configuration parameter carried for updating system configuration data, according to the first configuration parameter to caching in memory be System configuration data is updated;And the first configuration parameter is updated in the database of setting;Other clothes into distributed system Business device sends update notification, so that the server for receiving update notification obtains the first configuration parameter from database, with synchronization Update the system configuration data of caching in memory.
In one embodiment, it also performs the steps of when computer program is executed by processor and is taken when in update request When band is for updating the Data Identification of system configuration data, obtains from database and join with matched second configuration of Data Identification Number;The system configuration data of caching in memory is updated according to the second configuration parameter of acquisition;Into distributed system Other servers send update notification so that server by utilizing the second configuration parameter synchronized update for receiving update notification is slow Deposit system configuration data in memory.
In one embodiment, comparison obtains second is also performed the steps of when computer program is executed by processor Configuration parameter configuration parameter corresponding with system configuration data in memory is cached;In determining the second configuration parameter and being buffered in The configuration parameter deposited is different and the modification time of the second configuration parameter is when after the modification time of configuration parameter, then basis The second configuration parameter obtained is updated the system configuration data of caching in memory.
In one embodiment, it is also performed the steps of when computer program is executed by processor by the second configuration parameter The version number of version number and the caching corresponding configuration parameter of system configuration data in memory compare;When the second configuration ginseng Several version numbers be higher than caching in memory the version number of the corresponding configuration parameter of system configuration data when, then according to the of acquisition Two configuration parameters are updated the system configuration data of caching in memory.
In one embodiment, it is also performed the steps of when computer program is executed by processor from the first configuration parameter The middle keyword obtained for characterizing the first configuration parameter;From the database lookup of setting and the mesh of acquired keyword match Mark parameter;The target component found is replaced with into the first configuration parameter.
In one embodiment, it also performs the steps of when computer program is executed by processor and asks receiving update When asking, record receives the receiving time for updating request;It obtains and initiates to update the corresponding user identifier of request;By what is received Update request, receiving time and user identifier are stored in trace list, so as in system configuration file when something goes wrong according to guarantor The root for the data investigation problem deposited.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of method for updating system configuration data, which comprises
Receive the update request of system configuration data to be updated;
When carrying the first configuration parameter for updating system configuration data in update request, according to first configuration Parameter is updated the system configuration data of caching in memory;And
First configuration parameter is updated in the database of setting;
Other servers into distributed system send update notification, so as to receive the server of the update notification from institute It states and obtains first configuration parameter in database, with the system configuration data of synchronized update caching in memory.
2. the method according to claim 1, wherein the method also includes:
When the update request in carries the Data Identification for updating system configuration data when, from the database obtain and Matched second configuration parameter of Data Identification;
The system configuration data of caching in memory is updated according to the second configuration parameter of acquisition;
Other servers into distributed system send update notification, so as to receive the server by utilizing of the update notification The system configuration data of the second configuration parameter synchronized update caching in memory.
3. according to the method described in claim 2, it is characterized in that, second configuration parameter according to acquisition is in being buffered in System configuration data in depositing, which is updated, includes:
Compare the second configuration parameter obtained configuration parameter corresponding with system configuration data in memory is cached;
When determining second configuration parameter the second configuration parameter different and described from the caching configuration parameter in memory Modification time when after the modification time of the configuration parameter, then
The system configuration data of caching in memory is updated according to the second configuration parameter of acquisition.
4. according to the method described in claim 2, it is characterized in that, second configuration parameter according to acquisition is in being buffered in System configuration data in depositing, which is updated, includes:
By the version of the version number of second configuration parameter configuration parameter corresponding with system configuration data in memory is cached It number compares;
When the version number of second configuration parameter is higher than the version for caching the corresponding configuration parameter of system configuration data in memory At this number, then
The system configuration data of caching in memory is updated according to the second configuration parameter of acquisition.
5. the method according to claim 1, wherein described update first configuration parameter in the number of setting Include: according to library
The keyword for characterizing first configuration parameter is obtained from first configuration parameter;
From the database lookup of setting and the target component of acquired keyword match;
The target component found is replaced with into first configuration parameter.
6. method according to any one of claims 1 to 5, which is characterized in that the method also includes:
When receiving update request, record receives the receiving time for updating request;
It obtains and initiates the corresponding user identifier of the update request;
The update received request, the receiving time and the user identifier are stored in trace list, to be Configuration file of uniting checks the root of problem according to the data of preservation when something goes wrong.
7. a kind of device for updating system configuration data, described device include:
Request receiving module is updated, the update for receiving system configuration data to be updated is requested;
Data update module, for updating the first configuration parameter carried in request for updating system configuration data when described When, the system configuration data of caching in memory is updated according to first configuration parameter;And described first is configured Parameter is updated in the database of setting;
It notifies sending module, sends update notification for other servers into distributed system, so that described in receiving more The server newly notified obtains first configuration parameter from the database, with the system of synchronized update caching in memory Configuration data.
8. device according to claim 7, which is characterized in that described device further include:
Configuration parameter obtains module, for updating the Data Identification carried in request for updating system configuration data when described When, it obtains and matched second configuration parameter of the Data Identification from the database;
The data update module is also used to the system configuration data according to the second configuration parameter of acquisition to caching in memory It is updated;
The notice sending module is also used to other servers into distributed system and sends update notification, so as to receive institute State the system configuration data of the caching of the second configuration parameter synchronized update described in the server by utilizing of update notification in memory.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
CN201811204622.0A 2018-10-16 2018-10-16 Update method, apparatus, computer equipment and the storage medium of system configuration data Pending CN109586948A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811204622.0A CN109586948A (en) 2018-10-16 2018-10-16 Update method, apparatus, computer equipment and the storage medium of system configuration data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811204622.0A CN109586948A (en) 2018-10-16 2018-10-16 Update method, apparatus, computer equipment and the storage medium of system configuration data

Publications (1)

Publication Number Publication Date
CN109586948A true CN109586948A (en) 2019-04-05

Family

ID=65920151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811204622.0A Pending CN109586948A (en) 2018-10-16 2018-10-16 Update method, apparatus, computer equipment and the storage medium of system configuration data

Country Status (1)

Country Link
CN (1) CN109586948A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110263018A (en) * 2019-06-17 2019-09-20 北京金山安全软件有限公司 Configuration data processing method and device and server
CN110659299A (en) * 2019-08-30 2020-01-07 珠海格力电器股份有限公司 Data updating method and device and front-end development client
CN110995462A (en) * 2019-10-31 2020-04-10 北京浪潮数据技术有限公司 Cloud host function expansion method, system, equipment and computer storage medium
CN111124718A (en) * 2019-12-31 2020-05-08 中国银行股份有限公司 Parameter data acquisition method, parameter data processing method and device and electronic equipment
CN111585802A (en) * 2020-04-29 2020-08-25 广州技象科技有限公司 OAM (operation administration and maintenance) management method, device, equipment and storage medium of narrowband Internet of things
CN111628895A (en) * 2020-05-28 2020-09-04 苏州浪潮智能科技有限公司 Configuration data synchronization method, device, equipment and readable storage medium
CN111651181A (en) * 2020-06-17 2020-09-11 深圳市钱海网络技术有限公司 Automatic refreshing method and device for system configuration parameters
CN112035164A (en) * 2020-09-03 2020-12-04 中国银行股份有限公司 Method for updating node configuration of distributed system, application node and control node
CN112182590A (en) * 2020-11-16 2021-01-05 中国银联股份有限公司 Vulnerability updating method and device for Web application
CN113438095A (en) * 2020-03-23 2021-09-24 华为技术有限公司 Method, device and equipment for managing configuration data and storage medium
CN113448971A (en) * 2020-03-24 2021-09-28 北京字节跳动网络技术有限公司 Data updating method based on distributed system, computing node and storage medium
CN113641385A (en) * 2021-08-13 2021-11-12 上海浦东发展银行股份有限公司 Distributed application parameter distribution system
CN114579667A (en) * 2022-04-28 2022-06-03 深圳市华曦达科技股份有限公司 Method, device and system for incremental synchronization of HBase data
CN115118590A (en) * 2022-06-22 2022-09-27 平安科技(深圳)有限公司 Method, device, system, equipment and storage medium for managing configuration data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464895A (en) * 2009-01-21 2009-06-24 阿里巴巴集团控股有限公司 Method, system and apparatus for updating internal memory data
CN102314368A (en) * 2011-09-26 2012-01-11 贵阳朗玛信息技术股份有限公司 Method and equipment for updating configuration data of server program
CN104092591A (en) * 2014-08-04 2014-10-08 飞狐信息技术(天津)有限公司 Task monitoring method and system
CN105553738A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Heat loading method and device of configuration information and distributed cluster system
CN105677404A (en) * 2015-12-31 2016-06-15 拉扎斯网络科技(上海)有限公司 Zookeeper based configuration updating method and device
CN107426265A (en) * 2016-03-11 2017-12-01 阿里巴巴集团控股有限公司 The synchronous method and apparatus of data consistency

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464895A (en) * 2009-01-21 2009-06-24 阿里巴巴集团控股有限公司 Method, system and apparatus for updating internal memory data
CN102314368A (en) * 2011-09-26 2012-01-11 贵阳朗玛信息技术股份有限公司 Method and equipment for updating configuration data of server program
CN104092591A (en) * 2014-08-04 2014-10-08 飞狐信息技术(天津)有限公司 Task monitoring method and system
CN105553738A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Heat loading method and device of configuration information and distributed cluster system
CN105677404A (en) * 2015-12-31 2016-06-15 拉扎斯网络科技(上海)有限公司 Zookeeper based configuration updating method and device
CN107426265A (en) * 2016-03-11 2017-12-01 阿里巴巴集团控股有限公司 The synchronous method and apparatus of data consistency

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110263018A (en) * 2019-06-17 2019-09-20 北京金山安全软件有限公司 Configuration data processing method and device and server
CN110659299A (en) * 2019-08-30 2020-01-07 珠海格力电器股份有限公司 Data updating method and device and front-end development client
CN110995462A (en) * 2019-10-31 2020-04-10 北京浪潮数据技术有限公司 Cloud host function expansion method, system, equipment and computer storage medium
CN111124718A (en) * 2019-12-31 2020-05-08 中国银行股份有限公司 Parameter data acquisition method, parameter data processing method and device and electronic equipment
CN113438095A (en) * 2020-03-23 2021-09-24 华为技术有限公司 Method, device and equipment for managing configuration data and storage medium
CN113448971A (en) * 2020-03-24 2021-09-28 北京字节跳动网络技术有限公司 Data updating method based on distributed system, computing node and storage medium
CN111585802B (en) * 2020-04-29 2021-03-16 广州技象科技有限公司 OAM (operation administration and maintenance) management method, device, equipment and storage medium of narrowband Internet of things
CN111585802A (en) * 2020-04-29 2020-08-25 广州技象科技有限公司 OAM (operation administration and maintenance) management method, device, equipment and storage medium of narrowband Internet of things
CN111628895B (en) * 2020-05-28 2022-06-17 苏州浪潮智能科技有限公司 Configuration data synchronization method, device, equipment and readable storage medium
CN111628895A (en) * 2020-05-28 2020-09-04 苏州浪潮智能科技有限公司 Configuration data synchronization method, device, equipment and readable storage medium
CN111651181A (en) * 2020-06-17 2020-09-11 深圳市钱海网络技术有限公司 Automatic refreshing method and device for system configuration parameters
CN111651181B (en) * 2020-06-17 2024-03-12 深圳市钱海网络技术有限公司 Automatic refreshing method and device for system configuration parameters
CN112035164A (en) * 2020-09-03 2020-12-04 中国银行股份有限公司 Method for updating node configuration of distributed system, application node and control node
CN112182590A (en) * 2020-11-16 2021-01-05 中国银联股份有限公司 Vulnerability updating method and device for Web application
CN113641385B (en) * 2021-08-13 2024-01-19 上海浦东发展银行股份有限公司 Distributed application parameter distribution system
CN113641385A (en) * 2021-08-13 2021-11-12 上海浦东发展银行股份有限公司 Distributed application parameter distribution system
CN114579667A (en) * 2022-04-28 2022-06-03 深圳市华曦达科技股份有限公司 Method, device and system for incremental synchronization of HBase data
CN115118590A (en) * 2022-06-22 2022-09-27 平安科技(深圳)有限公司 Method, device, system, equipment and storage medium for managing configuration data

Similar Documents

Publication Publication Date Title
CN109586948A (en) Update method, apparatus, computer equipment and the storage medium of system configuration data
CN109683988B (en) Micro services start method, apparatus, computer equipment and storage medium
CN111245548A (en) Data synchronization method and device based on timestamp and computer equipment
CN110489421B (en) Data storage method, apparatus, computer readable storage medium and computer device
CN110753099B (en) Distributed cache system and cache data updating method
WO2020151181A1 (en) Cross-platform data updating method and apparatus based on block chain, and computer device
CN109788032A (en) Acquisition methods, device, computer equipment and the storage medium of image file
CN110555041A (en) Data processing method, data processing device, computer equipment and storage medium
CN109871500A (en) Page loading method, device, computer equipment and storage medium
CN111708586B (en) Application starting configuration item loading method and device, computer equipment and storage medium
CN106933871A (en) Short linking processing method, device and short linked server
US10474185B2 (en) Timestamp alignment across a plurality of computing devices
CN110795171B (en) Service data processing method, device, computer equipment and storage medium
CN109361628B (en) Message assembling method and device, computer equipment and storage medium
US20170339042A1 (en) Synthetic Testing Of Web Applications Using Instrumented Monitoring Agents
CN110209681A (en) Block chain data enter chain method, apparatus, computer equipment and storage medium
CN109144799A (en) Integrated testing method, apparatus, computer equipment and storage medium
US11360975B2 (en) Data providing apparatus and data providing method
CN109903034B (en) Rule matching method and device, computer readable storage medium and computer equipment
CN108874661A (en) Test mapping relations library generating method, device, computer equipment and storage medium
CN107545050A (en) Data query method and device, electronic equipment
US20220039001A1 (en) Network search method and apparatus, device and storage medium
CN109816364A (en) Transaction data processing method, device, computer equipment and storage medium
CN110162542B (en) Data page turning method and device based on cassandra, computer equipment and storage medium
CN112579591B (en) Data verification method, device, electronic equipment and computer readable storage medium

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190405

WD01 Invention patent application deemed withdrawn after publication