CN108399046A - File operation requests treating method and apparatus - Google Patents
File operation requests treating method and apparatus Download PDFInfo
- Publication number
- CN108399046A CN108399046A CN201710065337.4A CN201710065337A CN108399046A CN 108399046 A CN108399046 A CN 108399046A CN 201710065337 A CN201710065337 A CN 201710065337A CN 108399046 A CN108399046 A CN 108399046A
- Authority
- CN
- China
- Prior art keywords
- operation requests
- file
- file operation
- priority value
- mentioned
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
- G06F3/0622—Securing storage systems in relation to access
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0635—Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application discloses file operation requests treating method and apparatus.One specific implementation mode of this method includes:Intercept file operation requests, wherein this document operation requests include the file path information of the targeted file of this document operation requests and are used to indicate the numerical priority value of the priority of this document operation requests;It determines the routing information to match with this document routing information in preset routing information set, and obtains target priority value of series that is preset, matching with identified routing information;It is the target priority value of series to replace the numerical priority value, and this document operation requests are inserted into file operation requests queue.This embodiment improves the isolation effects to magnetic disc i/o resource.
Description
Technical field
This application involves field of computer technology, and in particular to Internet technical field more particularly to file operation requests
Treating method and apparatus.
Background technology
With the development of computer technology, the resource management that computer is carried out using virtualization technology is more and more common.It is empty
Quasi-ization technology is related to the isolation to multiple resources, wherein I/O (Input/Output, input/output) resource isolation of disk is
An important factor for influencing server application performance.
In general, after receiving file operation requests, existing mode is the specified handling capacity of setting and IOPS (Input/
Output Operations Per Second, read-write operation number per second) parameter is targeted to operate this document operation requests
File, to realize magnetic disc i/o resource isolation.Exist however, this file operation requests processing method can only limit single container
The disk resource used on block device can have a large amount of file under the scene of a large amount of container mixed deployments in the same time
Operation requests, thus cause the isolation effect of magnetic disc i/o resource isolation poor.
Invention content
The purpose of the application is to propose a kind of improved file operation requests treating method and apparatus, to solve above carry on the back
The technical issues of scape technology segment is mentioned.
In a first aspect, this application provides a kind of file operation requests processing method, this method includes:Intercept file operation
Request, wherein file operation requests include the file path information of the targeted file of file operation requests and are used to indicate text
The numerical priority value of the priority of part operation requests;Determine in preset routing information set with file path information match
Routing information, and obtain target priority value of series that is preset, matching with identified routing information;Replace numerical priority value
For target priority value of series, and file operation requests are inserted into file operation requests queue.
In some embodiments, this method further includes:It determines in file operation requests queue with the presence or absence of except file operation
Remaining paper operation requests outside request;Exist in addition to file operation requests extremely in response to determining in file operation requests queue
Few remaining paper operation requests, the numerical priority value that update remaining paper operation requests are included.
In some embodiments, the numerical priority value that update remaining paper operation requests are included, including:It will be at least one
The numerical priority value that each remaining paper operation requests in remaining paper operation requests are included increases default value.
In some embodiments, the targeted file of each file operation requests in file operation requests queue is mesh
Record file or device file.
In some embodiments, this method further includes:According to time of the priority indicated by numerical priority value from high to low
Sequence, the file targeted to each file operation requests in file operation requests queue operate.
In some embodiments, this method further includes:Each file operation in file operation requests queue is asked
It asks, carries out resource allocation for this document operation requests, and based on the resource distributed, the text targeted to this document operation requests
Part is operated.
Second aspect, this application provides a kind of file operation requests processing unit, which includes:Interception unit is matched
It sets for intercepting file operation requests, wherein file operation requests include the file road of the targeted file of file operation requests
The numerical priority value of diameter information and the priority for being used to indicate file operation requests;First determination unit is configured to determine pre-
Routing information in the routing information set set with file path information match, and obtain preset and identified path
The target priority value of series of information match;Replacement unit is configured to replace numerical priority value to be target priority value of series, and
File operation requests are inserted into file operation requests queue.
In some embodiments, which further includes:Second determination unit is configured to determine file operation requests queue
In with the presence or absence of remaining paper operation requests in addition to file operation requests;Updating unit is configured in response to determining file
There are at least one remaining paper operation requests in addition to file operation requests in operation requests queue, update it is at least one remaining
The numerical priority value that each remaining paper operation requests in file operation requests are included.
In some embodiments, updating unit is further configured to:It will be at least one remaining paper operation requests
The numerical priority value that each remaining paper operation requests is included increases default value.
In some embodiments, which further includes:Operating unit is configured to according to excellent indicated by numerical priority value
The order of first grade from high to low, the file targeted to each file operation requests in file operation requests queue are grasped
Make.
In some embodiments, the targeted file of each file operation requests in file operation requests queue is mesh
Record file or device file.
In some embodiments, which further includes:Resource allocation unit is configured to for file operation requests queue
In each file operation requests, resource allocation is carried out for this document operation requests, and based on the resource distributed, to this article
The targeted file of part operation requests is operated.
File operation requests treating method and apparatus provided by the present application, by including file path information and excellent to intercepting
The file operation requests of first value of series then determine the path with file path information matches from preset routing information set
It is excellent finally to be replaced with target to determine target priority value of series by information for the numerical priority value for including in file operation requests
First value of series, and this document operation requests are stored to file operation requests queue, to realize to file operation requests
The reset of priority, so as to according to rational order access magnetic disc i/o resource, improve magnetic disc i/o resource isolation every
From effect.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the file operation requests processing method of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the file operation requests processing method of the application;
Fig. 4 is the flow chart according to another embodiment of the file operation requests processing method of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the file operation requests processing unit of the application;
Fig. 6 is adapted for the structural schematic diagram of the computer system of the server for realizing the embodiment of the present application.
Specific implementation mode
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, is illustrated only in attached drawing and invent relevant part with related.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the file operation requests processing method or file operation requests processing unit that can apply the application
Exemplary system architecture 100.
As shown in Figure 1, system architecture 100 may include first server 101,102,103, second server 104 and
Three servers 105.
First server 101,102,103 can be interacted with second server 104, such as sent file operation and asked
Ask, receive information etc..First server 101,102,103 can be independent server, can also be based on second server
104 and the Virtual Private Server established, can also be based on second server 104 and the container that builds.
Second server 104 can be various types, provide the server of various services, such as database server, height
Performance calculation server etc..Second server 104 can carry out the processing such as analyzing to data such as the file operation requests that receive,
It is interacted based on handling result and third server 105, such as the file managed third server 105 operates
Deng.
Third server 105 can be to provide the server of various services, such as provide file storage and management service
Document management server.Above-mentioned document management server can manage the memory space with schedule file, provide the logic of file
Structure, physical arrangement, storage method and file are from the mapping for being identified to actual address;Can also realize file control operation and
Accessing operation and file it is shared;Reliable file security and safeguard measure etc. can also be provided.
It is pointed out that above-mentioned first server 101,102,103, second server 104 and third server 105 can
To be same server.
It should be noted that the file operation requests processing method that the embodiment of the present application is provided is generally by second server
104 execute, and correspondingly, file operation requests processing unit is generally positioned in second server 104.
It should be understood that the number of the first server, second server and third server in Fig. 1 is only schematic
's.According to needs are realized, can have any number of first server, second server and third server.
With continued reference to Fig. 2, the flow of one embodiment of the file operation requests processing method according to the application is shown
200.The file operation requests processing method, includes the following steps:
Step 201, file operation requests are intercepted.
In the present embodiment, the electronic equipment (such as shown in FIG. 1 the of file operation requests processing method operation thereon
Two servers 104) another server (such as the first server shown in FIG. 1 being connected with above-mentioned electronic equipment can be intercepted
101,102, the 103) file operation requests sent, wherein above-mentioned file operation requests include above-mentioned file operation requests institute needle
To file file path information and be used to indicate above-mentioned file operation requests priority numerical priority value, also, on
It can be one or more to state file operation requests.In practice, above-mentioned first server can be independent one or more clothes
It is engaged in device, can also be based on above-mentioned electronic equipment and the one or more virtual servers or container that build.It should be pointed out that
Above-mentioned file operation requests can be used for asking the various operations to file, for example, opening file, establishment file deletes file,
For some file or catalogue another position establish a synchronous link, from data are read in file, into file
Data etc. are written.It may also be noted that above-mentioned file path information can be the store path for describing above-mentioned file
Character string, wherein above-mentioned character string can be made of the characters such as letter, number, symbol.In general, above-mentioned file path information
The file name of above-mentioned file can also be included.In addition, above-mentioned numerical priority value can be asked for characterizing above-mentioned file operation
Any number (such as 1,20,100 etc.) for the priority asked.
It should be noted that the targeted file of above-mentioned file operation requests can be connected with above-mentioned electronic equipment
The file managed in server (such as third server 105 shown in FIG. 1) for managing file.In practice, above-mentioned use
It can be independent server in the server of management file, can also be the file system in above-mentioned electronic equipment.Above-mentioned text
Part system can carry out tissue to the space for the file-storage device (such as disk, CD etc.) being installed in above-mentioned electronic equipment
And distribution, file can also be responsible for and store and the file of deposit is protected and retrieved.
In some optional realization methods of the present embodiment, the targeted file of above-mentioned file operation requests can be mesh
Record file.Wherein, above-mentioned catalogue file can be used for the mapping relations of storage file name and inode number.In practice, on
The mark of index node can be indicated for by stating inode number, and above-mentioned index node can be one kind in operating system
Data structure, it contains much information associated with the file, such as accesses or change the time of some file, text for the last time
The information such as the size of part.
In some optional realization methods of the present embodiment, the targeted file of above-mentioned file operation requests can be set
Standby file, wherein above equipment file can be the block device file carried out data transmission in blocks, such as disk, light
Disk etc..In addition, the targeted file of above-mentioned file operation requests can be character device file.
In some optional realization methods of the present embodiment, the targeted file of above-mentioned file operation requests can be general
Lead to file, such as the file etc. of text-only file, binary file, data format.In addition, above-mentioned file operation requests institute needle
To file can also be threaded file, pipe file etc..
Step 202, it determines the routing information with file path information match in preset routing information set, and obtains
Target priority value of series that is preset, matching with identified routing information.
In the present embodiment, above-mentioned electronic equipment can preset routing information set, wherein above-mentioned routing information set
In may include at least one routing information.Herein, routing information can be the character string of the store path for describing file,
It can also be store path file-based and pre-set regular expression.In practice, routing information can also include text
Part title.In addition, for each routing information in above-mentioned routing information set, above-mentioned electronic equipment can be stored with default
, the numerical priority value to match with the routing information, and pre-establish the mapping with store path information and numerical priority value,
So that above-mentioned electronic equipment is based on above-mentioned Map Searching to the numerical priority value to match with each routing information.In practice, no
The file of same type can match from different numerical priority values.As an example, the routing information phase with conventional journal file
The numerical priority value that matched numerical priority value is 3 and the routing information of alarm log file matches is 2 etc..It needs to illustrate
, different types of file can also match with identical numerical priority value.
In the present embodiment, above-mentioned electronic equipment can extract the letter of the either path in above-mentioned routing information set first
Breath;Later, above-mentioned electronic equipment can utilize character string matching method by file path information that step 201 receives with carried
The routing information taken is matched;Match with the routing information extracted in response to the above-mentioned file path information of determination, it is above-mentioned
Electronic equipment can be based on above-mentioned mapping, obtain the numerical priority value to match with the routing information extracted, and will be extracted
Numerical priority value be determined as target priority value of series;In response to routing information determination above-mentioned file path information and extracted
It mismatches, above-mentioned electronic equipment can extract next path letter for not carrying out matching operation from above-mentioned routing information set
Breath, is matched with above-mentioned file path information.
It should be noted that after determining extracted routing information with above-mentioned file path information match, above-mentioned electricity
Sub- equipment can no longer carry out the matching operation of next routing information;Otherwise, need one by one in above-mentioned routing information set
The routing information for not carrying out matching operation carries out and the matching of above-mentioned file operation information, until successful match.If in addition, successively
It determines that the information in above-mentioned routing information set is mismatched with above-mentioned file path information, then step 201 is not received
Numerical priority value operated.
It should be noted that above-mentioned character string matching method is the known technology studied and applied extensively at present, herein not
It repeats again.
Step 203, it is target priority value of series to replace numerical priority value, and file operation requests are inserted into file operation
Request queue.
In the present embodiment, above-mentioned electronic equipment can be stored with the file operation requests for storage file operation requests
Queue.Above-mentioned electronic equipment can first replace with the numerical priority value for including in file operation requests that step 201 receives
Target priority value of series determined by step 202;Later, the file operation requests that step 201 receives are inserted into above-mentioned text
In part operation requests queue, and the numerical priority value for being included based on the file operation requests in above-mentioned file operation requests queue
Size order, the file targeted to the file operation requests in above-mentioned file operation requests queue operate.
With continued reference to Fig. 3, Fig. 3 shown according to one of the application scenarios of the file operation requests processing method of the present embodiment
It is intended to.In the application scenarios of Fig. 3, first, first server 301,302,303 have sent respectively comprising file path information and
The file operation requests 304,305,306 of priority count value.Later, second server 307 to above-mentioned file operation requests 304,
305,306 intercepted, and determine the file path information match for being included with each file operation requests, it is preset
Routing information in routing information set.Then, above-mentioned second server 307 obtains preset and identified each path
The target priority value of series of information match, and the numerical priority value for being included by above-mentioned file operation requests 304,305,306
Corresponding target priority value of series is replaced with, replaced file operation requests 308,309,310 are obtained.Finally, above-mentioned second
Server 307 stores above-mentioned file operation requests 308,309,310 to file operation queue 311, to be grasped to above-mentioned file
Make the file that the file operation requests in request queue 311 are targeted, are stored in third server 312 to be operated.
The method that above-described embodiment of the application provides is by including file path information and numerical priority value to intercepting
File operation requests then determine the routing information with file path information matches from preset routing information set, so as to
It determines target priority value of series, the numerical priority value for including in file operation requests is finally replaced with into target priority value of series,
And store this document operation requests to file operation requests queue, to realize the weight to the priority of file operation requests
New settings improves the isolation effect of magnetic disc i/o resource isolation to access magnetic disc i/o resource according to rational order.
With further reference to Fig. 4, it illustrates the flows 400 of another embodiment of file operation requests processing method.It should
The flow 400 of file operation requests processing method, includes the following steps:
Step 401, file operation requests are intercepted.
In the present embodiment, the electronic equipment (such as shown in FIG. 1 the of file operation requests processing method operation thereon
Two servers 104) another server (such as the first server shown in FIG. 1 being connected with above-mentioned electronic equipment can be intercepted
101,102, the 103) file operation requests sent, wherein above-mentioned file operation requests include above-mentioned file operation requests institute needle
To file file path information and be used to indicate above-mentioned file operation requests priority numerical priority value.It needs to illustrate
, the targeted file of above-mentioned file operation requests can be the clothes for managing file being connected with above-mentioned electronic equipment
The file managed in business device (such as third server 105 shown in FIG. 1).It is pointed out that above-mentioned file operation requests
Targeted file can be catalogue file, device file, ordinary file (such as text-only file, binary file, data lattice
File of formula etc.), threaded file, pipe file etc..
Step 402, it determines the routing information with file path information match in preset routing information set, and obtains
Target priority value of series that is preset, matching with identified routing information.
In the present embodiment, above-mentioned electronic equipment can preset routing information set, can also be stored with it is preset, with
The numerical priority value that each routing information matches, and pre-establish the mapping with store path information and numerical priority value.
In the present embodiment, above-mentioned electronic equipment can extract the letter of the either path in above-mentioned routing information set first
Breath;Later, above-mentioned file path information can be matched with the routing information extracted using character string matching method;It rings
It should match with the routing information extracted in determining above-mentioned file path information, above-mentioned mapping can be based on, obtain and carried
The numerical priority value that the routing information taken matches, and the numerical priority value extracted is determined as target priority value of series;It rings
It should mismatch, can be extracted from above-mentioned routing information set in the routing information for determining above-mentioned file path information and being extracted
Next routing information for not carrying out matching operation is matched with above-mentioned file path information, repeats above-mentioned steps, directly
To in successful match or above-mentioned routing information set, there is no the routing informations for not carrying out matching operation.
Step 403, it is target priority value of series to replace numerical priority value, and file operation requests are inserted into file operation
Request queue.
In the present embodiment, above-mentioned electronic equipment can be stored with the file operation requests for storage file operation requests
Queue.It is excellent that the numerical priority value for including in above-mentioned file operation requests can be replaced with above-mentioned target by above-mentioned electronic equipment first
First value of series;Later, above-mentioned file operation requests are inserted into above-mentioned file operation requests queue.
It should be noted that the concrete operations of the concrete operations of above-mentioned steps 401- steps 403 and step 201- steps 203
Essentially identical, details are not described herein.
Step 404, it determines in file operation requests queue with the presence or absence of the remaining paper in addition to above-mentioned file operation requests
Operation requests.
In the present embodiment, above-mentioned after above-mentioned file operation requests are inserted into above-mentioned file operation requests queue
Electronic equipment can also determine in above-mentioned file operation requests queue with the presence or absence of remaining text in addition to above-mentioned file operation requests
Part operation requests;Remaining paper operation requests are not present in response to determining, it can be directly targeted to above-mentioned file operation requests
File operated.In response to determining that there are remaining paper operation requests, can execute step 405.
Step 405, in response to determining exist in file operation requests queue in addition to above-mentioned file operation requests at least one
A remaining paper operation requests, the numerical priority value that update remaining paper operation requests are included.
In the present embodiment, in response to existing in addition to above-mentioned file operation requests in the above-mentioned file operation requests queue of determination
At least one remaining paper operation requests, above-mentioned electronic equipment can update the priority that remaining paper operation requests are included
Numerical value.It should be noted that for each remaining paper operation requests, it is preferential included in the remaining paper operation requests
Value of series can serve to indicate that the priority of the remaining paper operation requests.
In some optional realization methods of the present embodiment, above-mentioned electronic equipment can be by remaining above-mentioned at least one text
The numerical priority value that each remaining paper operation requests in part operation requests are included increases by the first default value, to realize
Update to the numerical priority value that remaining paper operation requests are included.Wherein, above-mentioned default value can be any number.
In some optional realization methods of the present embodiment, above-mentioned electronic equipment can determine that numerical priority value is small first
In the remaining paper operation requests of the second default value, later, by identified remaining paper operation requests included it is preferential
Value of series, which increases, presets third value, to realize the update for the numerical priority value for being included to remaining paper operation requests.Wherein,
Above-mentioned second default value, above-mentioned third default value can be any numbers.
It is each in above-mentioned at least one remaining paper operation requests in some optional realization methods of the present embodiment
The numerical priority value that a remaining paper operation requests are included, above-mentioned electronic equipment can also the numerical priority value replace with it is default
, the pre-set priority numerical value to match with the numerical priority value.Wherein, above-mentioned pre-set priority numerical value can be arbitrary number
Value.
Step 406, the order according to the priority indicated by numerical priority value from high to low, to file operation requests queue
In the targeted file of each file operation requests operated.
In the present embodiment, above-mentioned electronic equipment can be first, in accordance with the priority indicated by numerical priority value from high to low
Sequence, the file operation requests in above-mentioned file operation requests queue are arranged;Later, according to the order arranged,
File in turn targeted to each file operation requests operates.It should be pointed out that above-mentioned file operation requests can
For asking the various operations to file, for example, opening file, establishment file deletes file, is some file or catalogue
A synchronous link is established in another position, from reading data in file, data etc. are written into file.
In the present embodiment, for each file operation requests in above-mentioned file operation requests queue, above-mentioned electronics
Equipment can also be that this document operation requests carry out resource allocation, for example, the file that setting is targeted to this document operation requests
Throughput value, IOPS (Input/Output Operations Per Second, read-write operation per second when being operated
Number) etc..Above-mentioned electronic equipment can be operated based on the resource distributed, the file targeted to this document operation requests.
Figure 4, it is seen that compared with the corresponding embodiments of Fig. 2, the file operation requests processing side in the present embodiment
The flow 400 of method, which highlights, is updated the included numerical priority value of remaining paper operation requests in file request queue
Step.As a result, the present embodiment description scheme can every time into file operation requests queue be inserted into file operation requests after,
The priority of original file operation requests is set, to avoid the lower file operation requests of priority targeted
File can not be operated.To which the reset to the priority of file operation requests be furthermore achieved, so as to according to reasonable
Order access magnetic disc i/o resource, further improve the isolation effect of magnetic disc i/o resource isolation.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of file operations to ask
One embodiment of processing unit is sought, the device embodiment is corresponding with embodiment of the method shown in Fig. 2, which specifically can be with
Applied in various electronic equipments.
As shown in figure 5, the file operation requests processing unit 500 described in the present embodiment includes:Interception unit 501, configuration
For intercepting file operation requests, wherein above-mentioned file operation requests include the targeted file of above-mentioned file operation requests
The numerical priority value of file path information and the priority for being used to indicate above-mentioned file operation requests;First determination unit 502, matches
It sets for determining the routing information in preset routing information set with above-mentioned file path information match, and obtains default
, the target priority value of series to match with identified routing information;Replacement unit 503 is configured to replace above-mentioned preferential
Value of series is above-mentioned target priority value of series, and above-mentioned file operation requests are inserted into file operation requests queue.
In the present embodiment, the interception unit 501 of above-mentioned file operation requests processing unit 500 can intercept and above-mentioned text
What the server (such as first server shown in FIG. 1 101,102,103) that part operation requests processing unit 500 is connected was sent
File operation requests, wherein above-mentioned file operation requests include the file path of the targeted file of above-mentioned file operation requests
The numerical priority value of information and the priority for being used to indicate above-mentioned file operation requests.It should be noted that above-mentioned file operation
It can be the service for managing file being connected with above-mentioned file operation requests processing unit 500 to ask targeted file
The file managed in device (such as third server 105 shown in FIG. 1).
In the present embodiment, above-mentioned first determination unit 502 can preset routing information set, can also be stored with pre-
If, the numerical priority value to match with each routing information, and pre-establish and store path information and numerical priority value
Mapping.
In the present embodiment, above-mentioned first determination unit 502 can extract any in above-mentioned routing information set first
Routing information;Later, above-mentioned file path information and the routing information extracted can be carried out using character string matching method
Matching;Match with the routing information extracted in response to the above-mentioned file path information of determination, above-mentioned mapping can be based on, obtained
The numerical priority value to match with the routing information extracted, and the numerical priority value extracted is determined as target priority series
Value;It is mismatched in response to the above-mentioned file path information of determination and the routing information extracted, it can be from above-mentioned routing information set
The middle next routing information for not carrying out matching operation of extraction, is matched with above-mentioned file path information, is repeated above-mentioned
Step, until there is no the routing informations for not carrying out matching operation in successful match or above-mentioned routing information set.
In the present embodiment, above-mentioned replacement unit 503 can be stored with the file operation for storage file operation requests
Request queue.Above-mentioned replacement unit 503 can first replace with the numerical priority value for including in above-mentioned file operation requests
State target priority value of series;Later, above-mentioned file operation requests are inserted into above-mentioned file operation requests queue.
In some optional realization methods of the present embodiment, above-mentioned file operation requests processing unit 500 can also wrap
Include the second determination unit 504 and updating unit 505.Above-mentioned second determination unit 504 may be configured to determine that file operation is asked
It asks in queue with the presence or absence of the remaining paper operation requests in addition to file operation requests.Above-mentioned updating unit 505 can configure use
There are at least one remaining paper operation requests in addition to file operation requests in response to determining file operation requests queue,
Update the numerical priority value that each remaining paper operation requests at least one remaining paper operation requests are included.
In some optional realization methods of the present embodiment, above-mentioned updating unit 505 can further be configured to by
The numerical priority value that each remaining paper operation requests at least one remaining paper operation requests are included increases default
Numerical value.
In some optional realization methods of the present embodiment, above-mentioned file operation requests processing unit 500 can also wrap
Include operating unit 506.Aforesaid operations unit 506 may be configured to according to the priority indicated by numerical priority value from high to low
Order, the file targeted to each file operation requests in file operation requests queue operate.
In some optional realization methods of the present embodiment, above-mentioned file operation requests processing unit 500 can also wrap
Include resource allocation unit 507.Above-mentioned allocation unit 507 may be configured to for each text in file operation requests queue
Part operation requests carry out resource allocation for this document operation requests, and based on the resource distributed, to this document operation requests institute
For file operated.
The device that above-described embodiment of the application provides, by the interception of interception unit 501 include file path information with
The file operation requests of numerical priority value, then the first determination unit 502 from preset routing information set determine and file
The matched routing information of routing information, to determine that target priority value of series, last replacement unit 503 will be in file operation requests
Including numerical priority value replace with target priority value of series, and this document operation requests are stored to file operation requests team
Row, to realize the reset to the priority of file operation requests, to access magnetic disc i/o money according to rational order
Source improves the isolation effect of magnetic disc i/o resource isolation.
Below with reference to Fig. 6, it illustrates the computer systems 600 suitable for the server for realizing the embodiment of the present application
Structural schematic diagram.Terminal device/server shown in Fig. 6 is only an example, should not to the function of the embodiment of the present application and
Use scope brings any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various actions appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
It is connected to I/O interfaces 605 with lower component:Importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 610, as needed in order to be read from thereon
Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed by communications portion 609 from network, and/or from detachable media
611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes
Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or
Computer readable storage medium either the two arbitrarily combines.Computer readable storage medium for example can be --- but
Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or arbitrary above combination.
The more specific example of computer readable storage medium can include but is not limited to:Electrical connection with one or more conducting wires,
Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In this application, computer readable storage medium can any be included or store
The tangible medium of program, the program can be commanded the either device use or in connection of execution system, device.And
In the application, computer-readable signal media may include the data letter propagated in a base band or as a carrier wave part
Number, wherein carrying computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but not
It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer
Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use
In by instruction execution system, device either device use or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang
Any appropriate combination stated.
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part for a part for one module, program segment, or code of table, the module, program segment, or code includes one or more uses
The executable instruction of the logic function as defined in realization.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it to note
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit can also be arranged in the processor, for example, can be described as:A kind of processor packet
Include interception unit, the first determination unit and replacement unit.Wherein, the title of these units is not constituted to this under certain conditions
The restriction of unit itself, for example, interception unit is also described as " intercepting the unit of file operation requests ".
As on the other hand, present invention also provides a kind of computer-readable medium, which can be
Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device so that should
Device:Intercept file operation requests, wherein this document operation requests include the file of the targeted file of this document operation requests
The numerical priority value of routing information and this document operation requests;Determine in preset routing information set with this document routing information
The routing information to match, and obtain target priority value of series that is preset, matching with identified routing information;Replacing should
Numerical priority value is the target priority value of series, and this document operation requests are inserted into file operation requests queue.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art
Member should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Other technical solutions of arbitrary combination and formation.Such as features described above has similar work(with (but not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (14)
1. a kind of file operation requests processing method, which is characterized in that the method includes:
Intercept file operation requests, wherein the file operation requests include the targeted file of the file operation requests
The numerical priority value of file path information and the priority for being used to indicate the file operation requests;
Determine the routing information with the file path information match in preset routing information set, and obtain it is preset,
The target priority value of series to match with identified routing information;
It is the target priority value of series to replace the numerical priority value, and the file operation requests are inserted into file operation
Request queue.
2. file operation requests processing method according to claim 1, which is characterized in that the method further includes:
It determines in the file operation requests queue with the presence or absence of the remaining paper operation requests in addition to the file operation requests;
In response to there is remaining at least one text in addition to the file operation requests in the determination file operation requests queue
Part operation requests, the numerical priority value that update remaining paper operation requests are included.
3. file operation requests processing method according to claim 2, which is characterized in that the update remaining paper operation
The included numerical priority value of request, including:
The priority number for being included by each remaining paper operation requests at least one remaining paper operation requests
Value increases default value.
4. file operation requests processing method according to claim 3, which is characterized in that the method further includes:
According to the order of the priority indicated by numerical priority value from high to low, to each in the file operation requests queue
The targeted file of file operation requests is operated.
5. file operation requests processing method according to claim 4, which is characterized in that the file operation requests queue
In the targeted file of each file operation requests be catalogue file or device file.
6. file operation requests processing method according to claim 4, which is characterized in that the method further includes:
For each file operation requests in the file operation requests queue, resource point is carried out for this document operation requests
Match, and based on the resource distributed, the file targeted to this document operation requests operates.
7. a kind of file operation requests processing unit, which is characterized in that described device includes:
Interception unit is configured to intercept file operation requests, wherein the file operation requests include that the file operation is asked
It seeks the file path information of targeted file and is used to indicate the numerical priority value of the priority of the file operation requests;
First determination unit is configured to determine the road in preset routing information set with the file path information match
Diameter information, and obtain target priority value of series that is preset, matching with identified routing information;
Replacement unit, it is the target priority value of series to be configured to replace the numerical priority value, and by the file operation
Request is inserted into file operation requests queue.
8. file operation requests processing unit according to claim 7, which is characterized in that described device further includes:
Second determination unit is configured to determine in the file operation requests queue with the presence or absence of except the file operation requests
Outer remaining paper operation requests;
Updating unit is configured in response to existing in addition to the file operation requests in the determination file operation requests queue
At least one remaining paper operation requests, update each remaining paper at least one remaining paper operation requests
The numerical priority value that operation requests are included.
9. file operation requests processing unit according to claim 8, which is characterized in that the updating unit is further matched
It sets and is used for:
The priority number for being included by each remaining paper operation requests at least one remaining paper operation requests
Value increases default value.
10. file operation requests processing unit according to claim 9, which is characterized in that described device further includes:
Operating unit is configured to the order from high to low according to the priority indicated by numerical priority value, is grasped to the file
Make the targeted file of each file operation requests in request queue to be operated.
11. file operation requests processing unit according to claim 10, which is characterized in that the file operation requests team
The targeted file of each file operation requests in row is catalogue file or device file.
12. file operation requests processing unit according to claim 10, which is characterized in that described device further includes:
Resource allocation unit is configured to for each file operation requests in the file operation requests queue, for this
File operation requests carry out resource allocation, and based on the resource distributed, and the file targeted to this document operation requests carries out
Operation.
13. a kind of server, which is characterized in that the server includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processors are real
The now method as described in any in claim 1-6.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The method as described in any in claim 1-6 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710065337.4A CN108399046B (en) | 2017-02-06 | 2017-02-06 | File operation request processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710065337.4A CN108399046B (en) | 2017-02-06 | 2017-02-06 | File operation request processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108399046A true CN108399046A (en) | 2018-08-14 |
CN108399046B CN108399046B (en) | 2021-03-19 |
Family
ID=63093599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710065337.4A Active CN108399046B (en) | 2017-02-06 | 2017-02-06 | File operation request processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108399046B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109726184A (en) * | 2018-12-25 | 2019-05-07 | 上海创功通讯技术有限公司 | A kind of file synchronisation method, device, network node and storage medium |
CN110888770A (en) * | 2018-09-10 | 2020-03-17 | 百度在线网络技术(北京)有限公司 | Method and apparatus for transmitting information |
CN111831431A (en) * | 2020-06-30 | 2020-10-27 | 万翼科技有限公司 | CAD file analysis method, related device and system |
CN112333093A (en) * | 2020-11-23 | 2021-02-05 | 迈普通信技术股份有限公司 | Policy routing path determining method and device, network equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040098750A1 (en) * | 2002-11-15 | 2004-05-20 | Samsung Electronics Co., Ltd. | Method for fixing up last uniform resource locator representing path and file name of multiphoto/video asset |
CN101510181A (en) * | 2009-03-19 | 2009-08-19 | 北京中星微电子有限公司 | Bus arbitration method and bus arbitration apparatus |
CN105468305A (en) * | 2015-12-09 | 2016-04-06 | 浪潮(北京)电子信息产业有限公司 | Data caching method, apparatus and system |
CN106021535A (en) * | 2016-05-25 | 2016-10-12 | 宁波萨瑞通讯有限公司 | File ordering method and mobile device |
-
2017
- 2017-02-06 CN CN201710065337.4A patent/CN108399046B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040098750A1 (en) * | 2002-11-15 | 2004-05-20 | Samsung Electronics Co., Ltd. | Method for fixing up last uniform resource locator representing path and file name of multiphoto/video asset |
CN101510181A (en) * | 2009-03-19 | 2009-08-19 | 北京中星微电子有限公司 | Bus arbitration method and bus arbitration apparatus |
CN105468305A (en) * | 2015-12-09 | 2016-04-06 | 浪潮(北京)电子信息产业有限公司 | Data caching method, apparatus and system |
CN106021535A (en) * | 2016-05-25 | 2016-10-12 | 宁波萨瑞通讯有限公司 | File ordering method and mobile device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110888770A (en) * | 2018-09-10 | 2020-03-17 | 百度在线网络技术(北京)有限公司 | Method and apparatus for transmitting information |
CN110888770B (en) * | 2018-09-10 | 2023-07-07 | 百度在线网络技术(北京)有限公司 | Method and device for transmitting information |
CN109726184A (en) * | 2018-12-25 | 2019-05-07 | 上海创功通讯技术有限公司 | A kind of file synchronisation method, device, network node and storage medium |
CN109726184B (en) * | 2018-12-25 | 2023-08-22 | 上海创功通讯技术有限公司 | File synchronization method, device, network node and storage medium |
CN111831431A (en) * | 2020-06-30 | 2020-10-27 | 万翼科技有限公司 | CAD file analysis method, related device and system |
CN111831431B (en) * | 2020-06-30 | 2023-07-21 | 深圳市万翼数字技术有限公司 | CAD file analysis method, related device and system |
CN112333093A (en) * | 2020-11-23 | 2021-02-05 | 迈普通信技术股份有限公司 | Policy routing path determining method and device, network equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108399046B (en) | 2021-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109409119A (en) | Data manipulation method and device | |
CN109697075A (en) | File updating method, system and device | |
CN108846753B (en) | Method and apparatus for processing data | |
CN110019211A (en) | The methods, devices and systems of association index | |
CN109274731A (en) | Deployment, call method and the device of web services based on multi-tenant technology | |
CN106843976B (en) | Method and apparatus for generating image file | |
CN108897612A (en) | Route the method and apparatus jumped | |
CN109981322B (en) | Method and device for cloud resource management based on label | |
US9848064B2 (en) | Generation and distribution of named, definable, serialized tokens | |
CN108399046A (en) | File operation requests treating method and apparatus | |
CN109936635A (en) | Load-balancing method and device | |
CN110019125A (en) | The method and apparatus of data base administration | |
CN110019080A (en) | Data access method and device | |
CN109492013A (en) | Data processing method, device and system applied to data-base cluster | |
CN108733787A (en) | Database operation method, device, electronic equipment and storage medium | |
CN109388626A (en) | Method and apparatus for being numbered to traffic assignments | |
CN110166507A (en) | More resource regulating methods and device | |
CN110427415A (en) | Knowledge share method, device, system media and electronic equipment | |
CN110287264A (en) | Batch data update method, device and the system of distributed data base | |
CN110019263A (en) | Information storage means and device | |
CN110019539A (en) | A kind of method and apparatus that the data of data warehouse are synchronous | |
CN113709810A (en) | Method, device and medium for configuring network service quality | |
CN110019242A (en) | Processing method, device and system for tables of data | |
CN113076186B (en) | Task processing method, device, electronic equipment and storage medium | |
CN110222064A (en) | Data processing method, device, electronic equipment and readable storage medium storing program for executing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |