CN106357447A - Synchronizing method and device for configuration data - Google Patents

Synchronizing method and device for configuration data Download PDF

Info

Publication number
CN106357447A
CN106357447A CN201610836273.9A CN201610836273A CN106357447A CN 106357447 A CN106357447 A CN 106357447A CN 201610836273 A CN201610836273 A CN 201610836273A CN 106357447 A CN106357447 A CN 106357447A
Authority
CN
China
Prior art keywords
configuration
configuration data
server
data
application server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610836273.9A
Other languages
Chinese (zh)
Inventor
王福财
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610836273.9A priority Critical patent/CN106357447A/en
Publication of CN106357447A publication Critical patent/CN106357447A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention discloses a synchronizing method and device for configuration data. The synchronizing method for the configuration data in application servers includes: during starting, reaching the configuration data from a configuration server and loading the configuration data into cache; monitoring whether the catalog nodes of the configuration data in the configuration server is updated or not; if so, synchronizing the updated configuration data in the configuration server, and loading the updated configuration data into the cache. The synchronizing method has the advantages that each application server can receive a configuration information change notice, the latest database content can be acquired from a database and applied to a system, actions, for remodifying configuration information and restarting service instances, required by database change are reduced, and the problem of high error rate caused by the manual synchronizing of API interfaces of service instances is avoided.

Description

