CN105515872B - The update method of configuration information, apparatus and system - Google Patents
The update method of configuration information, apparatus and system Download PDFInfo
- Publication number
- CN105515872B CN105515872B CN201510980964.1A CN201510980964A CN105515872B CN 105515872 B CN105515872 B CN 105515872B CN 201510980964 A CN201510980964 A CN 201510980964A CN 105515872 B CN105515872 B CN 105515872B
- Authority
- CN
- China
- Prior art keywords
- configuration information
- equipment
- test
- list
- update
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of update methods of configuration information, apparatus and system.The described method includes: receiving test initiation command, test equipment list and configuration information item list to be updated are obtained and recorded;It is subscribed to according to update of the multiple equipment to the test equipment list and the configuration information item list, the each equipment recorded into the test equipment list notifies each configuration information item recorded in the configuration information item list, so that each equipment updates respective configuration information.The present invention updates each equipment recorded in test equipment list preferentially and synchronous respective configuration information according to each configuration information item recorded in configuration information item list by configuring subscribing mechanism, other equipment are still according to primary configuration information update and oneself synchronous configuration information, to meet the requirement for only updating the configuration information of a part of equipment, the present invention is made to be suitable for the scene of gray scale publication.
Description
Technical field
The present invention relates to technical field of the computer network, and in particular to a kind of update method of configuration information, device and is
System.
Background technique
In such as distributed real time computation system of distributed system, each distributed apparatus is often distributed in different servers
In node, in order to can correctly cooperate between each distributed apparatus, generally require to share some configuration informations, and need to configure
Information can dynamically be modified and Fast synchronization.
In existing distributed system, the technology of the synchronous configuration information of each distributed apparatus generally borrows ZooKeeper and mentions
The high availability and event notification mechanism of confession are realized.ZooKeeper is that a reliable coordination for large-scale distributed system is
System, the function of providing include configuring maintenance, name Service, distributed synchronization and group service etc..The target of ZooKeeper is exactly
The system of interface and performance efficiency easy to use, function-stable is supplied to use by the error-prone key service of packaged complexity
Family.
In the prior art, configuration information is stored in cluster node server by ZooKeeper cluster, is needed
The distributed apparatus of configuration information goes to read and subscribe to this with confidence respectively as client connection ZooKeeper cluster is subscribed to
Breath, the event notification mechanism monitoring that so-called subscription is namely provided using ZooKeeper itself store configuration information
The change of configuration information in node server in ZooKeeper cluster.Configuration is accordingly subscribed to when configuration information change
The component of information can receive a node configuration information and change event, and subscriber can remove ZooKeeper according to this event
It is upper to obtain newest node data i.e. configuration information.The subscription client for obtaining new configuration information can timely update and together
Newest configuration information is walked, corresponding change is then made.Each server node subscribed in client and ZooKeeper cluster
It is that connection is kept by the heartbeat mechanism that ZooKeeper is provided.
However in practical applications, there are the scenes of some gray scales publication to be intended merely to choose that is, for the new function of addition
A part of distributed apparatus is tested, and another part distributed apparatus still provides original function.It is logical in gray scale publication test
Later, then row is promoted to all distributed apparatus.According to the subscribing mechanism that existing ZooKeeper cluster provides, work as node
When configuration information in server updates, all equipment for subscribing to the configuration information can all obtain new configuration information and carry out
Timely update with it is synchronous.Therefore, the above-mentioned prior art is unable to satisfy wanting for the configuration information for only updating a part of distributed apparatus
It asks, and then the scene of gray scale publication can not be suitable for.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State update method, the apparatus and system of the configuration information of problem.
According to an aspect of the invention, there is provided a kind of update method of configuration information, for updating in multiple equipment
The configuration information of at least one equipment, which comprises
Test initiation command is received, test equipment list and configuration information item list to be updated are obtained and record;
It is subscribed to according to update of the multiple equipment to the test equipment list and the configuration information item list, to institute
Each configuration information item that each equipment recorded in test equipment list notifies to record in the configuration information item list is stated, with
Respective configuration information is updated for each equipment.
According to another aspect of the present invention, a kind of updating device of configuration information is provided, for updating in multiple equipment
The configuration information of at least one equipment, described device include:
Receiving module is suitable for receiving test initiation command;
Logging modle, suitable for obtaining and recording test equipment list and configuration information item list to be updated;
Notification module, suitable for according to the multiple equipment to the test equipment list and the configuration information item list
It updates and subscribes to, each equipment recorded in Xiang Suoshu test equipment list notifies to record in the configuration information item list each
Configuration information item, so that each equipment updates respective configuration information.
According to another aspect of the present invention, a kind of more new system of configuration information is provided, including above-mentioned configuration information
Updating device, further includes: the multiple equipment.
The update method of the configuration information provided according to the present invention, apparatus and system, after receiving test initiation command,
Test equipment list and configuration information item list to be updated are obtained and recorded, to test equipment list and is matched according to multiple equipment
The update for setting list of information items is subscribed to, and is recorded in each equipment notice configuration information item list recorded into test equipment list
Each configuration information item, so that each equipment updates respective configuration information.The present invention to survey by configuring subscribing mechanism
In examination list of devices each equipment for recording preferentially updated according to each configuration information item recorded in configuration information item list and
Synchronize respective configuration information, other equipment still according to primary configuration information update and oneself synchronous configuration information, thus
The requirement for only updating the configuration information of a part of equipment is met, the present invention is made to be suitable for the scene of gray scale publication.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of the update method of configuration information according to an embodiment of the invention;
Fig. 2 shows the flow diagrams of the update method of configuration information in accordance with another embodiment of the present invention;
Fig. 3 shows the functional block diagram of the updating device of configuration information according to an embodiment of the invention;
Fig. 4 shows the functional block diagram of the more new system of configuration information according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Based on defect of the existing technology, solution provided by the invention in ZooKeeper cluster specifically, remove
Other than node server A of the registration for saving primary configuration information, the node for saving test equipment list is also registered
Server B and node server C for saving configuration information item list, each distributed apparatus (hereinafter referred to as equipment) in addition to
Other than the configuration information for subscribing to node server A, the test equipment list and the node server C that subscribe to node server B are also needed
Configuration information item list.In the present invention, once the information that node server A, B and C are saved updates, these letters are subscribed to
The information that the equipment of breath will receive node server A, B and C transmission changes event, subscribes to equipment according to the event, goes phase
Updated information is obtained in the node server answered.For each equipment, if passing through the test obtained from node server B
List of devices knows the equipment that the equipment belongs in test equipment list, then the equipment is according to obtaining from node server C
Each configuration information item for recording in configuration information item list updates and oneself synchronous configuration information.If by being taken from node
Business device B obtain test equipment list know the equipment that equipment is not belonging in test equipment list, then the equipment still according to
The primary configuration information update obtained from node server A and oneself synchronous configuration information.
Therefore the scene that solution provided by the invention is suitable for gray scale publication in the examples below, is sent out with gray scale
It is illustrated for the scene of cloth.
Fig. 1 shows the flow diagram of the update method of configuration information according to an embodiment of the invention.Such as Fig. 1 institute
Show, this method comprises the following steps:
Step S101 receives test initiation command, obtains and record test equipment list and configuration information item to be updated
List.
The initiation command that initiation command is gray scale publication is tested, gray scale publication, which refers to, chooses a part of equipment test addition
New function, and another part equipment still provides original function, i.e. only a part equipment need to update configuration information, and another part
Equipment is without updating configuration information.The equipment for needing exist for updating configuration information is test equipment, the configuration information for needing to update
Item is configuration information item to be updated.
After receiving test initiation command, need to obtain test equipment list.Obtaining test equipment list can take
Following methods:
Mode one obtains preconfigured test equipment list: what is recorded in preconfigured test equipment list is pre-
The test equipment first chosen.For example, it is test equipment that several equipment are fixedly installed in all equipment, once there is test to need
When asking, just tested using these equipment.
Mode two, obtain the test equipment list carried in test initiation command: test administrator starts in transmission test
The test equipment list of this test process is configured in the test and management equipment of order, test equipment list carrying starts in test
In the node server B that ZooKeeper cluster is sent and be recorded in order.
Mode three, select at least one equipment to charge to test equipment list according to the load state of multiple equipment: selection is negative
Lesser equipment is carried to charge in test equipment list, in case test assignment has an impact the performance of equipment.
The acquisition modes of the above test equipment list are only specific example, and the present invention is not limited only to take above-mentioned three kinds of sides
Formula can also take other alternatives, such as randomly select test equipment and charge to test equipment list etc..
Configuration information item list to be updated is test administrator in the test and management equipment for sending test initiation command
It is configured, in order to test new function, needing to update which configuration information corresponding with new function is write by test administrator
Enter, configuration information item list to be updated, which is carried in, to be sent in test initiation command and ZooKeeper cluster is recorded
In node server C, alternatively, separately being sended over after test initiation command is sent.
Step S102 is subscribed to according to update of the multiple equipment to test equipment list and configuration information item list, to test
The each configuration information item recorded in each equipment notice configuration information item list recorded in list of devices, for each equipment
Update respective configuration information.
Due to multiple equipment have subscribed in advance node server B test equipment list and node server C with confidence
Item list is ceased, when test equipment list and configuration information item list update, corresponding subscription equipment receives information and changes
Change event, and then test equipment list and configuration information item list are obtained, if the equipment belongs to setting in test equipment list
It is standby, then according to each configuration information item recorded in the configuration information item list saved in node server C, come update with it is synchronous
The configuration information of oneself.For the subscription equipment being not belonging in test equipment list, since it also has subscribed node server A's
Primary configuration information, therefore still according to primary configuration information update and oneself synchronous configuration information.
In the present embodiment, for the subscription equipment being not belonging in test equipment list, it is stored up in the cache bank memories of oneself
With the configuration information of primary accordant configuration information.The buffer area is the caching of equipment oneself, by synchronizing primary match in caching
Confidence breath, directly reads configuration information in caching when equipment provides service, it is no longer necessary to which configuration information is first synchronized to configuration text
In part, then reading and loading configuration file, eliminate reading and the loading procedure of configuration file, improve the performance of equipment.
For the subscription equipment belonged in test equipment list, it establishes temporal cache after receiving notice inside equipment
Area is used for store-updated configuration information.The reading priority of the temporary buffer is higher than buffer area, when equipment provides service
Shi Youxian reads the configuration information of temporary buffer, and equipment is allow externally to provide new function to be tested.It is interim by establishing
Buffer area does not need for configuration information to be first synchronized in configuration file, then reading and loading configuration file, eliminates configuration text
The reading of part and loading procedure improve the performance of equipment.
Further, after step s 102, method can enter step S103 to step S105.
Step S103 receives test submiting command, according to the primary configuration information of configuration information item list update to be updated.
The success command that submiting command is gray scale publication is tested, i.e. new function is successfully tested, needs to update all devices
The corresponding configuration information item of the new function is to carry out function upgrading.After receiving test submiting command, according to be updated
The corresponding configuration information item of primary configuration information is updated to new function pair by the primary configuration information of configuration information item list update
The configuration information item answered.
Step S104 empties test equipment list and configuration information item list, so that each equipment deletes temporary buffer.
Test equipment list and configuration information item list are emptied, corresponding test equipment, which will receive, oneself to be no longer belong to survey
The notice for trying list of devices, then will be deleted temporary buffer.
Step S105 subscribes to the update of primary configuration information according to multiple equipment, notifies to multiple equipment updated
Primary configuration information, so that the configuration information update that multiple equipment stores respective buffer area is updated primary with confidence
Breath.
Multiple equipment has subscribed the primary configuration information of node server A, then still according to primary configuration information update and
Configuration information in synchronization caching area.By completing the update of primary configuration information, all devices are got newest
Configuration information realizes the function upgrading of all devices.
Further, after step s 102, method can also pass into step S106, receives test rollback order, empties
Test equipment list and configuration information item list, so that each equipment deletes temporary buffer.
Test the failure order that rollback order is gray scale publication, i.e. new function test crash.Due in test equipment before
By establishing the store-updated configuration information of temporary buffer, do not modify to the configuration information in buffer area, therefore
After receiving test rollback order, by emptying test equipment list and configuration information item list, receive test equipment
It is no longer belong to the notice of test equipment list to oneself, then deletes temporary buffer, and the configuration information in buffer area is still
It is consistent with primary configuration information, guarantees that test equipment is still capable of providing original function.
Further, in the present embodiment, the test and management equipment for sending test initiation command is that test initiation command is corresponding
Test process allocation for test process identifier;Test initiation command and subsequent test submiting command or test rollback order all
Carry test process mark.It is identified by setting test process, so that ZooKeeper cluster is supported while handling multiple tests
Process, test submiting command can be accurately identified or test rollback order be for which time test process, realize test and
Row processing.
It obtains and remembers after receiving test initiation command according to the update method of configuration information provided in this embodiment
Test equipment list and configuration information item list to be updated are recorded, according to multiple equipment to test equipment list and configuration information item
The update of list is subscribed to, and what is recorded in each equipment notice configuration information item list recorded into test equipment list each matches
Item of information is set, so that each equipment updates respective configuration information.The present embodiment makes test equipment by configuring subscribing mechanism
The each equipment recorded in list preferentially according to each configuration information item for being recorded in configuration information item list update with it is synchronous each
From configuration information, other equipment are still according to primary configuration information update and oneself synchronous configuration information, to meet
The requirement for only updating the configuration information of a part of equipment makes this method be suitable for the scene of gray scale publication.Further, this implementation
In example, the equipment belonged in test equipment list establishes temporary buffer for store-updated configuration information, is connecing in this way
After receiving test submiting command or test rollback order, deleting temporary buffer can be deleted according to the list of configuration information item
The configuration information of update, it is convenient to operate, and treatment effeciency is higher.
Fig. 2 shows the flow diagrams of the update method of configuration information in accordance with another embodiment of the present invention.Such as Fig. 2
Shown, this method comprises the following steps:
Step S201 receives test initiation command, obtains and record test equipment list and configuration information item to be updated
List.
The initiation command that initiation command is gray scale publication is tested, gray scale publication, which refers to, chooses a part of equipment test addition
New function, and another part equipment still provides original function, i.e. only a part equipment need to update configuration information, and another part
Equipment is without updating configuration information.The equipment for needing exist for updating configuration information is test equipment, the configuration information for needing to update
Item is configuration information item to be updated.
After receiving test initiation command, need to obtain test equipment list.Obtaining test equipment list can take
Following methods:
Mode one obtains preconfigured test equipment list: what is recorded in preconfigured test equipment list is pre-
The test equipment first chosen.For example, it is test equipment that several equipment are fixedly installed in all equipment, once there is test to need
When asking, just tested using these equipment.
Mode two, obtain the test equipment list carried in test initiation command: test administrator starts in transmission test
The test equipment list of this test process is configured in the test and management equipment of order, test equipment list carrying starts in test
In the node server B that ZooKeeper cluster is sent and be recorded in order.
Mode three, select at least one equipment to charge to test equipment list according to the load state of multiple equipment: selection is negative
Lesser equipment is carried to charge in test equipment list, in case test assignment has an impact the performance of equipment.
The acquisition modes of the above test equipment list are only specific example, and the present invention is not limited only to take above-mentioned three kinds of sides
Formula can also take other alternatives, such as randomly select test equipment and charge to test equipment list etc..
Configuration information item list to be updated is test administrator in the test and management equipment for sending test initiation command
It is configured, in order to test new function, needing to update which configuration information corresponding with new function is write by test administrator
Enter, configuration information item list to be updated, which is carried in, to be sent in test initiation command and ZooKeeper cluster is recorded
In node server C, alternatively, separately being sended over after test initiation command is sent.
Step S202 is subscribed to according to update of the multiple equipment to test equipment list and configuration information item list, to test
The each configuration information item recorded in each equipment notice configuration information item list recorded in list of devices, for each equipment
Update respective configuration information.
Due to multiple equipment have subscribed in advance node server B test equipment list and node server C with confidence
Item list is ceased, when test equipment list and configuration information item list update, corresponding subscription equipment receives information and changes
Change event, and then test equipment list and configuration information item list are obtained, if the equipment belongs to setting in test equipment list
It is standby, then according to each configuration information item recorded in the configuration information item list saved in node server C, come update with it is synchronous
The configuration information of oneself.For the subscription equipment being not belonging in test equipment list, since it also has subscribed node server A's
Primary configuration information, therefore still according to primary configuration information update and oneself synchronous configuration information.
In the present embodiment, for the subscription equipment being not belonging in test equipment list, it is stored up in the cache bank memories of oneself
With the configuration information of primary accordant configuration information.The buffer area is the caching of equipment oneself, by synchronizing primary match in caching
Confidence breath, directly reads configuration information in caching when equipment provides service, it is no longer necessary to which configuration information is first synchronized to configuration text
In part, then reading and loading configuration file, eliminate reading and the loading procedure of configuration file, improve the performance of equipment.
For the subscription equipment belonged in test equipment list, establish temporary buffer from above-described embodiment unlike,
Equipment according to each configuration information item recorded in the configuration information item list saved in node server C, come update with it is synchronous
The configuration information of the buffer area storage of oneself.In this way, after subsequently received test submiting command or test rollback order, this reality
The treatment mechanism for applying example is also unlike the embodiments above.
After step S202, method can enter step S203 to step S205.
Step S203 receives test submiting command, according to the primary configuration information of configuration information item list update to be updated,
Calculate the cryptographic Hash of updated primary configuration information.
The success command that submiting command is gray scale publication is tested, i.e. new function is successfully tested, needs to update all devices
The corresponding configuration information item of the new function is to carry out function upgrading.After receiving test submiting command, according to be updated
The corresponding configuration information item of primary configuration information is updated to new function pair by the primary configuration information of configuration information item list update
The configuration information item answered, and calculate the cryptographic Hash of updated primary configuration information.
Step S204 empties test equipment list and configuration information item list.
Test equipment list and configuration information item list are emptied, corresponding test equipment, which will receive, oneself to be no longer belong to survey
Try the notice of list of devices.
Step S205 subscribes to the update of primary configuration information according to multiple equipment, notifies to multiple equipment updated
The cryptographic Hash of primary configuration information, after the cryptographic Hash and update of the configuration information stored respective buffer area for multiple equipment
The cryptographic Hash of primary configuration information be compared, if inconsistent, pull updated primary configuration information to update respectively
Buffer area storage configuration information.
Multiple equipment has subscribed the primary configuration information of node server A, and multiple equipment first obtains updated primary match
The cryptographic Hash of confidence breath, the Kazakhstan of the cryptographic Hash for the configuration information that respective buffer area is stored and updated primary configuration information
Uncommon value is compared, if inconsistent, pulls updated primary configuration information to update the configuration of respective buffer area storage
Information.Seen from the above description, the equipment recorded in test equipment list in step S202 is according in the list of configuration information item
The configuration information of the updated buffer area storage of each configuration information item of record, therefore, the cryptographic Hash comparison result of these equipment
It is consistent, and to need to pull updated primary configuration information respective to update for Unrecorded equipment in test equipment list
The configuration information of buffer area storage.
Treatment mechanism described in above-mentioned steps S203 to step S205 can also be replaced by following steps: receiving test and submit
Order obtains all devices list, is all devices list by test equipment list update;According to multiple equipment to test equipment
The update of list and configuration information item list is subscribed to, and what is recorded into all devices notice configuration information item list is each with confidence
Item is ceased, so that all devices update respective configuration information.The alternative solution is not to realize institute by updating primary configuration information
There is the update of device configuration information, but by being all devices list, all devices list packet by test equipment list update
Containing all subscription equipment, it is also able to achieve the update of all devices configuration information.
After step S202, method can also pass into step S206 and step S207.
Step S206 receives test rollback order, empties test equipment list and configuration information item list.
Step S207, each primary configuration information of equipment active pull is to update the configuration information that respective buffer area stores.
Test the failure order that rollback order is gray scale publication, i.e. new function test crash.Receiving test rollback life
After order, by emptying test equipment list and configuration information item list, receives test equipment and oneself be no longer belong to test
The notice of list of devices, after these test equipments receive notice, the primary configuration information of active pull is to update respective buffer area
The configuration information of storage will be remodified by the modified configuration information of step S202 as primary configuration information.
Further, in the present embodiment, the test and management equipment for sending test initiation command is that test initiation command is corresponding
Test process allocation for test process identifier;Test initiation command and subsequent test submiting command or test rollback order all
Carry test process mark.It is identified by setting test process, so that ZooKeeper cluster is supported while handling multiple tests
Process, test submiting command can be accurately identified or test rollback order be for which time test process, realize test and
Row processing.
According to the update method of configuration information provided in this embodiment, make test equipment list by configuring subscribing mechanism
Each equipment of middle record preferentially according to each configuration information item for being recorded in configuration information item list update with it is synchronous respective
Configuration information, other equipment are still according to primary configuration information update and oneself synchronous configuration information, to meet only more
The requirement of the configuration information of new a part of equipment, makes this method be suitable for the scene of gray scale publication.
Fig. 3 shows the functional block diagram of the updating device of configuration information according to an embodiment of the invention.Such as Fig. 3 institute
Show, which includes: receiving module 301, logging modle 302 and notification module 303.
Receiving module 301 is suitable for receiving test initiation command.Receiving module 301 can be connect with test and management equipment, also suitable
Submiting command and test rollback order are tested in receiving.
Logging modle 302, suitable for obtaining and recording test equipment list and configuration information item list to be updated.
Notification module 303 is suitable for arranging the test equipment list and the configuration information item according to the multiple equipment
The update of table is subscribed to, what each equipment recorded in Xiang Suoshu test equipment list notified to record in the configuration information item list
Each configuration information item, so that each equipment updates respective configuration information.
Further, device further include: memory module 304 and subscribing module 305.
Memory module 304, suitable for primary configuration information is stored in advance;
Subscribing module 305 subscribes to the update of the primary configuration information suitable for receiving the multiple equipment, to guarantee
State the configuration information and the primary accordant configuration information of the respective buffer area storage of multiple equipment.
In one embodiment, notification module 303 is further adapted for: being recorded in Xiang Suoshu test equipment list each
Equipment notifies each configuration information item recorded in the configuration information item list, establishes temporary buffer for each equipment and deposits
Store up updated configuration information.Logging modle 302 is further adapted for: after receiving module 301 receives test submiting command, emptying
The test equipment list and the configuration information item list, so that each equipment deletes the temporary buffer;Memory module
304 are further adapted for: according to primary configuration information described in the configuration information item list update to be updated;Notification module 303 is also suitable
In: the update of primary configuration information is subscribed to according to the multiple equipment, notifies updated primary match to the multiple equipment
Confidence breath, so that the configuration information update that the multiple equipment stores respective buffer area is updated primary with confidence
Breath.
Logging modle 302 is further adapted for: after receiving module 301 receives test rollback order, emptying the test and sets
Standby list and the configuration information item list, so that each equipment deletes the temporary buffer.
In another embodiment, notification module 303 is further adapted for: being recorded in Xiang Suoshu test equipment list each
A equipment notifies each configuration information item recorded in the configuration information item list, so that each equipment updates respectively according to notice
From buffer area storage configuration information.Logging modle 302 is further adapted for: receiving module 301 receive test submiting command it
Afterwards, the test equipment list and the configuration information item list are emptied;Memory module 304 is further adapted for: according to described to be updated
Configuration information item list update described in primary configuration information, calculate the cryptographic Hash of updated primary configuration information;Notify mould
Block 303 is further adapted for: the update of primary configuration information subscribed to according to the multiple equipment, it is described more to the multiple equipment notice
The cryptographic Hash of primary configuration information after new, for the Hash for the configuration information that the multiple equipment stores respective buffer area
Value is compared with the cryptographic Hash of the updated primary configuration information, if inconsistent, is pulled described updated primary
Configuration information is to update the configuration information that respective buffer area stores.
Logging modle 302 is further adapted for: after receiving module 301 receives test rollback order, emptying the test and sets
Standby list and the configuration information item list;Memory module 304 is further adapted for: described in providing in each equipment active pull
Primary configuration information is to update the configuration information that each equipment buffer area stores.
Optionally, logging modle 302 is further adapted for: obtaining all devices list, is institute by the test equipment list update
There is list of devices;Notification module 303 is further adapted for: according to the multiple equipment to the test equipment list and the configuration information
The update of item list is subscribed to, and each configuration information item recorded in the configuration information item list is notified to all devices, for
All devices update respective configuration information.
Further, device further include: mark distribution module 306, being suitable for test, initiation command is corresponding tested
Journey allocation for test process identifier;Test submiting command or test rollback order carry the test process mark.
Logging modle 302 is further adapted for: obtaining preconfigured test equipment list;It is opened alternatively, obtaining the test
The test equipment list carried in beginning order;Alternatively, selecting at least one equipment to remember according to the load state of the multiple equipment
Enter test equipment list.
In a specific scene, the updating device of above-mentioned configuration information is the functional device in ZooKeeper cluster,
Receiving module is connect with external test and management equipment, receives test initiation command, test submission that test and management equipment is sent
Order and test rollback order, also can receive the test equipment list and configuration information item to be updated that test and management equipment is sent
List and primary configuration information.Logging modle is the functional module in node server B and node server C, for saving
Test equipment list is recorded, updates or emptied in point server B, is recorded, updates or is emptied in node server C and is to be updated
Configuration information item list.Memory module is the functional module in node server A, for storing primary configuration information, subscribes to mould
Block (the first subscribing module) is the functional module in node server A, for receiving multiple equipment to primary configuration information more
It is new to subscribe to.In addition, also having the second subscribing module and third subscribing module in node server B and node server C, it is respectively used to
Receive multiple equipment to subscribe to the update of test equipment list and configuration information item list to be updated.Notification module is node clothes
The functional module being engaged in device A, node server B and node server C, for former to corresponding equipment notice according to subscription is updated
The each configuration information item recorded in raw configuration information and configuration information item list matches confidence so that the update of each equipment is respective
Breath.In addition to this, the specific implementation of the above technology contents can be found in the description of embodiment of the method, repeat no more.
Fig. 4 shows the functional block diagram of the more new system of configuration information according to an embodiment of the invention.Such as Fig. 4 institute
Show, which includes the updating device 401 and multiple equipment 402 of configuration information.
The updating device and system of the configuration information provided according to the present invention make test equipment by configuring subscribing mechanism
The each equipment recorded in list preferentially according to each configuration information item for being recorded in configuration information item list update with it is synchronous each
From configuration information, other equipment are still according to primary configuration information update and oneself synchronous configuration information, to meet
The requirement for only updating the configuration information of a part of equipment makes this method be suitable for the scene of gray scale publication.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize the updating device of configuration information according to an embodiment of the present invention and are
The some or all functions of some or all components in system.The present invention is also implemented as described here for executing
Method some or all device or device programs (for example, computer program and computer program product).This
The program that the realization of sample is of the invention can store on a computer-readable medium, or can have one or more signal
Form.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other
Form provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
Claims (21)
1. a kind of update method of configuration information, for updating the configuration information of at least one equipment in multiple equipment, the side
Method includes:
Test initiation command is received, test equipment list and configuration information item list to be updated are obtained and record;
It is subscribed to according to update of the multiple equipment to the test equipment list and the configuration information item list, to the survey
The each equipment recorded in examination list of devices notifies each configuration information item recorded in the configuration information item list, for each
A equipment establishes the store-updated configuration information of temporary buffer.
2. according to the method described in claim 1, the reception test initiation command before, the method also includes: in advance
Primary configuration information is stored, receives the multiple equipment and the update of the primary configuration information is subscribed to, it is the multiple to guarantee
The configuration information and the primary accordant configuration information of the respective buffer area storage of equipment.
3. according to the method described in claim 2, the method is also after each equipment updates respective configuration information
Include:
Test submiting command is received, according to primary configuration information described in the configuration information item list update to be updated;
The test equipment list and the configuration information item list are emptied, so that each equipment deletes the temporary buffer;
The update of primary configuration information is subscribed to according to the multiple equipment, notifies updated primary match to the multiple equipment
Confidence breath, so that the configuration information update that the multiple equipment stores respective buffer area is updated primary with confidence
Breath.
4. according to the method described in claim 1, the method is also after each equipment updates respective configuration information
Include:
Test rollback order is received, the test equipment list and the configuration information item list are emptied, so that each equipment is deleted
Except the temporary buffer.
5. according to the method described in claim 2, described in each equipment notice recorded into the test equipment list
The each configuration information item recorded in configuration information item list, so that the respective configuration information of each equipment update is further are as follows:
The each equipment recorded into the test equipment list notifies each configuration information recorded in the configuration information item list
, so that each equipment updates the configuration information that respective buffer area stores according to notice.
6. according to the method described in claim 5, the method is also after each equipment updates respective configuration information
Include:
Test submiting command is received, according to primary configuration information described in the configuration information item list update to be updated, is calculated
The cryptographic Hash of updated primary configuration information;
Empty the test equipment list and the configuration information item list;
The update of primary configuration information is subscribed to according to the multiple equipment, notifies the updated original to the multiple equipment
The cryptographic Hash of raw configuration information, the cryptographic Hash of the configuration information stored respective buffer area for the multiple equipment with it is described
The cryptographic Hash of updated primary configuration information is compared, if inconsistent, pulls the updated primary configuration information
To update the configuration information of respective buffer area storage.
7. according to the method described in claim 5, the method is also after each equipment updates respective configuration information
Include:
Test rollback order is received, the test equipment list and the configuration information item list are emptied;
Primary configuration information described in each equipment active pull is to update the configuration information that respective buffer area stores.
8. according to the method described in claim 5, the method is also after each equipment updates respective configuration information
Include:
Test submiting command is received, all devices list is obtained, is all devices list by the test equipment list update;
It is subscribed to according to update of the multiple equipment to the test equipment list and the configuration information item list, is set to all
It is standby to notify each configuration information item recorded in the configuration information item list, match confidence so that all devices update is respective
Breath.
9. according to claim 3,4, the described in any item methods of 6-8, after initiation command is tested in the reception, the method
Further include: for the corresponding test process allocation for test process identifier of test initiation command;
The test submiting command or the test rollback order carry the test process mark.
10. method according to claim 1-8, the acquisition test equipment list further comprises:
Obtain preconfigured test equipment list;
Alternatively, obtaining the test equipment list carried in the test initiation command;
Alternatively, selecting at least one equipment to charge to test equipment list according to the load state of the multiple equipment.
11. a kind of updating device of configuration information, for updating the configuration information of at least one equipment in multiple equipment, the dress
It sets and includes:
Receiving module is suitable for receiving test initiation command;
Logging modle, suitable for obtaining and recording test equipment list and configuration information item list to be updated;
Notification module, suitable for the update according to the multiple equipment to the test equipment list and the configuration information item list
It subscribes to, each equipment recorded in Xiang Suoshu test equipment list notifies each configuration recorded in the configuration information item list
Item of information, so that each equipment establishes the store-updated configuration information of temporary buffer.
12. device according to claim 11, further includes:
Memory module, suitable for primary configuration information is stored in advance;
Subscribing module subscribes to the update of the primary configuration information suitable for receiving the multiple equipment, the multiple to guarantee
The configuration information and the primary accordant configuration information of the respective buffer area storage of equipment.
13. device according to claim 12, the receiving module is further adapted for: receiving test submiting command;
The logging modle is further adapted for: after the receiving module receives test submiting command, emptying the test equipment
List and the configuration information item list, so that each equipment deletes the temporary buffer;
The memory module is further adapted for: according to primary configuration information described in the configuration information item list update to be updated;
The notification module is further adapted for: being subscribed to according to the multiple equipment to the update of primary configuration information, is set to the multiple
It is standby to notify updated primary configuration information, so that the configuration information update that respective buffer area stores is by the multiple equipment
Updated primary configuration information.
14. device according to claim 11, the receiving module is further adapted for: receiving test rollback order;
The logging modle is further adapted for: after the receiving module receives test rollback order, emptying the test equipment
List and the configuration information item list, so that each equipment deletes the temporary buffer.
15. device according to claim 13, the notification module is further adapted for: being remembered in Xiang Suoshu test equipment list
Each equipment of record notifies each configuration information item recorded in the configuration information item list, so that each equipment is according to notice
Update the configuration information of respective buffer area storage.
16. device according to claim 15, the receiving module is further adapted for: receiving test submiting command;
The logging modle is further adapted for: after the receiving module receives test submiting command, emptying the test equipment
List and the configuration information item list;
The memory module is further adapted for: according to primary configuration information described in the configuration information item list update to be updated, meter
Calculate the cryptographic Hash of updated primary configuration information;
The notification module is further adapted for: being subscribed to according to the multiple equipment to the update of primary configuration information, is set to the multiple
The standby cryptographic Hash for notifying the updated primary configuration information, so that the multiple equipment is matched what respective buffer area stored
The cryptographic Hash of confidence breath is compared with the cryptographic Hash of the updated primary configuration information, if inconsistent, is pulled described
Updated primary configuration information is to update the configuration information that respective buffer area stores.
17. device according to claim 15, the receiving module is further adapted for: receiving test rollback order;
The logging modle is further adapted for: after the receiving module receives test rollback order, emptying the test equipment
List and the configuration information item list;
The memory module is further adapted for: it is each to update that the primary configuration information is provided in each equipment active pull
The configuration information of equipment buffer area storage.
18. device according to claim 15, the receiving module is further adapted for: receiving test submiting command;
The logging modle is further adapted for: obtaining all devices list, is all devices list by the test equipment list update;
The notification module is further adapted for: according to the multiple equipment to the test equipment list and the configuration information item list
Update subscribe to, each configuration information item recorded in the configuration information item list is notified to all devices, is set for all
It is standby to update respective configuration information.
19. 3,14, the described in any item devices of 16-18 according to claim 1, further includes: mark distribution module is suitable for testing
The corresponding test process allocation for test process identifier of initiation command;
The test submiting command or the test rollback order carry the test process mark.
20. the described in any item devices of 1-18 according to claim 1, the logging modle is further adapted for:
Obtain preconfigured test equipment list;
Alternatively, obtaining the test equipment list carried in the test initiation command;
Alternatively, selecting at least one equipment to charge to test equipment list according to the load state of the multiple equipment.
21. a kind of more new system of configuration information, the updating device including configuration information described in claim 11-20 also wrap
It includes: the multiple equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510980964.1A CN105515872B (en) | 2015-12-23 | 2015-12-23 | The update method of configuration information, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510980964.1A CN105515872B (en) | 2015-12-23 | 2015-12-23 | The update method of configuration information, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105515872A CN105515872A (en) | 2016-04-20 |
CN105515872B true CN105515872B (en) | 2019-05-28 |
Family
ID=55723531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510980964.1A Active CN105515872B (en) | 2015-12-23 | 2015-12-23 | The update method of configuration information, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105515872B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102016215915A1 (en) | 2016-08-24 | 2018-03-01 | Siemens Aktiengesellschaft | Secure configuration of a device |
CN106789202A (en) * | 2016-12-08 | 2017-05-31 | 努比亚技术有限公司 | service management device and method |
CN107277120B (en) * | 2017-06-05 | 2019-12-17 | 广州视源电子科技股份有限公司 | configuration file management method and device, and service configuration method and system |
CN110825425B (en) * | 2018-08-09 | 2024-09-20 | 北京京东尚科信息技术有限公司 | Configuration data management method and device, electronic equipment and storage medium |
CN108984417B (en) * | 2018-08-15 | 2022-06-03 | 北京达佳互联信息技术有限公司 | Software testing method, device, terminal and storage medium |
CN111090440B (en) * | 2018-10-23 | 2023-06-20 | 阿里巴巴集团控股有限公司 | Information processing method, system, device and storage medium |
CN109582485B (en) * | 2018-10-26 | 2022-05-03 | 创新先进技术有限公司 | Configuration change abnormity detection method and device |
CN110096396B (en) * | 2019-03-18 | 2023-05-23 | 北京奇艺世纪科技有限公司 | Control method for packet test, distributed application system and storage medium |
CN110413418B (en) * | 2019-06-25 | 2022-04-05 | 北京三快在线科技有限公司 | Cache synchronization device and method, cache synchronization system and electronic equipment |
CN110958150B (en) * | 2019-12-10 | 2022-08-05 | 深圳前海环融联易信息科技服务有限公司 | Management method and device for dynamic service configuration |
CN114995921A (en) * | 2022-08-08 | 2022-09-02 | 深圳竹云科技股份有限公司 | Application configuration updating method and device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103095743A (en) * | 2011-10-28 | 2013-05-08 | 阿里巴巴集团控股有限公司 | Handling method and system of grey release |
CN104092718A (en) * | 2013-12-12 | 2014-10-08 | 腾讯数码(天津)有限公司 | Distributed system and configuration information updating method in distributed system |
CN104660689A (en) * | 2015-02-04 | 2015-05-27 | 中国南方电网有限责任公司 | Distributed computing system |
CN105099761A (en) * | 2015-06-26 | 2015-11-25 | 广东欧珀移动通信有限公司 | Method and system for concentratedly managing configuration information of client |
-
2015
- 2015-12-23 CN CN201510980964.1A patent/CN105515872B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103095743A (en) * | 2011-10-28 | 2013-05-08 | 阿里巴巴集团控股有限公司 | Handling method and system of grey release |
CN104092718A (en) * | 2013-12-12 | 2014-10-08 | 腾讯数码(天津)有限公司 | Distributed system and configuration information updating method in distributed system |
CN104660689A (en) * | 2015-02-04 | 2015-05-27 | 中国南方电网有限责任公司 | Distributed computing system |
CN105099761A (en) * | 2015-06-26 | 2015-11-25 | 广东欧珀移动通信有限公司 | Method and system for concentratedly managing configuration information of client |
Also Published As
Publication number | Publication date |
---|---|
CN105515872A (en) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105515872B (en) | The update method of configuration information, apparatus and system | |
US20200328984A1 (en) | Method and apparatus for allocating resource | |
CN104699541B (en) | Method, apparatus, data transfer components and the system of synchrodata | |
CN107395659A (en) | A kind of method and device of service handling and common recognition | |
CN106445951B (en) | File transmission method and device | |
US10601680B2 (en) | Application resiliency using APIs | |
CN109491776A (en) | Task method of combination and system | |
US9852220B1 (en) | Distributed workflow management system | |
CN109451088A (en) | A kind of data access method and device | |
US9535677B2 (en) | Software discovery in an environment with heterogeneous machine groups | |
CN103827832B (en) | System and method for persisting transaction records in a transactional middleware machine environment | |
CN108845861A (en) | The implementation method and device of Softcam | |
CN105162879B (en) | Realize the method, apparatus and system of multimachine room data consistency | |
CN112860479A (en) | Data storage method and cloud data center | |
TW201434300A (en) | Service migration across cluster boundaries | |
CN110502572A (en) | A kind of method and server that data are synchronous | |
CN104125303B (en) | Reading and writing data requesting method, client and system | |
CN109167819A (en) | Data synchronous system, method, apparatus and storage medium | |
CN110381077A (en) | For the treating method and apparatus of digital certificate | |
CN112486630A (en) | Distributed training deployment system and method thereof | |
CN104580428B (en) | A kind of data routing method, data administrator and distributed memory system | |
CN109343862A (en) | The dispatching method and device of the resource data of application | |
US9893936B2 (en) | Dynamic management of restful endpoints | |
CN106254411A (en) | For providing the system of service, server system and method | |
US11093477B1 (en) | Multiple source database system consolidation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220725 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |