CN103856536B - Synchronisation control means and sync control device - Google Patents
Synchronisation control means and sync control device Download PDFInfo
- Publication number
- CN103856536B CN103856536B CN201210517937.7A CN201210517937A CN103856536B CN 103856536 B CN103856536 B CN 103856536B CN 201210517937 A CN201210517937 A CN 201210517937A CN 103856536 B CN103856536 B CN 103856536B
- Authority
- CN
- China
- Prior art keywords
- slave unit
- backed
- main equipment
- quota value
- data
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to synchronisation control means and sync control device, wherein synchronisation control means includes:Total quota value and at least slave unit quota value during lock in time of the main equipment within a lock in time is set, the data to be backed up of main equipment is obtained and each slave unit corresponding with data to be backed up is obtained from an at least slave unit according to data to be backed up;And in the case where the quota value of total quota value and acquired slave unit is more than zero, then the data to be backed up in main equipment is sent in the slave unit to quota value more than zero and backed up, and change the quota value of total quota value and acquired slave unit.The present invention can balancedly control no-load speed, so as to ensure the stable operation of system.
Description
Technical field
The present invention relates to simultaneous techniques field, more particularly to synchronisation control means and sync control device.
Background technology
In order to ensure safe operation, disparate networks system at present, such as UGC systems increasingly emerge, and cause industry
Extensive concern.UGC(User Generated Content, user's original content)It is the new side that a kind of user uses internet
Formula, i.e., become to download based on download and upload is laid equal stress on by original.Community network, video sharing network, blog etc. are all UGC
Main application form.These systems can introduce Disaster Tolerant Scheme in design, and Disaster Tolerant Scheme requires that at least two parts of system can
Full back-up data, each Backup Data is separate in deployment, and can provide the real time service of full dose, wherein
The equipment for storing a certain Backup Data is main equipment, and all write operations all only update the Backup Data of main equipment, Ran Houzai
By the Backup Data real-time synchronization of main equipment to other slave units, so as to ensure offer that each Backup Data can be independent
Real time access service.This requires Backup Data not only to need quickly to be synchronized to each slave unit in real time, and to ensure to lead
Equipment can not consume excessive resource because of the operation for being synchronized to slave unit.The Backup Data of existing main equipment is synchronized to from setting
Whether standby method is variant by detecting the Backup Data between main equipment and slave unit, if variant, by difference portion
Divide and be immediately sent to slave unit.
But existing this synchronous method has the disadvantage that:Firstly, since the network bandwidth of each slave unit may
Larger difference be present, therefore each respective no-load speed of slave unit can not be formulated according to actual conditions.Secondly, as long as main equipment
Backup Data will be sent to slave unit by detecting that the Backup Data between slave unit has differences, when main equipment writes
Substantial amounts of system money can be taken when larger data difference between peak or main equipment and slave unit be present, in synchronizing process
Source, so as to cause that synchronous service can not be normally carried out.In addition, same main equipment may run multiple synchronized process simultaneously, respectively
Do not communicated mutually between individual synchronized process, can each do the best preempting resources, close corresponding resource after a synchronized process
It can be seized rapidly by other processes, so that easy-regulating is not allowed in the load of main equipment.Furthermore when between main equipment and slave unit
Backup Data difference it is big when, no-load speed can quickly, and Backup Data difference hour between main equipment and slave unit, synchronous
Speed is very slow, and so synchronous rate fluctuation is larger, so that the fluctuation of service of system.
The content of the invention
Therefore, the present invention provides synchronisation control means and sync control device, it is ensured that no-load speed is controllable, sets master
It is standby can be equably by data syn-chronization to be backed up to corresponding slave unit.
Specifically, a kind of synchronisation control means that the embodiment of the present invention proposes, including step:Set main equipment same at one
Walk the quota value within lock in time of total quota value and an at least slave unit in the time, obtain main equipment data to be backed up and
Each slave unit corresponding with data to be backed up is obtained from an at least slave unit according to data to be backed up;And in total quota value
And in the case that the quota value of acquired slave unit is more than zero, then the data to be backed up in main equipment are sent big to quota value
Backed up in zero slave unit, and change the quota value of total quota value and acquired slave unit.
In addition, the embodiment of the present invention propose a kind of sync control device, including quota setup module, acquisition module and
Judge module, quota setup module, for setting total quota value and an at least slave unit of the main equipment within a lock in time
Quota value within lock in time.Acquisition module, for obtain main equipment data to be backed up and according to data to be backed up to
Each slave unit corresponding with data to be backed up is obtained in a few slave unit.Judge module, in total quota value and acquired
Slave unit quota value be more than zero in the case of, then by data to be backed up in main equipment send to quota value more than zero from
Backed up in equipment, and change the quota value of total quota value and acquired slave unit.
From above-described embodiment, the present invention is by setting total quota value of the main equipment within a lock in time and at least
Quota value of one slave unit within a lock in time, it is more than zero feelings in the quota value of total quota value and acquired slave unit
Under condition, then the data to be backed up in main equipment are sent in the slave unit to quota value more than zero and backed up, and changed and always match somebody with somebody
The quota value of volume value and acquired slave unit.So, each slave unit is both provided with a quota, can be according to each from setting
Standby difference and bandwidth situation carry out the configuration of differentiation so that the utilization of resource can maximize.Total quota of main equipment with
And the use of slave unit quota, it can at utmost ensure that the no-load speed of system is controllable.When between main equipment and slave unit
, can be by quota restrictions when Backup Data differs greatly so that main equipment can be equably by data syn-chronization to be backed up to accordingly
Slave unit.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects, features and advantages of the present invention can
Become apparent, below especially exemplified by preferred embodiment, and coordinate accompanying drawing, describe in detail as follows.
Brief description of the drawings
Fig. 1 is the step flow chart for the synchronisation control means that the embodiment of the present invention proposes;
Fig. 2 is the step flow chart for the synchronisation control means that another embodiment of the present invention proposes;
Fig. 3 is the main equipment that the embodiment of the present invention proposes and the schematic diagram of slave unit;
Fig. 4 is the main frame block diagram for the sync control device that the embodiment of the present invention proposes.
Embodiment
Further to illustrate the present invention to reach the technological means and effect that predetermined goal of the invention is taken, below in conjunction with
Accompanying drawing and preferred embodiment, to according to synchronisation control means proposed by the present invention and sync control device its embodiment,
Structure, feature and effect, describe in detail as after.
For the present invention foregoing and other technology contents, feature and effect, in the following preferable reality coordinated with reference to schema
Applying during example describes in detail to be clearly presented.By the explanation of embodiment, when predetermined mesh can be reached to the present invention
The technological means taken and effect be able to more deeply and it is specific understand, but institute's accompanying drawings are only to provide with reference to saying
It is bright to be used, not it is used for being any limitation as the present invention.
Fig. 1 is the step flow chart for the synchronisation control means that the embodiment of the present invention proposes.Fig. 3 is that the embodiment of the present invention proposes
Main equipment and slave unit schematic diagram.Also referring to Fig. 1 and Fig. 3, the synchronisation control means of the embodiment of the present invention may include
Following steps S101-S103:
Step S101:Total quota value and an at least slave unit of the main equipment within a lock in time are set in a synchronization
Quota value in time, obtain the data to be backed up of main equipment and obtain and treat from an at least slave unit according to data to be backed up
Each slave unit corresponding to Backup Data.
In this step, slave unit(Slave unit 301 as shown in Figure 3, slave unit 302, slave unit 303 etc.)For backing up master
Equipment(Main equipment 310 as shown in Figure 3)The data to be backed up of memory storage.Can be according to the ability of main equipment output data, example
Total quota of the main equipment within a lock in time is such as set according to the bandwidth of main equipment.It can be received according to each slave unit
The ability of data, such as quota value of each slave unit within a lock in time is set according to the bandwidth of each slave unit.
Quota value can carry out the configuration of differentiation according to each main equipment, the difference of slave unit and bandwidth situation so that the profit of resource
With can maximize.The length of one lock in time can carry out respective settings according to being actually needed, such as lock in time can
To be arranged to a unit interval.Total quota value and quota value can be more than zero integer or other any numbers.If most
When just synchronous, the numbering size for obtaining the slave unit that can receive data to be backed up as required during slave unit is selected successively
Select.The numbering of slave unit can be prestored in main equipment.Data to be backed up can also pre-set and want according to being actually needed
Backuping at least one or more of slave unit, i.e. at least one or more of slave unit is relative with data to be backed up
Should.If the numbering of slave unit, since 1, it is 1,3,5 that the current data to be backed up in main equipment, which pre-set numbering to be backuped to,
Slave unit in, then in this step, slave unit that numbering is 1,3,5 can be obtained successively as needing to receive data to be backed up
Slave unit.Synchronized process in Fig. 3 can carry out backup operation simultaneously.
Step S103:In the case where the quota value of total quota value and acquired slave unit is more than zero, then by main equipment
In data to be backed up send to quota value more than zero slave unit in backed up, and change total quota value and it is acquired from
The quota value of equipment.
In this step, illustrated by taking Fig. 3 as an example, if acquired slave unit is slave unit 301,302 and 303, according to
Whether the quota value of the slave unit 301,302 and 303 acquired in secondary judgement is more than zero.Here, can be according to being actually needed every hair
After having sent a Backup Data, the quota value of total quota value and acquired slave unit is just changed, such as can be by total quota value
And a setting value is individually subtracted in the quota value of acquired slave unit.
In embodiments of the present invention, the present invention is by setting total quota value of the main equipment within a lock in time and at least
Quota value of one slave unit within a lock in time, it is more than zero feelings in the quota value of total quota value and acquired slave unit
Under condition, then the data to be backed up in main equipment are sent in the slave unit to quota value more than zero and backed up, and changed and always match somebody with somebody
The quota value of volume value and acquired slave unit.So, each slave unit is both provided with a quota, can be according to each from setting
Standby difference and bandwidth situation carry out the configuration of differentiation so that the utilization of resource can maximize.Total quota of main equipment with
And the use of slave unit quota, it can at utmost ensure that the no-load speed of system is controllable.When between main equipment and slave unit
, can be by quota restrictions when Backup Data differs greatly so that main equipment can be equably by data syn-chronization to be backed up to accordingly
Slave unit.In addition, main equipment can also run multiple synchronized process simultaneously, and one that each synchronized process shares main equipment matches somebody with somebody
Volume, so as to control in one lock in time of main equipment can be synchronous maximum amount of data, ensure that the stable fortune of business process
OK, when closing some synchronized process of main equipment, quota can be changed, such as subtracts a certain amount of quota of main equipment, and not
The synchronization of other main equipment processes can be influenceed.
Fig. 2 is the step flow chart of synchronisation control means provided in an embodiment of the present invention.Fig. 2 is changed on the basis of Fig. 1
And then come.Also referring to Fig. 2 and Fig. 3, the synchronisation control means of the embodiment of the present invention may include following steps S200-
S220:
Step S200:When reaching lock in time, total quota value of the main equipment within a lock in time and at least is set
Quota value of one slave unit within a lock in time.
In this step, slave unit(Slave unit 301 as shown in Figure 3, slave unit 302, slave unit 303 etc.)For backing up master
Equipment(Main equipment 310 as shown in Figure 3)The data to be backed up of memory storage.Can be according to the ability of main equipment output data, example
Total quota of the main equipment within a lock in time is such as set according to the bandwidth of main equipment.It can be received according to each slave unit
The ability of data, such as quota value of each slave unit within a lock in time is set according to the bandwidth of each slave unit.
Quota value can carry out the configuration of differentiation according to each main equipment, the difference of slave unit and bandwidth situation so that the profit of resource
With can maximize.The length of one lock in time can carry out respective settings according to being actually needed, such as lock in time can
To be arranged to a unit interval.Total quota value and quota value can be more than zero integer or other any numbers.
Step S201:Judge available number section whether is stored with main equipment, if so, step S202 is then carried out, if it is not, then
Continue step S201.
In this step, number section(Number section 1 as shown in Figure 3, number section 2, number section N etc.)Usual one continuous user's of expression
ID scopes, it is the base unit of deployment or migration.As every 100,000 continuous ID can be used as a number section.If main equipment storage is used
The information that family uploads, then the number section stored in main equipment is the ID scopes of the continuous user of upload information.Judging main set
When whether being stored with available number section in standby, all number sections stored in main equipment are obtained first, and recycling checks each number section
Whether can use, if be arranged to can not be synchronous for certain number section, then it represents that this number section is unavailable.Can be with if certain number section is arranged to
It is synchronous, then it represents that this number section can use.
Step S202:Obtain an available number section.
In this step, an available number section is obtained in the available number section that can be stored from main equipment.During initial synchronization,
It can be selected successively according to the numbering size of available number section.
Step S203:Judge whether there are available data to be backed up in acquired number section.If so, then carry out step
S205, if nothing, carry out step S204.
In this step, whether each data to be backed up can use in the number section acquired in circular test, if some to be backed up
Data are arranged to can not be synchronous, then it represents that these data to be backed up are unavailable.Can if some data to be backed up are arranged to
With synchronization, then it represents that these data to be backed up can use.Such as the ID scopes of acquired number section are 1 to 100, then circular test successively
Whether available to be backed up data are had in the range of this ID.
Step S204:Next available number section is obtained, and carries out step S203.
Step S205:Obtaining one from an at least slave unit according to available data to be backed up needs to receive number to be backed up
According to slave unit.
In this step, if in initial synchronization, can be received as required when obtaining slave unit data to be backed up from setting
Standby numbering size is selected successively.The numbering of slave unit can be prestored in main equipment.Data to be backed up can also root
According to being actually needed and at least one or more of slave unit will be backuped to by pre-setting.If the numbering of slave unit since 1,
Current data to be backed up in main equipment, which are pre-set, will backup in the slave unit that numbering is 1,3,5, then in this step, can
The slave unit of the data to be backed up received using first obtaining the slave unit that numbering is 1 as needs.
Step S206:Judge whether total quota value of main equipment is more than zero, if so, step S207 is then carried out, if it is not, then entering
Row step S217.
Step S207:Judge whether the quota value of acquired slave unit is more than zero, if so, step S208 is then carried out, if
It is no, then carry out step S211.
Step S208:An available data to be backed up are chosen from acquired number section, by the data to be backed up of selection
Transmission is backed up into acquired slave unit.Change the quota value of total quota value and acquired slave unit.
In this step, total quota value and acquired slave unit can be changed according to being actually needed quota value, such as can
So that the quota value of total quota value and acquired slave unit is individually subtracted into a setting value.
Step S210:Judge whether data to be backed up are all sent in acquired number section, if so, then carrying out step
S211, if it is not, then carrying out step S206.
Step S211:Judge whether the slave unit of data to be backed up in the number section acquired in reception also in need, if so, then
Carry out step S212.If it is not, then carry out step S201.
Step S212:Next slave unit for needing to receive data to be backed up is obtained, carries out step S206.
In this step, if the numbering of slave unit, since 1, the current data to be backed up in main equipment pre-set and backed up
, then in this step, can if the slave unit that numbering is 1 has received data to be backed up in the slave unit for being 1,3,5 to numbering
The slave unit of the data to be backed up received using obtaining the slave unit that numbering is 3 or 5 as needs.
Step S217:Stop simultaneously operating and record current data to be backed up in acquired number section, acquired number section
And acquired slave unit.
In this step, if total quota value is less than zero, stop simultaneously operating, and record acquired when stopping simultaneously operating
Number section, stop slave unit acquired when data to be backed up current during simultaneously operating and termination simultaneously operating.If in general number
When the slave unit that second data to be backed up in section 1 are 9 to numbering is sent, simultaneously operating stops, then right respectively in this step
1, second data to be backed up of number section and numbering be 9 slave unit recorded so as to next simultaneously operating start when, from synchronization
Start synchronization at termination.
Step S218:Main equipment is waited next lock in time, and judge whether next lock in time reaches, if
It is step S219 then to be carried out, if otherwise continuing step S218.
Step S219:Total quota value and an at least slave unit of the main equipment herein in next lock in time are set under this
Quota value in one lock in time.
In this step, when reaching next lock in time, then it is total within this lock in time that main equipment is reset again
The quota value of quota value and each slave unit within this lock in time.Its set-up mode and the set-up mode phase in step S200
Seemingly, here is omitted.Main equipment can also be made at one by setting according to being actually needed when reaching each lock in time
The quota value of total quota value and each slave unit within a lock in time in lock in time automatically restores to an initial value.
Step S220:Judge current data to be backed up whether have been recorded in the number section of record, if nothing, carry out step
S204, if so, then carrying out step S206.
In this step, if record has current data to be backed up, current from record number section when stopping simultaneously operating is treated
Backup is proceeded by Backup Data, if not recorded current data to be backed up, is opened from the data to be backed up of next number section
Begin to back up.
In an embodiment of the present invention, the present invention is by setting total quota value of the main equipment within a lock in time and extremely
Few quota value of the slave unit within a lock in time, then by judging total quota value of main equipment and acquired in judging successively
Each slave unit quota value whether be more than zero., will if the quota value of total quota value and acquired slave unit is more than zero
Data to be backed up in main equipment send successively to quota value more than zero slave unit in backed up, and change total quota value and
The quota value of acquired slave unit.When also by judging that if total quota value of main equipment is less than zero, stop simultaneously operating, and
Current data to be backed up and acquired slave unit in the acquired number section of record, acquired number section, wait main equipment
Next lock in time, and when reaching next lock in time, main equipment always matching somebody with somebody in next lock in time herein is set
Volume value and at least a slave unit quota value in next lock in time herein.Again from record number section when stopping simultaneously operating
Backup is proceeded by current data to be backed up.So, each slave unit is both provided with a quota, can be according to each from setting
Standby difference and bandwidth situation carry out the configuration of differentiation so that the utilization of resource can maximize.Total quota of main equipment with
And the use of slave unit quota, it can at utmost ensure that the no-load speed of system is controllable.When between main equipment and slave unit
, can be by quota restrictions when Backup Data differs greatly so that main equipment can be equably by data syn-chronization to be backed up to accordingly
Slave unit.In addition, main equipment can also run multiple synchronized process simultaneously, and one that each synchronized process shares main equipment matches somebody with somebody
Volume, so as to control in one lock in time of main equipment can be synchronous maximum amount of data, ensure that the stable fortune of business process
OK, when closing some synchronized process of main equipment, quota can be changed, such as subtracts a certain amount of quota of main equipment, and not
The synchronization of other main equipment processes can be influenceed.And the present invention can also realize effective recovery when stopping simultaneously operating.
Fig. 4 is the main frame block diagram for the sync control device that the embodiment of the present invention proposes.Referring to Fig. 3, Synchronization Control
Device includes:Quota setup module 401, acquisition module 403 and judge module 405.
More specifically, quota setup module 401, sets total quota value and at least one of the main equipment within a lock in time
Quota value of the slave unit within lock in time.
Acquisition module 403, for obtaining the data to be backed up of main equipment and according to data to be backed up from an at least slave unit
It is middle to obtain each slave unit corresponding with data to be backed up.
Judge module 405, for judging total quota value of main equipment and judging matching somebody with somebody for acquired each slave unit successively
Whether volume value is more than zero, and in the case where the quota value of total quota value and acquired slave unit is more than zero, then by main equipment
In data to be backed up send to quota value more than zero slave unit in backed up, and change total quota value and it is acquired from
The quota value of equipment.
Moreover, it is judged that module 405, is additionally operable to judge whether data to be backed up are all sent;If so, then judge whether
The slave unit also in need for receiving data to be backed up;If it is not, then judge total quota value of main equipment and judge successively acquired
Whether the quota value of each slave unit is more than zero.
In addition, sync control device can also include:Number section detection module 407 and replacement module 409.
Number section detection module 407, for judging available number section whether is stored with main equipment, if so, then obtaining one
Available number section, then judge whether there are available data to be backed up in acquired number section;If so, then perform acquisition module 403.
In addition, number section detection module 407, if being additionally operable to judge is not stored with available number section in main equipment, continues to sentence
Available number section whether is stored with disconnected main equipment;If there is no available data to be backed up in selected number section, under obtaining
One available number section, then judge whether there are available data to be backed up in acquired number section.
Moreover, it is judged that module 405, if being additionally operable to judge the slave unit in need for receiving data to be backed up, is obtained next
The individual slave unit for needing to receive data to be backed up, then perform the total quota value for judging main equipment and judge acquired slave unit
Whether quota value is more than zero.If judgement does not need to receive the slave unit of data to be backed up, perform in number section detection module 407
Judge available number section whether is stored with main equipment.
Module 409 is reset, if for judging that total quota value of main equipment is less than zero, stops simultaneously operating and record to be obtained
Current data to be backed up and acquired slave unit in the number section that takes, acquired number section, wait main equipment next same
The time is walked, and judges whether next lock in time reaches;If next lock in time reaches, main equipment is set next
The quota value of total quota value and an at least slave unit within next lock in time in lock in time;In the number section for judging record
Whether record has current data to be backed up, if record has, carry out the total quota value for judging main equipment in judge module and according to
Whether the quota value of each slave unit acquired in secondary judgement is more than zero.If not recording, perform in number section detection module 407
Next available number section is obtained, then judges whether there are available data to be backed up in acquired number section.
In embodiments of the present invention, the present invention is by setting total quota value of the main equipment within a lock in time and at least
Quota value of one slave unit within a lock in time, then by judging total quota value of main equipment and judging successively acquired
Whether the quota value of each slave unit is more than zero., will be main if the quota value of total quota value and acquired slave unit is more than zero
Data to be backed up in equipment send in the slave unit to quota value more than zero and backed up successively, and change total quota value and institute
The quota value of the slave unit of acquisition.When also by judging that if total quota value of main equipment is less than zero, stop simultaneously operating, and remember
Current data to be backed up and acquired slave unit in the acquired number section of record, acquired number section, make under main equipment wait
One lock in time, and when reaching next lock in time, total quota of the main equipment herein in next lock in time is set
It is worth and the quota value in an at least slave unit herein next lock in time.Working as from record number section when stopping simultaneously operating again
Backup is proceeded by preceding data to be backed up.So, each slave unit is both provided with a quota, can be according to each slave unit
Difference and bandwidth situation carry out differentiation configuration so that the utilization of resource can maximize.Total quota of main equipment and
The use of slave unit quota, it can at utmost ensure that the no-load speed of system is controllable.When standby between main equipment and slave unit
, can be by quota restrictions when part data differ greatly so that main equipment can equably by data syn-chronization to be backed up to accordingly from
Equipment.In addition, main equipment can also run multiple synchronized process simultaneously, and one that each synchronized process shares main equipment matches somebody with somebody
Volume, so as to control in one lock in time of main equipment can be synchronous maximum amount of data, ensure that the stable fortune of business process
OK, when closing some synchronized process of main equipment, quota can be changed, such as subtracts a certain amount of quota of main equipment, and not
The synchronization of other main equipment processes can be influenceed.And the present invention can also realize effective recovery when stopping simultaneously operating.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is controlled to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, RAM)Deng.
The above described is only a preferred embodiment of the present invention, any formal limitation not is made to the present invention, though
So the present invention is disclosed above with preferred embodiment, but is not limited to the present invention, any to be familiar with this professional technology people
Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification
For the equivalent embodiment of equivalent variations, as long as being the technical spirit pair according to the present invention without departing from technical solution of the present invention content
Any simple modification, equivalent change and modification that above example is made, in the range of still falling within technical solution of the present invention.
Claims (8)
1. a kind of synchronisation control means, it is characterized in that:Including step:
Total quota value and at least slave unit quota value during lock in time of the main equipment within a lock in time is set,
Obtain the data to be backed up of the main equipment and obtained and the number to be backed up from this at least a slave unit according to the data to be backed up
According to corresponding each slave unit;And
, then will be to be backed up in the main equipment in the case where the quota value of total quota value and the acquired slave unit is more than zero
Data send in the slave unit to quota value more than zero and backed up, and change total the quota value and the acquired slave unit
Quota value;
Total quota value and an at least slave unit of the main equipment within a lock in time are set within the lock in time performing
In the step of quota value, in addition to step:
Judge available number section whether is stored with the main equipment, if so, then obtaining an available number section;And
Judge whether there are available data to be backed up in the acquired number section;The to be backed up of main equipment is obtained if so, then performing
Data and each slave unit corresponding with the data to be backed up is obtained from this at least a slave unit according to the data to be backed up
Step.
2. synchronisation control means according to claim 1, it is characterized in that:Performing the data to be backed up in the main equipment
Send in being backed up in the slave unit to quota value more than zero, in addition to step:
Judge whether the data to be backed up are all sent;
If so, then judge whether the slave unit also in need for receiving the data to be backed up;And
If it is not, then judge total quota value of the main equipment and judge whether the quota value of acquired each slave unit is more than successively
Zero.
3. synchronisation control means according to claim 2, it is characterized in that:Also include step:
If not being stored with available number section in the main equipment, continue executing with and judge available number whether is stored with the main equipment
The step of section;And
If not having available data to be backed up in selected number section, next available number section is obtained, then performs judgement and is somebody's turn to do
Whether there is the step of available data to be backed up in acquired number section.
4. synchronisation control means according to claim 2, it is characterized in that:Perform total quota value and this it is acquired from
The quota value of equipment be more than zero in the case of in, in addition to step:
Judge total quota value of the main equipment and judge whether the quota value of acquired each slave unit is more than zero successively;
If total quota value of main equipment is less than zero, stops simultaneously operating and record acquired number section, the acquired number section
In current data to be backed up and the acquired slave unit, the main equipment is waited next lock in time, and judge under this
Whether one lock in time reaches;
If next lock in time reaches, total quota value of the main equipment within next lock in time and at least is set
Quota value of one slave unit within next lock in time;And
Judge current data to be backed up whether have been recorded in the number section of record, if so, then carrying out judging total quota of the main equipment
Value and the step of whether the quota value of acquired each slave unit is more than zero is judged successively.
5. a kind of sync control device, it is characterised in that it includes:
Quota setup module, for setting total quota value of the main equipment within a lock in time and at least a slave unit is same at this
Walk the quota value in the time;
Acquisition module, for obtaining the data to be backed up of the main equipment and according to the data to be backed up from this at least a slave unit
Obtain each slave unit corresponding with the data to be backed up;And
Judge module, in the case of being more than zero in the quota value of total the quota value and the acquired slave unit, then should
Data to be backed up in main equipment send in the slave unit to quota value more than zero and backed up, and change total quota value and be somebody's turn to do
The quota value of acquired slave unit;
Wherein, the quota setup module further comprises:
Number section detection module, for judging available number section whether is stored with the main equipment, if so, then acquisition one is available
Number section, then judge whether there are available data to be backed up in the acquired number section;If so, then perform the acquisition module.
6. sync control device according to claim 5, it is characterised in that the judge module, be additionally operable to judge that this is treated standby
Whether part data are all sent;If so, then judge whether the slave unit also in need for receiving the data to be backed up;If it is not,
Then judge total quota value of the main equipment and judge whether the quota value of acquired each slave unit is more than zero successively.
7. sync control device according to claim 5, it is characterised in that the number section detection module, if being additionally operable to judge
If not being stored with available number section in the main equipment, continue to judge whether be stored with available number section in the main equipment;If institute
There is no available data to be backed up in the number section of selection, then obtain next available number section, then judge the acquired number section
In whether have available data to be backed up.
8. sync control device according to claim 7, it is characterised in that it further comprises:
Module is reset, if for judging that total quota value of main equipment is less than zero, stops simultaneously operating and records acquired number
Current data to be backed up and the acquired slave unit in section, the acquired number section, wait the main equipment next same
The time is walked, and judges whether next lock in time reaches;If next lock in time reaches, the main equipment is set to exist
The quota value of total quota value and an at least slave unit within next lock in time in next lock in time;Judge note
Whether current to be backed up data have been recorded in the number section of record, if so, then carrying out judging the total of the main equipment in the judge module
Quota value and judge whether the quota value of acquired each slave unit is more than zero successively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210517937.7A CN103856536B (en) | 2012-12-05 | 2012-12-05 | Synchronisation control means and sync control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210517937.7A CN103856536B (en) | 2012-12-05 | 2012-12-05 | Synchronisation control means and sync control device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103856536A CN103856536A (en) | 2014-06-11 |
CN103856536B true CN103856536B (en) | 2018-01-09 |
Family
ID=50863743
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210517937.7A Active CN103856536B (en) | 2012-12-05 | 2012-12-05 | Synchronisation control means and sync control device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103856536B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111181791A (en) * | 2019-12-31 | 2020-05-19 | 浪潮电子信息产业股份有限公司 | Quota management method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1863008A (en) * | 2006-06-20 | 2006-11-15 | 杭州华为三康技术有限公司 | Method and apparatus for implementing data resources synchronization in distributed system |
CN101036358A (en) * | 2004-08-27 | 2007-09-12 | 诺基亚公司 | System for selecting data from a data store based on utility of the data |
CN102447736A (en) * | 2011-11-17 | 2012-05-09 | 华中科技大学 | Management and control method for user quota in multi-network storage system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070038697A1 (en) * | 2005-08-03 | 2007-02-15 | Eyal Zimran | Multi-protocol namespace server |
-
2012
- 2012-12-05 CN CN201210517937.7A patent/CN103856536B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101036358A (en) * | 2004-08-27 | 2007-09-12 | 诺基亚公司 | System for selecting data from a data store based on utility of the data |
CN1863008A (en) * | 2006-06-20 | 2006-11-15 | 杭州华为三康技术有限公司 | Method and apparatus for implementing data resources synchronization in distributed system |
CN102447736A (en) * | 2011-11-17 | 2012-05-09 | 华中科技大学 | Management and control method for user quota in multi-network storage system |
Non-Patent Citations (1)
Title |
---|
基于HDFS的云数据备份系统的设计与实现;杜勇;《中国优秀硕士学位论文全文数据库信息科技辑》;20110915;第I138-70页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103856536A (en) | 2014-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3832578A1 (en) | Electronic invoice identifier allocation method, and electronic ticket generating method, device and system | |
CN105426439B (en) | Metadata processing method and device | |
EP2378718B1 (en) | Method, node and system for controlling version in distributed system | |
CN106445414B (en) | Method and system for expanding available storage space of terminal equipment | |
CN108536752A (en) | A kind of method of data synchronization, device and equipment | |
CA2896973A1 (en) | Methods, devices and systems for dynamically managing memberships in replicated state machines within a distributed computing environment | |
CN105959078B (en) | A kind of cluster method for synchronizing time, cluster and clock synchronization system | |
CN109151028A (en) | A kind of distributed memory system disaster recovery method and device | |
US20130219224A1 (en) | Job continuation management apparatus, job continuation management method and job continuation management program | |
CN109379158A (en) | Time synchronization method, device and equipment for newly added nodes in storage cluster | |
CN104793981B (en) | A kind of online snapshot management method and device of cluster virtual machine | |
CN104808953B (en) | Control the method, device and mobile terminal of data storage | |
CN105989139A (en) | Affair synchronization method and equipment | |
US20160246656A1 (en) | Event management method and distributed system | |
CN103248656A (en) | Method for achieving data reading and writing as well as DSF (distributed file system) and client side | |
CN103856536B (en) | Synchronisation control means and sync control device | |
CN104639399B (en) | More primary time server detection methods and device | |
US9286365B2 (en) | Data synchronizing system and method thereof | |
CN107623705B (en) | Storage mode upgrading method, device and system based on video cloud storage system | |
CN108763339A (en) | Synchronous method, device and the equipment of database data | |
CN110825758B (en) | Transaction processing method and device | |
EP2615548B1 (en) | Computing device | |
CN104636161B (en) | The online patch method and system of a kind of multiple nucleus system | |
CN106776032A (en) | The treating method and apparatus of the I/O Request of distributed block storage | |
CN109274451B (en) | Time acquisition method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |