CN100576848C - Distribution-type data dynamic program agent method - Google Patents

Distribution-type data dynamic program agent method Download PDF

Info

Publication number
CN100576848C
CN100576848C CN200510130419A CN200510130419A CN100576848C CN 100576848 C CN100576848 C CN 100576848C CN 200510130419 A CN200510130419 A CN 200510130419A CN 200510130419 A CN200510130419 A CN 200510130419A CN 100576848 C CN100576848 C CN 100576848C
Authority
CN
China
Prior art keywords
block
client
internal memory
server end
buffering area
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.)
Expired - Fee Related
Application number
CN200510130419A
Other languages
Chinese (zh)
Other versions
CN1980236A (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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN200510130419A priority Critical patent/CN100576848C/en
Publication of CN1980236A publication Critical patent/CN1980236A/en
Application granted granted Critical
Publication of CN100576848C publication Critical patent/CN100576848C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a kind of distribution-type data dynamic program agent method, and it comprises: when a client requires to write one of server end block, indicate a lock flag bit on the control module to the buffering area internal memory of client; Client is notified other machine in the local area network (LAN) at sending out article one broadcast in the local area network (LAN), and block will be locked; Server end after receiving article one broadcast locks block; Client to indicating a dirty bit on the control module of the buffering area internal memory of client, is revised with the content in the buffering area internal memory of record client after write operation is finished, and to the buffering area internal memory release of client; Client is notified other machine in the local area network (LAN) at sending out the second broadcast in the local area network (LAN), and block will be unlocked; And after server end receives the second broadcast,, adopt the present invention can reduce Network Transmission effectively with the block release, improve the performance of distributed data system.

Description

Distribution-type data dynamic program agent method
Technical field
The present invention relates to a kind of distributed data processing method, particularly a kind of distribution-type data dynamic program agent method.
Background technology
The framework of the client end/server end that distributed data system adopts is a kind of cyberrelationship of multi-to-multi, because block may be dispersed on the different servers, and the normally visit by network remote of the block of user's access.
The mode that promotes the distributed data system performance at present is the buffering area internal memory of forbidding client mostly, all operations are finished in the action of server end, existing distributed data processing system configuration diagram as Fig. 1, data block 100 of access for example, need the content of this block 100 to be read client 120 by network 110, operate by client 120 again, again the result is saved in server end 130 after the operation, when the information of block 100 is modified, send amended result to server end 130 immediately, when another client 140 (user asks 3) when opening this block 100, will obtain up-to-date result like this from server end 130.This method is not owing to adopt the temporary technology (utilization buffering area internal memory 150) of client 120,140, all clients 120,140 are not preserved the copy of block 100, there is not the problem of using stale data block 100, but 100 operations of all block must send to server end 130, obtain information by server end 130 by network 110, cause the overload of the network information easily and need a large amount of time of cost in the processing of Network Transmission and agreement.
In traditional mode, can't effectively solve distributed data system and use the processing of block for a plurality of clients simultaneously, have only forbidding buffering area internal memory to improve the co-operate that performance reaches the multi-user, because block can be dispersed on the different machines, so the block of user's access is not usually at local machine but will pass through the access of network remote ground.But most time of network service is to spend on the protocol processes, and comparatively speaking, the transmission of the data that the user really needs only accounts for minimum part, is to improve an effective way of distributed data system performance so reduce Network Transmission.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of distribution-type data dynamic program agent method.
For achieving the above object, distribution-type data dynamic program agent method provided by the present invention, comprise the following steps: when a client requires to write a block of a server end, indicate a lock flag bit on the control module to the buffering area internal memory of client; Client is notified other machine in the local area network (LAN) at sending out article one broadcast in the local area network (LAN), and block will be locked; Server end after receiving article one broadcast locks block; Client to indicating a dirty bit on the control module of the buffering area internal memory of client, is revised with the content in the buffering area internal memory of record client after write operation is finished, and to the buffering area internal memory release of client; Client is notified other machine in the local area network (LAN) at sending out the second broadcast in the local area network (LAN), and block will be unlocked; And after server end receives the second broadcast, with the block release.
Adopt the present invention, can reduce Network Transmission effectively, improve the performance of distributed data system.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is a distributed data processing system configuration diagram in the prior art;
Fig. 2 is a distributed data processing system configuration diagram of the present invention;
Fig. 3 is the tag addresses schematic diagram of distribution-type data dynamic program agency's of the present invention control module; And
Fig. 4 is a distribution-type data dynamic program agent method flow chart of the present invention.
Wherein, Reference numeral:
100: block
110: network
120: client
130: server end
140: client
150: the buffering area internal memory
160: control module
310: the lock flag bit
320: dirty bit
When step 401 requires to write a data block of a server end when a client, indicate a lock flag bit on the control module to the buffering area internal memory of this client
This client of step 402 is notified other machine in this LAN for sending out article one broadcast in the LAN, and this data block will be locked
This server end of step 403 after receiving this article one broadcast locks this data block
This client of step 404 is after write operation is finished, to indicating a dirty bit on this control module of the buffering area internal memory of this client, revise with the content in the buffering area internal memory that records this client, and to the buffering area internal memory release of this client
This client of step 405 is notified other machine in this LAN for sending out the second broadcast in this LAN, and this data block will be unlocked
After this server end of step 406 is received the second broadcast, with this block release
Embodiment
Relevant characteristics and implementation of the present invention cooperate graphicly to be described in detail as follows as most preferred embodiment now.
As shown in Figure 2, the present invention proposes a kind of means that dispose flag bits in the control module 160 of buffering area internal memory 150, when retouching operation (write activity), be to adopt mutually exclusive operation, but other the time, be to share to use, allow many people simultaneously to the operation of a data block, when write activity, be to client 120,140 buffering area internal memory 150 is locked processing, can make client 120, a large amount of time and the system resource of waste in the processing of frequent Network Transmission and procotol has been avoided in 140 the maximum effect of buffering area internal memory 150 performances, has improved the performance of system.
Add on the control module 160 that specifically is characterised in that at the buffering area internal memory 150 of client 120,140 of the present invention whether a lock flag bit 310 and a dirty bit 320 change with the content in the log buffer internal memory 150, basis for estimation as the distribution-type data dynamic program agency, with reference to the tag addresses schematic diagram of figure 3 explanation distribution-type data dynamic program agency's of the present invention control module, comprising the index of buffer blocks, position, access count, lock flag bit 310 and dirty bit 320 or the like in buffer blocks.
Lock flag bit 310 has two states: a kind of be the state that locks, a kind of be common state; Dirty bit 320 also is that two states is arranged: a kind of be have the state revised, a kind of be the state of not revising.
The distribution-type data dynamic program agent method that the present invention carried is applied to the framework of client end/server end, comprises the following steps, as shown in Figure 4:
When a client requires to write a block of a server end, indicate a lock flag bit (step 401) on the control module to the buffering area internal memory of client.
Client is notified other machine in the local area network (LAN) at sending out article one broadcast in the local area network (LAN), and this block will be by lock (step 402).
After server end is received article one broadcast, with this block lock (step 403).After locking, other client can not be carried out write operation at the block of server end again, must wait for the release of lock, but the content that can continue in buffering area internal memory is separately read shelves.
Client to indicating a dirty bit on the control module of the buffering area internal memory of client, is revised with the content in the log buffer internal memory after write operation is finished, and to the buffering area internal memory release (step 404) of client.
Client is notified other machine in the local area network (LAN) at sending out the second broadcast in the local area network (LAN), and this block will be unlocked (step 405).
After server end is received the second broadcast, with this block release (step 406).
When the block of client access server end, if block does not lock, and block has copy in the buffering area internal memory of client, directly the content of reading of data block from the buffering area internal memory; If block does not lock, but block does not have copy in the buffering area internal memory of client, just needs the content to server end reading of data block; If but block locked, and block has copy in the buffering area internal memory, can be by the read-only content of mode reading of data block in the buffering area internal memory.
The present invention proposes an embodiment use feasibility of the present invention is described, suppose to have 3 server ends, under the environment architecture of 3 clients (figure does not show), wherein 1 client has 3 programs simultaneously to the wherein block A operation (non-write operation) of a server end, at this moment, what these three programs were used is same block buffer internal memory (being positioned at client), at this moment, there is a program to operate again to giving block A, can directly use the content that is arranged in client buffer district internal memory, need not be from server end the content from new reading of data block, saved the time of system from server end reading of data block, therefore, this programme can improve the performance of distributed data system, and concrete writing with the method step of reading of data block is as described below:
Write block
When the client-requested write command, at first, check whether this block is locked, as locking, then meaning has a certain client revising this block, promptly, local buffered data is not up-to-date, then reads this block again from server; As not locking, then in local area network (LAN), send out a broadcast, other machine in the notice local area network (LAN), this block will be locked, and then, this block that is positioned at the buffering area internal memory of local side is locked.After server end is received lock message, judge whether this block is the block of local side, as not being then to disregard; In this way, then this block is locked.
When client has been revised block, when the result is write the buffering area internal memory, deposit block in server end, then with the block release of the buffering area internal memory of local side by network.When the block modification finishes, the result that server end will be revised deposits the block of the buffering area internal memory of server end in, in local area network (LAN), send out a broadcast, other machine in the notice local area network (LAN), the block of the buffering area internal memory of this server end has been revised and has been finished, and with the block release of this locality.
Other client is received the processing after the broadcast message, receive broadcast message after, check earlier to see if there is the control module of the buffering area internal memory of local side the buffering area internal memory of this block, as do not have, then do not handle; If any, reexamining the kind (see and lock or release information) of message, release information is in this way then removed the lock flag bit, adds and revises the complement mark position; Enciphered information in this way, whether current have people making this block, as do not have if then reexamining, just this buffering area internal memory is discharged; If any, this block is locked.
The reading of data block
When client reads the block of buffering area internal memory of server end, at first, check whether local side has the buffering area internal memory of this block, as do not have, then read this block by server; Reexamine the lock flag bit, if any and block added the lock flag bit, in read-only mode from buffering area internal memory reading of data block; If any the flag bit but block does not lock, whether last judgment data block has dirty bit, if any dirty bit, then reads this block again from server end; As do not have dirty bit, can be directly from buffering area internal memory reading of data block.
From server end reading of data block, judged whether the lock flag bit earlier, if any, then hang up and wait for; As do not have, then the reading of data block sends to client.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (5)

1. distribution-type data dynamic program agent method is applied to the framework of client end/server end, it is characterized in that this method comprises the following steps:
When a client requires to write a block of a server end, indicate a lock flag bit on the control module to the buffering area internal memory of this client;
This client is notified other machine in this local area network (LAN) at sending out article one broadcast in the local area network (LAN), and this block will be locked;
This server end after receiving this article one broadcast locks this block;
This client is after write operation is finished, this client sees through network and deposits this block in this server end, to indicating a dirty bit on this control module of the buffering area internal memory of this client, revise with the content in the buffering area internal memory that writes down this client, and the lock flag bit release that identifies on the control module to the buffering area internal memory of this client;
This client is notified other machine in this local area network (LAN) at sending out the second broadcast in this local area network (LAN), and this block will be unlocked; And
After this server end is received this second broadcast, with this block release.
2. distribution-type data dynamic program agent method according to claim 1, it is characterized in that, when also comprising this block of another this this server end of client access, if this block does not lock, and this block has copy in the buffering area internal memory of another this client, directly the content of reading of data block from this buffering area internal memory.
3. distribution-type data dynamic program agent method according to claim 1, it is characterized in that, when also comprising this block of another this this server end of client access, if this block does not lock, but this block does not have copy in the buffering area internal memory of another this client, just read the content of this block from this server end.
4. distribution-type data dynamic program agent method according to claim 1, it is characterized in that, when also comprising this block of another this server end of client access, if this block locks, and this block has copy in this buffering area internal memory, then reads the content of this block in this buffering area internal memory by read-only mode.
5. distribution-type data dynamic program agent method according to claim 1 is characterized in that, this machine is meant all machines of this client end/server end framework.
CN200510130419A 2005-12-09 2005-12-09 Distribution-type data dynamic program agent method Expired - Fee Related CN100576848C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200510130419A CN100576848C (en) 2005-12-09 2005-12-09 Distribution-type data dynamic program agent method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200510130419A CN100576848C (en) 2005-12-09 2005-12-09 Distribution-type data dynamic program agent method

Publications (2)

Publication Number Publication Date
CN1980236A CN1980236A (en) 2007-06-13
CN100576848C true CN100576848C (en) 2009-12-30

Family

ID=38131234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200510130419A Expired - Fee Related CN100576848C (en) 2005-12-09 2005-12-09 Distribution-type data dynamic program agent method

Country Status (1)

Country Link
CN (1) CN100576848C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013000135A1 (en) * 2011-06-29 2013-01-03 中兴通讯股份有限公司 Locking method and system for distributed messages
CN103248667B (en) * 2012-02-14 2016-03-30 阿里巴巴集团控股有限公司 A kind of resource access method of distributed system and system
CN103067471B (en) * 2012-12-24 2019-01-11 北京华科力扬科技有限公司 A kind of data capture method of distributed storage
CN103701770A (en) * 2013-11-22 2014-04-02 汉柏科技有限公司 Abnormal unlocking method based on leasing mechanism
CN103716383B (en) * 2013-12-13 2017-12-15 华为技术有限公司 A kind of method and device for accessing shared resource
CN106066816B (en) * 2016-05-26 2019-11-15 北京小米移动软件有限公司 Method and apparatus for data buffer storage

Also Published As

Publication number Publication date
CN1980236A (en) 2007-06-13

Similar Documents

Publication Publication Date Title
CN102982141B (en) A kind of method and device realizing distributed data base agency
CN100543750C (en) A kind of matrix type data caching method and device of using based on WEB
CN102831156B (en) Distributed transaction processing method on cloud computing platform
CN101090401B (en) Data buffer store method and system at duster environment
CN100576848C (en) Distribution-type data dynamic program agent method
CN102426594B (en) Method and system for operating database
CN1815469B (en) Database connection resource management method
CN102088484B (en) Write lock method of distributed file system and a system thereof
EP2369494A1 (en) Web application based database system and data management method therof
US20190384775A1 (en) Active Transaction List Synchronization Method and Apparatus
CN102033912A (en) Distributed-type database access method and system
CN101771723A (en) Data synchronization method
CN101853287A (en) Data compression quick retrieval file system and method thereof
CN100488202C (en) Service quality based web service registration and discovery system and method
KR101545626B1 (en) System for interoperation between dds and dbms
CN1592203A (en) System and method for managing cached objects using notification bonds
CN101188566A (en) A method and system data buffering and synchronization under cluster environment
CN1997000A (en) Virtual-host-based web server and method for user obtaining access data
CN101160797A (en) Distributed data management system and a method for data dynamic subscribing
KR20070037542A (en) A device management client and device management method using nodes having additional properties
CN105512279A (en) Metadata access method, related equipment and system
JP2004227169A (en) Distributed database system
CN101217449B (en) A remote call management procedure
CN101778131A (en) Data synchronization system
CN105407044A (en) Method for implementing cloud storage gateway system based on network file system (NFS)

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091230

Termination date: 20111209