CN115309494A - Storage resource scheduling method, device, equipment and computer readable storage medium - Google Patents

Storage resource scheduling method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN115309494A
CN115309494A CN202110498378.9A CN202110498378A CN115309494A CN 115309494 A CN115309494 A CN 115309494A CN 202110498378 A CN202110498378 A CN 202110498378A CN 115309494 A CN115309494 A CN 115309494A
Authority
CN
China
Prior art keywords
storage
storage resource
allocated
container
resources
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.)
Pending
Application number
CN202110498378.9A
Other languages
Chinese (zh)
Inventor
史露强
郭岳
钟储建
陈琪
童铮
孙占峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110498378.9A priority Critical patent/CN115309494A/en
Publication of CN115309494A publication Critical patent/CN115309494A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Abstract

The invention discloses a method, a device and equipment for scheduling storage resources and a computer readable storage medium, wherein the method for scheduling the storage resources comprises the following steps: receiving storage resource requests of each container, wherein the storage resource requests comprise the data volume of the storage resources currently required by the container; monitoring the residual storage resources of the storage module; determining storage resources to be allocated according to the storage resource request and the residual storage resources; and allocating the storage resources to be allocated to the container corresponding to the storage resource request. The invention improves the data security.

Description

Storage resource scheduling method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of persistent storage technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for scheduling storage resources.
Background
The container technology is used as a kernel lightweight operating system layer virtualization technology, can improve the safety and the portability of application, realizes the continuous integration and continuous deployment of the application, and promotes the application architecture to be converted into a coupling service of independent development and deployment from a single code library adopting a waterfall publishing method.
At present, containerization application in a cloud computing PaaS platform grows exponentially, but containers have an inherent storage defect. When the container is created, the storage allocated to the container by default cannot be persisted, and the storage data of the container is easily lost when the container is upgraded, shut down or restarted.
Disclosure of Invention
The invention mainly aims to provide a storage resource scheduling method, a storage resource scheduling device, storage resource scheduling equipment and a computer-readable storage medium, and aims to solve the problem that a storage data container of a container is lost.
In order to achieve the above object, the present invention provides a method for scheduling storage resources, which comprises the following steps:
receiving storage resource requests of each container, wherein the storage resource requests comprise data volume of storage resources currently required by the container;
monitoring the residual storage resources of the storage module;
determining storage resources to be allocated according to the storage resource request and the residual storage resources;
and allocating the storage resources to be allocated to the container corresponding to the storage resource request.
In an embodiment, the step of allocating the storage resource to be allocated to the container corresponding to the storage resource request includes:
acquiring addresses of the storage resources to be allocated, wherein the addresses comprise initial addresses and termination addresses;
generating an allocation instruction according to the storage resource to be allocated;
and sending the allocation instruction to a container corresponding to the storage resource request, so that the container writes the address of the storage resource according to the allocation instruction.
In an embodiment, after the step of allocating the storage resource to be allocated to the container corresponding to the storage resource request, the method further includes:
monitoring the allocated storage resources of each of the containers;
determining a usage status of the allocated storage resources of each of the containers;
if the allocated storage resources are not used, removing the unused allocated storage resources from the container.
In an embodiment, after the step of determining the usage status of the allocated storage resources of each container, the method further includes:
if the container uses the allocated storage resources, determining the storage resources currently required by the container;
if the currently required storage resource is smaller than the allocated storage resource of the container, determining redundant storage resources in the allocated storage resource according to the currently required storage resource;
removing the excess storage resources from the container.
In an embodiment, after the step of determining the storage resources currently required by the container, the method further includes:
and if the currently required storage resource is larger than the allocated storage resource of the container, executing the step of monitoring the residual storage resource of the storage module.
In one embodiment, the storage resource scheduling method is applied to a container, and the storage resource scheduling method includes:
generating a storage resource request according to the storage resource requirement of the container and sending the storage resource request to a storage resource scheduler;
acquiring the storage resources to be allocated corresponding to the container determined by the storage resource scheduler;
and writing the address of the storage resource to be allocated into the container.
In an embodiment, the step of writing the address of the storage resource to be allocated to the container comprises:
if the container is not allocated with the storage resources, writing the addresses of the storage resources to be allocated into the container;
and if the container is allocated with the storage resources, writing the address of the storage resources to be allocated into the container, wherein the initial address of the storage resources to be allocated is written after the ending address of the allocated storage resources.
In order to achieve the above object, the present invention further provides a storage resource scheduling apparatus, including:
the receiving module is used for receiving storage resource requests of all the containers, wherein the storage resource requests comprise data volumes of storage resources currently required by the containers;
the monitoring module is used for monitoring the residual storage resources of the storage module;
a determining module, configured to determine a storage resource to be allocated according to the storage resource request and the remaining storage resources;
and the allocation module is used for allocating the storage resources to be allocated to the container corresponding to the storage resource request.
To achieve the above object, the present invention further provides a storage resource scheduling apparatus, which includes a memory, a processor, and a storage resource scheduler stored in the memory and executable on the processor, wherein the storage resource scheduler, when executed by the processor, implements the steps of the storage resource scheduling method as described above.
To achieve the above object, the present invention also provides a computer readable storage medium storing a storage resource scheduler, which when executed by a processor implements the steps of the storage resource scheduling method as described above.
According to the storage resource scheduling method, the storage resource scheduling device, the storage resource scheduling equipment and the computer readable storage medium, the storage resource scheduler receives the storage resource requests of all the containers, monitors the residual storage resources of the storage module, determines the storage resources to be allocated according to the storage resource requests and the residual storage resources, and allocates the storage resources to be allocated to the containers corresponding to the storage resource requests. The storage resource scheduler allocates the storage resources of the storage module to each container according to the storage resource requests of the containers, so that the storage resources are reasonably allocated, data loss in the containers is prevented, and the security of the data is improved.
Drawings
Fig. 1 is a schematic hardware structure diagram of a storage resource scheduling device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for scheduling storage resources according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of the relationship between a storage resource scheduler, a storage module and a container according to the present invention;
FIG. 4 is a detailed flowchart of step S40 of the storage resource scheduling method according to the second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for scheduling storage resources according to a third embodiment of the present invention;
FIG. 6 is a flowchart illustrating a method for scheduling storage resources according to a fourth embodiment of the present invention;
FIG. 7 is a flowchart illustrating a fifth embodiment of a method for scheduling storage resources according to the present invention;
FIG. 8 is a schematic diagram of a logic structure of a storage resource scheduling apparatus according to the present invention;
FIG. 9 is a schematic diagram of a logic structure of the storage resource scheduling apparatus according to the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: and the storage resource scheduler receives the storage resource requests of the containers, monitors the residual storage resources of the storage module, determines the storage resources to be allocated according to the storage resource requests and the residual storage resources, and allocates the storage resources to be allocated to the containers corresponding to the storage resource requests.
The storage resource scheduler allocates the storage resources of the storage module to each container according to the storage resource requests of the containers, reasonably allocates the storage resources, prevents data in the containers from being lost, and improves the security of the data.
As an implementation, the storage resource scheduling device may be as shown in fig. 1.
The embodiment of the invention relates to a storage resource scheduling device, which comprises: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as a disk memory. As shown in fig. 1, a memory 102, which is a kind of computer-readable storage medium, may include a storage resource scheduler therein; and the processor 101 may be configured to call a storage resource scheduler stored in the memory 102 and perform the following operations:
receiving storage resource requests of each container, wherein the storage resource requests comprise data volume of storage resources currently required by the container;
monitoring the residual storage resources of the storage module;
determining storage resources to be allocated according to the storage resource request and the residual storage resources;
and allocating the storage resources to be allocated to the container corresponding to the storage resource request.
In one embodiment, the processor 101 may be configured to call a storage resource scheduler stored in the memory 102 and perform the following operations:
acquiring addresses of the storage resources to be allocated, wherein the addresses comprise initial addresses and termination addresses;
generating an allocation instruction according to the storage resource to be allocated;
and sending the allocation instruction to a container corresponding to the storage resource request, so that the container writes the address of the storage resource according to the allocation instruction.
In one embodiment, the processor 101 may be configured to invoke a storage resource scheduler stored in the memory 102 and perform the following operations:
monitoring the allocated storage resources of each of the containers;
determining a usage status of the allocated storage resources of each of the containers;
if the allocated storage resources are not used, removing the unused allocated storage resources from the container.
In one embodiment, the processor 101 may be configured to invoke a storage resource scheduler stored in the memory 102 and perform the following operations:
if the container uses the allocated storage resources, determining the storage resources currently required by the container;
if the currently required storage resource is smaller than the allocated storage resource of the container, determining redundant storage resources in the allocated storage resource according to the currently required storage resource;
removing the excess storage resources from the container.
In one embodiment, the processor 101 may be configured to invoke a storage resource scheduler stored in the memory 102 and perform the following operations:
and if the currently required storage resource is larger than the allocated storage resource of the container, executing the step of monitoring the residual storage resource of the storage module.
In one embodiment, the processor 101 may be configured to call a storage resource scheduler stored in the memory 102 and perform the following operations:
generating a storage resource request according to the storage resource requirement of the container and sending the storage resource request to a storage resource scheduler;
acquiring the storage resources to be allocated corresponding to the container determined by the storage resource scheduler;
and writing the address of the storage resource to be allocated into the container.
In one embodiment, the processor 101 may be configured to call a storage resource scheduler stored in the memory 102 and perform the following operations:
if the container is not allocated with the storage resources, writing the addresses of the storage resources to be allocated into the container;
and if the container is allocated with the storage resources, writing the address of the storage resources to be allocated into the container, wherein the initial address of the storage resources to be allocated is written after the ending address of the allocated storage resources.
Based on the hardware architecture of the storage resource scheduling device, the embodiment of the storage resource scheduling method is provided.
Referring to fig. 2, fig. 2 is a first embodiment of a storage resource scheduling method according to the present invention, where the storage resource scheduling method is applied to a storage resource scheduler, and the storage resource scheduling method includes the following steps:
step S10, receiving storage resource requests of all containers, wherein the storage resource requests comprise data volumes of storage resources currently required by the containers.
Specifically, the storage resource scheduler is communicatively coupled to the at least one container and configured to collect storage resource requests of the at least one container. The storage resource request includes the data amount of the storage resource currently required by the container, the container information, and the like.
And step S20, monitoring the residual storage resources of the storage module.
Specifically, the storage resource scheduler is in communication connection with the storage module, and can monitor the use condition of the storage resources of the storage module and schedule the storage resources of the storage module. The storage resource scheduler monitors the remaining storage resources of the storage module and determines the storage resources allocated to the container among the remaining storage resources.
When the container is created, the storage allocated to the container by default cannot be persistently stored, and the storage data of the container is easily lost when the container is upgraded, shut down or restarted, so that the storage resources in the storage module are persistent storage resources to prevent the storage data of the container from being lost.
And step S30, determining the storage resources to be allocated according to the storage resource request and the residual storage resources.
Specifically, the storage resource scheduler determines the storage resource to be allocated according to the storage resource request and the remaining storage resource. The storage resource to be allocated may include a start address and an end address of the storage resource to be allocated.
And step S40, distributing the storage resources to be distributed to the container corresponding to the storage resource request.
Specifically, the storage resource scheduler allocates the storage resource to be allocated to the container corresponding to the storage resource request.
Optionally, as shown in fig. 3, the storage resource scheduler is communicatively connected to the container and the storage module, respectively. The storage resource scheduler may include a demand collection module, the demand collection module is in communication connection with the storage resource monitor in the container, and the demand collection module receives a storage resource request sent by the storage resource monitor of the container; the storage resource scheduler may include a storage resource monitoring module, which is communicatively connected to the storage module and configured to monitor remaining storage resources of the storage module; the storage resource scheduler can comprise a control module, the control module is in communication connection with the demand collection module, the control module receives the storage resource request sent by the demand collection module, the control module is in communication connection with the storage resource monitoring module, and the control module receives the residual storage resources of the storage module sent by the storage resource monitoring module; the storage resource scheduler may include a storage interface setting module, the storage interface setting module is respectively in communication connection with the control module and a storage interface of the container, and the storage interface setting module sends an instruction of the control module to the storage interface of the container.
In the technical solution of this embodiment, the storage resource scheduler receives the storage resource requests of the respective containers, monitors the remaining storage resources of the storage module, determines the storage resources to be allocated according to the storage resource requests and the remaining storage resources, and allocates the storage resources to be allocated to the containers corresponding to the storage resource requests. The storage resource scheduler allocates the storage resources of the storage module to each container according to the storage resource requests of the containers, reasonably allocates the storage resources, prevents data in the containers from being lost, and improves the security of the data.
Referring to fig. 4, fig. 4 is a second embodiment of the method for scheduling storage resources according to the present invention, and based on the first embodiment, the step S40 includes:
step S41, acquiring the address of the storage resource to be allocated, wherein the address comprises an initial address and a termination address;
step S42, generating an allocation instruction according to the storage resource to be allocated;
and S43, sending the allocation instruction to a container corresponding to the storage resource request, so that the container writes the address of the storage resource according to the allocation instruction.
Specifically, the storage resource scheduler obtains an address of a storage resource to be allocated, where the address of the storage resource to be allocated includes an initial address and a termination address. And the storage resource scheduler generates an allocation instruction according to the storage resources to be allocated and sends the allocation instruction to a container corresponding to the storage resource request. And after the container receives the allocation instruction, writing the address of the storage resource in the container according to the allocation instruction.
In the technical solution of this embodiment, the storage resource scheduler obtains an address of a storage resource to be allocated, generates an allocation instruction according to the storage resource to be allocated, and sends the allocation instruction to a container corresponding to the storage resource request, so that the container writes the address of the storage resource according to the allocation instruction. And scheduling the storage resources of the storage module into the container according to the allocation instruction, and reasonably allocating the storage resources.
Referring to fig. 5, fig. 5 is a third embodiment of the method for scheduling storage resources according to the present invention, and based on the first or second embodiment, after step S40, the method further includes:
step S50, monitoring the allocated storage resources of each container;
step S60, determining the use state of the allocated storage resources of each container;
step S70, if the allocated storage resource is not used, removing the allocated storage resource that is not used from the container.
Specifically, the storage resource scheduler monitors the allocated storage resources in each container, and determines the usage status of the allocated storage resources in each container. Since the allocated storage resources in the container remain even if they are not used, resulting in a waste of storage resources, if the allocated storage resources are not used, the unused allocated storage resources are removed from the container.
In the technical solution of this embodiment, allocated storage resources of each container are monitored, a usage state of the allocated storage resources of each container is determined, and if the allocated storage resources are not used, the unused allocated storage resources are removed from the container. By recycling the storage resources in the container, the storage resources are saved.
Referring to fig. 6, fig. 6 is a third embodiment of the method for scheduling storage resources according to the present invention, and based on the first or second embodiment, after step S60, the method further includes:
step S80, if the container uses the allocated storage resources, determining the storage resources currently required by the container;
step S90, if the currently required storage resource is smaller than the allocated storage resource of the container, determining redundant storage resources in the allocated storage resource according to the currently required storage resource;
and step S100, removing the redundant storage resources from the container.
Specifically, in the case that the storage resource scheduler uses the allocated storage resource, the demand of the storage resource required by the container may change during the use process. After the storage resources currently required by the container are determined, if the storage resources currently required are smaller than the allocated storage resources of the container and indicate that part of the allocated storage resources are not used, determining redundant storage resources in the allocated storage resources and removing the redundant storage resources, so that the storage resources are saved.
After the storage resources required by the container at present are determined, if the storage resources required at present are larger than the allocated storage resources of the container, it is determined that the allocated storage resources are not enough for the container to use, the storage resource scheduler monitors the remaining storage resources of the storage module, determines the storage resources to be allocated according to the storage resources required at present and the remaining storage resources, and allocates the storage resources to be allocated to the container.
In the technical solution of this embodiment, if the container uses the allocated storage resource, the storage resource currently required by the container is determined, and if the currently required storage resource is smaller than the allocated storage resource, the redundant storage resource in the allocated storage resource is determined according to the currently required storage resource, and the redundant storage resource is removed from the container. Storage resources are saved by removing excess storage resources.
Referring to fig. 7, fig. 7 is a fifth embodiment of a method for scheduling storage resources according to the present invention, where the method for scheduling storage resources is applied to a container, and the method for scheduling storage resources includes:
step S110, generating a storage resource request according to the storage resource requirement of the container and sending the storage resource request to a storage resource scheduler;
step S120, obtaining the storage resource to be allocated corresponding to the container determined by the storage resource scheduler;
step S130, writing the address of the storage resource to be allocated into the container.
Specifically, the container generates a storage resource request according to the storage resource requirement of the container, sends the storage resource request to the storage resource scheduler, acquires the storage resource to be allocated determined by the storage resource scheduler, writes the address of the storage resource to be allocated into the container, and determines the storage address of the data in the container.
When the addresses of the storage resources to be allocated are written into the container, if the storage resources are not allocated to the container, the addresses of the storage resources to be allocated are written into the container; if the container is allocated with the storage resource, writing the address of the storage resource to be allocated into the container, and after the initial address of the storage resource to be allocated is written into the end address of the allocated storage resource, ensuring the continuity of the storage resource in the container.
In the technical solution of this embodiment, a storage resource request is generated according to a storage resource requirement of a container and sent to a storage resource scheduler, a storage resource to be allocated corresponding to the container is determined, and an address of the storage resource to be allocated is written into the container. After the container acquires the storage resources, the address of the storage resources to be allocated is written into the container, the storage resources to be allocated correspond to the current storage resource request of the container, and reasonable allocation of the storage resources is achieved.
Referring to fig. 8, the present invention further provides a storage resource scheduling apparatus, wherein the storage resource scheduling apparatus includes:
a receiving module 100, configured to receive a storage resource request of each container, where the storage resource request includes a data amount of a storage resource currently required by the container;
a monitoring module 200 for monitoring the remaining storage resources of the storage module;
a determining module 300, configured to determine a storage resource to be allocated according to the storage resource request and the remaining storage resources;
an allocating module 400, configured to allocate the storage resource to be allocated to the container corresponding to the storage resource request.
In an embodiment, in order to allocate the storage resource to be allocated to the container corresponding to the storage resource request, the allocating module 400 is specifically configured to:
acquiring addresses of the storage resources to be allocated, wherein the addresses comprise initial addresses and termination addresses;
generating an allocation instruction according to the storage resource to be allocated;
and sending the allocation instruction to a container corresponding to the storage resource request, so that the container writes the address of the storage resource according to the allocation instruction.
In an embodiment, in order to allocate the storage resource to be allocated to the container corresponding to the storage resource request, the storage resource scheduling apparatus further includes a scheduling module 500:
a scheduling module 500 for monitoring the allocated storage resources of each of the containers; determining a usage status of the allocated storage resources of each of the containers; if the allocated storage resources are not used, removing the unused allocated storage resources from the container.
In an embodiment, after determining the usage status of the allocated storage resources of each container, the scheduling module 500 is specifically configured to:
if the container uses the allocated storage resources, determining the storage resources currently required by the container;
if the currently required storage resources are smaller than the allocated storage resources of the container, determining redundant storage resources in the allocated storage resources according to the currently required storage resources;
removing the excess storage resources from the container.
In an embodiment, after determining the storage resource currently required by the container, the scheduling module 500 is specifically configured to:
and if the currently required storage resource is larger than the allocated storage resource of the container, executing the step of monitoring the residual storage resource of the storage module.
Referring to fig. 9, the present invention further provides a storage resource scheduling apparatus, where the storage resource scheduling apparatus further includes:
a generating module 600, configured to generate a storage resource request according to the storage resource requirement of the container and send the storage resource request to a storage resource scheduler;
an obtaining module 700, configured to obtain the storage resource to be allocated corresponding to the container determined by the storage resource scheduler;
a writing module 800, configured to write the address of the storage resource to be allocated into the container.
In an embodiment, in writing the address of the storage resource to be allocated into the container, the writing module 800 is specifically configured to:
if the container is not allocated with the storage resources, writing the addresses of the storage resources to be allocated into the container;
and if the container is allocated with the storage resources, writing the address of the storage resources to be allocated into the container, wherein the initial address of the storage resources to be allocated is written after the ending address of the allocated storage resources.
The present invention further provides a storage resource scheduling device, which includes a memory, a processor, and a storage resource scheduler stored in the memory and executable on the processor, and when the storage resource scheduler is executed by the processor, the storage resource scheduling device implements the steps of the storage resource scheduling method according to the above embodiments.
The present invention also provides a computer readable storage medium, which stores a storage resource scheduling program, and when the storage resource scheduling program is executed by a processor, the storage resource scheduling program implements the steps of the storage resource scheduling method according to the above embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, system, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, system, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a" \8230; "does not exclude the presence of additional like elements in a process, system, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the system of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention or the portions contributing to the prior art may be embodied in the form of a software product, which is stored in a computer readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a parking management device, an air conditioner, or a network device, etc.) to execute the system according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (10)

1. A storage resource scheduling method is applied to a storage resource scheduler, and comprises the following steps:
receiving storage resource requests of each container, wherein the storage resource requests comprise data volume of storage resources currently required by the container;
monitoring the residual storage resources of the storage module;
determining storage resources to be allocated according to the storage resource request and the residual storage resources;
and allocating the storage resources to be allocated to the container corresponding to the storage resource request.
2. The method for scheduling storage resources according to claim 1, wherein the step of allocating the storage resources to be allocated to the container corresponding to the storage resource request comprises:
acquiring addresses of the storage resources to be allocated, wherein the addresses comprise initial addresses and termination addresses;
generating an allocation instruction according to the storage resource to be allocated;
and sending the allocation instruction to a container corresponding to the storage resource request, so that the container writes the address of the storage resource according to the allocation instruction.
3. The method for scheduling storage resources according to claim 1, wherein after the step of allocating the storage resources to be allocated to the container corresponding to the storage resource request, the method further comprises:
monitoring the allocated storage resources of each of the containers;
determining a usage status of the allocated storage resources of each of the containers;
if the allocated storage resources are not used, removing the unused allocated storage resources from the container.
4. The storage resource scheduling method of claim 3, wherein said step of determining the usage status of the allocated storage resources of each of said containers is followed by further comprising:
if the container uses the allocated storage resources, determining the storage resources currently required by the container;
if the currently required storage resource is smaller than the allocated storage resource of the container, determining redundant storage resources in the allocated storage resource according to the currently required storage resource;
removing the excess storage resources from the container.
5. The method for scheduling storage resources according to claim 4, wherein the step of determining the storage resources currently required by the container is followed by further comprising:
and if the currently required storage resource is larger than the allocated storage resource of the container, executing the step of monitoring the residual storage resource of the storage module.
6. A storage resource scheduling method is applied to a container, and the storage resource scheduling method comprises the following steps:
generating a storage resource request according to the storage resource requirement of the container and sending the storage resource request to a storage resource scheduler;
acquiring the storage resources to be allocated corresponding to the container determined by the storage resource scheduler;
and writing the address of the storage resource to be allocated into the container.
7. The method for scheduling storage resources according to claim 6, wherein the step of writing the address of the storage resource to be allocated to the container comprises:
if the container is not allocated with the storage resources, writing the address of the storage resources to be allocated into the container;
if the container is allocated with the storage resource, writing the address of the storage resource to be allocated into the container, and writing the initial address of the storage resource to be allocated after the termination address of the allocated storage resource.
8. A storage resource scheduling apparatus, wherein the storage resource scheduling apparatus comprises:
the receiving module is used for receiving storage resource requests of all the containers, and the storage resource requests comprise data volumes of storage resources currently required by the containers;
the monitoring module is used for monitoring the residual storage resources of the storage module;
a determining module, configured to determine a storage resource to be allocated according to the storage resource request and the remaining storage resource;
and the allocation module is used for allocating the storage resources to be allocated to the container corresponding to the storage resource request.
9. A storage resource scheduling device, characterized in that the storage resource scheduling device comprises a memory, a processor and a storage resource scheduler stored in the memory and executable on the processor, which when executed by the processor implements the steps of the storage resource scheduling method according to any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a storage resource scheduler, which when executed by a processor implements the steps of the storage resource scheduling method according to any one of claims 1-7.
CN202110498378.9A 2021-05-08 2021-05-08 Storage resource scheduling method, device, equipment and computer readable storage medium Pending CN115309494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110498378.9A CN115309494A (en) 2021-05-08 2021-05-08 Storage resource scheduling method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110498378.9A CN115309494A (en) 2021-05-08 2021-05-08 Storage resource scheduling method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115309494A true CN115309494A (en) 2022-11-08