A kind of synchronous method of configuration data and device
Technical field
The present invention relates to communication technical field, more particularly, to a kind of synchronous method of configuration data and device.
Background technology
Application service system is most of at present adopts distributed design architecture, and distributed system preferably resolves system Performance issue, but the complexity of system but greatly improves.Up to a hundred machines are often had under normal circumstances in distributed system, A Service Instance is run in every machine.In system operation, each Service Instance is required for connecting data base.For avoiding increasing Plus data base's pressure, generally the configuration information in data base is loaded in caching or in internal memory.Because each Service Instance is Independent separate, for avoiding increasing caching pressure, need to be loaded into internal memory from configuration information.
Because number of concurrent at short notice and visit capacity increase severely, it usually needs deployment multiple stage Service Instance.Now, in clothes Configuration file is changed, by the way of restarting service resynchronisation configuration file, when Service Instance is more in pragmatic example running When, certain risk will certainly be brought.In order to solve the problems, such as to restart synchronization profile, generally adopt configuration service system, Configure required information within the system, carry out configuration after preserving configuration data synchronous.
Specifically, the open api interface (ip address and port) of each Service Instance.In synchronous configuration data, configuration clothes Business system calls the api interface of each Service Instance.Each Service Instance enter this interface when access data base and and When reading database content being loaded in example internal memory.Using safeguarding in configuration service system that each Distributed Services example opens Put the mode of api interface, not bad when application server is less, if application server is more, manually participate in additions and deletions Bring certain workload and risk when api interface, easily miss machine or ip port is wrongly write.And, adding extremely Carry out in configuration service system, it is desirable to provide the machine information of related service example, operation is very loaded down with trivial details, and underaction.
Content of the invention
The embodiment of the present invention provides a kind of synchronous method of configuration data and device, in order to solve to configure number in prior art According to synchronous when, system maintenance is difficult and the problem of complex operation.
For achieving the above object, the present invention is using following technical schemes:
According to one aspect of the present invention, provide a kind of synchronous method of configuration data, for application server, comprising:
On startup, read configuration data from configuration server and be loaded onto in caching;
Whether the directory node monitoring configuration data described in described configuration server updates;
When monitoring described directory node and updating, then the configuration data of synchronized update adding from described configuration server It is loaded onto in caching.
Further, whether the described directory node monitoring configuration data described in described configuration server updates, specifically Including:
Send registration request to described configuration server, in described registration request, carry the mark of described application server;
When monitoring the synchronization notice based on described identification feedback for the described configuration server, then judge that described directory node has Update.
Further, the configuration data that the described directory node according to renewal reads renewal from described configuration server is simultaneously After being loaded onto in caching, methods described also includes:
Determine whether the directory node continuing to monitor described configuration data according to default inspection policies;
If continuing, again send registration request to described configuration server.
According to one aspect of the present invention, provide a kind of synchronous method of configuration data, for configuration server, comprising:
According to the business configuration request of application server, configuration data needed for sending to described application server;
When detect described configuration data have data update when, update the corresponding directory node of described configuration data, and to Described application server sends synchronization notice.
Further, methods described also includes:
Receive the registration request of described application server;Wherein, carry described application server in described registration request Mark;
When described configuration data is detected and having data to update, update the corresponding directory node of described configuration data, and root Identify to corresponding transmission synchronization notice according to described.
According to one aspect of the present invention, provide a kind of synchronizer of configuration data, for application server, comprising:
Starting module, for when application server starts, reading configuration data and being loaded onto slow from configuration server In depositing;
Monitoring module, whether the directory node for monitoring configuration data described in described configuration server updates;
Synchronization module, for when described monitoring module monitors described directory node and updates, then according to from described configuration The configuration data of synchronized update being loaded onto in caching in server.
Further, described monitoring module specifically includes:
Registering unit, for sending registration request to described configuration server, carries described application in described registration request The mark of server;
Judging unit, for when monitoring the synchronization notice based on described identification feedback for the described configuration server, then judging Described directory node has renewal.
Further, described device also includes determining module, for determining whether to continue prison according to default inspection policies Control the directory node of described configuration data;
Described registering unit, is additionally operable to when described determining module continues the directory node monitoring described configuration data, then Again send registration request to described configuration server.
According to one aspect of the present invention, provide a kind of synchronizer of configuration data, for configuration server, comprising:
Sending module, for the business configuration request according to application server, joins needed for sending to described application server Put data;
Synchronization module, for when detect described configuration data have data update when, update described configuration data corresponding Directory node, and send synchronization notice to described application server.
Further, described device also includes:
Receiver module, for receiving the registration request of described application server;Wherein, described in carrying in described registration request The mark of application server;
Described synchronization module, specifically for when detect configuration data have data update when, update configuration data corresponding Directory node, and synchronization notice is sent to corresponding application server according to mark.
Beneficial effects of the present invention are as follows:
The synchronous method of configuration data provided by the present invention and device, every application server will receive configuration information and become More notify, then get up-to-date data-base content from data base and be applied to system, decrease databases comparison needs Remodify configuration information and carry out the action that Service Instance is restarted, or avoid the api of each Service Instance of Manual synchronization to connect Mouthful, reduce manpower intervention and error rate.
Brief description
Fig. 1 is the flow chart of the configuration data synchronization method in embodiment of the present invention application server;
Fig. 2 is the flow chart of the configuration data synchronization method in embodiment of the present invention configuration server;
Fig. 3 is the structural representation of application service system in one embodiment of the invention;
Fig. 4 is the structural representation of the configuration data synchronizer in embodiment of the present invention application server;
Fig. 5 is the structural representation of the configuration data synchronizer in embodiment of the present invention configuration server.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
During in order to solve configuration data synchronization in prior art, the problem of system maintenance difficulty and complex operation, the present invention Embodiment provides a kind of synchronous method of configuration data.The method passes through target section in Service Instance monitor in real time configuration server The change of point, to know whether configuration data has renewal;When there being renewal, then directly taken from configuration according to the destination node updating Direct access configuration data be loaded onto internal memory in the data base of business device.Preservation is being updated by configuration information of the present invention Afterwards, each Service Instance can voluntarily capture data Notification of Changes and load the configuration data after change to internal memory.
With specific embodiment, the technology contents of the present invention are described in detail below in conjunction with the accompanying drawings.
Embodiments provide a kind of synchronous method of configuration data, in application server, as shown in figure 1, Specifically include following steps:
Step 101, on startup, reads configuration data from configuration server and is loaded onto in caching.
Wherein, in this step, each application server runs a specific Service Instance.When user's access service When, can be distributed the request in each Service Instance by load balancing.Each Service Instance start initialization procedure in, to Configuration server sends business configuration request, and request obtains required configuration data from the data base of configuration server.
Wherein, in the data base of configuration server, the configuration data needed for each Service Instance has been pre-configured with by user, User can also configure required configuration data according to actual needs in real time.And after user updates configuration data, needs will be joined Put data syn-chronization in each Service Instance.
Step 102, in monitoring configuration server, whether the directory node of configuration data updates.
Wherein, it is provided with configuration center in configuration server, this configuration center stores configuration data in data base and corresponds to Directory node (i.e. store path).
Specifically, whether the directory node monitoring configuration data in configuration server in Service Instance updates, and specifically includes As follows:
Send registration request to the configuration center of configuration server, in this registration request, carry the mark of application server Information;
After the completion of to be registered, monitor in real time is to the synchronization notice of configuration center send configuration data, according to whether there being synchronization Notify to judge whether directory node updates.
Wherein, after in configuration server, the configuration data of data base changes, the directory node of configuration center can be entered Row modification.After the completion of to be modified, the mark of the application server according to registration sends synchronization notice to specified application server.
Wherein, in an embodiment, application server, according to the form of dirty bit in configuration center, determines in configuration Whether the heart sends synchronization notice.Specifically, after configuration center completes the renewal of destination node, can according to registration identification information according to The secondary modification corresponding flag bit of application server;The change of application server this flag bit of monitor in real time, once listen to mark When position changes, then judge that destination node has renewal.
Step 103, when monitor directory node update when, then from configuration server the configuration data of synchronized update and add It is loaded onto in caching.
Wherein, when the destination node monitoring configuration center has renewal, then after needing to obtain renewal from data base Configuration data is simultaneously loaded onto in internal memory.And when the destination node monitoring configuration center does not update, then continue monitoring until Configuration data is had to have renewal.
Further, after reading configuration data from data base and being loaded onto internal memory, the method also includes:
According to default inspection policies determine whether continue monitoring configuration data directory node:
When needing to continue monitoring, then again send registration request to the configuration center of configuration server.
When needing not continue to monitoring, then directly exit and monitor.
In the embodiment of the present invention, after completing a registration request, if monitor data having altered, it is necessary to determine whether Need to continue monitoring.That is, registration only comes into force once, when subsequently having data to update, this time registration will be lost efficacy.Application clothes Pre-set inspection policies in business device, after registration was lost efficacy, then need to judge whether that needs continue according to default inspection policies Continuous monitoring.
Wherein, default inspection policies are configured according to different services.Specifically, after obtaining configuration data, sentence Whether disconnected configuration data meets the default inspection policies continuing monitoring and stopping monitoring;When these segmentation symbols match, then execute corresponding locating Reason operates.
Illustrate, when Service Instance is for mobile phone panic buying service, configuration data is the panic buying quantity of mobile phone, then stop When the inspection policies of monitoring can be the quantity of mobile phone is detected to be changed into 0, then stop continuing monitor node;Continue the inspection of monitoring When survey strategy can increase as 100,000 for the quantity of panic buying, then need to continue monitored directory node.Here citing only lays down a definition And explanation, it is not used in the concrete restriction to the present invention.
With reference to a specific embodiment, the technology contents of the present invention are explained and illustrated.
In one embodiment of the invention, it is primarily directed to mobile phone and robs purchasing system.Generally during rushing to purchase, due in the short time Interior number of concurrent and visit capacity increase severely, and separate unit Service Instance cannot timely respond to ask, and need to dispose multiple stage Service Instance.This When, if during panic buying starts, need to preserve mobile phone model, accessory or correlated measure.
Certain risk can be brought due to restarting Service Instance, being therefore pre-configured with the data base of configuration server will The mobile phone model of panic buying and quantity.But, subsequently during panic buying, mobile phone model and correlated measure etc. need according to reality Situation is adjusted, and needs the configuration data after adjustment is synchronized in Service Instance.
When carrying out configuring synchronous, configuration information is preserved to certain long-range directory node.Then the application clothes registered The configuration information such as the mobile phone model of business device monitoring panic buying and quantity, once configuration information changes, application server can be subject to To the Notification of Changes of configuration information, from the data base of configuration server, then read mobile phone model and the quantity of renewal, that is, Panic buying service can be continued to complete according to the configuration information updating.
Understood based on above-mentioned, the synchronous method of the configuration data that the embodiment of the present invention is provided is it is not necessary in configuration data During change, updated it is only necessary to mesh in monitor in real time configuration center by the data in restarting all Service Instances and completing to service The change of mark node knows that data has renewal.So, each Service Instance directly according to change directory node from data base Configuration data after being loaded directly into changing is to internal memory.Therefore.The number of the present invention no matter application server, can ensure to carry out The synchronization of configuration data is so that configuration data is added and synchronous more flexible, simultaneously it is also ensured that Added Business person services The latest configuration data in data base can be got in time when reaching the standard grade when device.
The embodiment of the present invention additionally provides a kind of synchronous method of configuration data, in configuration server, as Fig. 2 institute Show, specifically include following steps:
Step 201, according to the business configuration request of application server, configuration data needed for sending to application server.
Configuration server includes data base and configuration center;Wherein, it has been pre-configured with needed for Service Instance in data base Configuration data.The directory node of each configuration data is stored, that is, the path storing in configuration center.
Wherein, configuration server on startup, judges whether remote directory node;If existing, directly in data The corresponding position in storehouse storage configuration data;If not existing, configuration center is needed to create remote directory node
In storage configuration data, the directory node of configuration data need to be preserved to configuration center.If there is currently no Directory node, then need configuration center to create remote directory node;If there is not corresponding directory node, directly preserve to this In directory node.
Wherein, start in specific Service Instance in application server, business configuration request can be sent.Configuration server root According to required configuration information in business configuration request, after obtaining from data base, and send to application server.
Step 202, when detect configuration data have data update when, update the corresponding directory node of configuration data, and to Application server sends synchronization notice.
In this step, whether the configuration data in configuration server Test database has renewal.
Specifically, user modification configuration data after and preserve, configuration server when detect preservation instruction after, detection number Configuration data according to change in storehouse;
When configuration data is detected and changing, then need to obtain the catalogue of the configuration center corresponding to this configuration data Node, and change the directory node of this configuration center.
Further, the method also includes:
Receive the registration request of application server;Wherein, carry the mark of application server in registration request;
When detect configuration data have data update when, update the corresponding directory node of configuration data, and according to mark to Corresponding application server sends synchronization notice.
That is, in the embodiment of the present invention, when configuration data generation renewal is detected, then registering to configuration center Application server send synchronization notice it is ensured that application server can obtain Notification of Changes in time, and read new joining in time Put data and be loaded in the middle of internal memory.
Illustrate, referring to the structural representation of Fig. 3 application service system.Wherein, client is application server (service Example).After each client is registered to configuration center (/configuration), whether monitor in real time/configuration has Change;When configuration data (config data) has renewal, also can update therewith in/configuration, at this moment each Client monitors/configuration change after, obtaining configuration data has renewal, then direct access config in data base Data simultaneously loads.
Embodiments provide a kind of synchronizer of configuration data, in application server, as shown in figure 4, Specifically include:
Starting module 41, on startup, reading configuration data and being loaded onto in caching from configuration server.
Each application server runs a specific Service Instance.When user's access service, load balancing can be passed through Distribute the request in each Service Instance.The starting module of application server start initialization procedure in, to configuration service Device sends business configuration request, and request obtains required configuration data from the data base of configuration server.
Wherein, in the data base of configuration server, the configuration data needed for each Service Instance has been pre-configured with by user, User can also configure required configuration data according to actual needs in real time.And after user updates configuration data, needs will be joined Put data syn-chronization in each Service Instance.
Monitoring module 42, whether the directory node for monitoring configuration data in configuration server updates.
Wherein, it is provided with configuration center in configuration server, this configuration center stores the mesh of configuration data in data base Record node (i.e. store path).According to this directory node, application server obtains configuration number from the specified location of database purchase According to.
Specifically, monitoring module 42 also includes registering unit and judging unit: wherein,
Registering unit, for sending registration request to the configuration center of configuration server, carrying in this registration request should Identification information with server;
Judging unit, after the completion of registering unit registration, monitor in real time is to the synchronization of configuration center send configuration data Notify, according to whether there being synchronization notice to judge whether directory node updates.
Wherein, after in configuration server, the configuration data of data base changes, the directory node of configuration center can be entered Row modification.After the completion of to be modified, the mark of the application server according to registration sends synchronization notice to specified application server.
Wherein, in an embodiment, judging unit monitors the flag bit in configuration center, determines whether configuration center sends Synchronization notice.Specifically, after configuration center completes the renewal of destination node, application can be changed successively according to the identification information of registration The corresponding flag bit of server;The change of judging unit this flag bit of monitor in real time, when listening to flag bit and change, Then judge that destination node has renewal.
Synchronization module 43, for when monitor directory node update when, then from configuration server synchronized update configuration Data is simultaneously loaded onto in caching.
Wherein, when the destination node monitoring configuration center has renewal, then after needing to obtain renewal from data base Configuration data is simultaneously loaded onto in internal memory.And when the destination node monitoring configuration center does not update, then continue monitoring until Configuration data is had to have renewal.
Further, this device also includes determining module 44, for reading configuration data from data base and being loaded onto After internal memory, according to default inspection policies determine whether continue monitoring configuration data directory node:
When needing to continue monitoring, then again send registration request to the configuration center of configuration server.
When needing not continue to monitoring, then directly exit and monitor.
In the embodiment of the present invention, after completing a registration request, if monitor data having altered, it is necessary to determine whether Need to continue monitoring.That is, registration only comes into force once, when subsequently having data to update, this time registration will be lost efficacy.Application clothes Pre-set inspection policies in business device, after registration was lost efficacy, then need to judge whether that needs continue according to default inspection policies Continuous monitoring.
Wherein it is determined that the inspection policies in module 44 are configured according to different services.Specifically, obtain configuration number According to rear, judge whether configuration data meets the default inspection policies continuing monitoring and stopping monitoring;When these segmentation symbols match, then execute phase The process answered operates.
The synchronizer of the configuration data that the embodiment of the present invention is provided it is not necessary to when configuration data changes, by weight Open all Service Instances to complete the data renewal in servicing it is only necessary to the change of destination node obtains in monitor in real time configuration center Primary data has renewal.So, each Service Instance is directly loaded directly into after change according to the directory node of change from data base Configuration data to internal memory.Therefore, the number of the present invention no matter application server, can ensure to carry out configuration data Synchronization is so that configuration data is added and synchronous more flexible, simultaneously it is also ensured that increasing newly when application server upper The latest configuration data in data base can be got in time when line.
The embodiment of the present invention additionally provides a kind of synchronizer of configuration data, in configuration server, as Fig. 5 institute Show, specifically include following steps:
Sending module 51, for the business configuration request according to application server, sends required configuration to application server Data.
Configuration server includes data base and configuration center;Wherein, it has been pre-configured with needed for Service Instance in data base Configuration data.The directory node of each configuration data is stored, that is, the path storing in configuration center.
Wherein, configuration server on startup, judges that configuration center whether there is remote directory node;
If existing, directly in data base corresponding position storage configuration data;
If not existing, configuration center is needed to create remote directory node
In storage configuration data, the directory node of configuration data need to be preserved to configuration center.If there is currently no Directory node, then need configuration center to create remote directory node;If there is not corresponding directory node, directly preserve to this In directory node.
Wherein, start in specific Service Instance in application server, business configuration request can be sent.Configuration server root According to required configuration information in business configuration request, after obtaining from data base, and send to application server.
Synchronization module 52, for when detect configuration data have data update when, update configuration data corresponding catalogue section Point, and synchronization notice is sent to application server from sending module 51.
In this step, whether the configuration data in configuration server Test database has renewal.
Specifically, user modification configuration data after and preserve, configuration server when detect preservation instruction after, detection number Specific configuration data according to change in storehouse;
When the configuration data a certain position is detected changes, then need to obtain the configuration corresponding to this configuration data The directory node at center, and change the directory node of this configuration center.
Further, the method also includes receiver module 53, for receiving the registration request of application server;Wherein, note The mark of application server is carried in volume request;
Synchronization module 52, be additionally operable to when detect configuration data have data update when, update the corresponding catalogue of configuration data Node, and synchronization notice is sent to corresponding application server according to mark.
That is, in the embodiment of the present invention, when configuration data generation renewal is detected, then registering to configuration center Application server send synchronization notice it is ensured that application server can obtain Notification of Changes in time, and read new joining in time Put data and be loaded in the middle of internal memory.
In sum, the synchronous method of configuration data provided by the present invention and device, every application server will receive Configuration information Notification of Changes, then gets up-to-date data-base content from data base and is applied to system, decrease data Storehouse becomes with greater need for remodifying configuration information and carry out the action that Service Instance is restarted, or avoids each service of Manual synchronization real The api interface of example, reduces manpower intervention and error rate.Additionally, carrying data-base content without automatic regular polling, can effectively reduce number Connect number according to storehouse to cause to bear;Any special handling need not be carried out to data, and simple;Need not timing monitoring data storehouse Sentence updates, and has stronger universality.
It should be noted that herein, term " inclusion ", "comprising" or its any other variant are intended to non-row The comprising of his property, so that including a series of process of key elements, method, article or device not only include those key elements, and And also include other key elements of being not expressly set out, or also include intrinsic for this process, method, article or device institute Key element.In the absence of more restrictions, the key element being limited by sentence "including a ..." is it is not excluded that including being somebody's turn to do Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by the mode of software plus necessary general hardware platform naturally it is also possible to pass through hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Go out partly can embodying in the form of software product of contribution, this computer software product is stored in a storage medium In (as rom/ram, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, clothes Business device, air-conditioner, or network equipment etc.) method described in execution each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the present invention the scope of the claims, every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of synchronous method of configuration data, for application server it is characterised in that including:
On startup, read configuration data from configuration server and be loaded onto in caching;
Whether the directory node monitoring configuration data described in described configuration server updates;
When monitoring described directory node and updating, then the configuration data of synchronized update being loaded onto from described configuration server In caching.
2. the method for claim 1 is it is characterised in that configuration data described in the described configuration server of described monitoring Whether directory node updates, and specifically includes:
Send registration request to described configuration server, in described registration request, carry the mark of described application server;
When monitoring the synchronization notice based on described identification feedback for the described configuration server, then judge that described directory node has more Newly.
3. method as claimed in claim 2 is it is characterised in that the described directory node according to renewal is from described configuration server Middle read the configuration data updating and after being loaded onto in caching, methods described also includes:
Determine whether the directory node continuing to monitor described configuration data according to default inspection policies;
If continuing, again send registration request to described configuration server.
4. a kind of synchronous method of configuration data, for configuration server it is characterised in that including:
According to the business configuration request of application server, configuration data needed for sending to described application server;
When described configuration data is detected and having data to update, update the corresponding directory node of described configuration data, and to described Application server sends synchronization notice.
5. method as claimed in claim 4 is it is characterised in that methods described also includes:
Receive the registration request of described application server;Wherein, carry the mark of described application server in described registration request;
When described configuration data is detected and having data to update, update the corresponding directory node of described configuration data, and according to institute State mark to corresponding transmission synchronization notice.
6. a kind of synchronizer of configuration data, for application server it is characterised in that including:
Starting module, for when application server starts, reading configuration data and being loaded onto in caching from configuration server;
Monitoring module, whether the directory node for monitoring configuration data described in described configuration server updates;
Synchronization module, for when described monitoring module monitors described directory node and updates, then according to from described configuration service The configuration data of synchronized update being loaded onto in caching in device.
7. device as claimed in claim 6 is it is characterised in that described monitoring module specifically includes:
Registering unit, for sending registration request to described configuration server, carries described application service in described registration request The mark of device;
Judging unit, for when monitoring the synchronization notice based on described identification feedback for the described configuration server, then judging described Directory node has renewal.
8. device as claimed in claim 7 is it is characterised in that described device also includes:
Determining module, for determining whether the directory node continuing to monitor described configuration data according to default inspection policies;
Described registering unit, is additionally operable to when described determining module continues the directory node monitoring described configuration data, then again Send registration request to described configuration server.
9. a kind of synchronizer of configuration data, for configuration server it is characterised in that including:
Sending module, for the business configuration request according to application server, sends required configuration number to described application server According to;
Synchronization module, for when detect described configuration data have data update when, update the corresponding catalogue of described configuration data Node, and send synchronization notice to described application server.
10. device as claimed in claim 9 is it is characterised in that described device also includes:
Receiver module, for receiving the registration request of described application server;Wherein, carry described application in described registration request The mark of server;
Described synchronization module, specifically for when detect configuration data have data update when, update the corresponding catalogue of configuration data Node, and synchronization notice is sent to corresponding application server according to mark.
CN201610836273.9A 2016-09-21 2016-09-21 Synchronizing method and device for configuration data Pending CN106357447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610836273.9A CN106357447A (en) 2016-09-21 2016-09-21 Synchronizing method and device for configuration data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610836273.9A CN106357447A (en) 2016-09-21 2016-09-21 Synchronizing method and device for configuration data

Publications (1)

Publication Number Publication Date
CN106357447A true CN106357447A (en) 2017-01-25

Family

ID=57859667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610836273.9A Pending CN106357447A (en) 2016-09-21 2016-09-21 Synchronizing method and device for configuration data

Country Status (1)

Country Link
CN (1) CN106357447A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789377A (en) * 2017-03-24 2017-05-31 聚好看科技股份有限公司 The service parameter update method of network element cluster
CN107071059A (en) * 2017-05-25 2017-08-18 腾讯科技(深圳)有限公司 Distributed caching service implementing method, device, terminal, server and system
CN107360018A (en) * 2017-06-05 2017-11-17 小草数语(北京)科技有限公司 Config update method and device
CN108182087A (en) * 2018-01-26 2018-06-19 郑州云海信息技术有限公司 A kind of method and apparatus for being used to manage distributed software configuration concentratedly
CN108197139A (en) * 2017-11-22 2018-06-22 链家网(北京)科技有限公司 A kind of processing method and terminal of synchronized update configuration item
CN109408376A (en) * 2018-09-28 2019-03-01 深圳乐信软件技术有限公司 A kind of generation method of configuration data, device, equipment and storage medium
CN109582386A (en) * 2018-11-09 2019-04-05 聚好看科技股份有限公司 Service starting processing method, device, electronic equipment and readable storage medium storing program for executing
CN109831500A (en) * 2019-01-30 2019-05-31 无锡华云数据技术服务有限公司 The synchronous method of configuration file and Pod in Kubernetes cluster
CN110635953A (en) * 2019-10-17 2019-12-31 厦门网宿有限公司 Configuration information management method and device
CN110719187A (en) * 2018-07-13 2020-01-21 深圳兆日科技股份有限公司 Configuration management method, system and computer readable storage medium
CN111083219A (en) * 2019-12-11 2020-04-28 深信服科技股份有限公司 Request processing method, device, equipment and computer readable storage medium
CN111158985A (en) * 2019-12-30 2020-05-15 嘉联支付有限公司 Real-time data monitoring and analyzing method and system based on dynamic rules
CN111193787A (en) * 2019-12-24 2020-05-22 国铁吉讯科技有限公司 Synchronization method and device
CN111221587A (en) * 2019-11-14 2020-06-02 杭州安恒信息技术股份有限公司 Management scheduling method and device for configuration center
CN111680106A (en) * 2020-06-17 2020-09-18 深圳前海微众银行股份有限公司 Method and device for synchronizing data of multiple application systems
CN112235378A (en) * 2020-09-29 2021-01-15 北京三快在线科技有限公司 Data updating method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739706A (en) * 2011-04-07 2012-10-17 腾讯科技(深圳)有限公司 Method and system for carrying out data synchronization
CN103685340A (en) * 2012-08-31 2014-03-26 百度在线网络技术(北京)有限公司 Method and system for notifying change of application data on cloud storage and cloud server
CN104199666A (en) * 2014-09-09 2014-12-10 北京京东尚科信息技术有限公司 Dynamic configuration method and device for application program
CN105610987A (en) * 2016-03-18 2016-05-25 车智互联(北京)科技有限公司 Method, application and system for managing server cluster

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739706A (en) * 2011-04-07 2012-10-17 腾讯科技(深圳)有限公司 Method and system for carrying out data synchronization
CN103685340A (en) * 2012-08-31 2014-03-26 百度在线网络技术(北京)有限公司 Method and system for notifying change of application data on cloud storage and cloud server
CN104199666A (en) * 2014-09-09 2014-12-10 北京京东尚科信息技术有限公司 Dynamic configuration method and device for application program
CN105610987A (en) * 2016-03-18 2016-05-25 车智互联(北京)科技有限公司 Method, application and system for managing server cluster

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789377A (en) * 2017-03-24 2017-05-31 聚好看科技股份有限公司 The service parameter update method of network element cluster
CN107071059A (en) * 2017-05-25 2017-08-18 腾讯科技(深圳)有限公司 Distributed caching service implementing method, device, terminal, server and system
CN107360018A (en) * 2017-06-05 2017-11-17 小草数语(北京)科技有限公司 Config update method and device
CN108197139A (en) * 2017-11-22 2018-06-22 链家网(北京)科技有限公司 A kind of processing method and terminal of synchronized update configuration item
CN108182087A (en) * 2018-01-26 2018-06-19 郑州云海信息技术有限公司 A kind of method and apparatus for being used to manage distributed software configuration concentratedly
CN110719187A (en) * 2018-07-13 2020-01-21 深圳兆日科技股份有限公司 Configuration management method, system and computer readable storage medium
CN110719187B (en) * 2018-07-13 2022-05-20 深圳兆日科技股份有限公司 Configuration management method, system and computer readable storage medium
CN109408376A (en) * 2018-09-28 2019-03-01 深圳乐信软件技术有限公司 A kind of generation method of configuration data, device, equipment and storage medium
CN109408376B (en) * 2018-09-28 2022-04-22 深圳乐信软件技术有限公司 Configuration data generation method, device, equipment and storage medium
CN109582386A (en) * 2018-11-09 2019-04-05 聚好看科技股份有限公司 Service starting processing method, device, electronic equipment and readable storage medium storing program for executing
CN109582386B (en) * 2018-11-09 2022-02-25 聚好看科技股份有限公司 Service starting processing method and device, electronic equipment and readable storage medium
CN109831500A (en) * 2019-01-30 2019-05-31 无锡华云数据技术服务有限公司 The synchronous method of configuration file and Pod in Kubernetes cluster
CN110635953A (en) * 2019-10-17 2019-12-31 厦门网宿有限公司 Configuration information management method and device
CN111221587A (en) * 2019-11-14 2020-06-02 杭州安恒信息技术股份有限公司 Management scheduling method and device for configuration center
CN111083219A (en) * 2019-12-11 2020-04-28 深信服科技股份有限公司 Request processing method, device, equipment and computer readable storage medium
CN111193787A (en) * 2019-12-24 2020-05-22 国铁吉讯科技有限公司 Synchronization method and device
CN111193787B (en) * 2019-12-24 2022-11-25 国铁吉讯科技有限公司 Synchronization method and device
CN111158985A (en) * 2019-12-30 2020-05-15 嘉联支付有限公司 Real-time data monitoring and analyzing method and system based on dynamic rules
CN111158985B (en) * 2019-12-30 2024-03-22 嘉联支付有限公司 Real-time data monitoring and analyzing method and system based on dynamic rules
CN111680106A (en) * 2020-06-17 2020-09-18 深圳前海微众银行股份有限公司 Method and device for synchronizing data of multiple application systems
CN111680106B (en) * 2020-06-17 2024-04-09 深圳前海微众银行股份有限公司 Method and device for synchronizing data of multiple application systems
CN112235378A (en) * 2020-09-29 2021-01-15 北京三快在线科技有限公司 Data updating method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN106357447A (en) Synchronizing method and device for configuration data
CN111371696B (en) Method for realizing Pod network flow control in Kubernetes
CN112087333B (en) Micro-service registry cluster and information processing method thereof
CN105511805B (en) The data processing method and device of cluster file system
CN105099988B (en) Method, access method and device and system for supporting gray scale to issue
CN104679611B (en) Data resource clone method and device
CN108234191A (en) The management method and device of cloud computing platform
CN106685691A (en) Efficient configuration update method and system of terminal device in Internet of things system
US20030149735A1 (en) Network and method for coordinating high availability system services
CN105262608B (en) Monitoring method and device for network service
CN104618255B (en) A kind of front-collection service system and data processing method
CN107357571B (en) Maintenance method and system for equipment component program
CN105791344A (en) Grayscale release service processing method, system, load balancer and service bus device
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
CN104301407B (en) The method and apparatus of Backup Data in distributed monitor system
CN107729205B (en) Fault processing method and device for business system
CN106775816A (en) The automatic update method and system of application program in a kind of LAN
CN110391940A (en) Response method, device, system, equipment and the storage medium of address of service
CN107483241A (en) A kind of method and apparatus that upgrade image version is downloaded during network element updating
CN113347037B (en) Data center access method and device
CN107404509A (en) Distributed Services configure system and approaches to IM
US20220326940A1 (en) Service Upgrade Method, Apparatus, and System
CN111901705A (en) OMCI function virtualization system of OLT equipment
CN115150419B (en) Configuration and access method and system for hybrid cloud object storage
CN106897166A (en) A kind of mobile terminal and its restorative procedure

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170125