CN102917044B - Method for synchronizing data between cloud management platform and cloud platform - Google Patents

Method for synchronizing data between cloud management platform and cloud platform Download PDF

Info

Publication number
CN102917044B
CN102917044B CN201210393339.3A CN201210393339A CN102917044B CN 102917044 B CN102917044 B CN 102917044B CN 201210393339 A CN201210393339 A CN 201210393339A CN 102917044 B CN102917044 B CN 102917044B
Authority
CN
China
Prior art keywords
data
cloud
management platform
platform
cloud management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210393339.3A
Other languages
Chinese (zh)
Other versions
CN102917044A (en
Inventor
李旭鹏
余新霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GCI Science and Technology Co Ltd
Original Assignee
GCI Science and 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 GCI Science and Technology Co Ltd filed Critical GCI Science and Technology Co Ltd
Priority to CN201210393339.3A priority Critical patent/CN102917044B/en
Publication of CN102917044A publication Critical patent/CN102917044A/en
Application granted granted Critical
Publication of CN102917044B publication Critical patent/CN102917044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for synchronizing data between a cloud management platform and a cloud platform. The method comprises the following steps that the cloud management platform acquires all data from the cloud platform when being started, the data is updated into a database of the cloud management platform and is stored in a comparison database in a memory; the cloud management platform acquires the data from the cloud platform at the interval of time Y and stores the data into the memory; when the cloud management platform acquires the data from the cloud platform at the Nth times, and N*Y is more than or equal to X, the cloud management platform start synchronizing the data; when the comparison database in the memory is inconsistent with the currently acquired real-time data, the currently acquired real-time data is put into an updating queue; and the cloud management platform updates the real-time data in the updating queue to the database of the cloud management platform, clears the frequency N and stores the current acquired real-time data into the memory. The method is high-efficiency and feasible, and the working amount of the cloud management platform can be reduced.

Description

A kind of method of data syn-chronization between cloud management platform and cloud platform
Technical field
The invention belongs to mobile communication network technology field, particularly a kind of method of data syn-chronization between cloud management platform and cloud platform.
Background technology
Cloud computing (Cloud Computing) is the product of the traditional calculations machine technology such as grid computing (Grid Computing), Distributed Calculation (Distributed Computing), parallel computation (Parallel Computing), effectiveness calculating (Utility Computing), the network storage (Network Storage Technologies), virtual (Virtualization), load balancing (Load Balance) and network technical development fusion.It is intended to, by network, the computational entity of multiple advantage of lower cost is integrated into the perfect system that has powerful calculating ability, and by SaaS(Software-as-a-service), PaaS(Platform-as-a-Service), IaaS(Infrastructure as a Service), MSP(Managed Service Provider) etc. advanced business model this powerful computing capability is distributed in terminal use's hand.
In real world applications, cloud computing platform is generally made up of cloud platform and cloud management platform.Its medium cloud platform provides the basic function of cloud computing, and cloud management platform externally provides operation interface for user operation, internally sends corresponding order according to the operation of user to cloud platform.In order to allow cloud platform and cloud management platform have a lower degree of coupling, make a cloud platform can without the need to adapting to multiple cloud management platform through amendment, cloud platform and cloud management platform store data independently.But cloud management platform is the platform of management cloud platform after all, and data major part above comes from cloud platform.Therefore, synchronously data are between the two a matter of great account feelings.
And prior art is not about the implementation of this respect, in actual applications, general way allows the timing of cloud management platform go cloud platform to obtain corresponding data, and be updated on the database of cloud management platform.This method reduces cloud platform and the cloud management platform degree of coupling, makes a cloud platform can without the need to adapting to multiple cloud management platform through amendment; But not allow cloud platform initiatively send out message when data change to cloud management platform.Because cloud management platform will upgrade a large amount of invalid data, cause Data Update amount too large.Such as, inside cloud platform create have 10,000 virtual machines, between cloud management platform and cloud platform the frequency of Timing Synchronization data be 20 seconds once.In certain period, these ten thousand virtual machines are all halted states.According to the method described above, cloud management platform still or go cloud platform to obtain data with every 20 seconds speed once and be updated on oneself database; Now whether cloud management platform does not compare the data got and changes and be just updated on database.
Summary of the invention
In order to overcome the deficiencies in the prior art, the present invention proposes the method for data syn-chronization between a kind of cloud management platform and cloud platform, and this method is a kind of efficiently feasible method, can reduce the workload of cloud management platform.
To achieve these goals, technical scheme of the present invention is:
A method for data syn-chronization between cloud management platform and cloud platform, comprises the following steps:
1) cloud management platform obtains the total data in cloud when starting to cloud platform, is updated to the database of cloud management platform and leaves in the comparison database in internal memory;
2) cloud management platform obtains data every the Y time to cloud platform and is stored in the real-time data base in internal memory, and empties the total data in the real-time data base that the last time leaves in internal memory; Wherein Y<X, X are the data syn-chronization time between cloud management platform and cloud platform;
3), when cloud management platform obtains data to cloud platform the N time, as N*Y >=X, cloud management platform starts synchrodata;
4) total data of the total data in the real-time data base of current acquisition and the comparison database in internal memory is compared one by one, when both data are inconsistent, real time data inconsistent for the appearance of current acquisition is put into renewal queue;
5) the whole real time datas upgraded in queue are updated in the database of cloud management platform by cloud management platform; Whole real time datas of current acquisition are stored in the comparison database in internal memory, and empty the total data in the comparison database that the last time leaves in internal memory;
6) times N resets by cloud management platform, jumps to step 3).
Cloud management platform will obtain data every the Y time from cloud platform and leave in internal memory, data are obtained from cloud platform the N time in cloud management platform, as N*Y >=X, in internal memory, carry out data compare, its speed compared quickly, effectively can reduce the useless operation to database, improve the efficiency of whole system.
In described step 3) as N*Y<X, jump to step 2).
In described step 4) when the total data in the real-time data base of current acquisition is consistent with the total data in the comparison database in internal memory, jump to step 6)
Wherein the data of step 4) relatively can comprise the epidemic situation comparison to the virtual-machine data in cloud platform data.Due under the constant prerequisite of the state of virtual machine, cloud platform initiatively can not revise other information of virtual machine, so compare the state of virtual machine at this, when virtual state does not meet in the virtual machine state finding to compare in data and current data, then current virtual-machine data is put into renewal queue.
Beneficial effect of the present invention:
(1) adopt method of the present invention, cloud management platform can timing also be put into the data of cloud platform in the database of cloud management platform rapidly, without the need to the data high-frequency do not changed in a large number being updated in the database of cloud management platform.The speed compared data in internal memory quickly, effectively can reduce the useless operation to database, improves the efficiency of whole system.
(2) adopt method of the present invention, cloud management platform, once need to provide real time data to check to user, directly can obtain data from the real-time data base internal memory.The time Y obtaining the data of cloud platform due to cloud management platform is less than the time X of cloud management platform with buyun platform, and the data that therefore user sees in cloud management platform can more " in real time ".Simultaneously, real time data in internal memory is got owing to data being presented to user Shi Shi at every turn, instead of send order acquisition directly to cloud platform, therefore, when section occurs that multiple user checks identical real time data at one time, method of the present invention also can be presented to user data efficiently and can not cause excessive communication load to cloud platform.
Accompanying drawing explanation
Fig. 1 is flow chart of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention will be further described.
As shown in Figure 1, a kind of method of data syn-chronization between cloud management platform and cloud platform, comprises the following steps:
(1) cloud management platform obtains the total data in cloud when starting to cloud platform, and is updated on the database of cloud management platform;
(2) first time is stored in the comparison database in internal memory from the total data the cloud that cloud platform gets when startup by cloud management platform;
(3) cloud management platform obtains data every the Y time to cloud platform and is stored in the real-time data base in internal memory, and empties the total data in the real-time data base that the last time leaves in internal memory; Wherein Y<X, X are the data syn-chronization time between cloud management platform and cloud platform;
(4), after cloud management platform obtains data to cloud platform the N time, as N*Y >=X, cloud management platform will start synchrodata, as N*Y<X, jump to step (3);
(5) when cloud management platform synchrodata, first the total data in the comparison database in internal memory is taken out, and then compare with the total data in the real-time data base in the cloud platform of current acquisition; Total data in the cloud platform of current acquisition is the whole real time datas in the real-time data base leaving in internal memory that obtains to cloud platform of the cloud management platform the N time of above-mentioned steps (4);
(6) data in current real time data and the total data in comparison database all inconsistent time, put that the inconsistent real time data in current cloud platform into renewal queue; When the data in the comparison database in internal memory are consistent with the real time data of current acquisition, then jump to step (8);
For the cloud controller in cloud platform data, cluster and host data, cloud platform needs more all parameters relevant with machine, comprises machine state, machine internal memory, machine CPU and other virtual resources.
(7) whole real time datas of current acquisition in the database of cloud management platform, are stored in the comparison database in internal memory by cloud management platform by Data Update in renewal queue, and empty the total data in the comparison database that the last time leaves in internal memory;
(8) times N resets by cloud management platform; Jump to step (3).
In the present embodiment, between setting cloud management platform and cloud platform the frequency of Timing Synchronization data be 20 seconds once, i.e. X=20 second.
Between cloud management platform and cloud platform, the concrete steps of the method for data syn-chronization comprise:
S1: cloud management platform obtains the total data in cloud when starting to cloud platform, is updated to the database of cloud management platform and leaves in the comparison database in internal memory;
S2: cloud management platform obtained total data every 8 seconds to cloud platform and is stored in the real-time data base in internal memory, and empty the total data in the real-time data base that the last time leaves in internal memory;
S3: when cloud management platform obtains data to cloud platform the Y=3 time, cloud management platform starts synchrodata;
S4: the total data in the comparison database in whole real time data of current acquisition and internal memory compared one by one, when both data are inconsistent, puts into renewal queue by real time data inconsistent for the appearance of current acquisition;
S5: cloud management platform by renewal queue in Data Update in the database of cloud management platform; Whole real time datas of current acquisition are stored in the comparison database in internal memory, and empty the total data in the comparison database that the last time leaves in internal memory;
S6: cloud management platform, by number of times Y=3 clearing and Y=0, jumps to step 3).

