Summary of the invention
The invention provides a kind of resource access method, device and system, the low problem for the treatment of effeciency when having solved many single control memories and jointly providing storage resources.
A kind of resource access method, a plurality of single control memories provide storage resources jointly, and this method comprises:
The single control memory receives request of access, carries the single control memory sign of purpose single control memory and the resource identification of purpose resource in described request of access;
Described single control memory is forwarded to described purpose single control memory according to the single control memory sign of described purpose single control memory with described request of access.
Further, described single control memory is forwarded to described purpose single control memory with described request of access and may further comprise the steps according to the single control memory sign of described purpose single control memory:
The single control memory tabulation of the local storage of inquiry according to described single control memory sign, is determined the address of described purpose single control memory;
To described purpose single control memory, send described request of access.
Further, described single control memory receives before the step of request of access, also comprises:
Create described single control memory tabulation, the corresponding single control memory of each list item of this single control memory tabulation, and single control memory sign and the address of storing this single control memory.
Further, described single control memory receives before the step of request of access, also comprises:
The scanning of home resource is resource identification of each local resource allocation;
Generate two tuples list, described two tuples list comprise at least one two tuple, and each two tuple comprises the resource identification of resource on the single control memory sign of this single control memory and this single control memory;
Single control memory in described single control memory tabulation sends described two tuples list.
Further, described single control memory receives before the step of request of access, also comprises:
Receive two tuples list that each single control memory sends, described two tuples list comprise at least one two tuple, and each two tuple comprises the resource identification of resource on the single control memory sign of this single control memory and this single control memory;
Described two tuples list are added in the list item of its corresponding single control memory in the described single control memory tabulation.
The present invention also provides a kind of resource access device, comprising:
The user accesses the distribution collection module, be used for receiving request of access, in described request of access, carry the single control memory sign of purpose single control memory and the resource identification of purpose resource, and according to described single control memory sign, by single control memory interconnect module described request of access is forwarded to described purpose single control memory;
Described single control memory interconnect module is used for the indication according to described user capture distribution collection module, and described access request is forwarded to the single control of described purpose memory.
Further, this device also comprises:
The storage resources identification module is used for creating described single control memory tabulation, the corresponding single control memory of each list item of this single control memory tabulation, and single control memory sign and the address of storing this single control memory.
Further, described storage resources identification module, also be used for the scanning of home resource, be resource identification of each local resource allocation, generate two tuples list, described two tuples list comprise at least one two tuple, and each two tuple comprises single control memory sign of this list control memory and the resource identification that this list is controlled resource on the memory, and by described controller interconnecting modules, the single control memory in the tabulation of described single control memory sends described two tuples list.
Further, described single control memory interconnect module, also be used to receive two tuples list that each single control memory sends, and this two tuples list is transmitted to described storage resources identification module, described two tuples list comprise at least one two tuple, and each two tuple comprises single control memory sign of this list control memory and the resource identification that this list is controlled resource on memory;
Described storage resources identification module is used for adding described two tuples list to described single list item of controlling single control memory of its correspondence in the memory tabulation.
The present invention also provides a kind of resource access system, and this system comprises at least two single control memories, is equipped with single control memory tabulation in each single control memory, and each list item of described single control memory tabulation is other single control memories in the corresponding described system all;
Described single control memory, be used for receiving request of access, in described request of access, carry the single control memory sign of purpose single control memory and the resource identification of purpose resource, and according to described single control memory sign, described request of access is forwarded to described purpose single control memory.
Resource access method provided by the invention, device and system, when many single control memories provide storage resources jointly, arbitrary single control memory wherein receives request of access, in described request of access, carry the single control memory sign of purpose single control memory and the resource identification of purpose resource, described single control memory is according to the single control memory sign of described purpose single control memory, described request of access is forwarded to described purpose single control memory, finished to purpose single control memory forwarding request of access and then transfer respective resources by the single control memory, improved system's treatment effeciency.
Embodiment
For the low problem of resolution system treatment effeciency, embodiments of the invention provide a kind of resource access method.
Below in conjunction with accompanying drawing, embodiments of the invention are elaborated.
Embodiments of the invention provide a kind of resource access system, this system will be distributed in many single all storage resources of controlling on the memory and carry out unified overall identification (promptly single control memory sign and resource identification) and pass through the visit of distribution gathering system process user to storage resources, offer the unified storage resources view of user, the user selects the resource of needs on the storage resources view, backstage by user side is mapped as corresponding identification with the resource that the user selects, and transmission is carried the access request of sign.The resource access system architecture that embodiments of the invention provide comprises as shown in Figure 1: many single control memories, these single control memories provide storage resources jointly.
All be equipped with the resource access device on each single control memory, this apparatus structure comprises referring to Fig. 1: single control memory interconnect module 101, storage resources identification module 102, user access distribution collection module 103, wherein:
Single control memory interconnect module 101 couples together many single control memories by interference networks, make between per two single control memories and can communicate, every single control memory is identified by different mark (as single control memory sign, being designated as CID).Be used for indication, described access request is forwarded to the single control of described purpose memory according to described user capture distribution collection module.Further, also be used to receive two tuples list that each single control memory sends, and this two tuples list is transmitted to described storage resources identification module, described two tuples list comprise at least one two tuple, and each two tuple comprises single control memory sign of this list control memory and the resource identification that this list is controlled resource on memory
Storage resources identification module 102 is used for creating described single control memory tabulation, the corresponding single control memory of each list item of this single control memory tabulation, and single control memory sign and the address of storing this single control memory.In addition, also be used for the scanning of home resource, be resource identification of each local resource allocation, generate two tuples list, described two tuples list comprise at least one two tuple, each two tuple comprises the resource identification of resource on single control memory sign of this list control memory and this list control memory, and by described single control memory interconnect module, the list in described single control memory is tabulated is controlled memory and sent described two tuples list.Scan the storage resources of this single control memory, give a resource identification of each storage resources (being designated as SID), storage resources is formed two tuple (SID with SID and CID, CID) carry out overall identification, the two tuples sign of the storage resources that scans is issued the single control memory of other interconnection with the form of two tuples list; Storage resources identification module 102 is collected simultaneously the storage resources two tuple identification lists that other controls send and is recorded; Whole binary combination that storage resources local and that other single control memories send is identified become a set, offer exactly user's unified storage resources view.
The user accesses distribution collection module 103 and is used for receiving request of access, in described request of access, carry the single control memory sign of purpose single control memory and the resource identification of purpose resource, and according to described single control memory sign, by single control memory interconnect module described request of access is forwarded to described purpose single control memory.That is, the user is distributed the visit of resource and collect.For convenience of description, the single control memory that receives user access request is called source single control memory, the single control memory at the actual place of storage resources of access is called purpose single control memory.When the user inquiring storage resources, the set of memory resources of collecting in the storage resources identification module 102 is returned to the user.When being connected to a user on the single control memory to conduct interviews operation (read-write etc.) and when sending request of access of storage resources, backstage in user's side is mapped as two tuples corresponding with this resource with user's requested resource, this two tuple is added in the request of access so that the single control memory that receives this request of access according to this binary group index to corresponding resource.When the single control memory receives request of access, if CID equate with the CID of this single control memory, the storage resources that is labeled as SID of this locality is carried out user's request of access, and execution result is returned to the user; If CID is not equal to the CID of this single control memory, request of access, storage resources is identified two tuples send to the execution of purpose single control memory by single control memory interconnect module 101.When a single control memory is received the request of access that other single control memories send by single control memory interconnect module 101 after, check that the storage resources of accessing identifies the CID in two tuples, if equate with the CID of oneself, then carry out request of access and execution result is returned to source single control memory.Source single control memory passes through the request of access execution result that single control memory interconnect module 101 is collected purpose single control memories, and the result is returned to the user.
The resource access device and the system that provide by embodiments of the invention, can be with the storage resources of many single control memories, two tuples and access distribution gathering system by the storage resources sign manage, and unified storage resources view is provided, and jumbo memory space is provided jointly.Therefore adopt this technology, can integrated a large amount of storage resources, carry out unified resource management, make the user carry out unified access by different storage single control memories to storage resources, obtain unified storage resources view.
Below in conjunction with above-mentioned resource access device and system, a kind of resource access method that embodiments of the invention are provided describes.
The flow process that the resource access method that uses embodiments of the invention to provide is finished resource access comprises as shown in Figure 2:
Step 201, the tabulation of establishment single control memory, the corresponding single control memory of each list item of this single control memory tabulation, and single control memory sign and the address of storing this single control memory;
In the embodiment of the invention, system at first sets up connection between all single control memories with single control memory interconnect module 101 at interference networks, makes between per two single control memories and can communicate.Then, on each single control memory, all create single control memory tabulation, in this tabulation, store single control memory sign and the address of other single control memories in the resource access system.
Step 202, scanning of home resource are resource identification of each local resource allocation;
In this step, scan the storage resources that these lists are controlled memories according to storage resources identification module 102, and identify with SID.
Step 203, generate two tuples list, described two tuples list comprise at least one two tuple, and each two tuple comprises the resource identification of resource on the single control memory sign of this single control memory and this single control memory;
Step 204, the single control memory in described single control memory tabulation send described two tuples list;
In this step, (SID, CID) two tuples of local all storage resources are sent to the single control memory of every other interconnection by interference networks with the form of two tuples list.
Step 205, receive two tuples list that each single control memory sends, described two tuples list are added in the list item of its corresponding single control memory in the described single control memory tabulation;
This step is carried out simultaneously with step 202 to step 204.In this step, other single control memories send to two tuples list of the storage resources of this single control memory in the single control memory reception resource access system.
Optionally, the storage resources of the storage resources of this single control memory and other single control memories that receive can be formed the storage resources view of system's overall situation, offer the user that the storage resources in the resource access system is conducted interviews.On the user side backstage, user's requested resource is mapped as two tuples.
Step 206, single control memory receive request of access, carry the single control memory sign of purpose single control memory and the resource identification of purpose resource in described request of access;
In this step, when the user is connected on the single control memory system's storage resources is conducted interviews, send access request, in access request, carry the pairing single single control memory sign of memory and the resource identification of purpose resource controlled of storage resources that the user need visit.
Need to prove that the part or all of single control memory in the resource access system can share same external IP address, receive the whole request of access be dealt into this address and be transmitted at random arbitrary single control memory in the system by router.
Step 207, single control memory identify according to the single control memory of described purpose single control memory, and described request of access is forwarded to described purpose single control memory;
In this step, user capture distribution collection module 103 according to the storage resources of access request find corresponding identification two tuples (SID, CID).If CID equates with the CID of this single control memory, the storage resources that is labeled as SID of this locality is carried out user's access, and result is returned to the user; If CID is not equal to the CID of this single control memory, request of access, storage resources is identified two tuples send to purpose single control memory by single control memory interconnect module 101.After purpose single control memory receives that source single control memory sends access, carry out request of access, and result is sent it back source single control memory by single control memory interconnect module 101.Source single control memory returns to the user with the access request result that receives.To each single control memory, can connect the user, and can carry out the management of system storage resource and the request of access of process user according to same flow process.
So far, provide the process of storage and uniform to finish by sign and distribution collection.
The resource access method that embodiments of the invention provide, when many single control memories provide storage resources jointly, arbitrary single control memory wherein receives request of access, in described request of access, carry the single control memory sign of purpose single control memory and the resource identification of purpose resource, described single control memory is according to the single control memory sign of described purpose single control memory, described request of access is forwarded to described purpose single control memory, finished to purpose single control memory forwarding request of access and then transfer respective resources by the single control memory, improved system's treatment effeciency.Store the technical of single control memory at list, connect many with interference networks and only control memory, by unified storage resources sign with to the distribution collection that the user accesses, realized the unified management of all single control memory stores resources.The resource access method that embodiments of the invention provide also can be applicable in the data center, and the storage space volume that many bigger than the single control memory can be provided, and carries out unified SRM and user's access.
The all or part of step that the one of ordinary skill in the art will appreciate that the foregoing description program circuit that can use a computer is realized, described computer program can be stored in the computer-readable recording medium, described computer program (as system, unit, device etc.) on the relevant hardware platform is carried out, when carrying out, comprise one of step or its combination of method embodiment.
Alternatively, all or part of step of the foregoing description also can use integrated circuit to realize, these steps can be made into integrated circuit modules one by one respectively, perhaps a plurality of modules in them or step is made into the single integrated circuit module and realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
Each device/functional module/functional unit in above-described embodiment can adopt general calculation element to realize, they can concentrate on the single calculation element, also can be distributed on the network that a plurality of calculation elements form.
Each device/functional module/functional unit in above-described embodiment is realized with the form of software function module and during as independently production marketing or use, can be stored in the computer read/write memory medium.The above-mentioned computer read/write memory medium of mentioning can be a read-only memory, disk or CD etc.
Anyly be familiar with those skilled in the art in the technical scope that the present invention discloses, can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the described protection range of claim.