CN103580918B - A kind of configuration data processing method and device - Google Patents

A kind of configuration data processing method and device Download PDF

Info

Publication number
CN103580918B
CN103580918B CN201310528909.XA CN201310528909A CN103580918B CN 103580918 B CN103580918 B CN 103580918B CN 201310528909 A CN201310528909 A CN 201310528909A CN 103580918 B CN103580918 B CN 103580918B
Authority
CN
China
Prior art keywords
type file
configuration type
slave node
node
version number
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
Application number
CN201310528909.XA
Other languages
Chinese (zh)
Other versions
CN103580918A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310528909.XA priority Critical patent/CN103580918B/en
Publication of CN103580918A publication Critical patent/CN103580918A/en
Application granted granted Critical
Publication of CN103580918B publication Critical patent/CN103580918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiments of the invention provide a kind of configuration data processing method and device,Because host node receives and preserves the Configuration Type file of slave node,And the version number of Configuration Type file of the version number of the Configuration Type file of the slave node from being stored in host node is different,So,When system is upgraded,A part of slave node can first be upgraded,And the slave node not upgraded by another part runs business,Then business is continued to run with by the slave node after upgrading,Upgrade remaining slave node again,Because the version number of the Configuration Type file of the slave node after upgrading can change before relatively upgrading,So,The Configuration Type file of slave node after upgrading can be saved in host node,Therefore,The operation that can support upgrading preceding in host node simultaneously with the slave node progress business after upgrading,It can be seen that,Method and device described in the present embodiment,Also can be that user continues offer service when group system is upgraded.

Description