Family

ID=83853432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110498378.9A Pending CN115309494A (en) 2021-05-08 2021-05-08 Storage resource scheduling method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115309494A (en)

Similar Documents

Publication Publication Date Title
US8302103B2 (en) System and method for managing resources of applications and threads performed on java virtual machine
CN109117260B (en) Task scheduling method, device, equipment and medium
US9069465B2 (en) Computer system, management method of computer resource and program
US8239505B2 (en) Progressively implementing declarative models in distributed systems
CN108874549B (en) Resource multiplexing method, device, terminal and computer readable storage medium
JP2014520346A5 (en)
CN109800083B (en) Method, device, system and storage medium for micro-service collaborative call
CN110659131B (en) Task processing method, electronic device, computer equipment and storage medium
CN111338779B (en) Resource allocation method, device, computer equipment and storage medium
CN114327137A (en) Touch method and device based on multiple vehicle-mounted operating systems and computer equipment
CN110990114A (en) Virtual machine resource allocation method, device, equipment and readable storage medium
US20190227918A1 (en) Method for allocating memory resources, chip and non-transitory readable medium
CN113760543A (en) Resource management method and device, electronic equipment and computer readable storage medium
CN113010265A (en) Pod scheduling method, scheduler, memory plug-in and system
CN105630599A (en) Video memory distribution method and device based on 32/64-bit hybrid operating system
CN113342554A (en) IO multiplexing method, medium, device and operating system
CN113419839A (en) Resource scheduling method and device for multi-type jobs, electronic equipment and storage medium
CN115309494A (en) Storage resource scheduling method, device, equipment and computer readable storage medium
CN105512091A (en) Memory allocation method and device
CN111858020A (en) User resource limiting method, device and computer storage medium
CN111813564B (en) Cluster resource management method and device and container cluster management system
US11972293B2 (en) Data structure, memory means and device
CN113268356A (en) LINUX system-based multi-GPU board card bounding system, method and medium
CN111158913A (en) Management method, management device, electronic equipment and storage medium
CN117707700A (en) Memory super-division method, device, equipment and storage medium

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