[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103078926B - The file access method of distributed memory system and device and system - Google Patents

The file access method of distributed memory system and device and system Download PDF

Info

Publication number
CN103078926B
CN103078926B CN201210586446.8A CN201210586446A CN103078926B CN 103078926 B CN103078926 B CN 103078926B CN 201210586446 A CN201210586446 A CN 201210586446A CN 103078926 B CN103078926 B CN 103078926B
Authority
CN
China
Prior art keywords
file
access
flow control
list item
control list
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
CN201210586446.8A
Other languages
Chinese (zh)
Other versions
CN103078926A (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.)
Chengdu Huawei Technology Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210586446.8A priority Critical patent/CN103078926B/en
Publication of CN103078926A publication Critical patent/CN103078926A/en
Application granted granted Critical
Publication of CN103078926B publication Critical patent/CN103078926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

The embodiment of the present invention provides a kind of file access method of distributed memory system and device and system.The file access method of distributed memory system of the present invention, comprising: receive Client-initiated file access request; According to described file access request, in the Flow Control list item that described file is corresponding, inquire about the access rights of described user; The accessing operation of described file is performed according to the access rights inquired.The embodiment of the present invention to solve in distributed system because fluidics Control granularity not carefully causes certain user's exclusive resource, makes distributed system utilance and the low problem of throughput.

Description

The file access method of distributed memory system and device and system
Technical field
The embodiment of the present invention relates to the communication technology, particularly relates to a kind of file access method of distributed memory system and device and system.
Background technology
Along with the develop rapidly of computer network and information technology, the sharp increase of global information memory capacity, Network storage technology is also at development simultaneously, distributed storage is made to use extensively, network size constantly expands, the node of access gets more and more, while capacity and bandwidth increase, number of users is also increasing fast, but calling party increase the access time delay that will certainly increase system, bad impact is brought on user's result of use, fluidics is so just made to become when ensureing system availability, must be a kind of technological trend of most of user service as far as possible.
In existing fluidics; by the physical resource service condition of each memory node in the access situation of real-time monitoring system peripheral and system; the bandwidth resources of automatic adjustment memory node limit some outside requests; but existing fluidics can only limit some outside requests by the service condition of the resource such as network and hardware in control system; make often to there will be some user's exclusive resource, distributed system utilance and the low problem of throughput.
Summary of the invention
The embodiment of the present invention provides a kind of file access method of distributed memory system and device and system, to improve utilance and the throughput of distributed memory system.
Embodiment of the present invention first aspect provides a kind of file access method of distributed memory system, comprising:
Receive Client-initiated file access request;
According to described file access request, in the Flow Control list item that described file is corresponding, inquire about the access rights of described user;
The accessing operation of described file is performed according to the access rights inquired.
In conjunction with first aspect, in the first possible execution mode of first aspect, described according to described file access request, in the Flow Control list item that described file is corresponding, inquire about the access rights of described user, comprising:
According to the user initiating described file access request, in the Flow Control list item that described file is corresponding, inquire about the access rights of described user for allowing access or disable access;
According to the initiation time of described file access request, in described Flow Control list item, inquire about the access time of the access rights of described user.
In conjunction with the first possible execution mode of first aspect, in the execution mode that the second of first aspect is possible, described method, also comprises:
When receiving access privilege and arranging instruction, arranging in Flow Control list item is the access rights of each user's setting and access time.
In conjunction with first aspect or the first possible execution mode of first aspect or the possible execution mode of the second of first aspect, in the third possible execution mode of first aspect, according to described file access request, inquire about the access rights of described user in the Flow Control list item that described file is corresponding after, also comprise:
According to described file access request, in the Flow Control list item that described file is corresponding, identify that the access module of described file is exclusive mode or sharing mode;
The accessing operation that the access rights that then described basis inquires perform described file comprises: when the access module recognizing described file is exclusive mode, forbid that described user accesses described file; When the access module recognizing described file is sharing mode, described user is indicated to access described file from other memory locations.
In conjunction with the third possible execution mode of first aspect, in the 4th kind of possible execution mode of first aspect, after performing the accessing operation of described file according to the access rights inquired, also comprise:
According to the type of described file access request, the access module of described file in Flow Control list item is set.
In conjunction with the third possible execution mode of first aspect, in the 5th kind of possible execution mode of first aspect, described when the access module recognizing described file is sharing mode, indicate described user to access described file from other memory locations and comprise:
When the access module recognizing described file is sharing mode, in described Flow Control list item, inquire about the redirected memory location of described file;
The accessing operation of described user to described file is performed from described redirected memory location.
In conjunction with the 5th kind of possible execution mode of first aspect, in the 6th kind of possible execution mode of first aspect, described method, also comprises:
Other memory locations are determined in the distributed intelligence of other memory nodes according to file;
Select to be redirected memory location according to the loading condition of other place, memory location memory nodes.
In conjunction with first aspect, in the 7th kind of possible execution mode of first aspect, described method, also comprises:
Monitoring the ageing time of described Flow Control list item, when arriving ageing time, deleting described Flow Control list item.
Second aspect present invention provides a kind of file access device of distributed memory system, comprising:
Receiver module, for receiving Client-initiated file access request;
Enquiry module, for according to described file access request, inquires about the access rights of described user in the Flow Control list item that described file is corresponding;
Processing module, for performing the accessing operation of described file according to the access rights inquired.
In conjunction with second aspect, in the first possible execution mode of second aspect, described enquiry module comprises:
Authority query unit, for according to the user initiating described file access request, inquires about the access rights of described user for allowing access or disable access in the Flow Control list item that described file is corresponding;
Time inquiring unit, for the initiation time according to described file access request, inquires about the access time of the access rights of described user in described Flow Control list item.
In conjunction with the first possible execution mode of second aspect, in the execution mode that the second of second aspect is possible, described device, also comprises:
Arrange module, for when receiving described access privilege and arranging instruction, arranging in described Flow Control list item is the access rights of each user's setting and access time.
In conjunction with second aspect or the first possible execution mode of second aspect or the possible execution mode of the second of second aspect, in the third possible execution mode of second aspect, described device, also comprises:
Pattern recognition module, for according to described file access request, inquire about the access rights of described user in the Flow Control list item that described file is corresponding after, according to described file access request, in the Flow Control list item that described file is corresponding, identify that the access module of described file is exclusive mode or sharing mode;
Then described processing module comprises:
Monopolize and forbid unit, for when the access module recognizing described file is exclusive mode, forbid that described user accesses described file;
Share indicating member, for when the access module recognizing described file is sharing mode, indicate described user to access described file from other memory locations.
In conjunction with the third possible execution mode of second aspect, in the 4th kind of possible execution mode of second aspect, described device, also comprise: pattern arranges module, for after performing the accessing operation of described file according to the access rights inquired, according to the type of described file access request, the access module of described file in Flow Control list item is set.
In conjunction with the 4th kind of possible execution mode of second aspect, in the 5th kind of possible execution mode of second aspect, described shared indicating member, comprising:
Position enquiring subelement, for when the access module recognizing described file is sharing mode, inquires about the redirected memory location of described file in described Flow Control list item;
Be redirected subelement, for performing the accessing operation of described user to described file from described redirected memory location.
In conjunction with the 5th kind of possible execution mode of second aspect, in the 6th kind of possible execution mode of second aspect, described device, also comprises:
Position determination module, for determining other memory locations according to file in the distributed intelligence of other memory nodes;
Module is selected in position, for selecting to be redirected memory location according to the loading condition of other place, memory location memory nodes described.
In conjunction with second aspect, in the 7th kind of possible execution mode of second aspect, described device, also comprises:
Monitoring module, for monitoring the ageing time of described Flow Control list item, when arriving ageing time, deletes described Flow Control list item.
Third aspect present invention provides a kind of distributed memory system, comprise at least two memory nodes, each described memory node comprise second aspect to second aspect the 7th kind of possible execution mode according to any one of the file access device of distributed memory system.
In the scheme that the present embodiment provides, by the Flow Control list item that file is corresponding, the authority whether with this file of access is controlled with user's granularity, by the restriction of this file Flow Control, make to refine to the Control granularity of node flow the user initiating access request in distributed network, to solve in prior art because Flow Control granularity is large, cause certain user's exclusive resource, the problem that the utilance of distributed system is low.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Figure 1A is the schematic flow sheet of the file access method embodiment one of distributed memory system provided by the invention;
Figure 1B embodiment of the present invention the configuration diagram of distributed memory system that is suitable for;
Fig. 2 is the schematic flow sheet of the file access method embodiment four of distributed memory system provided by the invention;
Fig. 3 is the structural representation of the file access device embodiment seven of distributed memory system provided by the invention;
Fig. 4 is the structural representation of the file access device embodiment eight of distributed memory system provided by the invention;
Fig. 5 is the structural representation of the file access device embodiment nine of distributed memory system provided by the invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Figure 1A is the schematic flow sheet of the file access method embodiment one of distributed memory system provided by the invention.The configuration diagram of the distributed memory system that Figure 1B is suitable for by the embodiment of the present invention, in distributed memory system, comprise at least two memory nodes, each file can be stored on one or more memory node, portion can be stored separately, also can back-up storage in multiple memory node.Each memory node all can know the file distribution position in whole distributed memory system.
The method of the present embodiment is performed by the file access device of distributed memory system, and this device can be integrated in memory node.The method of the present embodiment comprises the steps:
S101: receive Client-initiated file access request.
S102: according to described file access request, inquires about the access rights of described user in the Flow Control list item that described file is corresponding.
Concrete, user is to the request of the memory node transmission file access of distributed system, this memory node receives the request of this file access of Client-initiated, and according to this request, inquires about the authority whether with this file of access of this user in the Flow Control list item that above-mentioned file is corresponding.
S103: the accessing operation performing described file according to the access rights inquired.
Concrete, above-mentioned memory node is when inquiring this user and having the authority of access file, then perform the relevant accessing operation that this file is corresponding, if this memory node inquire this user do not have access this file authority time, then can return a result to user, inform that the file on this memory node of this user is forbidden being accessed by this user.
In the method that the present embodiment provides, by the request according to Client-initiated file access, the authority whether this user has access file is inquired about in accessed file Flow Control list item, and according to the particular content of inquired about access file authority, perform corresponding file operation, by the Flow Control list item that file is corresponding, control the authority whether external user has this node files of access, by the restriction of this file Flow Control, make to refine to the Control granularity of node flow the user initiating access request in distributed network, solve in prior art because Flow Control granularity is large, cause certain user's exclusive resource, the problem that the utilance of distributed system is low.
In embodiments of the invention two, on above-mentioned basis embodiment illustrated in fig. 1, according to described file access request, the access rights of inquiring about described user in the Flow Control list item that described file is corresponding are preferred, can be: according to the user initiating above-mentioned file access request in the Flow Control list item that this file is corresponding, inquire about the access rights of this user for allowing access or disable access; And according to initiation time of this file access request, in this Flow Control list item, inquire about the access time of the access rights of this user.
Concrete, after the memory node of distributed system receives the request of this file access of Client-initiated, according to the user initiating this access request, in the Flow Control list item that this file is corresponding, inquire about this user whether there are access rights, and the content of access rights can be identified further, such as, access rights can for allowing access or disable access.The access time of these access rights also can be comprised in Flow Control list item.
The representation of access rights and access time can have multiple, such as, contain user ID, disable bit and temporal information in the Flow Control list item that this file is corresponding, this user ID is for representing this user, disable bit mark allows (Allow) or forbids that (Deny) accesses this file, temporal information in Flow Control list item, is used to indicate user corresponding to above-mentioned user ID and allows in the time specified by temporal information or this file of disable access.Temporal information various informative, such as, specify the Starting Executing Time of these access rights, or regulation starts time period etc. of performing.
In the method that the present embodiment provides, by the request according to Client-initiated file access, by the user ID in inquiry Flow Control list item in accessed file Flow Control list item, the value of temporal information and disable bit, determine whether the user of this initiation file access request has the authority of access file, by the restriction of this file Flow Control, make to refine to the Control granularity of node flow the user initiating access request in distributed network, solve in prior art because Flow Control granularity is large, cause certain user's exclusive resource, the problem that the utilance of distributed system is low.
In embodiments of the invention three, on the basis of above-described embodiment one and embodiment two, according to described file access request, the access rights of inquiring about described user in the Flow Control list item that described file is corresponding are preferred, can also be: when receiving access privilege and arranging instruction that arranging in Flow Control list item is the access rights of each user's setting and access time.
Concrete, the access rights of user and access time can arrange instruction by access privilege and arrange at any time.Normally distributed memory system is arranged as required.Can be arrange for some specific users, also can be carry out priority assignation to one group of user, can also be carry out unified priority assignation to all users meeting certain specified conditions.
Such as, access privilege can be sent by keeper to memory node and instruction is set, when the access privilege that this memory node receiving management person sends arranges instruction, the user of the file for each this memory node of access in Flow Control list item arranges access rights and access time, by arranging access rights in Flow Control list item and access time, user outside being initiated to access file carries out Flow Control.If when keeper arranges instruction to this memory node transmission access privilege, this memory node has had user at request access file, then this memory node directly carries out to this user the operation allowing access file, directly opens file; If to send after access privilege arranges instruction to this memory node keeper, the Flow Control list item of the file of this memory node is provided with, user sends file access request to this memory node, then when this memory node receives the request of the access file that external user is initiated, namely the file Flow Control list item by inquiring about after this setting is needed, by user ID, disable bit and temporal information in file Flow Control list item, judge access rights and the access time of the user of current initiation access file request.
To the setting of access privilege in Flow Control list item, not only by arranging manually, also automatically can be arranged by the collocation strategy of storage system according to setting.Such as, memory node log file access history information, to the user of frequent certain file of exclusive access, arranging its access rights is disable access.The present invention does not limit collocation strategy.
In the method that the present embodiment provides, by sending access privilege to memory node, instruction is set, after memory node receives this instruction, access rights and the access time of each user in Flow Control list item are set according to this instruction, user outside being initiated to access file request carries out Flow Control, namely external user just needs when accessing this memory node to know the current authority whether with the file of this memory node of access by inquiring about this Flow Control list item, by the restriction of this file Flow Control, make to refine to the Control granularity of node flow the user initiating access request in distributed network, solve in prior art because Flow Control granularity is large, cause certain user's exclusive resource, the problem that the utilance of distributed system is low.
Fig. 2 is the schematic flow sheet of the file access method embodiment four of distributed memory system provided by the invention.The method is performed by the file access device of distributed memory system, and this device can be integrated in memory node.The method of the present embodiment comprises the steps:
S201: receive Client-initiated file access request.
S202: according to file access request, the access rights of inquiring about this user in the Flow Control list item that this file is corresponding, for allowing access or disable access, if disable access, then terminate this visit request, if allow access, then continue to perform subsequent step.Or, access rights also can not be indicated for forbidding or allowing, and determine whether may have access to according to the access module of subsequent file.
S203: according to this file access request, identifies that the access module of this file is exclusive mode or sharing mode in the Flow Control list item that this file is corresponding; If identify, the access module of this file is exclusive occupying mode, then perform step 204; If identify, the access module of this file is shared model, then perform step 205.
S204: forbid that this user accesses this file, terminates this visit request.
S205: indicate this user to access this file from other memory locations.
Concrete indicating mode can return notice to user, informs that it can send access request again, accesses from other positions, also can inform the memory location of other copy of this file of user further.Or, this access request directly can be redirected to other memory locations.
Concrete, this memory node is according to current file access request, the user inquiring current initiation file access request allows to access this file, then this memory node is according to this file access request, in the Flow Control list item that this file is corresponding, identify that the access module of described file is exclusive mode or sharing mode.Wherein, exclusive mode is for only to allow a user to access this file a moment, and sharing mode is allow synchronization to have multiple user to access multiple copies of this file.Such as, operating writing-file is generally exclusive mode, reads file and is generally sharing mode.Certainly, also can determine which kind of mode this file adopts access by other factors.
In the present embodiment, with the file access of the further Precise control user of the access module of file.In access process, after performing the accessing operation of described file according to the access rights inquired, can also comprise:
S206: according to the type of this file access request, arranges the access module of this file in Flow Control list item.
Such as, when file access request is read request, arranging the access module of file in Flow Control list item is sharing mode, and when file access request is write request, the access module be arranged in Flow Control list item is exclusive mode.Be set to the file of exclusive mode, can not be accessed before this user access terminates by other users, after this user access terminates, can change its access module is sharing mode.
Certainly, access module also can have other configuration mode, such as, configured by instruction by keeper.The present invention does not limit this.
S207: the ageing time monitoring this Flow Control list item, when arriving ageing time, deletes this Flow Control list item.
Further, when performing aforesaid operations, this memory node can monitor the ageing time of this file Flow Control list item in real time, when the flow-control information in Flow Control list item arrives ageing time, then deletes current Flow Control list item, cancels the Flow Control of this node to file.
The method of the present embodiment is also by arranging file access pattern according to the type of user's access file request, when file access pattern is shared model, the next user of the current memory node of instruction access accesses this file from other memory locations of file, by the access request of user being shared the mode that the offered load on other memory nodes is shared, improve the response time of user, also effectively raise the utilance of distributed system.
Further, in embodiments of the invention five, on the basis of above-described embodiment four, this user is indicated to access this file from other memory locations preferred, can be: when the access module recognizing this file is sharing mode, in above-mentioned Flow Control list item, inquire about the redirected memory location of this file; The accessing operation of this user to this file is performed from this redirected memory location.
Concrete, when the access module that this memory node recognizes this file is shared model, in above-mentioned file Flow Control list item, inquire about the redirected memory location of this file.The positional information that current file is stored in other nodes is further comprises in this file Flow Control list item, then this memory node is by other memory locations of current accessed file in this file Flow Control list item of inquiry, and the request of this user being accessed this file is redirected on other memory locations of this file.More specifically, after on other memory locations that the request of this user being accessed this file when this memory node is redirected to this file, this article part is accessed from other memory locations of file.
In embodiments of the invention six, on the basis of above-described embodiment four and embodiment five, indicate this user to access this file from other memory locations preferred, can also be: determine other memory locations according to file in the distributed intelligence of other memory nodes; Select to be redirected memory location according to the loading condition of other place, memory location memory nodes; The accessing operation of this user to this file is performed from above-mentioned redirected memory location.
Concrete, when the access module that this memory node recognizes this file is shared model, the redirected memory location of this file is inquired about in above-mentioned file Flow Control list item, further, the positional information that current file is stored in other nodes is further comprises in this file Flow Control list item, the file of this memory node is when creating, other memory locations of file are that current memory node predicted, then current memory node is selected to be redirected memory location according to the loading condition of other place, memory location memory nodes of file, namely according to the access situation of other places, memory location memory node user of file, determine the access request of the active user of current memory node to be directed on some nodes of the lighter file storage of load, thus the accessing operation of this user to this file is performed on the node be redirected.
In technique scheme, because memory node can know the distributed intelligence of file, so can for user selects the position that can obtain this file from multiple memory location, access request is directly redirected to the memory node of this memory location, access for user, and need not again initiate access request by user, decrease taking of information interaction resource.
If the access request of active user is directed on some memory nodes of the lighter file storage of load by current memory node, and then the accessing operation of this user to this file is performed on the memory node be redirected, can be identical with the process of aforementioned execution, the memory node be redirected carries out Flow Control according to the Flow Control list item of this file.
Be specially: the memory node be redirected receives the request of Client-initiated access file, and according to the access request of file, the access rights of this user are inquired about in the Flow Control list item that this file is corresponding, if the flow-control information of not this user in the file Flow Control list item of the memory node be redirected, then this memory node be redirected directly opens the file that this user accesses, corresponding operation is performed to make user, afterwards, the flow-control information of this user is recorded in the Flow Control list item of this file, to make this memory node be redirected, Flow Control is carried out to the user that the next one accesses this node, if there is the flow-control information of this user in the file Flow Control list item of the memory node be redirected, the memory node be then redirected can identify that the file access pattern of current institute access file is exclusive mode or sharing mode, if identify, the access module of this file is exclusive occupying mode, then the memory node be redirected still can return the result of disable access current file to user, if identify, the access module of this file is shared model, the memory node be then redirected can the processing mode of an as above memory node the same, the request of this user being accessed this file is redirected on the memory node of another one file, further, when performing aforesaid operations, this memory node can monitor the ageing time of this file Flow Control list item in real time, when the flow-control information in Flow Control list item arrives ageing time, then delete current Flow Control list item, cancel the Flow Control of this node to file.Concrete execution mode is see above-described embodiment two.
The method of the present embodiment is when file access pattern is shared model, the next user of the current memory node of instruction access accesses this file from other memory locations of file, by the access request of user being shared the mode that the offered load on other memory nodes is shared, improve the response time of user, also effectively raise the utilance of distributed system.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Fig. 3 is the structural representation of the file access device embodiment seven of distributed memory system provided by the invention, this device comprises: receiver module 31, enquiry module 32 and processing module 33, wherein, receiver module 31, for receiving Client-initiated file access request; Enquiry module 32, for according to described file access request, inquires about the access rights of described user in the Flow Control list item that file is corresponding; Processing module 33, for performing the accessing operation of described file according to the access rights inquired.
The file access device of the present embodiment can perform embodiment of the method shown in Fig. 1, and it realizes principle and technique effect is similar, repeats no more herein.
Fig. 4 is the structural representation of the file access device embodiment eight of distributed memory system provided by the invention, on basis embodiment illustrated in fig. 3, above-mentioned enquiry module 32 comprises: authority query unit 320, for according to the user initiating described file access request, in the Flow Control list item that file is corresponding, inquire about the access rights of described user for allowing access or disable access; Time inquiring unit 321, for the initiation time according to described file access request, inquires about the access time of the access rights of described user in described Flow Control list item.Then on basis embodiment illustrated in fig. 3, this device also comprises: arrange module 34, and for when receiving access privilege and arranging instruction, arranging in Flow Control list item is the access rights of each user's setting and access time.。
The file access device of the present embodiment can manner of execution embodiment two and embodiment of the method three, and it realizes principle and technique effect is similar, repeats no more herein.
Further, on above-mentioned basis embodiment illustrated in fig. 4, above-mentioned processing module can also comprise monopolizing forbids unit 330 and shared indicating member 331, wherein, monopolize and forbid unit 330, for when the access module recognizing described file is exclusive mode, forbid that described user accesses described file; Share indicating member 331, for when the access module recognizing described file is sharing mode, indicate described user to access described file from other memory locations.Then on above-mentioned basis embodiment illustrated in fig. 4, this device can also comprise pattern recognition module 35, for according to described file access request, inquire about the access rights of described user in the Flow Control list item that described file is corresponding after, according to described file access request, in the Flow Control list item that file is corresponding, identify that the access module of described file is exclusive mode or sharing mode.
The file access device of the present embodiment can manner of execution embodiment two and embodiment of the method three, and it realizes principle and technique effect is similar, repeats no more herein.
Fig. 5 is the structural representation of the file access device embodiment nine of distributed memory system provided by the invention, on Fig. 3 and basis embodiment illustrated in fig. 4, above-mentioned shared indicating member can also comprise: position enquiring subelement 401 and redirected subelement 402, wherein, position enquiring subelement 401, for when the access module recognizing described file is sharing mode, in described Flow Control list item, inquire about the redirected memory location of described file; Be redirected subelement 402, for performing the accessing operation of described user to described file from described redirected memory location, then said apparatus can also comprise pattern and arranges module, for after performing the accessing operation of described file according to the access rights inquired, according to the type of described file access request, the access module of described file in Flow Control list item is set.
The file access device of the present embodiment can manner of execution embodiment four to embodiment of the method six, and it realizes principle and technique effect is similar, repeats no more herein.
Further, on above-mentioned basis embodiment illustrated in fig. 5, this device can also comprise: module is selected in position determination module and position, and wherein, position determination module, for determining other memory locations according to file in the distributed intelligence of other memory nodes; Module is selected in position, for selecting to be redirected memory location according to the loading condition of other place, memory location memory nodes described.Can also monitoring module being comprised, for monitoring the ageing time of described Flow Control list item, when arriving ageing time, deleting described Flow Control list item.
The file access device of the present embodiment can manner of execution embodiment four to embodiment of the method six, and it realizes principle and technique effect is similar, repeats no more herein.
In distributed memory system embodiment provided by the invention, this distributed memory system comprises at least two memory nodes, each memory node comprises the file access device of the distributed system shown in above-described embodiment, and embodiment and technique effect do not repeat them here.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (13)

1. a file access method for distributed memory system, is characterized in that, comprising:
Receive Client-initiated file access request;
According to described file access request, the access rights of described user are inquired about in the Flow Control list item that described file is corresponding, wherein, when receiving described access privilege and arranging instruction, arranging in described Flow Control list item is the access rights of each user's setting and access time;
The accessing operation of described file is performed according to the access rights inquired;
Wherein, described according to described file access request, in the Flow Control list item that described file is corresponding, inquire about the access rights of described user, comprising:
According to the user initiating described file access request, in the Flow Control list item that described file is corresponding, inquire about the access rights of described user for allowing access or disable access;
According to the initiation time of described file access request, in described Flow Control list item, inquire about the access time of the access rights of described user.
2. the file access method of distributed memory system according to claim 1, is characterized in that, according to described file access request, after inquiring about the access rights of described user, also comprises in the Flow Control list item that described file is corresponding:
According to described file access request, in the Flow Control list item that described file is corresponding, identify that the access module of described file is exclusive mode or sharing mode;
The accessing operation that the access rights that then described basis inquires perform described file comprises: when the access module recognizing described file is exclusive mode, forbid that described user accesses described file; When the access module recognizing described file is sharing mode, described user is indicated to access described file from other memory locations.
3. the file access method of distributed memory system according to claim 2, is characterized in that, after performing the accessing operation of described file according to the access rights inquired, also comprises:
According to the type of described file access request, the access module of described file in Flow Control list item is set.
4. the file access method of distributed memory system according to claim 2, is characterized in that, described when the access module recognizing described file is sharing mode, indicates described user to access described file from other memory locations and comprises:
When the access module recognizing described file is sharing mode, in described Flow Control list item, inquire about the redirected memory location of described file;
The accessing operation of described user to described file is performed from described redirected memory location.
5. the file access method of distributed memory system according to claim 4, is characterized in that, also comprises:
Other memory locations are determined in the distributed intelligence of other memory nodes according to file;
Select to be redirected memory location according to the loading condition of other place, memory location memory nodes.
6. the file access method of distributed memory system according to claim 1, is characterized in that, also comprises:
Monitoring the ageing time of described Flow Control list item, when arriving ageing time, deleting described Flow Control list item.
7. a file access device for distributed memory system, is characterized in that, comprising:
Receiver module, for receiving Client-initiated file access request;
Enquiry module, for according to described file access request, inquires about the access rights of described user in the Flow Control list item that described file is corresponding;
Processing module, for performing the accessing operation of described file according to the access rights inquired;
Arrange module, for when receiving described access privilege and arranging instruction, arranging in Flow Control list item is the access rights of each user's setting and access time;
Wherein, described enquiry module comprises:
Authority query unit, for according to the user initiating described file access request, inquires about the access rights of described user for allowing access or disable access in the Flow Control list item that described file is corresponding;
Time inquiring unit, for the initiation time according to described file access request, inquires about the access time of the access rights of described user in described Flow Control list item.
8. the file access device of distributed memory system according to claim 7, is characterized in that, also comprises:
Pattern recognition module, for according to described file access request, inquire about the access rights of described user in the Flow Control list item that described file is corresponding after, according to described file access request, in the Flow Control list item that file is corresponding, identify that the access module of described file is exclusive mode or sharing mode;
Then described processing module comprises:
Monopolize and forbid unit, for when the access module recognizing described file is exclusive mode, forbid that described user accesses described file;
Share indicating member, for when the access module recognizing described file is sharing mode, indicate described user to access described file from other memory locations.
9. the file access device of distributed memory system according to claim 8, is characterized in that, also comprises:
Pattern arranges module, for after performing the accessing operation of described file according to the access rights inquired, according to the type of described file access request, arranges the access module of described file in Flow Control list item.
10. the file access device of distributed memory system according to claim 8, is characterized in that, shared indicating member comprises:
Position enquiring subelement, for when the access module recognizing described file is sharing mode, inquires about the redirected memory location of described file in described Flow Control list item;
Be redirected subelement, for performing the accessing operation of described user to described file from described redirected memory location.
The file access device of 11. distributed memory systems according to claim 10, is characterized in that, also comprise:
Position determination module, for determining other memory locations according to file in the distributed intelligence of other memory nodes;
Module is selected in position, for selecting to be redirected memory location according to the loading condition of other place, memory location memory nodes described.
The file access device of 12. distributed memory systems according to claim 7, is characterized in that, also comprise:
Monitoring module, for monitoring the ageing time of described Flow Control list item, when arriving ageing time, deletes described Flow Control list item.
13. 1 kinds of distributed memory systems, comprise at least two memory nodes, it is characterized in that, each described memory node comprises the file access device of the arbitrary described distributed memory system of claim 7-12.
CN201210586446.8A 2012-12-28 2012-12-28 The file access method of distributed memory system and device and system Active CN103078926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210586446.8A CN103078926B (en) 2012-12-28 2012-12-28 The file access method of distributed memory system and device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210586446.8A CN103078926B (en) 2012-12-28 2012-12-28 The file access method of distributed memory system and device and system

Publications (2)

Publication Number Publication Date
CN103078926A CN103078926A (en) 2013-05-01
CN103078926B true CN103078926B (en) 2016-03-30

Family

ID=48155328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210586446.8A Active CN103078926B (en) 2012-12-28 2012-12-28 The file access method of distributed memory system and device and system

Country Status (1)

Country Link
CN (1) CN103078926B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072415A (en) * 2015-08-24 2015-11-18 国网上海市电力公司 Transformer substation video monitoring method using distributed storage and server unified management
CN112989401A (en) * 2019-12-13 2021-06-18 北京金山云网络技术有限公司 Authority management method and device, electronic equipment and storage medium
US20230421559A1 (en) * 2022-06-24 2023-12-28 Microsoft Technology Licensing, Llc Utilizing probability data structures to improve access control of documents across geographic regions

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633084A (en) * 2004-12-28 2005-06-29 北京邮电大学 Token-based fine granularity access control system and method for application server
CN1996955A (en) * 2006-12-15 2007-07-11 华为技术有限公司 Access method for user data and management server for user archive
CN101568919A (en) * 2005-07-12 2009-10-28 微软公司 Single view of data in a networked computer system with distributed storage
CN102118376A (en) * 2010-01-06 2011-07-06 中兴通讯股份有限公司 CDN server and content download method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI476610B (en) * 2008-04-29 2015-03-11 Maxiscale Inc Peer-to-peer redundant file server system and methods

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633084A (en) * 2004-12-28 2005-06-29 北京邮电大学 Token-based fine granularity access control system and method for application server
CN101568919A (en) * 2005-07-12 2009-10-28 微软公司 Single view of data in a networked computer system with distributed storage
CN1996955A (en) * 2006-12-15 2007-07-11 华为技术有限公司 Access method for user data and management server for user archive
CN102118376A (en) * 2010-01-06 2011-07-06 中兴通讯股份有限公司 CDN server and content download method

Also Published As

Publication number Publication date
CN103078926A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
CN108536526B (en) Resource management method and device based on programmable hardware
CN103473142B (en) Virtual machine migration method under a kind of cloud computing operating system and device
KR101700667B1 (en) Storage network data allocation
US8424007B1 (en) Prioritizing tasks from virtual machines
JP2011165164A (en) System and method for qos-based storage tiering and migration technique
CN104461744A (en) Resource allocation method and device
CN102369688A (en) Method for adjusting resources dynamically and scheduling device
CN105630418A (en) Data storage method and device
CN107817947B (en) Data storage method, device and system
CN107273200B (en) Task scheduling method for heterogeneous storage
CN105446653A (en) Data merging method and device
CN106603692B (en) Data storage method and device in distributed storage system
CN104750690A (en) Query processing method, device and system
AU2006315960A1 (en) Automated state migration while deploying an operating system
WO2015142339A1 (en) Storage system transactions
CN103888501A (en) Virtual machine migration method and device
CN107678859A (en) A kind of file access method based on CAP mechanism, device and equipment
CN103078926B (en) The file access method of distributed memory system and device and system
CN104035925A (en) Data storage method and device and storage system
US20140019645A1 (en) Methods and structure enhancing zone configuration in a serial attached scsi environment
CN115525631A (en) Database data migration method, device, equipment and storage medium
US9465745B2 (en) Managing access commands by multiple level caching
CN108694083B (en) Data processing method and device for server
US11556835B1 (en) Distributed quantum computing systems
CN106126708A (en) A kind of method and apparatus of the file deleting terminal storage

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220606

Address after: No. 1899 Xiyuan Avenue, high tech Zone (West District), Chengdu, Sichuan 610041

Patentee after: Chengdu Huawei Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.