Claims (1)

1. the method for data syn-chronization between cloud management platform and cloud platform, is characterized in that comprising the following steps:
1) cloud management platform obtains the total data in cloud when starting to cloud platform, is updated to the database of cloud management platform and leaves in the comparison database in internal memory;
2) cloud management platform obtains data every the Y time to cloud platform and is stored in the real-time data base in internal memory, and empties the data in the real-time data base that the last time leaves in internal memory; Wherein Y<X, X are the data syn-chronization time between cloud management platform and cloud platform;
3) when cloud management platform obtains data to cloud platform the N time, as N*Y >=X, cloud management platform starts synchrodata, as N*Y<X, jumps to step 2);
4) total data in the total data in the real-time data base of current acquisition and the comparison database in internal memory is compared one by one, when both data are inconsistent, real time data inconsistent for the appearance of current acquisition is put into renewal queue; When total data in the real-time data base of current acquisition is consistent with the total data in the comparison database in internal memory, jump to step 6);
5) the whole real time datas upgraded in queue are updated in the database of cloud management platform by cloud management platform; Whole real time datas of current acquisition are stored in the comparison database in internal memory, and empty the total data in the comparison database that the last time leaves in internal memory;
6) times N resets by cloud management platform, jumps to step 3).
CN201210393339.3A 2012-10-17 2012-10-17 Method for synchronizing data between cloud management platform and cloud platform Active CN102917044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210393339.3A CN102917044B (en) 2012-10-17 2012-10-17 Method for synchronizing data between cloud management platform and cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210393339.3A CN102917044B (en) 2012-10-17 2012-10-17 Method for synchronizing data between cloud management platform and cloud platform

Publications (2)

Publication Number Publication Date
CN102917044A CN102917044A (en) 2013-02-06
CN102917044B true CN102917044B (en) 2015-04-29

Family

ID=47615274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210393339.3A Active CN102917044B (en) 2012-10-17 2012-10-17 Method for synchronizing data between cloud management platform and cloud platform

Country Status (1)

Country Link
CN (1) CN102917044B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607418B (en) * 2013-07-25 2016-12-28 上海和辰信息技术有限公司 Large-scale data segmenting system based on cloud service data characteristics and dividing method
CN105681371A (en) * 2014-11-18 2016-06-15 中兴通讯股份有限公司 Synchronization method and device for network device virtual machines
CN105100282B (en) * 2015-09-06 2021-06-08 浪潮软件股份有限公司 Timer tool under tobacco cloud platform
CN110719317A (en) * 2019-09-06 2020-01-21 浙江无极互联科技有限公司 Monitoring system for designing cloud management platform
CN112291081B (en) * 2020-09-29 2022-06-28 新华三信息安全技术有限公司 Method, system and storage medium for auditing controller cluster data by cloud management platform
CN115640100B (en) * 2022-11-08 2023-05-23 安超云软件有限公司 Virtual machine information synchronization method and computer readable medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464895A (en) * 2009-01-21 2009-06-24 阿里巴巴集团控股有限公司 Method, system and apparatus for updating internal memory data
CN102647289A (en) * 2011-02-16 2012-08-22 苏州同程旅游网络科技有限公司 On-line and off-line use integration method based on SaaS (Software as a Service)

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464895A (en) * 2009-01-21 2009-06-24 阿里巴巴集团控股有限公司 Method, system and apparatus for updating internal memory data
CN102647289A (en) * 2011-02-16 2012-08-22 苏州同程旅游网络科技有限公司 On-line and off-line use integration method based on SaaS (Software as a Service)

Also Published As

Publication number Publication date
CN102917044A (en) 2013-02-06

Similar Documents

Publication Publication Date Title
CN102917044B (en) Method for synchronizing data between cloud management platform and cloud platform
CN110262899B (en) Monitoring component elastic expansion method and device based on Kubernetes cluster and controlled terminal
US9389903B2 (en) Method, system and apparatus for creating virtual machine
CN103067425B (en) Virtual machine creation method, virtual machine management system and relevant device
CN102999369B (en) The method and device of virtual machine upgrading
CN102882909B (en) Cloud computing service monitoring system and method thereof
CN105468362A (en) Application deployment method and cloud computing system
CN110502340A (en) A kind of resource dynamic regulation method, device, equipment and storage medium
CN102164184A (en) Computer entity access and management method for cloud computing network and cloud computing network
CN103002044B (en) A kind of method that improves multi-platform intelligent terminal disposal ability
CN103561055B (en) Web application automatic elastic extended method under conversation-based cloud computing environment
CN103902593A (en) Data transfer method and device
CN103986786A (en) Remote cloud desktop operation system
WO2017080257A1 (en) Data processing method and system based on key-value pair
CN104063261A (en) Multi-objective optimization virtual machine placing method under cloud environment
JP2016103113A5 (en)
CN102932418A (en) Cloud application deploying method and device
CN102945193B (en) A kind of restoration methods and electronic equipment of operation data
CN102404411A (en) Data synchronization method of cloud storage system
CN103780428A (en) Centralized resource management method and system applied to cloud architecture
CN109474467A (en) Network automatically management method, device, storage medium and electronic equipment
CN105208093B (en) The structure system of resource pool is calculated in a kind of cloud operating system
CN104461739A (en) Cloudsim platform based virtual machine batch deployment method
CN103559063A (en) Update method and update system of application, application system and parameter configuration system
CN109960579A (en) A kind of method and device of adjustment business container

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant