CN107197042A - A kind of resource synchronization method and device - Google Patents
A kind of resource synchronization method and device Download PDFInfo
- Publication number
- CN107197042A CN107197042A CN201710542268.1A CN201710542268A CN107197042A CN 107197042 A CN107197042 A CN 107197042A CN 201710542268 A CN201710542268 A CN 201710542268A CN 107197042 A CN107197042 A CN 107197042A
- Authority
- CN
- China
- Prior art keywords
- network
- matching
- resource
- data management
- management apparatus
- 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.)
- Granted
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/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- 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)
- Environmental & Geological Engineering (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention provides a kind of resource synchronization method and device, and the above method comprises the following steps:The resource in data management apparatus regularly or is in real time obtained, and resource corresponding with cloud computing management equipment is matched, and obtains matching result, wherein, the matching result includes:Matching less than, to match inconsistent, matching consistent;If matching result is inconsistent to match less than or matching, processing is synchronized to the resource in the data management apparatus.In above-mentioned technical proposal, by setting timing or real-time task, resource matched synchronization is performed so that the resource data in data management apparatus is consistent with the resource data in cloud computing management equipment, is maintained system and is normally run, it is ensured that system operation safety.
Description
Technical field
The invention belongs to field of cloud calculation, more particularly to a kind of resource synchronization method and device.
Background technology
Openstack is powerful as well-known cloud computing management platform, is fused to certainly by each cloud computing manufacturer
In oneself cloud data center management platform;Cloud computing manufacturer develops the cloud data center management platform of oneself, then integrated
Openstack, calls openstack interfaces to read and manages the resources such as the calculating inside openstack, storage, network, this is
Instantly the solution of many cloud computing management platforms.
But such scheme can have problems with:
If user is directly from openstack environmentally additions and deletions Internet resources, the cloud data center pipe of cloud computing manufacturer oneself
Platform can not real-time perception, cause that the data on both sides are inconsistent, i.e., Internet resources are asynchronous, cause run-time error, seriously
Meeting cause system crash, have a strong impact on communication security.
Therefore, above-mentioned technical problem is solved in the urgent need to providing a kind of source synchronous scheme.
The content of the invention
The present invention provides a kind of resource synchronization method and device, to solve the above problems.
The present invention provides a kind of resource synchronization method, comprises the following steps:Timing is obtained in data management apparatus in real time
Resource, and resource corresponding with cloud computing management equipment matched, and obtains matching result, wherein, the matching result
Including:Matching less than, to match inconsistent, matching consistent;
If matching result is inconsistent to match less than or matching, the resource in the data management apparatus is synchronized
Processing.
The present invention provides a kind of source synchronous device, including processor, is adapted for carrying out each instruction;Storage device, suitable for depositing
The a plurality of instruction of storage, the instruction is suitable to be loaded and performed by the processor;
Resource in timing or in real time acquisition data management apparatus, and resource corresponding with cloud computing management equipment progress
Matching, obtains matching result, wherein, the matching result includes:Matching less than, to match inconsistent, matching consistent;
If matching result is inconsistent to match less than or matching, place is synchronized to the resource in the data management apparatus
Reason.
Technical scheme provided in an embodiment of the present invention:Resource in timing or in real time acquisition data management apparatus, and and cloud
Corresponding resource is matched in management of computing equipment, obtains matching result, wherein, the matching result includes:Matching less than,
Matching is inconsistent, matching is consistent;If matching result is inconsistent to match less than or matching, in the data management apparatus
Resource synchronizes processing.
In above-mentioned technical proposal, by setting timing or real-time task, resource matched synchronization is performed so that data management is set
Resource data in standby is consistent with the resource data in cloud computing management equipment, is maintained system and is normally run, it is ensured that
System operation safety.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 show the resource synchronization method flow chart of the embodiment of the present invention 1;
Fig. 2 show the source synchronous structure drawing of device of the embodiment of the present invention 2.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
Fig. 1 show the resource synchronization method flow chart of the embodiment of the present invention 1, comprises the following steps:
Step 101:Resource in timing or in real time acquisition data management apparatus, and it is corresponding with cloud computing management equipment
Resource is matched, and obtains matching result,
Wherein, the matching result includes:Matching less than, to match inconsistent, matching consistent.
Further, the resource includes:Network, subnet, port;Wherein, a network includes multiple subnets and multiple
Port.
Step 102:If matching result is inconsistent to match less than or matching, to the resource in the data management apparatus
Synchronize processing.
Further, timing or in real time each network in acquisition data management apparatus, according to network identity in cloud computing
Corresponding network is obtained in management equipment to be matched;
If matching is less than the network, by the subnet under the network, the network and port in the data management
State in equipment is set to:Lose connection.
Further, timing or in real time each network in acquisition data management apparatus, according to network identity in cloud computing
Corresponding network is obtained in management equipment to be matched;
If network attribute value matches inconsistent, the network attribute of network according to the cloud computing management equipment
Value, changes the network attribute value of map network in the data management apparatus.
Further, timing or obtain each under the amended network of network attribute in the data management apparatus in real time
Individual subnet, obtains corresponding subnet according to Subnet Identification in cloud computing management equipment and is matched;
If subnet property value matches inconsistent, the subnet attribute of subnet according to the cloud computing management equipment
Value, changes the subnet property value of correspondence subnet in the data management apparatus.
Preferably, if state of the subnet in the data management apparatus is set to by matching less than the subnet:
Lose connection.
Further, timing or obtain each under the amended network of network attribute in the data management apparatus in real time
Individual port, obtains corresponding port according to port-mark in cloud computing management equipment and is matched;
If port attribute value matches inconsistent, the port attribute of port according to the cloud computing management equipment
Value, changes the port attribute value of corresponding ports in the data management apparatus.
Preferably, if state of the port in the data management apparatus is set to by matching less than the port:
Lose connection.
The embodiment of the present invention is described in detail below:
The embodiment of the present invention uses the existing task management functions of data management apparatus, timed task is set, every very
It is synchronous that clock carries out first resource.So-called resource includes network, subnet, port, and a network can include multiple subnets and multiple
Port.Synchronization policy is as follows:All networks in scan data management equipment, travel through each network, according to network identity ID
Corresponding network is searched in cloud computing management equipment openstack, if searched less than showing the network in openstack
Environmentally it is deleted, the subnet under the network and network, port is set to " losing connection " in the state of data management apparatus;
If can find, whether the network attribute value under contrast openstack is consistent with data management apparatus, if unanimously,
Without modification, if it is inconsistent, be defined by openstack data, the correspondence category of the network in modification data management apparatus
Property value, be further continued for travel through the network under subnet and port, synchronized with same logic.
By the resource of timed task and special algorithm automatic synchronization openstack and data management apparatus, two can be made
Person's data are consistent, and improve the ease for use and accuracy of cloud management platform.
The specific implementation process to the embodiment of the present invention is described in detail below:
First, timed task is set in data management apparatus, source synchronous strategy was performed every ten minutes;
Then, openstack and data management apparatus source synchronous strategy are realized by programme-control, this is also the present invention
The key point of embodiment.Its step is as follows:
(1) each network under ergodic data management equipment;
(2) to each network, searched according to its network identity ID in the corresponding network of openstack environment;
(3) if can not find out in openstack, represent that bottom has been deleted, then by the network of this in data management apparatus
Status modifier is " losing connection ", and the all-ones subnet and the state of port under the network are changed to " losing connection ";
(4) if having found the network in openstack, each property value and data of network in openstack are judged
It is whether identical in management equipment;
(5) if it is different, then on the basis of openstack, changing the network attribute value in data management apparatus;If phase
Together, then do not make an amendment;
(6) all-ones subnet in ergodic data management equipment lower network, the same with above-mentioned steps, searches openstack's
Correspondence subnet, can not find out bundle net state and is revised as " losing connection ", find, data management is changed on the basis of openstack
Subnet property value in equipment;
(7) all of the port in ergodic data management equipment lower network, the same with above-mentioned steps, searches openstack's
Corresponding ports, can not find out and port status is revised as " losing connection ", find then on the basis of openstack change cloud management put down
Port attribute value in platform;
(8) second step is gone to, circulate operation is synchronous until completing all-network.
Fig. 2 show the source synchronous structure drawing of device of the embodiment of the present invention 2, including processor, is adapted for carrying out each instruction;
Storage device, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by the processor;
The resource in data management apparatus is obtained, and resource corresponding with cloud computing management equipment is matched, and is obtained
Matching result, wherein, the matching result includes:Matching less than, to match inconsistent, matching consistent;
If matching result is inconsistent to match less than or matching, place is synchronized to the resource in the data management apparatus
Reason.
Further, the resource includes:Network, subnet, port;Wherein, a network includes multiple subnets and multiple
Port.
Technical scheme provided in an embodiment of the present invention:Resource in timing or in real time acquisition data management apparatus, and and cloud
Corresponding resource is matched in management of computing equipment, obtains matching result, wherein, the matching result includes:Matching less than,
Matching is inconsistent, matching is consistent;If matching result is inconsistent to match less than or matching, in the data management apparatus
Resource synchronizes processing.
In above-mentioned technical proposal, by setting timing or real-time task, resource matched synchronization is performed so that data management is set
Resource data in standby is consistent with the resource data in cloud computing management equipment, is maintained system and is normally run, it is ensured that
System operation safety.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (10)
1. a kind of resource synchronization method, it is characterised in that comprise the following steps:
Resource in timing or in real time acquisition data management apparatus, and resource corresponding with cloud computing management equipment progress
Match somebody with somebody, obtain matching result, wherein, the matching result includes:Matching less than, to match inconsistent, matching consistent;
If matching result is inconsistent to match less than or matching, place is synchronized to the resource in the data management apparatus
Reason.
2. according to the method described in claim 1, it is characterised in that the resource includes:Network, subnet, port;Wherein, one
Individual network includes multiple subnets and multiple ports.
3. method according to claim 2, it is characterised in that timing obtains each net in data management apparatus in real time
Network, obtains corresponding network according to network identity in cloud computing management equipment and is matched;
If matching is less than the network, by the subnet under the network, the network and port in the data management apparatus
In state be set to:Lose connection.
4. method according to claim 2, it is characterised in that timing obtains each net in data management apparatus in real time
Network, obtains corresponding network according to network identity in cloud computing management equipment and is matched;
If the matching of network attribute value is inconsistent, the network attribute value of network, is repaiied according to the cloud computing management equipment
Change the network attribute value of map network in the data management apparatus.
5. method according to claim 4, it is characterised in that timing obtains network in the data management apparatus in real time
Each subnet under network after attribute modification, obtains corresponding subnet according to Subnet Identification in cloud computing management equipment and enters
Row matching;
If the matching of subnet property value is inconsistent, the subnet property value of subnet, is repaiied according to the cloud computing management equipment
Change the subnet property value of correspondence subnet in the data management apparatus.
6. method according to claim 5, it is characterised in that if matching is less than the subnet, by the subnet in institute
The state stated in data management apparatus is set to:Lose connection.
7. method according to claim 4, it is characterised in that timing obtains network in the data management apparatus in real time
Each port under network after attribute modification, obtains corresponding port according to port-mark in cloud computing management equipment and enters
Row matching;
If the matching of port attribute value is inconsistent, the port attribute value of port, is repaiied according to the cloud computing management equipment
Change the port attribute value of corresponding ports in the data management apparatus.
8. method according to claim 7, it is characterised in that if matching is less than the port, by the port in institute
The state stated in data management apparatus is set to:Lose connection.
9. a kind of source synchronous device, it is characterised in that including processor, is adapted for carrying out each instruction;Storage device, suitable for storage
A plurality of instruction, the instruction is suitable to be loaded and performed by the processor;
Resource in timing or in real time acquisition data management apparatus, and resource corresponding with cloud computing management equipment progress
Match somebody with somebody, obtain matching result, wherein, the matching result includes:Matching less than, to match inconsistent, matching consistent;
If matching result is inconsistent to match less than or matching, processing is synchronized to the resource in the data management apparatus.
10. device according to claim 9, it is characterised in that the resource includes:Network, subnet, port;Wherein, one
Individual network includes multiple subnets and multiple ports.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710542268.1A CN107197042B (en) | 2017-07-04 | 2017-07-04 | Resource synchronization method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710542268.1A CN107197042B (en) | 2017-07-04 | 2017-07-04 | Resource synchronization method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107197042A true CN107197042A (en) | 2017-09-22 |
CN107197042B CN107197042B (en) | 2020-02-14 |
Family
ID=59881382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710542268.1A Active CN107197042B (en) | 2017-07-04 | 2017-07-04 | Resource synchronization method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107197042B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107645415A (en) * | 2017-09-27 | 2018-01-30 | 杭州迪普科技股份有限公司 | A kind of holding OpenStack service ends method and device consistent with equipment end data |
CN107819863A (en) * | 2017-11-16 | 2018-03-20 | 郑州云海信息技术有限公司 | A kind of Explore of Unified Management Ideas and device of cloud platform user |
CN111083160A (en) * | 2019-12-27 | 2020-04-28 | 杭州迪普科技股份有限公司 | Resource information recovery method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101771723A (en) * | 2010-01-05 | 2010-07-07 | 深圳中兴网信科技有限公司 | Data synchronization method |
CN102447582A (en) * | 2011-12-31 | 2012-05-09 | 中兴通讯股份有限公司 | Resource synchronization method and device |
CN104348646A (en) * | 2013-07-31 | 2015-02-11 | 中兴通讯股份有限公司 | Configuration data processing method, device and system |
CN104618498A (en) * | 2015-02-13 | 2015-05-13 | 深圳市创梦天地科技有限公司 | Data resource synchronizing method and server |
EP3125117A1 (en) * | 2014-03-28 | 2017-02-01 | NTT Docomo, Inc. | Update management system and update management method |
-
2017
- 2017-07-04 CN CN201710542268.1A patent/CN107197042B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101771723A (en) * | 2010-01-05 | 2010-07-07 | 深圳中兴网信科技有限公司 | Data synchronization method |
CN102447582A (en) * | 2011-12-31 | 2012-05-09 | 中兴通讯股份有限公司 | Resource synchronization method and device |
CN104348646A (en) * | 2013-07-31 | 2015-02-11 | 中兴通讯股份有限公司 | Configuration data processing method, device and system |
EP3125117A1 (en) * | 2014-03-28 | 2017-02-01 | NTT Docomo, Inc. | Update management system and update management method |
CN104618498A (en) * | 2015-02-13 | 2015-05-13 | 深圳市创梦天地科技有限公司 | Data resource synchronizing method and server |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107645415A (en) * | 2017-09-27 | 2018-01-30 | 杭州迪普科技股份有限公司 | A kind of holding OpenStack service ends method and device consistent with equipment end data |
CN107819863A (en) * | 2017-11-16 | 2018-03-20 | 郑州云海信息技术有限公司 | A kind of Explore of Unified Management Ideas and device of cloud platform user |
CN111083160A (en) * | 2019-12-27 | 2020-04-28 | 杭州迪普科技股份有限公司 | Resource information recovery method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107197042B (en) | 2020-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103634091B (en) | A kind of clock synchronization system of more synchronization fields, method and cross-domain equipment | |
CN105808333B (en) | Method for allocating tasks and system | |
CN107197042A (en) | A kind of resource synchronization method and device | |
CN105190545B (en) | Virtual method and device and computer equipment | |
CN104408159B (en) | A kind of data correlation, loading, querying method and device | |
CN105183543B (en) | A kind of gunz based on mobile social networking calculates online method for allocating tasks | |
CN106790112A (en) | A kind of method that the node operating system and data of integrated lightweight block chain update | |
CN110110006A (en) | Data managing method and Related product | |
CN108062243A (en) | Generation method, task executing method and the device of executive plan | |
CN110399387A (en) | Method and device based on table incidence relation dynamic generation query SQL | |
CN107819863A (en) | A kind of Explore of Unified Management Ideas and device of cloud platform user | |
CN106649488A (en) | Method and device for invoking multi-data-source interaction interface | |
CN106095977A (en) | The distributed approach of a kind of data base and system | |
CN103780687A (en) | Position-based multiple data center type cloud desktop management method | |
CN105302827B (en) | A kind of searching method and equipment of event | |
CN109165865B (en) | Main distribution integrated model checking method and system based on boundary switch connectivity analysis | |
CN113259458B (en) | Method and device for starting/closing block link point service | |
CN110119396A (en) | Data managing method and Related product | |
CN110809051B (en) | Service data processing method and system | |
CN109088956A (en) | IPv6 address approach and device are generated based on the information of Item Information or people | |
CN106570029A (en) | Data processing method and data processing system of distributed relation type database | |
CN110995489B (en) | Large data platform server management method, device, server and storage medium | |
CN107249050A (en) | The management method and device of resource in cloud platform | |
CN109146477B (en) | Method for specifying address when Ethernet workshop issues intelligent contract | |
CN106603495A (en) | radius signaling association method and system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |