CN109388589A - A kind of method, equipment and storage medium adjusting cache partitions ratio - Google Patents
A kind of method, equipment and storage medium adjusting cache partitions ratio Download PDFInfo
- Publication number
- CN109388589A CN109388589A CN201811169040.3A CN201811169040A CN109388589A CN 109388589 A CN109388589 A CN 109388589A CN 201811169040 A CN201811169040 A CN 201811169040A CN 109388589 A CN109388589 A CN 109388589A
- Authority
- CN
- China
- Prior art keywords
- ratio
- cache partitions
- storage pool
- partitions
- application
- 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.)
- Withdrawn
Links
- 238000003860 storage Methods 0.000 title claims abstract description 183
- 238000005192 partition Methods 0.000 title claims abstract description 161
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000001514 detection method Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000012528 membrane Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0866—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
- G06F12/0871—Allocation or management of cache space
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of method, equipment and storage mediums for adjusting cache partitions ratio.This method comprises: determining the crucial application being located in target storage pool, target storage pool is any one storage pool in multiple storage pools;It obtains and applies corresponding cache partitions ratio with key;Caching ratio of the target storage pool shared by storage system is adjusted according to cache partitions ratio.The cache partitions ratio can be distributed or by user's manual allocation automatically by computer.It can guarantee the trouble-free operation of crucial application by such method.
Description
Technical field
The present invention relates to field of storage, and in particular to a kind of method, equipment and storage medium for adjusting cache partitions ratio.
Background technique
Within the storage system, in order to rationally plan as a whole cache resources, the technology of cache partitions has been used to reach the target.?
In current storage system, system can create a cache partitions for each storage pool.
In the prior art, caching ratio shared by each cache partitions of system creation is identical, therefore all
Storage pool can be uniformly distributed cache resources, and this work is automatically performed.When the number of storage pool changes,
Each cache partitions can also be automatically adjusted to identical ratio.
In practical applications, crucial application may be run on some storage pool, when the caching that some key application needs
When space is bigger, if in the way of the mean allocation of cache partitions, may cause the spatial cache of crucial application not enough and
Crucial application is caused to be unable to run.
Summary of the invention
The embodiment of the present application provides a kind of method, equipment and storage medium for adjusting cache partitions ratio, it is ensured that
Key application trouble-free operation in storage pool.
In view of this, the application first aspect provides a kind of method for adjusting cache partitions ratio, this method is applied to deposit
Storage system, the storage system include multiple storage pools, and this method may include: to determine that the key being located in target storage pool is answered
With target storage pool is any one storage pool in multiple storage pools;It obtains and applies corresponding cache partitions ratio with key;Root
According to caching ratio of the ratio adjustment target storage pool in cache partitions shared by storage system.By above-mentioned first aspect it is found that determining
Key application and then acquisition are crucial using corresponding cache partitions ratio, adjust target storage pool according to cache partitions ratio
Shared ratio within the storage system can guarantee the trouble-free operation of crucial application in this way.
Optionally, with reference to first aspect, in the first possible implementation of the first aspect, determination is deposited positioned at target
It can also include: in detection storage pool with the presence or absence of crucial application before crucial application in reservoir;It is closed if existing in storage pool
Key application then judges that cache partitions strategy is manual mode or automatic mode;If cache partitions strategy is automatic mode, obtain
Default corresponding relationship list is taken, which includes that different crucial application and the corresponding of cache partitions ratio are closed
System;Corresponding, it includes: according to default corresponding relationship list, acquisition and pass that acquisition, which applies corresponding cache partitions ratio with key,
Key applies corresponding cache partitions ratio.It, in automatic mode, can be in the possible implementation of the first of the first aspect
Corresponding cache partitions ratio is applied to key according to Relation acquisition one-to-one in preset corresponding relationship list, is improved
Adjust the accuracy of cache partitions ratio.
Optionally, with reference to first aspect, in the second possible implementation of the first aspect, determination is deposited positioned at target
It can also include: in detection storage pool with the presence or absence of crucial application before crucial application in reservoir;It is closed if existing in storage pool
Key application then judges that cache partitions strategy is manual mode or automatic mode;If cache partitions strategy is manual mode, examine
The minimum cache partitions ratio that crucial application needs is surveyed, and minimum cache partitions ratio is shown on interface, minimum caching point
Area's ratio is that crucial application can run the corresponding ratio of required minimum spatial cache in storage pool;It is corresponding, it obtains
And the corresponding cache partitions ratio of key application includes: acquisition and the corresponding cache partitions ratio of key application, cache partitions ratio
Example is that user inputs according to the minimum cache partitions ratio shown on interface.The possible realization side of second of the first aspect
In formula, in a manual mode, corresponding storage pool can be applied according to the cache partitions ratio adjustment that user is manually entered is crucial
Shared cache partitions ratio improves the flexibility of adjustment cache partitions.
Optionally, any one realization side into second of possible implementation of first aspect with reference to first aspect
Formula, in a third possible implementation of the first aspect, adjusting target storage pool in storage according to cache partitions ratio is
It can also include: to detect the quantity of storage pool whether to change after the shared caching ratio of system;If the quantity of storage pool is sent out
Changing applies corresponding cache partitions ratio with key after then obtaining variation;According to being applied with the key after variation
The caching ratio that storage pool after corresponding cache partitions ratio adjustment variation accounts within the storage system.The third of the first aspect
The possible implementation of kind provides methodology, is adapted to the case where cache pool quantity changes, improves scheme
Flexibility can also be readjusted further according to the storage pool quantity after variation after adjusting for the first time, improve the complete of scheme
Whole property.
Optionally, the third possible implementation with reference to first aspect, in the 4th kind of possible realization of first aspect
In mode, whether the quantity for detecting storage pool changes, and may include: the quantity for obtaining current storage pool;More currently deposit
Whether the quantity of the quantity and storage pool of the quantity of reservoir and the quantity of storage pool and determining current storage pool is consistent.The first party
In the 4th kind of possible implementation in face, the quantity of storage pool when current storage pool quantity and adjustment is carried out pair in real time
Than, it can find at any time whether storage pool quantity changes, it is no longer suitable if changing the cache partitions ratio originally distributed
With needing timely to update cache partitions ratio, improve the timeliness and exploitativeness of this programme in this way.
The embodiment of the present application second aspect provides a kind of equipment for adjusting cache partitions ratio, which has realization above-mentioned
The function of the method for any one possible implementation of first aspect or first aspect.The function can by hardware realization,
Corresponding software realization can be executed by hardware.The hardware or software include one or more moulds corresponding with above-mentioned function
Block.
The embodiment of the present application third aspect provides a kind of equipment for adjusting cache partitions ratio, comprising: input/output (I/
O) interface, processor and memory;Input/output (I/O) interface is used for input/output information, and the memory is for storing
Computer executed instructions, when equipment operation, which executes the computer executed instructions of memory storage, so that
The equipment is executed such as above-mentioned first aspect or first aspect any one method in the cards.
The application fourth aspect provides a kind of readable storage medium storing program for executing, and instruction is stored in the readable storage medium storing program for executing, when its fortune
When row, the equipment is allowed to execute above-mentioned first aspect or first aspect any one method in the cards.
The 5th aspect of the application provides a kind of computer program product comprising instruction, when it is operated, so that the equipment
Above-mentioned first aspect or first aspect any one method in the cards can be executed.
The 6th aspect of the application provides a kind of chip system, which includes processor, for supporting that the equipment is real
Function involved in existing above-mentioned first aspect or first aspect any one possible implementation.In a kind of possible design
In, chip system further includes memory, memory, for saving the necessary program instruction of the equipment and data.The chip system,
It can be made of chip, also may include chip and other discrete devices.
Wherein, any implementation institute band in terms of second aspect, the third aspect, fourth aspect, the 5th, in the 6th aspect
The technical effect come can be found in technical effect brought by different implementations in first aspect, and details are not described herein again.
The embodiment of the present application provides a kind of method, equipment and storage medium for adjusting cache partitions ratio, this method packet
It includes: determining the crucial application being located in target storage pool, target storage pool is any one storage pool in multiple storage pools;It obtains
Corresponding cache partitions ratio is applied with key;According to cache partitions ratio adjust target storage pool in the storage system shared by
Caching ratio.The cache partitions ratio can be distributed or by user's manual allocation automatically by computer.In this way
Method can guarantee the key application trouble-free operation in storage pool.
Detailed description of the invention
Fig. 1 is method one embodiment schematic diagram that cache partitions ratio is adjusted in the embodiment of the present application;
Fig. 2 is that another embodiment schematic diagram of the method for cache partitions ratio is adjusted in the embodiment of the present application;
Fig. 3 is that another embodiment schematic diagram of the method for cache partitions ratio is adjusted in the embodiment of the present application;
Fig. 4 is equipment one embodiment schematic diagram that cache partitions ratio is adjusted in the embodiment of the present application;
Specific embodiment
The embodiment of the present application provides a kind of method, equipment and storage medium for adjusting cache partitions ratio, it is ensured that
Key application trouble-free operation in storage pool.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
The term "and/or" occurred in the application, can be a kind of incidence relation for describing affiliated partner, and expression can deposit
In three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.
In addition, character "/" in the application, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing
Similar object, without being used to describe a particular order or precedence order.It should be understood that the data used in this way are in appropriate feelings
It can be interchanged under condition, so that the embodiments described herein can be real with the sequence other than the content for illustrating or describing herein
It applies.In addition, term " includes " and " having " and their any deformation, it is intended that cover it is non-exclusive include, for example, packet
The process, method, system, product or equipment for having contained series of steps or module those of be not necessarily limited to be clearly listed step or
Module, but may include other steps being not clearly listed or intrinsic for these process, methods, product or equipment or
Module.
In the prior art, caching ratio shared by each cache partitions of system creation is identical, therefore all
Storage pool can be uniformly distributed cache resources, and this work is automatically performed.When there are keys to answer on some storage pool
Used time, if the spatial cache that may cause crucial application not enough leads to key in the way of the mean allocation of cache partitions
Using being unable to run.Therefore the embodiment of the present application provides a kind of method, equipment and storage medium for adjusting cache partitions ratio,
It can guarantee the key application trouble-free operation in storage pool.
In order to make it easy to understand, detailed process in the embodiment of the present application is specifically described below, referring to Fig. 1, implementing
Example one includes:
101, the crucial application being located in target storage pool is determined.
In the present embodiment, needs first to determine the crucial application in target storage pool, first to detect deposit before the determination
It is applied in reservoir with the presence or absence of crucial, it is crucial in application, the demand assignment spatial cache for just needing to apply according to key when existing.
The target storage pool is any one in multiple storage pools in storage system.
102, it obtains and applies corresponding cache partitions ratio with key.
It has determined that in target storage pool there is crucial application in step 101, exists in target storage pool has been determined
Key, which is applied and then obtained, applies corresponding cache partitions ratio with key, and in the embodiment of the present application, there are two types of acquisitions
Mode, a kind of automatic mode obtain cache partitions ratio in preset corresponding relationship list, and a kind of manual mode is obtained and used
The cache partitions ratio of family input.
103, adjustment target storage pool shared caching ratio within the storage system.
According to the cache partitions ratio adjustment target storage pool got in step 102 shared caching within the storage system
Ratio.
It is crucial in application, can be by automatic mode pre- when existing in some target storage pool in the embodiment of the present application
If corresponding relationship list in obtain cache partitions ratio, the also available cache partitions ratio for being manually entered.Pass through
The cache partitions ratio got adjusts target storage pool shared caching ratio within the storage system, to ensure crucial application
It being capable of trouble-free operation.
The method for adjusting cache partitions ratio in embodiment to itself above is described, below for above-mentioned implementation
Two kinds mentioned in example step 102, which are obtained, to be specifically described with key using corresponding cache partitions ratio.Please refer to figure
2, embodiment two includes:
201, it detects in storage pool with the presence or absence of crucial application.
The objective of the embodiment of the present application is just to be able to meet the key application trouble-free operation in storage pool, answers first
With the presence or absence of crucial application in the detection storage pool.
202, judge that cache partitions strategy is manual membrane type or automatic mode.
Detected in storage pool in step 201 exist it is crucial in application, judge cache partitions strategy be manual mode or
Automatic mode.System default is automatic mode, but can also taking human as be revised as manual mode.
203, default corresponding relationship list is obtained.
When judging cache partitions strategy in step 202 is automatic mode, preset corresponding relationship list is obtained, this is default
Corresponding relationship list includes the corresponding relationship of different crucial application and cache partitions ratio.Pass through corresponding relationship list
It finds crucial using corresponding cache partitions ratio.
204, according to presetting, corresponding relationship list acquisition is crucial to apply corresponding cache partitions ratio.
It is obtained according to the corresponding relationship list got in step 203 crucial using corresponding cache partitions ratio.This is right
Answer in relation list it is crucial using corresponding cache partitions ratio be it is pre-set, can satisfy the operation of crucial application.
205, caching ratio of the adjustment target storage pool shared by storage system.
According to the key got in step 204 using the target where the crucial application of corresponding cache partitions ratio adjustment
Caching ratio shared by storage pool.Adjustment shows cache partitions ratio shared by storage pool all in system after completing
On interface, user is facilitated to check the service condition of storage resource.
206, the minimum cache partitions ratio that the crucial application of detection needs.
When judging cache partitions strategy in step 202 is manual mode, detects crucial application and need at runtime most
Low cache partitions ratio, the minimum cache partitions ratio are required for key application can be run in corresponding storage pool
The corresponding ratio of minimum spatial cache.The minimum cache partitions ratio is shown on interface after detecting, is used for prompting
It is greater than or is equal to the minimum cache partitions when family is to key application corresponding storage pool setting cache partitions ratio
Ratio.
207, obtain user's input applies corresponding cache partitions ratio with key.
It obtains and applies corresponding cache partitions ratio with key, which is that user shows according in step 206
Show the minimum cache partitions ratio setting on interface, can satisfy the operation of crucial application.
208, caching ratio of the adjustment target storage pool shared by storage system.
Within the storage system according to the cache partitions ratio adjustment target storage pool of the user's input got in step 207
Shared caching ratio.Adjustment shows cache partitions ratio shared by storage pool all in system at interface after completing
On, facilitate user to check the service condition of storage resource.
Above embodiments obtain manual mode and automatic mode and carry out with key using corresponding cache partitions ratio
Specific description, according to the cache partitions ratio adjustment target storage pool got shared caching ratio within the storage system
Later, the quantity of storage pool is it is also possible to change, and when storage pool changes, the cache partitions ratio being originally arranged is just
It is no longer applicable, it needs to redistribute cache partitions ratio further according to the storage pool quantity after variation.Referring to Fig. 3, implementing
Example three includes:
301, the crucial application being located in target storage pool is determined.
In the present embodiment, needs first to determine the crucial application in target storage pool, first to detect deposit before the determination
It is applied in reservoir with the presence or absence of crucial, it is crucial in application, the demand assignment spatial cache for just needing to apply according to key when existing.
The target storage pool is any one in multiple storage pools in storage system.
302, it obtains and applies corresponding cache partitions ratio with key.
It obtains and applies corresponding cache partitions ratio with key, can be obtained in a manual mode, it can also be certainly
It is obtained under dynamic model formula, is understood that details are not described herein again referring particularly to embodiment two.
303, adjustment target storage pool shared cache partitions ratio within the storage system.
It is being stored according to what is got in step 302 with key application corresponding cache partitions ratio adjustment target storage pool
Shared cache partitions ratio in system.
304, whether the quantity for detecting storage pool changes.
Adjustment target storage pool is within the storage system after shared cache partitions ratio in step 303, storage pool
Quantity is it is also possible to send variation, this when, whether the quantity of the real-time detection storage pool of needs changed.If storage
If there is a change, the cache partitions ratio being originally arranged just is not suitable for the quantity in pond.
305, the key after obtaining variation applies the cache partitions ratio of corresponding cache partitions.
When the quantity for detecting storage pool in step 304 sends variation, the crucial application after obtaining variation is corresponded to
Cache partitions ratio.The cache partitions ratio, which can be, to be obtained from default corresponding relationship list under automatic mode, can also
To be that received user inputs under manual mode.It can be understood that details are not described herein again refering to embodiment two.
306, adjustment target storage pool shared caching ratio within the storage system.
It is adjusted according to the key after the variation got in step 305 using the cache partitions ratio of corresponding cache partitions
Target storage pool shared cache partitions ratio within the storage system.
The method that cache partitions ratio is adjusted in the embodiment of the present application is described above, it is lower full to the application implementation
The equipment that cache partitions ratio is adjusted in example is described, referring to Fig. 4, example IV includes:
First processing units 401, for determining the crucial application being located in target storage pool, which is multiple
Any one storage pool in storage pool;
First acquisition unit 402 applies corresponding cache partitions ratio with key for obtaining;
The second processing unit 403, the cache partitions ratio adjustment target for being got according to first acquisition unit 402 are deposited
Caching ratio of the reservoir shared by storage system.
First detection unit 404, for detecting in storage pool with the presence or absence of crucial application;
Third processing unit 405, for there is key in application, sentencing when first detection unit 404 detects in storage pool
Disconnected cache partitions strategy is manual mode or automatic mode;
Second acquisition unit 406, for obtaining when third processing unit 405 judges that cache partitions strategy is automatic mode
Default corresponding relationship list is taken, which includes that different crucial application and the corresponding of cache partitions ratio are closed
System.
Wherein first acquisition unit 402 may further include:
First obtain subelement 4021: the default corresponding relationship list got according to second acquisition unit 406, obtain with
Key applies corresponding cache partitions ratio;
The equipment of the adjustment cache partitions ratio further include:
Second detection unit 407: for examining when third processing unit 405 judges that cache partitions strategy is manual mode
The minimum cache partitions ratio that crucial application needs is surveyed, and minimum cache partitions ratio is shown on interface, minimum caching point
Area's ratio is that crucial application can run the corresponding ratio of required minimum spatial cache in storage pool;
Wherein first acquisition unit may further include:
Second obtains subelement 4022: applying corresponding cache partitions ratio, cache partitions ratio with key for obtaining
It is that user inputs according to the minimum cache partitions ratio shown on interface.
The equipment of the adjustment cache partitions ratio further include:
Third detection unit 408: whether the quantity for detecting storage pool changes;
Third acquiring unit 409: for when storage pool quantity send variation when, obtain variation after with key application pair
The cache partitions ratio answered;
Fourth processing unit 410: for according to changing after variation with key application corresponding cache partitions ratio adjustment
The caching ratio that storage pool afterwards accounts within the storage system.
For executing method shown in embodiment one to three, specific implementation procedure please be detailed in equipment shown in the present embodiment
Shown in embodiment two and embodiment three, acquired beneficial effect is also referred to shown in embodiment two and embodiment three, tool
Body does not repeat them here.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and execute on computers the meter
When calculation machine program instruction, entirely or partly generate according to process or function described in the embodiment of the present invention.The computer can
To be general purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited
Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer readable storage medium
Transmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data center
Such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave) mode to another website
Website, computer, server or data center are transmitted.The computer readable storage medium can be computer and can deposit
Any usable medium of storage either includes that the data storages such as one or more usable mediums integrated server, data center are set
It is standby.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or partly lead
Body medium (such as solid state hard disk Solid State Disk (SSD)) etc..
Occur in this application to step carry out name perhaps number be not meant to must according to name or compile
Time/logic sequencing indicated by number executes the step in method flow, and named or number process step can
To change execution order according to the technical purpose to be realized, as long as identical or similar technical effect can be reached.This
The division of module appeared in application is a kind of division in logic, can have other division when realizing in practical application
Mode, such as multiple modules can be combined into or are integrated in another system, or some features can be ignored or not executed,
In addition, shown or discussion mutual coupling, direct-coupling or communication connection can be through some interfaces, mould
Indirect coupling or communication connection between block can be electrical or other similar form, be not construed as limiting in the application.Also,
Module or submodule can be the separation that may not be physically as illustrated by the separation member, can be and may not be object
Module is managed, or can be distributed in multiple circuit modules, some or all of moulds can be selected according to the actual needs
Block realizes the purpose of application scheme.
Method, equipment and the storage medium for being provided for the embodiments of the invention adjustment cache partitions ratio above carry out
It is discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, above embodiments
Illustrate to be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to
According to thought of the invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification
It should not be construed as limiting the invention.
Claims (10)
1. a kind of method for adjusting cache partitions ratio, which is characterized in that the method is applied to storage system, the storage system
System includes multiple storage pools, which comprises
Determine the crucial application being located in target storage pool, the target storage pool is that any of the multiple storage pool is deposited
Reservoir;
It obtains and applies corresponding cache partitions ratio with the key;
Target storage pool caching ratio shared by the storage system is adjusted according to the cache partitions ratio.
2. according to the method described in claim 1, before determining the crucial application being located in target storage pool, further includes:
It detects in the storage pool with the presence or absence of crucial application;
If judging that cache partitions strategy is manual mode or automatic mode there are the crucial application in the storage pool;
If the cache partitions strategy is the automatic mode, default corresponding relationship list, the default corresponding relationship are obtained
List includes the corresponding relationship of different crucial application and the cache partitions ratio;
Corresponding, acquisition includes: using corresponding cache partitions ratio with the key
According to the default corresponding relationship list, obtains and apply the corresponding cache partitions ratio with the key.
3. according to the method described in claim 1, before determining the crucial application being located in target storage pool, further includes:
It detects in the storage pool with the presence or absence of crucial application;
If judging that the cache partitions strategy is the manual mode or institute there are the crucial application in the storage pool
State automatic mode;
If the cache partitions strategy is the manual mode, the minimum cache partitions ratio that the crucial application needs is detected
Example, and the minimum cache partitions ratio is shown on interface, the minimum cache partitions ratio is described crucial using energy
It is enough that the corresponding ratio of required minimum spatial cache is run in the storage pool;
Corresponding, acquisition includes: using corresponding cache partitions ratio with the key
It obtains and applies corresponding cache partitions ratio with the key, the cache partitions ratio is that user shows according on interface
The minimum cache partitions ratio input.
4. method according to claim 1 to 3 adjusts the target storage pool according to the cache partitions ratio and exists
After caching ratio shared by the storage system, further includes:
Whether the quantity for detecting the storage pool changes;
If the quantity of the storage pool changes, corresponding cache partitions ratio is applied with the key after obtaining variation
Example;
According to existing after the variation with the crucial storage pool for applying corresponding cache partitions ratio to adjust after the variation
The caching ratio accounted in the storage system.
5. according to the method described in claim 4, whether the quantity for detecting the storage pool changes, comprising:
Obtain the quantity of current storage pool;
Compare the quantity of the current storage pool and the quantity of the storage pool and determines quantity and the institute of the current storage pool
Whether the quantity for stating storage pool is consistent.
6. a kind of equipment for adjusting cache partitions ratio characterized by comprising
First processing units, for determining the crucial application being located in target storage pool, the target storage pool is the multiple
Any one storage pool in storage pool;
First acquisition unit applies corresponding cache partitions ratio with the key for obtaining;
The second processing unit, for according to the cache partitions ratio adjust the target storage pool in the storage system shared by
Caching ratio.
7. equipment according to claim 6, which is characterized in that the equipment further include:
First detection unit, for detecting in the storage pool with the presence or absence of crucial application;
Third processing unit, for when there are the keys in application, judging that cache partitions strategy is manual in the storage pool
Mode or automatic mode;
Second acquisition unit, for when the third processing unit judges that the cache partitions strategy is the automatic mode,
Default corresponding relationship list is obtained, the default corresponding relationship list includes different crucial application and the cache partitions ratio
Corresponding relationship.
Corresponding, first acquisition unit includes:
First obtains subelement, and the default corresponding relationship list for being got according to the second acquisition unit obtains
The corresponding cache partitions ratio is applied with the key.
8. equipment according to claim 6, which is characterized in that the equipment further include:
First detection unit, for detecting in the storage pool with the presence or absence of crucial application;
Third processing unit, for when there are the keys in application, judging that cache partitions strategy is manual in the storage pool
Mode or automatic mode;
Second detection unit, for when the third processing unit judges that the cache partitions strategy is the manual mode,
The minimum cache partitions ratio that the crucial application needs is detected, and the minimum cache partitions ratio is shown on interface,
The minimum cache partitions ratio is minimum spatial cache required for the crucial application can be run in the storage pool
Corresponding ratio;
Corresponding, the first acquisition unit includes:
Second obtains subelement, applies corresponding cache partitions ratio, the cache partitions ratio with the key for obtaining
It is that user inputs according to the minimum cache partitions ratio shown on interface.
9. according to equipment as claimed in claim 6 to 8, which is characterized in that the equipment further include:
Whether third detection unit, the quantity for detecting the storage pool change;
Third acquiring unit, for when the quantity of the storage pool sends variation, obtaining applying after changing with the key
Corresponding cache partitions ratio;
Fourth processing unit, for according to after the variation and described in the crucial application corresponding cache partitions ratio adjustment
The caching ratio that storage pool after variation accounts within the storage system.
10. a kind of computer readable storage medium, including instruction, which is characterized in that when described instruction is transported on a computing device
When row, so that the computer equipment executes method a method as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811169040.3A CN109388589A (en) | 2018-10-08 | 2018-10-08 | A kind of method, equipment and storage medium adjusting cache partitions ratio |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811169040.3A CN109388589A (en) | 2018-10-08 | 2018-10-08 | A kind of method, equipment and storage medium adjusting cache partitions ratio |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109388589A true CN109388589A (en) | 2019-02-26 |
Family
ID=65419158
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811169040.3A Withdrawn CN109388589A (en) | 2018-10-08 | 2018-10-08 | A kind of method, equipment and storage medium adjusting cache partitions ratio |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109388589A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110557432A (en) * | 2019-07-26 | 2019-12-10 | 苏州浪潮智能科技有限公司 | cache pool balance optimization method, system, terminal and storage medium |
CN111338579A (en) * | 2020-02-27 | 2020-06-26 | 苏州浪潮智能科技有限公司 | Read-write cache optimization method, system, terminal and storage medium based on storage pool |
CN117472799A (en) * | 2023-12-28 | 2024-01-30 | 柏科数据技术(深圳)股份有限公司 | Elastic allocation method, device, terminal and storage medium for cache resources |
-
2018
- 2018-10-08 CN CN201811169040.3A patent/CN109388589A/en not_active Withdrawn
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110557432A (en) * | 2019-07-26 | 2019-12-10 | 苏州浪潮智能科技有限公司 | cache pool balance optimization method, system, terminal and storage medium |
CN111338579A (en) * | 2020-02-27 | 2020-06-26 | 苏州浪潮智能科技有限公司 | Read-write cache optimization method, system, terminal and storage medium based on storage pool |
CN111338579B (en) * | 2020-02-27 | 2022-07-19 | 苏州浪潮智能科技有限公司 | Read-write cache optimization method, system, terminal and storage medium based on storage pool |
CN117472799A (en) * | 2023-12-28 | 2024-01-30 | 柏科数据技术(深圳)股份有限公司 | Elastic allocation method, device, terminal and storage medium for cache resources |
CN117472799B (en) * | 2023-12-28 | 2024-04-02 | 柏科数据技术(深圳)股份有限公司 | Elastic allocation method, device, terminal and storage medium for cache resources |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109388589A (en) | A kind of method, equipment and storage medium adjusting cache partitions ratio | |
CN106412917A (en) | Network expansion method and device | |
CN103607424B (en) | Server connection method and server system | |
CN105656962A (en) | Service calling method and device | |
CN105930020A (en) | Method and apparatus for function icons of management terminal application program | |
CN110308980A (en) | Batch processing method, device, equipment and the storage medium of data | |
CN107484190B (en) | Method for connecting network, mobile terminal and computer readable storage medium | |
CN109408205A (en) | Method for scheduling task and device based on hadoop cluster | |
WO2014194704A1 (en) | A grouping processing method and system | |
CN106383764A (en) | Data acquisition method and device | |
CN110166524A (en) | Switching method, device, equipment and the storage medium of data center | |
CN109508287A (en) | Page adjustment method and terminal device | |
CN107943697A (en) | Problem distribution method, device, system, server and computer-readable storage medium | |
CN109376015A (en) | Solution and system are blocked in log for task scheduling system | |
CN115543577A (en) | Kubernetes resource scheduling optimization method based on covariates, storage medium and equipment | |
CN109284229A (en) | A kind of dynamic adjusting method and relevant device based on QPS | |
CN103677983A (en) | Scheduling method and device of application | |
CN104410511B (en) | A kind of server management method and system | |
CN109889406A (en) | For managing method, apparatus, equipment and the storage medium of network connection | |
CN109462646A (en) | A kind of method and apparatus of exception response | |
CN109508323A (en) | A kind of document storage system and file memory method | |
CN104468379B (en) | Virtual Hadoop clustered nodes system of selection and device based on most short logical reach | |
US9479579B2 (en) | Grouping processing method and system | |
CN106126640B (en) | Content-data method for pushing and device | |
CN106210120B (en) | A kind of recommended method and its device of server |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190226 |
|
WW01 | Invention patent application withdrawn after publication |