CN107968808A - The method and system of resource status synchronization in distributed system - Google Patents
The method and system of resource status synchronization in distributed system Download PDFInfo
- Publication number
- CN107968808A CN107968808A CN201610916639.3A CN201610916639A CN107968808A CN 107968808 A CN107968808 A CN 107968808A CN 201610916639 A CN201610916639 A CN 201610916639A CN 107968808 A CN107968808 A CN 107968808A
- Authority
- CN
- China
- Prior art keywords
- client
- centroid
- synchronization
- status information
- clients
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A kind of method of resource status synchronization in distributed system, including some equipment are combined to form into distributed type assemblies, which includes at least a Centroid and some clients, cannot be communicated between each client;Application program is only capable of communicating with the client of cluster, and status information is reported or obtain to client progress status information;After the client is automatically performed state synchronized with Centroid, Centroid again synchronizes received status information and other clients.Some equipment are combined to form distributed type assemblies, in favor of state collection and storage by the method for resource status synchronization in distributed system of the present invention.Application program can only communicate with client, and client is automatically performed state synchronized with Centroid again.Therefore, Centroid is delayed machine, nor affects on the communication of application program and client.
Description
Technical field
The present invention relates in information synchronization method, more particularly to a kind of distributed system in a kind of cloud computing to the shape of resource
The method that state synchronizes, and realize synchronous system.
Background technology
Cloud computing is the increase, use and delivery mode of the related service based on internet, is usually directed to and passes through internet
To provide dynamic easily extension and the often resource of virtualization.It is Distributed Calculation, parallel computation, effectiveness calculating, net that it, which is related to,
Numerous computer and network technologies such as network storage, virtualization, load balancing and hot-standby redundancy.
Distributed system is a computer system being made of the process resource of multiple interconnections, they are in whole system
Control under be performed in unison with same task, it is minimum dependent on program, data or the hardware concentrated.Distributed system is built upon
Software systems on network, have the cohesion and the transparency of height.
Chinese invention patent application 201510603325.3 discloses the method for data synchronization in a kind of distributed system, greatly
The big reliability for improving instant data synchronization in distributed system.This method includes source client monitors and occurs to synchrodata
After change, the synchrodata after the synchronization serial number, change and data manipulation code are packaged into asynchronous by synchronization serial number plus one
Message is sent to purpose client, while the change of the synchrodata is recorded in a cache entry of synchronization caching, purpose
Client replys response message after asynchronous message is received to source client, includes the synchronization serial number received in message,
The corresponding synchrodata deletion during local synchronization is cached according to the synchronization serial number carried in response message of source client.
Chinese invention patent 201210039131.1 disclose data in a kind of distributed data-storage system route it is same
One step process, this method include:It is the unique version of route grid distribution in distributed data-storage system according to incremental principle
Number, each route grid is used for the route for recording data in distributed data-storage system;Distributed data-storage system obtains
The local routing version number of client, according to the version number that each route grid is allocated in distributed data-storage system, with
And the local routing version number of client determines the data route that client lacks, and send the data that definite client lacks
It is routed to client..
It is synchronous that Chinese invention patent application 201510461896.8 discloses a kind of data based on distributed multi agent
Method, can realize that the accurate push of data synchronization message to meet the differentiation data synchronisation requirement of multi-client, subtracts at the same time
Few network and database resource consumption.This method uses multiple agent architecture, in each client of information system
On-premise intelligent body is held, these intelligent bodies are responsible for preserving the view that client is currently shown, perceive and accurate propelling data becomes
More.Intelligent body in client shares status information by the public sheet in information system database, by being distributed in each visitor
Cooperation realizes that the view of multi-client refreshes on demand to intelligent body in the end of family jointly.
The content of the invention
It is an object of the present invention to provide a kind of method of resource status synchronization in distributed system, is reduced with realizing
The traffic, strengthens autgmentability.
It is another object of the present invention to provide a kind of system of resource status synchronization in distributed system, is subtracted with realizing
Few traffic, strengthens autgmentability.
The method of resource status synchronization in a kind of distributed system provided by the invention, including:
Some equipment are combined to form into distributed type assemblies, which includes at least a Centroid and some clients
Hold, cannot be communicated between each client;
Application program is only capable of communicating with the client of cluster, and reporting for status information is carried out to client, and by institute
The client storage stated, or obtain status information;
After the client and Centroid are automatically performed state synchronized, Centroid again by received status information with
Other clients synchronize, and status information of these other clients also by Centroid synchronization is stored.
Status information, is then sent to the client by application program and the client communication in cluster, or handle will ask
The state parameter (i.e. type) asked is sent to the client in cluster, receives the status information of client return.
Client is according to the type parameter specified in configuration file from Centroid synchronization gain status information.
State in order not to make the state that application program reports be mutually synchronized with cluster covers mutually, and client can deposit respectively
The status information and the status information from Centroid synchronization, i.e. both states that storage application program reports are stored separately.In addition,
, can only be according to the status data synchronously to come from Centroid when application program obtains state from client.
The present invention also provides a kind of system of resource status synchronization in distributed system, including:
At least one Centroid and some clients, cannot communicate between each client;If Centroid and
Dry client forms distributed type assemblies;
Application program is only capable of communicating with the client of cluster, and reporting for status information is carried out to client, and by visitor
Family end stores, or obtains status information;
After the client and Centroid are automatically performed state synchronized, Centroid again by received status information with
Other clients synchronize, and status information of these other clients also by Centroid synchronization is stored.
The beneficial effect that technical solution of the present invention is realized:
The method of resource status synchronization in distributed system provided by the invention, is to combine to form some equipment point
Cloth cluster, in favor of state collection and storage.Application program can only communicate with client, client again with Centroid
State synchronized is automatically performed, and the resource state information (coming from other clients) of acquisition is cached in the client.Cause
This, due to buffered resource state information in client, Centroid is delayed machine, nor affects on application program and client
Communication.
The method of resource status synchronization in distributed system provided by the invention, using Centroid as bridge, obtains client
Synchronous status information is held, the status information is also synchronized to other clients.Due to multiple client and synchronization presence, because
This, after Centroid recovers due to the machine of delaying, client can be automatically performed the synchronization of state again, and Centroid also will be extensive
Multiple all data, including repair expired data.
The system of resource status synchronization, can realize the reduction of the traffic, enhance in distributed system provided by the invention
Autgmentability.
Brief description of the drawings
Fig. 1 is the schematic diagram of one embodiment of system of resource status synchronization in distributed system of the present invention.
Embodiment
Below in conjunction with attached drawing detailed description of the present invention technical solution.The embodiment of the present invention only to illustrate the present invention skill
Art scheme and it is unrestricted, although the present invention is described in detail with reference to preferred embodiment, those of ordinary skill in the art
It should be appreciated that can be to the technical solution technical scheme is modified or replaced equivalently of invention, without departing from the essence of technical solution of the present invention
God and scope, it should all cover in scope of the presently claimed invention.
Fig. 1 is the schematic diagram of one embodiment of system of resource status synchronization in distributed system of the present invention.As shown in Figure 1,
This method includes:
Some equipment are combined to form into distributed type assemblies 100, if the cluster include at least Centroid 110 and
Client 120 is done, cannot be communicated between each client 120.
Application program 200 is only capable of communicating with the client of cluster 120, and the upper of status information is carried out to client 120
Report 210, and stored by client, or the state parameter to be asked (i.e. type) is sent to the client 120 in cluster,
And receive the operation 220 of the status information of client return.
After the client 120 is automatically performed state synchronized (data-pushing) with Centroid 110, Centroid will be connect again
Received status information synchronizes (data pull) with other clients, these other clients are also by Centroid synchronization
State information storage.
One state collection of scheme provided in this embodiment and storage system, are data storage substantially, can store
Include any data including state.The system uses distributed structure/architecture, is made of a Centroid and multiple client.Should
It can only be communicated with program with client, client can be automatically performed state synchronized with Centroid.Simultaneously as it is distribution
Formula, when Centroid is delayed machine, has no effect on the communication of application program and client.It is, application program can normally report,
Obtain the status information related with some type.
Application Status reports, stores and can only be completed by client, it is, application program is state reporting
To client, then client can be automatically synchronous with Centroid completion, meanwhile, Centroid also can be same by the status information
Other clients are walked, cannot be communicated between each client, it is necessary to which being used as bridge by Centroid just can be with.
All status informations can be sorted out by the way of by type, and its data is stored in centromere
Point, and client can be according to configuration, the state of oneself synchronous required type, rather than synchronous all types of state letters
Breath.Type can include subtype, i.e. the tissue of type is a tree, it is possible to understand that into directory tree.
In addition, the state storage of cluster is non-persistent, the machine once Centroid is delayed, the data in Centroid will lose
Lose, but do not influence the communication of application program and cluster.Although the machine of delaying of Centroid, is likely to result in the interim mistake of some data
Phase.But due to multiple client and synchronization presence, when Centroid recovers, the synchronization of state can be automatically performed again,
Centroid will also recover all data, including repair expired data.Client and Centroid all can be detected periodically
Internal status data, if it find that state is overtime, can be marked as expired, then be synchronized to Centroid or other clients
End.
Claims (7)
1. a kind of method of resource status synchronization in distributed system, it is characterised in that including:
Some equipment are combined to form into distributed type assemblies, which includes at least a Centroid and some clients,
It cannot be communicated between each client;
Application program is only capable of communicating with the client of cluster, and reporting for status information is carried out to client, and by described
Client stores, or obtains status information;
After the client and Centroid are automatically performed state synchronized, Centroid again by received status information with it is other
Client synchronizes, and state information storage of these other clients also by Centroid synchronization gets off.
2. the method for resource status synchronization in distributed system according to claim 1, it is characterised in that the application
Status information, is then sent to the client by program and the client communication in cluster, or the state parameter to be asked
The client being sent in cluster, receives the status information of client return.
3. the method for resource status synchronization in distributed system according to claim 1, it is characterised in that the client
End is according to the type parameter specified in configuration file from Centroid synchronization gain status information.
4. the method for resource status synchronization in distributed system according to claim 1, it is characterised in that the client
End can store status information and the status information from Centroid synchronization that the application program reports respectively.
5. the method for resource status synchronization in distributed system according to claim 1, it is characterised in that the application
, can only be according to the status data synchronously to come from the Centroid when program obtains state from client.
A kind of 6. system of resource status synchronization in distributed system, it is characterised in that including:
At least one Centroid and some clients, cannot communicate between each client;Centroid and
Some clients form distributed type assemblies;
Application program is only capable of communicating with the client of the cluster, and reporting for status information is carried out to the client,
And stored by the client, or obtain status information;
After the client is automatically performed state synchronized with Centroid, Centroid again by received status information with
Other clients synchronize, state information storage of these other clients also by Centroid synchronization gets off.
7. the system of resource status synchronization in distributed system according to claim 6, it is characterised in that the client
End is according to the type parameter specified in configuration file from Centroid synchronization gain status information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610916639.3A CN107968808A (en) | 2016-10-20 | 2016-10-20 | The method and system of resource status synchronization in distributed system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610916639.3A CN107968808A (en) | 2016-10-20 | 2016-10-20 | The method and system of resource status synchronization in distributed system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107968808A true CN107968808A (en) | 2018-04-27 |
Family
ID=61996410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610916639.3A Pending CN107968808A (en) | 2016-10-20 | 2016-10-20 | The method and system of resource status synchronization in distributed system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107968808A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109408224A (en) * | 2018-09-17 | 2019-03-01 | 华为技术有限公司 | Method of data synchronization, distributed system and application node |
CN110572464A (en) * | 2019-09-12 | 2019-12-13 | 北京浪潮数据技术有限公司 | Bottom layer resource state synchronization method and device, cloud platform system and storage medium |
CN112291320A (en) * | 2020-10-21 | 2021-01-29 | 济南浪潮高新科技投资发展有限公司 | Distributed two-layer scheduling method and system for quantum computer cluster |
CN112306756A (en) * | 2020-11-16 | 2021-02-02 | 天津南大通用数据技术股份有限公司 | Method for efficiently realizing complete consistency of primary copy data |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101453351A (en) * | 2008-12-31 | 2009-06-10 | 腾讯科技(深圳)有限公司 | Method and system for pushing customer status |
US20110126256A1 (en) * | 2009-11-25 | 2011-05-26 | Synacast Computer System (Shanghai) Co., Ltd. | Method for live broadcasting in a distributed network and apparatus for the same |
CN103542885A (en) * | 2012-07-16 | 2014-01-29 | 福建新大陆电脑股份有限公司 | Real-time temperature and humidity monitoring and alarm method for movable cold-chain equipment on basis of wireless communication |
-
2016
- 2016-10-20 CN CN201610916639.3A patent/CN107968808A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101453351A (en) * | 2008-12-31 | 2009-06-10 | 腾讯科技(深圳)有限公司 | Method and system for pushing customer status |
US20110126256A1 (en) * | 2009-11-25 | 2011-05-26 | Synacast Computer System (Shanghai) Co., Ltd. | Method for live broadcasting in a distributed network and apparatus for the same |
CN103542885A (en) * | 2012-07-16 | 2014-01-29 | 福建新大陆电脑股份有限公司 | Real-time temperature and humidity monitoring and alarm method for movable cold-chain equipment on basis of wireless communication |
Non-Patent Citations (1)
Title |
---|
鲍爱华 等: "基于哈希树的分布式目录同步方法", 《 解放军理工大学学报(自然科学版)》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109408224A (en) * | 2018-09-17 | 2019-03-01 | 华为技术有限公司 | Method of data synchronization, distributed system and application node |
CN110572464A (en) * | 2019-09-12 | 2019-12-13 | 北京浪潮数据技术有限公司 | Bottom layer resource state synchronization method and device, cloud platform system and storage medium |
CN112291320A (en) * | 2020-10-21 | 2021-01-29 | 济南浪潮高新科技投资发展有限公司 | Distributed two-layer scheduling method and system for quantum computer cluster |
CN112306756A (en) * | 2020-11-16 | 2021-02-02 | 天津南大通用数据技术股份有限公司 | Method for efficiently realizing complete consistency of primary copy data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107016087B (en) | Hierarchical database high-availability system based on sentry's model | |
CN107968808A (en) | The method and system of resource status synchronization in distributed system | |
US8751641B2 (en) | Optimizing clustered network attached storage (NAS) usage | |
CN102685237A (en) | Method for requesting session maintaining and dispatching in cluster environment | |
CN104811476B (en) | A kind of High Availabitity deployment implementation method of application-oriented service | |
CN105471960A (en) | Information interaction system and method between private clouds and public cloud | |
CN105915405A (en) | Large-scale cluster node performance monitoring system | |
CN104683161B (en) | Network management and device based on SaaS | |
CN105630589A (en) | Distributed process scheduling system and process scheduling and execution method | |
US8930547B2 (en) | Techniques for achieving storage and network isolation in a cloud storage environment | |
WO2021004385A1 (en) | Service unit switching method, system and apparatus | |
CN106713391A (en) | Session information sharing method and sharing system | |
CN106453541A (en) | Data synchronization method, server and data synchronization system | |
CN107734017B (en) | Data service method and system | |
CN106101290A (en) | A kind of method and system of server cluster management | |
CN108989430A (en) | Load-balancing method, device and storage medium | |
CN104125303B (en) | Reading and writing data requesting method, client and system | |
CN103942324A (en) | Data real-time synchronization system and method | |
CN102710790B (en) | Memcached implementation method and system based on metadata management | |
CN104468722A (en) | Method for classified storage of training data in navigation management training system | |
CN110213359A (en) | A kind of car networking networking data delivery system and method based on D2D | |
CN103152420A (en) | Method for avoiding single-point-of-failure of Ovirt virtual management platform | |
CN106227470A (en) | A kind of SRM method and device | |
CN106790647A (en) | A kind of method and system of self adaptation Service Management | |
CN105007233B (en) | A kind of method that distribution address is loaded based on Dynamic Host Configuration Protocol server cluster |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180427 |