A kind of configuration data processing method and device
Technical field
The present invention relates to cluster device data configuration field, more particularly to a kind of configuration data processing method and device.
Background technology
In group system, host node and slave node are generally included, host node and slave node coordinate operation business, are user Service is provided.
Because when host node is identical with the version of the configuration data of slave node, when both can coordinate operation business, institute , must with, existing group system when being upgraded, it is necessary to whole nodes while restart, and when whole nodes are restarted Can not so rerun any business.
It can be seen that existing group system can not provide the user service in upgrading.
The content of the invention
The embodiments of the invention provide a kind of configuration data processing method, it is therefore intended that solves existing group system and is rising During level, the problem of service can not be provided the user.
To achieve these goals, the embodiments of the invention provide following technical scheme:
The first aspect of the embodiment of the present invention provides a kind of configuration data processing method, including:
Host node receive slave node Configuration Type file, the version number of the Configuration Type file of the slave node with it is described The version number of the Configuration Type file stored in host node is different, and the Configuration Type file includes configuration data, the version This number corresponds with the Configuration Type file;
The host node preserves the Configuration Type file of the slave node;
The host node receives configuration data that the slave node is sent, with the first title and second value, described The value of configuration data configuration data in the Configuration Type file of the slave node, having the first title is by the first numerical value quilt Sent when being revised as the second value;
First title and the second value are correspondingly stored in presetting database by the host node;
The host node receives the configuration data value that the slave node is sent and obtains message, and the configuration data is described standby Configuration data in the Configuration Type file of node, having the second title, the configuration data value obtain in message and carry institute State the version number of the Configuration Type file of slave node;
The host node is inquired about from the presetting database whether there is second title;
If it is, numerical value corresponding to second title is then sent to the slave node by the host node;
If not, the host node then inquires about target Configuration Type file, the version number of the target Configuration Type file It is identical with the version number of the Configuration Type file of the slave node;
Numerical value corresponding to second title in the target Configuration Type file, described is sent to the slave node.
In the first implementation of the first aspect of the embodiment of the present invention, the slave node is received in the host node Configuration Type file before, in addition to:
When meeting preparatory condition, the host node sends the Configuration Type file of the host node to the slave node Version number.
In second of implementation of the first aspect of the embodiment of the present invention, matching somebody with somebody for slave node is received in the host node Before putting type file, in addition to:
The version number of the Configuration Type file of the host node and the configuration class of the slave node are determined when the host node After version number's difference of type file, the host node is to the slave node send configuration type file request message.
In the third implementation of the first aspect of the embodiment of the present invention, the host node determines the host node The version number of the Configuration Type file detailed process different from the version number of the Configuration Type file of the slave node includes:
When meeting preparatory condition, the host node obtains the version number of the Configuration Type file of the slave node;
The host node determines the version number of the Configuration Type file of the slave node and the host node by comparing The version number of Configuration Type file is different.
In the 4th kind of implementation of the first aspect of the embodiment of the present invention, the preparatory condition is comprised at least with next :
The slave node is connected with the host node;
The host node is changed to the second management node by the first management node.
The second aspect of the embodiment of the present invention provides a kind of configuration data processing method, including:
Slave node sends the Configuration Type file of the slave node to host node, in order to which host node preservation is described standby The Configuration Type file of node, the Configuration Type text stored in the version number of the Configuration Type file of the slave node and host node The version number of part is different, and the Configuration Type file includes configuration data, the version number and the Configuration Type file one One correspondence;
When the value of configuration data in the Configuration Type file of the slave node, having the first title is by the first numerical value quilt When being revised as second value, the slave node sends first title and the second value to the host node, to cause First title and the second value are correspondingly stored in presetting database by the host node, and the host node receives described standby The configuration data value that node is sent obtains message, and the configuration data is in the Configuration Type file of the slave node, had The configuration data of second title, the configuration data value obtain the version for the Configuration Type file that the slave node is carried in message Number;And cause the host node is inquired about from the presetting database to whether there is second title;
If it is, the slave node receives numerical value corresponding to second title that the host node is sent;
If not, the host node then inquires about target Configuration Type file, the version number of the target Configuration Type file It is identical with the version number of the Configuration Type file of the slave node;Then the slave node is received in the target Configuration Type file , numerical value corresponding to second title.
In the first implementation of the second aspect of the embodiment of the present invention, described in the slave node to host node transmission The Configuration Type file of slave node includes:
The version number of the Configuration Type file of the host node and the configuration class of the slave node are determined when the slave node After version number's difference of type file, the slave node sends the Configuration Type file of the slave node to host node.
In second of implementation of the second aspect of the embodiment of the present invention, the Configuration Type text of the host node is determined The version number of the part detailed process different from the version number of the Configuration Type file of the slave node includes:
The slave node receives the version number of the Configuration Type file of the host node;
The version number for the Configuration Type file that the slave node passes through the slave node and the configuration of the host node The version number of type file, it is determined that both are different.
In the third implementation of the second aspect of the embodiment of the present invention, described in the slave node to host node transmission The Configuration Type file of slave node includes:
The slave node sends the slave node according to the Configuration Type file request message received to the host node Configuration Type file, the configuration file request message determines the Configuration Type file of the host node by the host node Version number after version number's difference of the Configuration Type file of the slave node with sending.
The third aspect of the embodiment of the present invention provides a kind of host node, including:
First receiving module, for receiving the Configuration Type file of slave node, the Configuration Type file of the slave node The version number of Configuration Type file of the version number from being stored in the host node is different, and the Configuration Type file includes configuration Data, the version number correspond with the Configuration Type file;
First memory module, for preserving the Configuration Type file of the slave node;
Second receiving module, for receiving configuration number that the slave node is sent, that there is the first title and second value According to, the configuration data, the value of configuration data in the Configuration Type file of the slave node, having the first title is by the Sent when one numerical value is modified to the second value;
Second memory module, for first title and the second value to be correspondingly stored in presetting database;
3rd receiving module, message, the configuration data are obtained for receiving the configuration data value that the slave node is sent For configuration data in the Configuration Type file of the slave node, having the second title, the configuration data value obtains message The version number of the middle Configuration Type file for carrying the slave node;
Enquiry module, for from the presetting database inquiry whether there is second title, if it is, by institute Numerical value corresponding to stating the second title is sent to the slave node, if it is not, then inquiry target Configuration Type file, the target are matched somebody with somebody It is identical to put the version number of the version number of type file and the Configuration Type file of the slave node, by target Configuration Type text Numerical value corresponding in part, described second title is sent to the slave node.
In the first implementation of the third aspect of the embodiment of the present invention, in addition to:
First sending module, for receive the slave node in first receiving module Configuration Type file before, When meeting preparatory condition, the version number of the Configuration Type file of the host node is sent to the slave node.
In second of implementation of the third aspect of the embodiment of the present invention, in addition to:
First determining module, the version of the Configuration Type file for when meeting preparatory condition, obtaining the slave node Number, and by comparing, determine version number and the Configuration Type file of the host node of the Configuration Type file of the slave node Version number it is different;
Second sending module, the version of the Configuration Type file for determining the host node when first determining module Number with after version number's difference of the Configuration Type file of the slave node, to the slave node send configuration type file request disappear Breath.
The fourth aspect of the embodiment of the present invention provides a kind of slave node, including:
4th sending module, for sending the Configuration Type file of the slave node to host node, in order to the main section Point preserves the Configuration Type file of the slave node, is stored in the version number of the Configuration Type file of the slave node and host node Configuration Type file version number it is different, the Configuration Type file includes configuration data, and the version number matches somebody with somebody with described Put type file one-to-one corresponding;
5th sending module, for when configuration number in the Configuration Type file of the slave node, that there is the first title According to value the second value is modified to by the first numerical value when, send first title and the second number to the host node Value, to cause the host node to be correspondingly stored in the first title and the second value in presetting database, the host node Receive the configuration data value that the slave node is sent and obtain message, the configuration data is the Configuration Type file of the slave node In, configuration data that there is the second title, the configuration data value obtains the Configuration Type that the slave node is carried in message The version number of file;And cause the host node is inquired about from the presetting database to whether there is second title;If It is that the slave node receives numerical value corresponding to second title that the host node is sent;If not, the host node is then looked into Ask target Configuration Type file, the version number of the target Configuration Type file and the version of the Configuration Type file of the slave node This number identical;Then the slave node receives numerical value corresponding in the target Configuration Type file, described second title.
In the first implementation of the fourth aspect of the embodiment of the present invention, the standby section is sent to host node described In terms of the Configuration Type file of point, the 4th sending module is specifically used for:
When it is determined that the host node Configuration Type file version number and the slave node Configuration Type file version After this number difference, the Configuration Type file of the slave node is sent to host node.
In second of implementation of the fourth aspect of the embodiment of the present invention, in addition to:
Second determining module, the version number of the Configuration Type file for receiving the host node, and by comparing, it is determined that The version number of the Configuration Type file of the slave node is different from the version number of the Configuration Type file of the host node.
In the third implementation of the fourth aspect of the embodiment of the present invention, the standby section is sent to host node described In terms of the Configuration Type file of point, the 4th sending module is specifically used for:
According to the Configuration Type file request message received, to the Configuration Type of the host node transmission slave node File, the configuration file request message are determined the version number and institute of the Configuration Type file of the host node by the host node Sent after stating version number's difference of the Configuration Type file of slave node.
Configuration data processing method and device provided in an embodiment of the present invention, because host node receives and preserves slave node Configuration Type file, and the Configuration Type file stored in the version number of the Configuration Type file of the slave node and host node Version number is different, therefore, in host node can compatible different editions Configuration Type file because slave node after upgrading is matched somebody with somebody It can be changed before putting version number's relatively upgrading of type file, so, the Configuration Type file of the slave node after upgrading can quilt It is saved in host node, therefore, in host node both includes the Configuration Type file of slave node not upgraded, after including upgrading again The Configuration Type file of slave node, so as to support the slave node before upgrading and after upgrading to carry out the operation of business, institute simultaneously With, when system is upgraded, it can first upgrade a part of slave node, and the slave node not upgraded by another part is run Business, business is then continued to run with by the slave node after upgrading, then upgrade remaining slave node, it is seen then that described in the present embodiment Method and device, also can be that user continues offer service when group system is upgraded.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of the application scenarios of disclosed embodiment of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of configuration data processing method disclosed in the embodiment of the present invention;
Fig. 3 is the flow chart of another configuration data processing method disclosed in the embodiment of the present invention;
Fig. 4 is the flow chart of another configuration data processing method disclosed in the embodiment of the present invention;
Fig. 5 is the flow chart of another configuration data processing method disclosed in the embodiment of the present invention;
Fig. 6 is a kind of structural representation of host node disclosed in the embodiment of the present invention;
Fig. 7 is the structural representation of another host node disclosed in the embodiment of the present invention;
Fig. 8 is a kind of structural representation of slave node disclosed in the embodiment of the present invention;
Fig. 9 is the structural representation of another host node disclosed in the embodiment of the present invention;
Figure 10 is the structural representation of another slave node disclosed in the embodiment of the present invention.
Embodiment
The embodiment of the present invention can apply to group system, as shown in figure 1, the group system can include management node And ordinary node, the quantity of management node can be one, or two or more, one in the management node The individual host node as group system, other management nodes are then slave node, slave node of the ordinary node as group system.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
A kind of configuration data processing method disclosed in the embodiment of the present invention, as shown in Fig. 2 including:
S201:Slave node sends the Configuration Type file of the slave node to host node;
In the present embodiment, slave node can also receive host node actively to host node send configuration type file The backward host node send configuration type file of request.
Wherein, the version of the Configuration Type file stored in the version number of the Configuration Type file of the slave node and host node This number difference, the Configuration Type file include configuration data, and the version number corresponds with the Configuration Type file.
S202:The host node preserves the Configuration Type file of the slave node.
Generally, configuration data is stored with each node of group system, each configuration data is typically by title sum Value composition.In the present embodiment, the configuration data of node is included in Configuration Type file, and Configuration Type file has with it one by one Corresponding version number, because configuration data is made up of title and numerical value, when the configuration that two Configuration Type files include The title of data is incomplete same, or, the numerical value of the configuration data of same name is different, or, the title of configuration data is not When the numerical value of identical and same name configuration data is also different, the version number of Configuration Type file is different.For example, match somebody with somebody Putting type file A includes two fields of entitled a and entitled b, and the values of a fields is that the value of 1, b fields is 2, Configuration Type File A version number is V1, and Configuration Type file B includes two fields of entitled a and entitled b, and the value of a fields is 1, b words The value of section is 3, and Configuration Type file B version number is V2, and Configuration Type file C includes entitled a, entitled b and entitled c Three fields, Configuration Type file C version number is V3, and V1, V2 and V3 are mutually different version number.
In the prior art, the configuration data of a version is only stored with host node, therefore, in order to meet that main-standby nodes are matched somebody with somebody The demand of carry out business is closed, the version of the configuration data in host node and slave node must be identical, so, when cluster is upgraded When, whole nodes in cluster must be restarted simultaneously, to complete the loading of identical version configuration data.Thus, cluster system When system is upgraded, it is necessary to which pause provides the user service.
And the configuration data processing method described in the present embodiment so that when carrying out group system upgrading, can first upgrade A part of node, business is run by another part node, after the completion for the treatment of a part of node upgrading, then this part completed by upgrading Node continues to run with business, and remaining node is upgraded, after slave node upgrades, although the wherein version number of configuration data It is different from before upgrading, but can also be saved in host node, therefore, completing the node of upgrading can still interact with host node, To run business, therefore, the method described in the present embodiment, the pause when system is upgraded can be avoided to provide the user service The defects of.
For example, as shown in Figure 1, the version number of the configuration data of system is V1.0 before upgrading, when being upgraded, the One slave node first upgrades, the second slave node operation business, after the completion of the upgrading of the first slave node, the version of its Configuration Type file Number it is V2.0.
On the basis of existing technology, because host node is not upgraded, configuration data is still V1.0 versions, so, Business can not be run by completing the slave node of upgrading, therefore, still not be avoided that the interruption of user service.And described in the present embodiment Method, version number are that V2.0 Configuration Type file can be saved in host node, and therefore, completing the slave node of upgrading can connect Business is run for the slave node not upgraded, so as to continue to provide the user service.
Another configuration data processing method disclosed in the embodiment of the present invention, as shown in figure 3, including:
S301:When the slave node is connected with the host node, the host node sends the master to the slave node The version number of the Configuration Type file of node;
Host node can actively send the version number of the Configuration Type file of itself to slave node, can also respond slave node The version number of transmission obtains request, and the version number of the Configuration Type file of itself is sent to slave node.
S302:The version number for the Configuration Type file that the slave node passes through the slave node and the host node The version number of Configuration Type file determines that both are different;
S303:The slave node sends the Configuration Type file of the slave node to the host node;
S304:Host node preserves the Configuration Type file of the slave node.
In embodiment shown in Fig. 3, by slave node by compare determine host node Configuration Type file version number with The version number of the Configuration Type file of slave node is different, in addition, this process can also be performed by host node, as shown in figure 4, this Another configuration data processing method disclosed in inventive embodiments, including:
S401:When the host node is changed to the second management node by the first management node, the host node obtains institute State the version number of the Configuration Type file of slave node;
Specifically, host node can actively obtain the version number of the Configuration Type file of slave node to slave node, can also Receive the version number of the Configuration Type file for the slave node that slave node is sent.
S402:The version number of the Configuration Type file of the host node slave node and the configuration of the host node The version number of type file, it is determined that both are different;
S403:The host node is to the slave node send configuration type file request message;
S404:According to the Configuration Type file request message, to the configuration class of the host node transmission slave node Type file;
S405:The host node preserves the Configuration Type file of the slave node.
Method shown in Fig. 4 or Fig. 5, in the version number and institute by comparing the Configuration Type file for determining the slave node After the version number's difference for stating the Configuration Type file of host node, the Configuration Type file of slave node is saved in host node, because This causes the Configuration Type file of compatible different editions number in host node, so as to support the slave node not upgraded after upgrading and Operation business, so, it can also provide the user service in upgrading.
A kind of configuration data processing method disclosed in the embodiment of the present invention, as shown in figure 5, including:
S501:Slave node sends the Configuration Type file of the slave node to host node;
S502:The host node preserves the Configuration Type file of the slave node;
S503:When the value of configuration data in the Configuration Type file of the slave node, having the first title is by first When numerical value is modified to the second value, the slave node sends first title and second number to the host node Value;
S504:First title and the second value are correspondingly stored in presetting database by the host node.
In the present embodiment, a preservation amended numerical value of configuration parameter in the database of host node, rather than slave node are complete Portion's configuration data, thus it is possible to save the memory space of host node.
Alternatively, in the present embodiment, can also comprise the following steps:
S505:The host node receives the configuration data value that the slave node is sent and obtains message, and the configuration data is Configuration data in the Configuration Type file of the slave node, having the second title, the configuration data value are obtained in message Carry the version number of the Configuration Type file of the slave node;
S506:The host node is inquired about from the presetting database whether there is second title;
S507:If it is, numerical value corresponding to second title is then sent to the slave node by the host node;
Wherein, the first title can be with identical with the second title, can also be different.
S508:If not, the host node then inquires about target Configuration Type file, the version of the target Configuration Type file This number identical with the version number of the Configuration Type file of the slave node;
S509:Numerical value corresponding to second title in the target Configuration Type file, described is sent to the standby section Point.
In the present embodiment, because the numerical value of the configuration data for modification stored in presetting database in host node, because This, first inquires about presetting database, it is possible to increase the efficiency of feedback.
It should be noted that in the above-described embodiments, alternatively, version number can carry to be sent in Configuration Type file To opposite end, version number directly can also be sent to opposite end, do not limited here.
A kind of configuration data processing method disclosed in the embodiment of the present invention, including:
A:Host node receives the Configuration Type file of slave node, the version number and institute of the Configuration Type file of the slave node Version number's difference of the Configuration Type file stored in host node is stated, the Configuration Type file includes configuration data, described Version number corresponds with the Configuration Type file;
B:The host node preserves the Configuration Type file of the slave node.
Optionally, in A:Before host node receives the Configuration Type file of slave node, in addition to:
A1:When meeting preparatory condition, the host node sends the Configuration Type text of the host node to the slave node The version number of part;
Alternatively, preparatory condition can be comprised at least with the next item down:The slave node is connected with the host node;Or The host node is changed to the second management node by the first management node.
Or in A:Before host node receives the Configuration Type file of slave node, in addition to:
A2:The version number of the Configuration Type file of the host node and the configuration of the slave node are determined when the host node After version number's difference of type file, the host node is to the slave node send configuration type file request message.
Alternatively, in the embodiment shown in fig. 1, can also comprise the following steps:
A3:The host node receives configuration data that the slave node is sent, with the first title and second value, institute The value of the configuration data in the Configuration Type file of the slave node, that there is the first title of configuration data is stated by the first numerical value Sent when being modified to the second value;
B3:First title and the second value are correspondingly stored in presetting database by the host node
C3:The host node receives the configuration data value that the slave node is sent and obtains message, and the configuration data is institute State configuration data in the Configuration Type file of slave node, that there is the second title;
D3:The host node is inquired about from the presetting database whether there is second title;
E3:If it is, numerical value corresponding to second title is then sent to the slave node by the host node;
F3:If not, the host node then inquires about target Configuration Type file, the version of the target Configuration Type file It is number identical with the version number of the Configuration Type file of the slave node;
G3:Numerical value corresponding to second title in the target Configuration Type file, described is sent to the slave node.
The embodiment of the invention also discloses a kind of configuration data processing method, applied to the slave node in group system, bag Include:
Slave node sends the Configuration Type file of the slave node to host node, in order to which host node preservation is described standby The Configuration Type file of node.Wherein, the configuration stored in the version number of the Configuration Type file of the slave node and host node The version number of type file is different, and the Configuration Type file includes configuration data, the version number and the Configuration Type File corresponds.
Alternatively, in the present embodiment, slave node sends one kind of the Configuration Type file of the slave node to host node Specific implementation is:When the slave node determines the version number of the Configuration Type file of the host node and the slave node After version number's difference of Configuration Type file, the slave node sends the Configuration Type file of the slave node to host node.
Another specific implementation that slave node sends the Configuration Type file of the slave node to host node is:Receive The Configuration Type file request message that the host node is sent, the configuration file request message is as described in determining the host node The version number of the Configuration Type file of host node with being sent after version number's difference of the Configuration Type file of the slave node, and according to According to the Configuration Type file request message, to the Configuration Type file of the host node transmission slave node.
Alternatively, in the present embodiment, can also include:When it is in the Configuration Type file of the slave node, have the When the value of the configuration data of one title is modified to the second value by the first numerical value, the slave node is sent out to the host node Send first title and the second value.
The embodiment of the invention also discloses a kind of host node, as shown in fig. 6, including:
First receiving module 601, for receiving the Configuration Type file of slave node, the Configuration Type file of the slave node Configuration Type file of the version number from being stored in the host node version number it is different, the Configuration Type file includes matching somebody with somebody Data are put, the version number corresponds with the Configuration Type file;
First memory module 602, for preserving the Configuration Type file of the slave node.
The Configuration Type file that can receive slave node of host node described in the present embodiment, and by the Configuration Type of node File preserves, because the version number of the Configuration Type file of slave node and the version of the Configuration Type file stored in the host node This number difference, thus in host node described in the present embodiment can compatible different editions Configuration Type file, so as to support have There is the operation of the slave node of the configuration data of different editions, so that group system can be incessantly in escalation process User provides service.
Alternatively, the host node described in the present embodiment, as shown in fig. 6, can also include:First sending module 603, is used for Before the Configuration Type file that first receiving module receives the slave node, when meeting preparatory condition, to described standby Node sends the version number of the Configuration Type file of the host node.
Or alternatively, the host node described in the present embodiment, as shown in fig. 7, except the first receiving module 701 and first Outside memory module 702, it can also include:
First determining module 703, the version of the Configuration Type file for when meeting preparatory condition, obtaining the slave node This number, and by comparing, determine version number and the Configuration Type text of the host node of the Configuration Type file of the slave node The version number of part is different.
Second sending module 704, for determining when first determining module Configuration Type file of the host node Version number to the slave node send configuration type file with after version number's difference of the Configuration Type file of the slave node, asking Seek message.
Alternatively, the host node described in the present embodiment, can also include:
Second receiving module 705, for receiving configuration that the slave node is sent, that there is the first title and second value Data, the configuration data in the Configuration Type file of the slave node, have the first title configuration data value by Sent when first numerical value is modified to the second value;
Second memory module 706, first title and the second value are correspondingly stored in for the host node In presetting database;
3rd receiving module 707, message, the configuration number are obtained for receiving the configuration data value that the slave node is sent According to configuration data in the Configuration Type file for the slave node, having the second title, the configuration data value, which obtains, to disappear The version number of the Configuration Type file of the slave node is carried in breath;
Enquiry module 708, it whether there is second title for being inquired about from the presetting database, if it is, Numerical value corresponding to second title is sent to the slave node, if it is not, then inquiry target Configuration Type file, the mesh Standard configuration puts the version number of type file and the version number of the Configuration Type file of the slave node is identical, and the target is configured into class Numerical value corresponding in type file, described second title is sent to the slave node.
The embodiment of the invention also discloses a kind of slave node, including:
4th sending module, for sending the Configuration Type file of the slave node to host node, in order to the main section Point preserves the Configuration Type file of the slave node, is stored in the version number of the Configuration Type file of the slave node and host node Configuration Type file version number it is different, the Configuration Type file includes configuration data, and the version number matches somebody with somebody with described Put type file one-to-one corresponding.
Alternatively, described in terms of host node sends the Configuration Type file of the slave node, the described 4th sends mould Block is specifically used for:
According to the Configuration Type file request message received, to the Configuration Type of the host node transmission slave node File, the configuration file request message are determined the version number and institute of the Configuration Type file of the host node by the host node Sent after stating version number's difference of the Configuration Type file of slave node.
Alternatively, a kind of specific implementation for the slave node being illustrated in figure 8 described in the present embodiment:
Second determining module 801, the version number of the Configuration Type file for receiving the host node, and by comparing, Determine that the version number of the version number of the Configuration Type file of the slave node and the Configuration Type file of the host node is different.
4th sending module 802, for the version number when the Configuration Type file for determining the host node and the standby section After version number's difference of the Configuration Type file of point, the slave node sends the Configuration Type text of the slave node to host node Part.
5th sending module 803, for when configuration in the Configuration Type file of the slave node, that there is the first title When the value of data is modified to the second value by the first numerical value, first title and described the are sent to the host node Two numerical value.
The embodiment of the invention also discloses a kind of host node, as shown in figure 9, including:
First receiver 901, for receiving the Configuration Type file of slave node, the Configuration Type file of the slave node The version number of Configuration Type file of the version number from being stored in the host node is different, and the Configuration Type file includes configuration Data, the version number correspond with the Configuration Type file;
First processor 902, for preserving the Configuration Type file of the slave node into storage medium 803;
First storage medium 903 can be also used for storing the program in first processor, and first processor fortune Caused data during row;
First receiver, first processor and the first storage medium can be carried out by the first data/address bus 904 Communication.
Alternatively, the host node in the present embodiment can also include:First transmitter, for receiving institute in the host node Before the Configuration Type file for stating slave node, when meeting preparatory condition, the configuration of the host node is sent to the slave node The version number of type file, or, when the host node determine the version number of the Configuration Type file of the host node with it is described After version number's difference of the Configuration Type file of slave node, to the slave node send configuration type file request message.
Alternatively, the first processor in the present embodiment can be also used for:When meeting preparatory condition, the standby section is obtained The version number of the Configuration Type file of point, and by comparing, determine the version number and institute of the Configuration Type file of the slave node The version number for stating the Configuration Type file of host node is different.
Alternatively, the first receiver in the present embodiment can be also used for:Receive it is that the slave node is sent, have first The configuration data of title and second value, the configuration data in the Configuration Type file of the slave node, have first Sent when the value of the configuration data of title is modified to the second value by the first numerical value;The first processor can be with For:First title and the second value are correspondingly stored in presetting database.
Alternatively, the first receiver in the present embodiment can be also used for:Receive the configuration data that the slave node is sent Value obtains message, and the configuration data is configuration data in the Configuration Type file of the slave node, having the second title, The configuration data value obtains the version number for the Configuration Type file that the slave node is carried in message;The first processor is also It can be used for:Inquiry whether there is second title from the presetting database, if it is, by second title pair The numerical value answered is sent to the slave node, if it is not, then inquiry target Configuration Type file, the target Configuration Type file Version number is identical with the version number of the Configuration Type file of the slave node, will be in the target Configuration Type file, described Numerical value corresponding to second title is sent to the slave node.
The embodiment of the invention also discloses a kind of slave node, as shown in Figure 10, including:
Second transmitter 1001, for sending the Configuration Type file of the slave node to host node, in order to the master Node preserves the Configuration Type file of the slave node, is deposited in the version number of the Configuration Type file of the slave node and host node The version number of the Configuration Type file of storage is different, and the Configuration Type file includes configuration data, the version number with it is described Configuration Type file corresponds;
Second storage medium 1002, second transmitter and the second storage medium pass through the phase of the second data/address bus 1003 Even.
Alternatively, in terms of the Configuration Type file of the slave node is sent to host node, second transmitter can be with It is specifically used for:According to the Configuration Type file request message received, to the configuration class of the host node transmission slave node Type file, the configuration file request message determined by the host node version number of the Configuration Type file of the host node with Sent after version number's difference of the Configuration Type file of the slave node.
Alternatively, second transmitter can be also used for:When it is in the Configuration Type file of the slave node, have the When the value of the configuration data of one title is modified to the second value by the first numerical value, described first is sent to the host node Title and the second value.
Alternatively, can also include:
Second processor, the version number of the Configuration Type file for receiving the host node, and by comparing, determine institute The version number for stating the version number of the Configuration Type file of slave node and the Configuration Type file of the host node is different.
In terms of the Configuration Type file of the slave node is sent to host node, second transmitter can be used specifically In:When it is determined that the host node Configuration Type file version number and the slave node Configuration Type file version number not With after, the Configuration Type file of the slave node is sent to host node.
The second transmitter, the second storage medium and second processor described in the present embodiment can pass through the second data/address bus It is connected.
If the function described in the present embodiment method is realized in the form of SFU software functional unit and is used as independent product pin Sell or in use, can be stored in a computing device read/write memory medium.Based on such understanding, the embodiment of the present invention The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, and this is soft Part product is stored in a storage medium, including some instructions to cause a computing device (can be personal computer, Server, mobile computing device or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention Suddenly.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), deposit at random Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be with it is other The difference of embodiment, between each embodiment same or similar part mutually referring to.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (16)

  1. A kind of 1. configuration data processing method, it is characterised in that including:
    Host node receives the Configuration Type file of slave node, the version number of the Configuration Type file of the slave node and the main section The version number of the Configuration Type file stored in point is different, and the Configuration Type file includes configuration data, the version number Corresponded with the Configuration Type file;
    The host node preserves the Configuration Type file of the slave node;
    The host node receives configuration data that the slave node is sent, with the first title and second value, the configuration The value of data configuration data in the Configuration Type file of the slave node, having the first title is changed by the first numerical value To be sent during the second value;
    First title and the second value are correspondingly stored in presetting database by the host node;
    The host node receives the configuration data value that the slave node is sent and obtains message, and the configuration data is the slave node Configuration Type file in, configuration data that there is the second title, the configuration data value obtain carried in message it is described standby The version number of the Configuration Type file of node;
    The host node is inquired about from the presetting database whether there is second title;
    If it is, numerical value corresponding to second title is then sent to the slave node by the host node;
    If not, the host node then inquires about target Configuration Type file, the version number and institute of the target Configuration Type file The version number for stating the Configuration Type file of slave node is identical;
    Numerical value corresponding to second title in the target Configuration Type file, described is sent to the slave node.
  2. 2. according to the method for claim 1, it is characterised in that receive the Configuration Type of the slave node in the host node Before file, in addition to:
    When meeting preparatory condition, the host node sends the version of the Configuration Type file of the host node to the slave node Number.
  3. 3. according to the method for claim 1, it is characterised in that receive the Configuration Type file of slave node in the host node Before, in addition to:
    Version number and the Configuration Type text of the slave node of the Configuration Type file of the host node are determined when the host node After version number's difference of part, the host node is to the slave node send configuration type file request message.
  4. 4. according to the method for claim 3, it is characterised in that the host node determines the Configuration Type text of the host node The version number of the part detailed process different from the version number of the Configuration Type file of the slave node includes:
    When meeting preparatory condition, the host node obtains the version number of the Configuration Type file of the slave node;
    The host node determines version number and the configuration of the host node of the Configuration Type file of the slave node by comparing The version number of type file is different.
  5. 5. the method according to claim 2 or 4, it is characterised in that the preparatory condition is comprised at least with the next item down:
    The slave node is connected with the host node;
    The host node is changed to the second management node by the first management node.
  6. A kind of 6. configuration data processing method, it is characterised in that including:
    Slave node sends the Configuration Type file of the slave node to host node, in order to which the host node preserves the slave node Configuration Type file, the Configuration Type file stored in the version number of the Configuration Type file of the slave node and host node Version number is different, and the Configuration Type file includes configuration data, a pair of the version number and the Configuration Type file 1 Should;
    When the value of configuration data in the Configuration Type file of the slave node, having the first title is changed by the first numerical value For second value when, the slave node sends first title and the second value to the host node, described to cause First title and the second value are correspondingly stored in presetting database by host node, and the host node receives the slave node The configuration data value of transmission obtains message, and the configuration data is in the Configuration Type file of the slave node, has second The configuration data of title, the configuration data value obtain the version number for the Configuration Type file that the slave node is carried in message; And cause the host node is inquired about from the presetting database to whether there is second title;
    If it is, the slave node receives numerical value corresponding to second title that the host node is sent;
    If not, the host node then inquires about target Configuration Type file, the version number and institute of the target Configuration Type file The version number for stating the Configuration Type file of slave node is identical;Then the slave node receive it is in the target Configuration Type file, Numerical value corresponding to second title.
  7. 7. according to the method for claim 6, it is characterised in that the slave node sends matching somebody with somebody for the slave node to host node Putting type file includes:
    Version number and the Configuration Type text of the slave node of the Configuration Type file of the host node are determined when the slave node After version number's difference of part, the slave node sends the Configuration Type file of the slave node to host node.
  8. 8. according to the method for claim 7, it is characterised in that determine the version number of the Configuration Type file of the host node The detailed processes different from the version number of the Configuration Type file of the slave node include:
    The slave node receives the version number of the Configuration Type file of the host node;
    The version number for the Configuration Type file that the slave node passes through the slave node and the Configuration Type of the host node The version number of file, it is determined that both are different.
  9. 9. according to the method for claim 6, it is characterised in that the slave node sends matching somebody with somebody for the slave node to host node Putting type file includes:
    The slave node sends matching somebody with somebody for the slave node according to the Configuration Type file request message received to the host node Type file is put, the Configuration Type file request message is determined the Configuration Type file of the host node by the host node Version number after version number's difference of the Configuration Type file of the slave node with sending.
  10. A kind of 10. host node, it is characterised in that including:
    First receiving module, for receiving the Configuration Type file of slave node, the version of the Configuration Type file of the slave node The version number of Configuration Type file number from being stored in the host node is different, and the Configuration Type file includes configuring number According to the version number corresponds with the Configuration Type file;
    First memory module, for preserving the Configuration Type file of the slave node;
    Second receiving module, for receiving configuration data that the slave node is sent, with the first title and second value, institute The value of the configuration data in the Configuration Type file of the slave node, that there is the first title of configuration data is stated by the first numerical value Sent when being modified to the second value;
    Second memory module, for first title and the second value to be correspondingly stored in presetting database;
    3rd receiving module, message is obtained for receiving the configuration data value that the slave node is sent, the configuration data is institute Configuration data in the Configuration Type file of slave node, that there is the second title is stated, the configuration data value obtains to be taken in message The version number of Configuration Type file with the slave node;
    Enquiry module, for from the presetting database inquiry whether there is second title, if it is, by described the Numerical value corresponding to two titles is sent to the slave node, if it is not, then inquiry target Configuration Type file, the target configure class The version number of type file is identical with the version number of the Configuration Type file of the slave node, by the target Configuration Type file , numerical value is sent to the slave node corresponding to second title.
  11. 11. host node according to claim 10, it is characterised in that also include:
    First sending module, for receive the slave node in first receiving module Configuration Type file before, when full During sufficient preparatory condition, the version number of the Configuration Type file of the host node is sent to the slave node.
  12. 12. host node according to claim 10, it is characterised in that also include:
    First determining module, the version number of the Configuration Type file for when meeting preparatory condition, obtaining the slave node, and By comparing, version number and the version of the Configuration Type file of the host node of the Configuration Type file of the slave node are determined Number difference;
    Second sending module, for determined when first determining module host node Configuration Type file version number with After version number's difference of the Configuration Type file of the slave node, to the slave node send configuration type file request message.
  13. A kind of 13. slave node, it is characterised in that including:
    4th sending module, for sending the Configuration Type file of the slave node to host node, in order to which the host node is protected The Configuration Type file of the slave node is deposited, what is stored in the version number of the Configuration Type file of the slave node and host node matches somebody with somebody It is different to put the version number of type file, the Configuration Type file includes configuration data, the version number and the configuration class Type file corresponds;
    5th sending module, for when configuration data in the Configuration Type file of the slave node, that there is the first title When value is modified to second value by the first numerical value, first title and the second value are sent to the host node, with So that the first title and the second value are correspondingly stored in presetting database by the host node, the host node receives institute State slave node transmission configuration data value obtain message, the configuration data for the slave node Configuration Type file in, Configuration data with the second title, the configuration data value obtain Configuration Type file that the slave node is carried in message Version number;And cause the host node is inquired about from the presetting database to whether there is second title;It is if it is, described Slave node receives numerical value corresponding to second title that the host node is sent;If not, the host node then inquires about target Configuration Type file, the version number of the target Configuration Type file and version number's phase of the Configuration Type file of the slave node Together;Then the slave node receives numerical value corresponding in the target Configuration Type file, described second title.
  14. 14. slave node according to claim 13, it is characterised in that send matching somebody with somebody for the slave node to host node described In terms of putting type file, the 4th sending module is specifically used for:
    When it is determined that the version number and the version number of the Configuration Type file of the slave node of the Configuration Type file of the host node After difference, the Configuration Type file of the slave node is sent to host node.
  15. 15. slave node according to claim 14, it is characterised in that also include:
    Second determining module, the version number of the Configuration Type file for receiving the host node, and by comparing, it is determined that described The version number of the Configuration Type file of slave node is different from the version number of the Configuration Type file of the host node.
  16. 16. slave node according to claim 13, it is characterised in that send matching somebody with somebody for the slave node to host node described In terms of putting type file, the 4th sending module is specifically used for:
    According to the Configuration Type file request message received, the Configuration Type that the slave node is sent to the host node is literary Part, the Configuration Type file request message determined by the host node version number of the Configuration Type file of the host node with Sent after version number's difference of the Configuration Type file of the slave node.
CN201310528909.XA 2013-10-30 2013-10-30 A kind of configuration data processing method and device Active CN103580918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310528909.XA CN103580918B (en) 2013-10-30 2013-10-30 A kind of configuration data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310528909.XA CN103580918B (en) 2013-10-30 2013-10-30 A kind of configuration data processing method and device

Publications (2)

Publication Number Publication Date
CN103580918A CN103580918A (en) 2014-02-12
CN103580918B true CN103580918B (en) 2017-12-15

Family

ID=50051899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310528909.XA Active CN103580918B (en) 2013-10-30 2013-10-30 A kind of configuration data processing method and device

Country Status (1)

Country Link
CN (1) CN103580918B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320466B (en) * 2014-10-29 2017-12-01 侯荣涛 A kind of communication system subsystem office data storage organization and office data update method
CN105791337B (en) * 2014-12-19 2019-11-12 华为数字技术(苏州)有限公司 A kind of upgrade method, equipment and group system
CN105005487B (en) * 2015-06-29 2018-06-22 清华大学 A kind of High-Performance Computing Cluster operating system online upgrading method of continuous service
CN106803790B (en) * 2016-12-06 2019-09-17 浙江大华技术股份有限公司 A kind of upgrade control method and device of group system
CN108345462B (en) * 2018-01-11 2020-12-22 华为技术有限公司 Method and device for upgrading components
CN111752488B (en) * 2020-06-30 2022-11-01 重庆紫光华山智安科技有限公司 Management method and device of storage cluster, management node and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795392A (en) * 2009-12-25 2010-08-04 深圳市同洲电子股份有限公司 Application data-downloading method, digital television receiving terminal and system
CN101888407A (en) * 2010-06-11 2010-11-17 广东宝莱特医用科技股份有限公司 Method for configuration interactive synchronization between independently used module and module integrating device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030023898A1 (en) * 2001-07-16 2003-01-30 Jacobs Dean Bernard Layered architecture for data replication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795392A (en) * 2009-12-25 2010-08-04 深圳市同洲电子股份有限公司 Application data-downloading method, digital television receiving terminal and system
CN101888407A (en) * 2010-06-11 2010-11-17 广东宝莱特医用科技股份有限公司 Method for configuration interactive synchronization between independently used module and module integrating device

Also Published As

Publication number Publication date
CN103580918A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
CN103580918B (en) A kind of configuration data processing method and device
US11296940B2 (en) Centralized configuration data in a distributed file system
CN107911249B (en) Method, device and equipment for sending command line of network equipment
CN105760184B (en) A kind of method and apparatus of charging assembly
CN106933871A (en) Short linking processing method, device and short linked server
US8494888B2 (en) Offline modification of business data
US8959504B2 (en) Update scanning
CN103248711A (en) File uploading method and server
CN105450759A (en) System mirror image management method and device
JP6975153B2 (en) Data storage service processing method and equipment
US9401957B2 (en) System and method for synchronization between servers
CN102521073B (en) Increasing database availability during fault recovery
CN107977223A (en) One kind configuration compliance check method and device
CN103812945A (en) Method for upgrading data and central server
CN107067559A (en) A kind of method and apparatus for realizing charging pile interconnection charging
CN102135895A (en) System upgrading method and system
CN105573788B (en) The method and apparatus of patch processing and the method and apparatus for generating patch
CN106227541A (en) A kind of program updates download process method and mobile terminal
CN104808953B (en) Control the method, device and mobile terminal of data storage
CN103078805B (en) Make the system and method reading the expansion of performance support level of Zookeeper
CN104267985A (en) Software loading method and device
CN106293851A (en) A kind of firmware upgrade method and equipment
CN107659652A (en) A kind of method and device of cloud backup
US10212036B2 (en) Performance testing method, performance testing apparatus performing the same and storage medium storing the same
CN105808556A (en) Operating method for database and database engine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant