CN112817691A - Resource allocation method, device, equipment and medium - Google Patents

Resource allocation method, device, equipment and medium Download PDF

Info

Publication number
CN112817691A
CN112817691A CN202110114221.1A CN202110114221A CN112817691A CN 112817691 A CN112817691 A CN 112817691A CN 202110114221 A CN202110114221 A CN 202110114221A CN 112817691 A CN112817691 A CN 112817691A
Authority
CN
China
Prior art keywords
code
container
target
resource
code execution
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
Application number
CN202110114221.1A
Other languages
Chinese (zh)
Other versions
CN112817691B (en
Inventor
张鹏浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Megvii Technology Co Ltd
Original Assignee
Beijing Megvii Technology 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 Beijing Megvii Technology Co Ltd filed Critical Beijing Megvii Technology Co Ltd
Priority to CN202110114221.1A priority Critical patent/CN112817691B/en
Publication of CN112817691A publication Critical patent/CN112817691A/en
Application granted granted Critical
Publication of CN112817691B publication Critical patent/CN112817691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • 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 embodiment of the invention provides a resource allocation method, a device, equipment and a medium, belongs to the technical field of computers, and aims to improve the rationality of resource allocation, the method is applied to first equipment, and the method comprises the following steps: creating a code compiling container by using local resources, and compiling a target code through the code compiling container; the first equipment creates a proxy container by using local resources and receives a resource allocation request sent by a code compiling container through the proxy container; applying for target resources from a resource management server through an agent container; the first device sends a code execution request to a first code execution container through a proxy container, the code execution request instructing execution of target code by the first code execution container, the first code execution container being created by a second device that provides the target resource using the target resource.

Description

Resource allocation method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for resource allocation.
Background
With the development of computer network technology, it is actually necessary to provide corresponding operating resources for the development of some application software. Taking the neural network construction as an example, in order to support the construction of the neural network, hardware resources, for example, video card resources, are provided for the construction of the neural network by using the device cluster. Generally, these clusters of devices may be collectively referred to as cloud resources.
In the related art, part of resources are divided from cloud resources to users in an equipment cluster according to a certain allocation rule, so that the users can utilize the resources divided to the equipment logged in to perform related software development. For example, resources are divided according to user ranks, with higher ranked users dividing more resources and lower ranked users dividing less resources. However, when such a resource partitioning method is adopted, there are cases of over-partitioning or under-partitioning of resources inevitably, and when there are over-partitioning of resources, there are waste and empty occupation of resources, and when there are under-partitioning of resources, there is no way to support the required execution environment.
Therefore, the resource allocation mode in the related technology has the technical problems of unreasonable resource allocation and low resource utilization rate.
Disclosure of Invention
In view of the above problems, a resource allocation method, apparatus, device and medium according to embodiments of the present invention are proposed to overcome the above problems or at least partially solve the above problems.
In order to solve the above problem, in a first aspect of the present invention, a resource allocation method is disclosed, which is applied to a first device, and includes:
creating a code compiling container by using local resources, and compiling a target code by the code compiling container;
creating a proxy container by using local resources, and receiving a resource allocation request sent by the code writing container through the proxy container, wherein the resource allocation request is used for requesting target resources required by executing the target code;
applying for the target resource from a resource management server through the proxy container;
the first device sends a code execution request to the first code execution container through the proxy container, the code execution request instructing execution of the target code through the first code execution container, the first code execution container being created with the target resource by a second device that provides the target resource.
Optionally, the method further comprises:
creating a second code execution container using the local resource;
sending a code execution request to the second code execution container through the code writing container, the code execution request requesting execution of the target code;
executing the object code by the second code execution container.
Optionally, the method further comprises:
receiving a code execution result generated after the first code execution container executes the target code through the proxy container;
and outputting the code execution result through a local information output component.
Optionally, the method further comprises:
mounting the target code into a storage disc through the code writing container, wherein the storage disc is shared by the code writing container and a code execution container, and the code execution container is used for executing the target code;
the first device reads the target code from the storage disk according to the storage address by the code execution container, and then executes the target code.
Optionally, after writing the target code through the code writing container, the method further includes:
obtaining a code execution mode configured by a user through the code writing container;
creating a proxy container using local resources, comprising:
under the condition that the code execution mode is remote execution, a local resource is used for creating a proxy container, so that the target resource is applied to a resource management server through the proxy container, the first code execution container is obtained based on the target resource, and the target code is executed through the first code execution container;
creating a second code execution container using a native resource, comprising:
and under the condition that the code execution mode is local execution, creating a second code execution container by utilizing local resources, and executing the target code through the second code execution container.
In a second aspect of the embodiments of the present application, a resource allocation method is provided, where the method is applied to a second device, and the method includes:
receiving a resource scheduling instruction sent by a resource management server, wherein the resource scheduling instruction is generated by the resource management server when receiving a resource allocation request sent by first equipment through a proxy container, and the resource allocation request is generated by a code compiling container on the first equipment after the target code compiling is detected to be completed; wherein the proxy container and the code authoring container are each created by the first device using a local resource;
according to the resource scheduling instruction, a first code execution container is established by using local target resources;
and when a code execution request sent by the first device through the proxy container is received, executing the target code through the first code execution container.
Optionally, executing the object code by the first code execution container includes:
acquiring the target code from a storage disc mounted by the code writing container; wherein the storage disk is shared by the code writing container and the first code execution container;
executing the object code by the first code execution container.
Optionally, the method further comprises:
acquiring a code execution result generated after the first code execution container executes the target code;
and sending the code execution result to the proxy container so that the first device outputs the code execution result through an information output component local to the first device.
In a third aspect of the embodiments of the present application, there is provided a resource allocation apparatus, where the apparatus is deployed in a first device, and the apparatus includes:
the creating module is used for writing a container and an agent container by using codes created by local resources; the code writing container is used for writing target code; the proxy container is used for receiving a resource allocation request sent by the code writing container, and the resource allocation request is used for requesting target resources required by the target code to be executed;
the resource application module is used for applying the target resource to a resource management server through the proxy container;
a code execution module to send a code execution request to the first code execution container through the proxy container, the code execution request to instruct a second device to execute the target code through the first code execution container, the first code execution container being created by the second device providing the target resource using the target resource.
In a fourth aspect of the embodiments of the present application, there is provided a resource allocation apparatus, where the apparatus is deployed in a second device, and the apparatus includes:
a resource scheduling receiving module, configured to receive a resource scheduling instruction sent by a resource management server, where the resource scheduling instruction is generated by the resource management server when receiving a resource allocation request sent by a first device through a proxy container, and the resource allocation request is generated by a code compiling container on the first device after it is detected that target code compiling is completed; wherein the proxy container and the code authoring container are each created by the first device using a local resource;
the container creating module is used for creating a first code execution container by using local target resources according to the resource scheduling instruction;
and the code execution module is used for executing the target code through the first code execution container when receiving a code execution request sent by the first device through the proxy container.
In a fifth aspect of the embodiments of the present application, a resource allocation system is provided, where the resource allocation system is applied to a device cluster, where the device cluster at least includes a first device and a second device, and the system includes:
the first device includes: compiling a container and a proxy container by using codes created by local resources; the second device is used for providing target resources required by executing the target code, and comprises: executing a container with the first code created by the target resource;
wherein the code writing container is to: the user writes a target code, receives a resource allocation request sent by the code writing container, and applies for a target resource required by the target code to a resource management server;
the proxy container is to: sending a code execution request to the first code execution container, the code execution request requesting execution of the target code;
the first code execution container is to: and executing the object code.
Optionally, the first device further comprises: creating a second code execution container using the local resource;
wherein the code writing container is used for sending a code execution request to the second code execution container, and the code execution request is used for requesting to execute the target code;
the second code execution container is to execute the object code.
Optionally, the first device further comprises: an information output component;
the agent container is used for receiving a code execution result generated after the first code execution container executes the target code;
the information output component is used for outputting the code execution result.
Optionally, the system further comprises: a storage disk shared by the code writing container and a code execution container for executing the target code;
the code writing container is used for mounting the target code into the storage disk;
the first device reads the target code from the storage disk according to the storage address by the code execution container, and then executes the target code.
The embodiment of the invention also discloses an electronic device, which comprises: comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the resource allocation method according to the first aspect embodiment or the second aspect embodiment when executing the method.
The embodiment of the invention also discloses a computer readable storage medium, which stores a computer program for enabling a processor to execute the resource allocation method according to the embodiment of the first aspect or the embodiment of the second aspect of the invention.
The embodiment of the invention has the following advantages:
in this embodiment of the present invention, a first device in a device cluster may execute the following: the method comprises the steps of creating a code compiling container by using local resources, compiling a target code by using the code compiling container, creating a proxy container by using the local resources, receiving a resource allocation request sent by the code compiling container by using the proxy container, and then applying for the target resource from a resource management server by using the proxy container. As such, the second device providing the target resource may create a first code execution container with the target resource; then, the first device sends a code execution request to the first code execution container through the proxy container, so that the second device executes the target code through the first code execution container.
In the embodiment of the application, the first device may create a code writing container by using a local resource, and write the target code by using the code writing container, when the target code needs to be executed, the target resource required for executing the target code may be applied to the resource management server by using the proxy container, and then the first code execution container is created by using the second device where the target resource is located, so as to execute the target code. In this way, the resources required for writing the code can be sourced from the local resources, and when the code is executed, the target resources required for executing the code can be dynamically applied to the resource management server. Therefore, on one hand, target resources required by code execution do not need to be fixed to users, so that the target resources can be allocated to other users for use before being allocated to the users, and the problem that the resources are occupied when the resources in the code editing stage and the code execution stage are fixed and correspond to the resources of the users is solved. On the other hand, when executing the code, the target resource required by the code is dynamically applied to the resource management server, so that the target resource is the resource required by the adaptive code execution, the problem of insufficient or excessive execution resources caused by the fact that the code execution resource is appointed in advance is solved, and the resource utilization rate is fully improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of an implementation environment of a resource allocation method in an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for allocating resources according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of the overall resource allocation method shown from the first device side in the implementation of the present invention;
FIG. 4 is a flowchart illustrating steps of a resource allocation method according to another embodiment of the present invention;
FIG. 5 is a block diagram of a resource allocation system in the practice of the present invention;
FIG. 6 is a block diagram of a further resource allocation system in the practice of the present invention;
FIG. 7 is a block diagram of a resource allocation apparatus in an implementation of the present invention;
fig. 8 is a block diagram of a resource allocation apparatus according to still another embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below to clearly and completely describe the technical solutions in the embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The resource allocation method in the related art is as follows: for a user who applies for resources in a device cluster during startup, fixed resources are divided from the device cluster to be dedicated to the user for development and construction of related application software. The neural network construction or software development generally includes two stages, namely a code editing stage and a code executing stage, and when a resource allocation manner in the related technology is adopted, resources in the code editing stage and the code executing stage are both fixedly corresponding to a user.
However, in this way, when a user writes code, resources required for executing code that are not yet used also need to be prepared for running the code, so that these resources waiting for running the code are left empty, which reduces the utilization of resources in the device cluster.
In view of the above, the applicant proposes the following technical idea: the method comprises the steps of distributing resources needed by code writing from local resources, and dynamically applying target resources needed by code execution to a resource management server when the codes need to be executed after the codes are written, so that the target resources needed by the code execution do not need to be fixed to users, the target resources can be distributed to other users for use before being distributed to the users, and the problem that the target resources are occupied by the air in a code editing stage and a code execution stage is solved.
Referring to fig. 1, a schematic diagram of an implementation environment of the embodiment of the present application is shown, and as shown in fig. 1, the implementation environment may include a device cluster, where the device cluster includes a resource management server and a plurality of devices. The multiple devices may be smart devices having video card resources, and the multiple devices together form a device cluster, where the device cluster may be referred to as a cloud resource, and the resource management server may be configured to allocate resources in the cloud resource.
In this embodiment, a user may write and run code through one device in the device cluster, and the device actually used by the user may be referred to as a first device, for example, as in fig. 1, if the user uses the device 4, the device 4 may be referred to as the first device. When the code is written and run, resources on other devices in the device cluster may also be used to support the running of the code written by the user on the first device, where the other devices may be second devices, for example, if the resources of the device 1 are used, the device 1 is the second device. Therefore, the problem of allocating resources in the device cluster to users is solved, and in order to improve the resource utilization rate of the device cluster, the embodiment of the application provides a resource allocation method.
Referring to fig. 2, a schematic flowchart illustrating steps of a resource allocation method according to the present application is shown, and specifically applied to a first device, the method may include the following steps:
step S201: and creating a code writing container by utilizing local resources, and writing target code by the code writing container.
In this embodiment, the first device executing the resource allocation method may refer to a device currently used by a user, and in practice, the first device may be a device having a Virtual Machine (Virtual Machine), where the Virtual Machine refers to a complete computer system that is simulated by software and has a complete hardware system function and runs in a completely isolated environment. In this way, when a user uses the first device for code encoding and code execution, this can be done in the virtual machine of the first device.
In particular, the first device may provide an IDE (Integrated Development Environment) access for a user to access the virtual machine, where the IDE access may be jupitertlab. In this way, when the user uses the virtual machine of the first device for code writing, it can be implemented by JupyterLab.
In this embodiment, the code writing can be implemented by a code writing container, where resources required by the container may originate from the first device, that is, the code writing container is created by using resources local to the first device. The local resource of the first device may be a CPU resource or a graphics card resource, and specifically, which resource is specifically applicable may be determined according to a service corresponding to code writing. For example, when the resources required by the service are more, the local graphics card resources may be allocated to the user as the resources of the virtual machine, or when the resources required by the service are less, the local CPU resources may be allocated to the user as the resources of the virtual machine.
After the code writing container is created by using local resources, the target code can be written by using the code writing container. In particular, a code writing container may be understood as a computer environment for a user to write object code, and a user may write object code in a view interface in the environment provided by the code writing container.
Step S202: and creating a proxy container by using local resources, and receiving a resource allocation request sent by the code writing container through the proxy container, wherein the resource allocation request is used for requesting target resources required by executing the target code.
In this embodiment, after the target code is written, the target code may be executed. The resources required for executing the object code can be dynamically acquired by the first device, and specifically, the first device may create a proxy container using the local resources, where the proxy container communicates with the code writing container to receive the resource allocation request sent by the code writing container. That is, the code writing container may send a resource allocation request to the proxy container upon detecting that the user has completed writing the object code, thereby requesting the target resources required to execute the object code.
The target resource may be a resource local to the first device, or a resource on another device in the device cluster, and may be specifically determined according to a size of a resource required for executing the target code.
Step S203: and applying for the target resource from a resource management server through the proxy container.
In this embodiment, the resource management server may be located in the device cluster, and the resource management server may be configured to schedule resources of each device in the device cluster. In this way, the proxy container may apply for the target resource from the resource management server, and specifically, the proxy container may send a resource request to the resource management server, where the resource request may carry the size of the required resource or the configuration of the required resource. In this way, the resource management server may schedule the target resource from the cluster of devices according to the size or configuration of the target resource.
The target resource may be a graphics card resource or a memory resource.
Step S204: sending, by the proxy container, a code execution request to the first code execution container, the code execution request instructing a second device to execute the target code through the first code execution container, the first code execution container being created with the target resource by the second device that provides the target resource.
In this embodiment, when the target resource is a resource on the second device, the resource management server may schedule the target resource in the following manner: and sending a resource scheduling request to the second equipment so that the second equipment creates a first code execution container by using the target resource, wherein the target code can be carried in the resource scheduling request.
The second device is a different device from the first device, and creating the first code execution container by the second device using the target resource may be understood as: the second device creates a first code execution container for executing the code in the software and hardware environment provided by the target resource, for example, the first code execution container is set in the graphics card resource of the second device, so that the graphics card resource is used for code execution, that is, the target code is executed in the graphics card resource when executing the target code, and the first code execution container can be understood as a process environment for executing the code.
In this embodiment, when the resource management server schedules the target resource and the second device creates the first code execution container, the resource management server may return the detail information of the target resource to the proxy container, so that the proxy container may send the code execution request to the first code execution container according to the detail information of the target resource, and the first code execution container may execute the target code carried in the resource scheduling request.
By adopting the technical scheme of the embodiment of the application, the first equipment can utilize local resources to create the code compiling container, compile the target code through the code compiling container, dynamically apply for the target resource required by executing the target code to the resource management server through the proxy container when the target code needs to be executed, and further create the first code executing container through the second equipment where the target resource is located so as to execute the target code. In this way, the resources required for writing the code can be sourced from the local resources, and when the code is executed, the target resources required for executing the code can be dynamically applied to the resource management server. Therefore, on one hand, target resources required by code execution do not need to be fixed to users, so that the target resources can be allocated to other users for use before being allocated to the users, and the problem that the resources are occupied in space when the resources in the code editing stage and the code execution stage are fixed to the resources of the users is avoided. On the other hand, when executing the code, the target resource required by the code is dynamically applied to the resource management server, so that the target resource is the resource required by the adaptive code execution, the problem of insufficient or excessive execution resources caused by the fact that the code execution resource is appointed in advance is solved, and the resource utilization rate is fully improved.
In one embodiment, referring to fig. 3, a schematic diagram of a process of executing code encoding and code execution from the perspective of a first device is shown, as shown in fig. 3, the first device may store written code in a mounted storage disk when writing the code, and may read an object code from the storage disk when executing the object code so as to execute the object code. The object code may be executed by using a second code execution container created by a local resource of the first device, or may be executed by using a first code execution container created by a resource of the second device. Wherein, the execution result of the object code can also be output through the information output component,
in the following, with reference to fig. 3, a detailed description will be first made of how the first device of the present application supports code writing:
specifically, in one example, the first device may mount the object code through the code writing container to a storage disk, the storage disk may be shared by the code writing container and a code execution container, the code execution container is used to execute the object code;
the first device reads the target code from the storage disk according to the storage address by the code execution container, and then executes the target code.
In this embodiment, the storage disk may be mounted to the code compiling container, where the storage disk mounted to the code compiling container may include a data disk and a rootfs disk, or may be only one of the rootfs disk and the data disk, and may specifically be determined according to a code compiling requirement.
In this embodiment, the storage disk may be shared by a code writing container and a code execution container, where the code execution container specifically refers to a container for a user to execute target code, and as shown in fig. 3, the code execution container may specifically be a first code execution container or a second code execution container local to a first device. Wherein the second code local to the first device performs the container creation process and conditions set forth in the subsequent embodiments.
The storage disk for sharing the code writing container and the code execution container may refer to: the code writing container may store the written code to a storage disc, and the code execution container may read the written code from the storage disc.
Correspondingly, in the target code execution stage, the code execution request sent by the second device through the proxy container may include a storage address of the target code in the storage disk, so that the code execution container may read the target code from the storage disk according to the storage address, and then execute the target code.
When the method is adopted, the storage disk can be shared by the code compiling container and the code execution container, so that the consistency of the environmental data can be ensured, and the data in the storage disk mounted by the code compiling container and the code execution container are kept consistent.
Next, how the first device executes the code according to the embodiment of the present application is described in detail:
in one example, the object code may also be executed using the resources of the first device when fewer resources are needed to execute the code. Specifically, the first device may create a second code execution container using a local resource, and send a code execution request to the second code execution container through the code writing container, where the code execution request requests execution of the target code; as such, the first device may execute the object code through the second code execution container.
The local resource of the first device may be a resource of a virtual machine of the first device, and may be a CPU resource or a graphics card resource, and if the first device creates the second code execution container by using the local resource, the second device may not apply for the target resource from the resource management server, so that the second code execution container is a container running locally. In this case, the first device may send a code execution request to the second code execution container through the code writing container, where the code execution request may be used to request the second code execution container to execute the target code.
In this way, the target code can also be executed using local resources.
In yet another example, as shown in fig. 3, after the first device writes the target code through the code writing container, the first device may obtain a code execution manner configured by a user through the code writing container, and thus, according to the code execution manner configured by the user, it may select whether to execute the target code by using a local resource or a remote resource, so as to achieve flexible configuration of the target resource.
In a specific implementation manner, the first device may provide a selectable code execution manner to the user through the IDE interface, and then the first device may apply for the target resource from the resource management server or create the second code execution container by using the local resource according to the code execution manner selected by the user.
For example, the following 3 code execution modes are provided: the display card x1, the display card x2, and the display card x4 may apply for different resources in different resource allocation manners, for example, if the user selects the code execution manner of the display card x1, the first device may create the second code execution container by using the local resource, and if the user selects the code execution manner of the display card x2 and the display card x4, the first device may apply for the target resource to the resource management server by using the proxy container, that is, request the target resource from other devices in the device cluster.
When the code execution mode is remote execution, the first device may create a proxy container by using a local resource, apply for the target resource from the resource management server through the proxy container, obtain the first code execution container based on the target resource, and execute the target code through the first code execution container.
When the code execution mode is native execution, the first device may create a second code execution container by using a native resource, and execute the object code through the second code execution container.
The process of creating the second code execution container by using the local resource and executing the target code through the second code execution container may refer to the foregoing embodiments, and is not described herein again. Accordingly, the target resource is applied to the resource management server through the proxy container, and the process of executing the target code through the first code execution container may refer to the above-mentioned steps S203 to S206, which is not described herein again.
In this embodiment, the proxy container of the first device is equivalent to a proxy service for the first device to apply for the remote target resource, and is used for information transfer between the first executable code container created by the remote target resource and the first device. Therefore, appropriate resources can be configured for executing the target code, and the problem that insufficient or excessive execution resources are caused when the code execution resources are appointed in advance is avoided, so that the resource utilization rate is fully improved.
In this embodiment, as shown in fig. 3, after the first code execution container executes the target code, the first device may receive, by the proxy container, a code execution result generated after the first code execution container executes the target code, and output the code execution result through the local information output component.
As shown in fig. 3, wherein the information export component is in communication with the second code execution container and the proxy container. When the object code is executed by the first code execution container created by the remote object resource, the first code execution container may feed back an execution result of the executed object code to the proxy container, and the proxy container may transmit the execution result to the information output component, so that the information output component outputs the code execution result.
Accordingly, when the object code is executed by the second code execution container created by the resource local to the first device, the second code execution container may also feed back the execution result of the executed object code to the information output component, and the information output component outputs the code execution result.
When the method is adopted, the remote code execution result can be fed back to the local through the proxy container, so that the effect of dynamically allocating the computing resource at the local (namely the first device) is simulated.
Based on the same inventive concept, the embodiment of the present application further provides a resource allocation system, which may be applied to a device cluster, where the device cluster includes at least a first device and a second device.
Based on the same inventive concept, an embodiment of the present application further provides a resource allocation method, and as shown in fig. 4, a flowchart of steps of another resource allocation method is shown, as shown in fig. 4, the method may be applied to a second device in a device cluster, and specifically may include the following steps:
step S401: and receiving a resource scheduling instruction sent by the resource management server.
The resource scheduling instruction is generated by the resource management server when receiving a resource allocation request sent by the first device through the proxy container, and the resource allocation request is generated by the code writing container on the first device after detecting that the target code writing is completed.
Wherein the proxy container and the code writing container are each created by the first device using a local resource.
In this embodiment, the proxy container and the code compiling container may be created by the first device by using a local resource, specifically, the process of sending the resource allocation request through the code compiling container, receiving the resource allocation request sent by the code compiling container through the proxy container, and applying for the target resource to the resource management server through the proxy container may refer to steps S201 to S203 in the above embodiment, which is not described herein again.
When the resource management server is according to the resource allocation request sent by the proxy container, it may schedule a suitable target resource from the device cluster, and send a resource scheduling instruction to the second device where the target resource is located, so that the second device may receive the resource scheduling instruction sent by the resource management server.
Step S402: and creating a first code execution container by utilizing local target resources according to the resource scheduling instruction.
In this embodiment, the second device may create the first code execution container by using a local target resource according to a resource scheduling instruction sent by the resource management server, where the target resource may be a CPU resource or a graphics card resource. The creation of the first code execution container by the second device using the target resource may be understood as: the second device creates a first code execution container for executing the code in the software and hardware environment provided by the target resource, for example, the first code execution container is set in the graphics card resource of the second device, so that the graphics card resource is used for code execution, that is, the target code is executed in the graphics card resource when executing the target code, and the first code execution container can be understood as a process environment for executing the code.
Step S403: and when a code execution request sent by the first device through the proxy container is received, executing the target code through the first code execution container.
In this embodiment, the second device may receive a code execution request sent by the agent container of the first device, and then the second device may execute the target code through the created first code execution container.
Wherein, in one embodiment, when the target code is executed through the first code execution container, the target code can be obtained from a storage disk mounted by a code writing container; further, the object code is executed by the first code execution container.
Wherein the storage disk is shared by the code writing container and the first code execution container.
In this embodiment, the code execution request received by the second device may include an address of the storage disk, and thus, the second device may obtain the written target code from the storage disk according to the address of the storage disk. Further, the first code container is initiated to execute the object code.
As described in step S201 above, the object code may be edited in the code writing container by the user and stored in the storage disk.
In an embodiment, after the first code execution container finishes executing the target code, the second device may feed back a code execution result of the first code execution container executing the target code to the proxy container, and the first device may output the code execution result through an information output component local to the first device, so that the code execution result is convenient for a user to view.
By adopting the technical scheme of the embodiment of the application, the second device can create the first code execution container for executing the target code by utilizing the local target resource according to the resource scheduling of the resource management server, and further can remotely execute the target code written by the first device. And the creation of the object code is completed by the first device by using the code writing container created by the local resource, and the resource scheduling request is requested by the agent container on the first device when the first device finishes writing the object code. In this manner, the resources required to write the code may be sourced from local resources of the first device, and may be remotely executed by the second device using local target resources while executing the code. Therefore, on one hand, target resources required by code execution do not need to be fixed to users, so that the target resources can be allocated to other users for use before being allocated to the users, and the problem that the resources are occupied in space when the resources in the code editing stage and the code execution stage are fixed to the resources of the users is avoided. On the other hand, when executing the code, the target resource required by the code is dynamically applied to the resource management server, so that the target resource is the resource required by the adaptive code execution, the problem of insufficient or excessive execution resources caused by the fact that the code execution resource is appointed in advance is solved, and the resource utilization rate is fully improved.
Referring to fig. 5, a schematic diagram of a resource allocation system is shown, and as shown in fig. 5, the system may specifically include a code writing container and a proxy container located in a first device, and a first code execution container located in a second device.
Wherein the second device is configured to provide target resources required for executing the target code.
Wherein the code writing container may be for: the user writes the target code;
wherein the proxy container may be configured to: the code execution container is used for receiving a resource allocation request sent by the code writing container, applying for a target resource required by the execution of the target code from a resource management server, and sending a code execution request to the first code execution container, wherein the code execution request is used for requesting the execution of the target code;
wherein the first code execution container is operable to: and executing the object code.
The resource allocation system provided in this embodiment may further include an IDE interface provided for the user, when the user writes a code using the first device through the IDE interface, the code writing may be completed through a writing environment provided by the code writing container, and then after the code writing is completed, the proxy container may apply for a target resource required for executing the target code to the resource management server, and then, the second device where the target resource is located may create a first code execution container for running the target code, where the first code execution container provides an execution environment for the execution of the target code.
The resource allocation system provided by the embodiment can provide local resources for code writing, dynamically apply for the required target resources in the code execution stage, and avoid the problems of resource occupation and insufficient or excessive resources caused by convenient allocation of fixed resources when a user starts to use the first device, thereby improving the resource utilization rate of the device cluster.
Referring to fig. 6, a schematic diagram of a resource allocation system is shown in more detail, and as shown in fig. 6, the system includes a code writing container and a proxy container located in a first device, a first code execution container located in a second device, and a second code execution container located in the first device, and an information output component.
The code writing container is communicated with the agent container and the second code execution container respectively, the agent container is communicated with the first code execution container, and the information output component is communicated with the second code execution container and the agent container simultaneously.
In this case, the code writing container is configured to send a code execution request to the second code execution container, the code execution request requesting execution of the target code; the second code execution container is to execute the object code.
When the method is adopted, the code writing container can determine to apply for remote resources or local resources according to the size of the resources required by executing the target code or the code execution mode required by the user for executing the code, so that the dynamic allocation of the resources is realized. Specifically, if a remote resource is applied, the code compiling container applies for a target resource on the second device through the proxy container, and if a local resource is applied, the code compiling container sends a code execution request to the second code execution container, so that the second code execution container executes the target code.
As shown in fig. 6, the system may further include an information output component located in the first device, in which case, the agent container may be further configured to receive a code execution result generated after the first code execution container executes the target code; and the information output component is used for outputting the code execution result.
Specifically, when the object code is executed by a second code execution container created by a resource local to the first device, the information output component may further receive and output a code execution result generated after the second code execution container executes the object code.
As shown in fig. 6, the system may also include a storage disk.
Wherein the storage disk can be shared by a code writing container and a code execution container, and the code execution container is used for executing the target code; in this embodiment, the code execution container may be a first code execution container or a second code execution container.
Wherein the code writing container is used for mounting the target code into the storage disk;
the first device may carry a storage address of the target code in the storage disk through a code execution request sent by the code writing container, so that the code execution container reads the target code from the storage disk according to the storage address, and then executes the target code.
The storage disks may include data disks and rootfs disks, and the storage disks may be shared by code writing containers and code execution containers.
Referring to fig. 7, a schematic structural diagram of a resource allocation apparatus in this embodiment is shown, and is applied to an equipment cluster, where the equipment cluster at least includes a first device, and the apparatus is deployed in the first device, and specifically may include the following modules:
the coding container creating module 701 is used for creating a code compiling container by using local resources and compiling a target code by the code compiling container;
a proxy container creating module 702, configured to create a proxy container using local resources, and receive, through the proxy container, a resource allocation request sent by the code writing container, where the resource allocation request is used to request execution of the target code;
a resource application module 703, configured to apply for the target resource from a resource management server through the proxy container;
a code execution module 704, configured to send a code execution request to the first code execution container through the proxy container, where the code execution request is used to instruct the second device to execute the target code through the first code execution container, and the first code execution container is created by a second device that provides the target resource by using the target resource.
Optionally, the apparatus may further include the following modules:
the first creation module is used for creating a second code execution container by utilizing local resources;
a request execution module, configured to send a code execution request to the second code execution container through the code writing container, where the code execution request is used to request execution of the target code;
a first execution module to execute the object code via the second code execution container.
Optionally, the apparatus may further include the following modules:
a result receiving module, configured to receive, by the proxy container, a code execution result generated after the first code execution container executes the target code;
and the output module is used for outputting the code execution result through a local information output component.
Optionally, the apparatus may further include the following modules:
the mounting module is used for mounting the target code into a storage disc through the code writing container, the storage disc is shared by the code writing container and a code execution container, and the code execution container is used for executing the target code;
the sent code execution request carries a storage address of the target code in the storage disk, so that the code execution container reads the target code from the storage disk according to the storage address, and then executes the target code.
Optionally, the apparatus may further include the following modules:
the execution mode acquisition module is used for acquiring a code execution mode configured by a user through the code compiling container;
the agent container creating module 702 creates an agent container by using local resources, and is specifically configured to:
under the condition that the code execution mode is remote execution, a local resource is used for creating a proxy container, so that the target resource is applied to a resource management server through the proxy container, the first code execution container is obtained based on the target resource, and the target code is executed through the first code execution container;
the first creating module is specifically configured to, when the code execution mode is native execution, create a second code execution container by using a native resource, and execute the object code through the second code execution container.
Referring to fig. 8, a schematic structural diagram of a resource allocation apparatus in this embodiment is shown, and is applied to an equipment cluster, where the equipment cluster at least includes a second device, and the apparatus is deployed in the second device, and specifically may include the following modules:
a resource scheduling receiving module 801, configured to receive a resource scheduling instruction sent by a resource management server, where the resource scheduling instruction is generated by the resource management server when receiving a resource allocation request sent by a first device through a proxy container, and the resource allocation request is generated by a code compiling container on the first device after detecting that target code compiling is completed; wherein the proxy container and the code authoring container are each created by the first device using a local resource;
a container creating module 802, configured to create a first code execution container by using a local target resource according to the resource scheduling instruction;
a code execution module 803, configured to execute the target code through the first code execution container when receiving a code execution request sent by the first device through the proxy container.
Optionally, the code execution module 803 may specifically include the following units:
a code acquiring unit configured to acquire the target code from a storage disk mounted on the code writing container; wherein the storage disk is shared by the code writing container and the first code execution container;
a code execution unit to execute the object code through the first code execution container.
Optionally, the apparatus may further include the following modules:
the result acquisition module is used for acquiring a code execution result generated after the first code execution container executes the target code;
and the result sending module is used for sending the code execution result to the proxy container so that the first equipment outputs the code execution result through an information output component local to the first equipment.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
An embodiment of the present invention further provides an electronic device, which may be configured to execute the resource allocation method and may include a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor is configured to execute the resource allocation method.
Embodiments of the present invention further provide a computer-readable storage medium, which stores a computer program for enabling a processor to execute the resource allocation method according to the embodiments of the present invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The foregoing detailed description is directed to a resource allocation method, apparatus, device and storage medium, and the principles and embodiments of the present invention are described herein using specific examples, and the descriptions of the examples are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (16)

1. A resource allocation method is applied to a first device, and comprises the following steps:
creating a code compiling container by using local resources, and compiling a target code by the code compiling container;
creating a proxy container by using local resources, and receiving a resource allocation request sent by the code writing container through the proxy container, wherein the resource allocation request is used for requesting target resources required by executing the target code;
applying for the target resource from a resource management server through the proxy container;
sending, by the proxy container, a code execution request to a first code execution container, the code execution request to instruct execution of the target code by the first code execution container, the first code execution container created with the target resource by a second device that provides the target resource.
2. The method of claim 1, further comprising:
creating a second code execution container using the local resource;
sending a code execution request to the second code execution container through the code writing container, the code execution request requesting execution of the target code;
executing the object code by the second code execution container.
3. The method of claim 1, further comprising:
receiving a code execution result generated after the first code execution container executes the target code through the proxy container;
and outputting the code execution result through a local information output component.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
mounting the target code into a storage disc through the code writing container, wherein the storage disc is shared by the code writing container and a code execution container, and the code execution container is used for executing the target code;
the sent code execution request carries a storage address of the target code in the storage disk, so that the code execution container reads the target code from the storage disk according to the storage address, and then executes the target code.
5. The method of claim 2, wherein after writing target code through the code writing container, the method further comprises:
obtaining a code execution mode configured by a user through the code writing container;
creating a proxy container using local resources, comprising:
under the condition that the code execution mode is remote execution, a local resource is used for creating a proxy container, so that the target resource is applied to a resource management server through the proxy container, the first code execution container is obtained based on the target resource, and the target code is executed through the first code execution container;
creating a second code execution container using a native resource, comprising:
and under the condition that the code execution mode is local execution, creating a second code execution container by utilizing local resources, and executing the target code through the second code execution container.
6. A resource allocation method, applied to a second device, the method comprising:
receiving a resource scheduling instruction sent by a resource management server, wherein the resource scheduling instruction is generated by the resource management server when receiving a resource allocation request sent by first equipment through a proxy container, and the resource allocation request is generated by a code compiling container on the first equipment after the target code compiling is detected to be completed; wherein the proxy container and the code authoring container are each created by the first device using a local resource;
according to the resource scheduling instruction, a first code execution container is established by using local target resources;
and when a code execution request sent by the first device through the proxy container is received, executing the target code through the first code execution container.
7. The method of claim 6, wherein executing the object code with the first code execution container comprises:
acquiring the target code from a storage disc mounted by the code writing container; wherein the storage disk is shared by the code writing container and the first code execution container;
executing the object code by the first code execution container.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
acquiring a code execution result generated after the first code execution container executes the target code;
and sending the code execution result to the proxy container so that the first device outputs the code execution result through an information output component local to the first device.
9. An apparatus for resource allocation, the apparatus being deployed at a first device, comprising:
the coding container creating module is used for creating a code compiling container by utilizing local resources and compiling a target code by the code compiling container;
the agent container creating module is used for creating an agent container by using local resources and receiving a resource allocation request sent by the code compiling container through the agent container, wherein the resource allocation request is used for requesting target resources required by executing the target codes;
the resource application module is used for applying the target resource to a resource management server through the proxy container;
a code execution module to send a code execution request to a first code execution container through the proxy container, the code execution request to instruct the first code execution container to execute the target code, the first code execution container being created with the target resource by a second device that provides the target resource.
10. An apparatus for resource allocation, the apparatus being deployed at a second device, comprising:
a resource scheduling receiving module, configured to receive a resource scheduling instruction sent by a resource management server, where the resource scheduling instruction is generated by the resource management server when receiving a resource allocation request sent by a first device through a proxy container, and the resource allocation request is generated by a code compiling container on the first device after it is detected that target code compiling is completed; wherein the proxy container and the code authoring container are each created by the first device using a local resource;
the container creating module is used for creating a first code execution container by using local target resources according to the resource scheduling instruction;
and the code execution module is used for executing the target code through the first code execution container when receiving a code execution request sent by the first device through the proxy container.
11. A resource allocation system, applied to a device cluster, the device cluster including at least a first device and a second device, the system comprising:
the first device includes: compiling a container and a proxy container by using codes created by local resources; the second device is used for providing target resources required by executing target code, and comprises: executing a container with the first code created by the target resource;
wherein the code writing container is to: writing the target code by a user;
the proxy container is to: receiving a resource allocation request sent by the code compiling container, applying for a target resource required by executing the target code from a resource management server, and sending a code execution request to the first code execution container, wherein the code execution request is used for requesting to execute the target code;
the first code execution container is to: and executing the object code.
12. The system of claim 11, wherein the first device further comprises: creating a second code execution container using the local resource;
wherein the code writing container is to: sending a code execution request to the second code execution container, the code execution request requesting execution of the target code;
the second code execution container is to: and executing the object code.
13. The system of claim 11, wherein the first device further comprises: an information output component;
the proxy container is to: receiving a code execution result generated after the first code execution container executes the target code;
the information output component is configured to: and outputting the code execution result.
14. The system according to claim 11 or 12, characterized in that the system further comprises: a storage disk shared by the code writing container and a code execution container for executing the target code;
the code writing container is used for: mounting the target code into the storage disk;
the first device reads the target code from the storage disk according to the storage address by the code execution container, and then executes the target code.
15. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing implementing the resource allocation method according to any one of claims 1-5 or 6-8.
16. A computer-readable storage medium storing a computer program for causing a processor to perform the resource allocation method according to any one of claims 1 to 5 or 6 to 8.
CN202110114221.1A 2021-01-27 2021-01-27 Resource allocation method, device, equipment and medium Active CN112817691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110114221.1A CN112817691B (en) 2021-01-27 2021-01-27 Resource allocation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110114221.1A CN112817691B (en) 2021-01-27 2021-01-27 Resource allocation method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112817691A true CN112817691A (en) 2021-05-18
CN112817691B CN112817691B (en) 2024-02-02

Family

ID=75860039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110114221.1A Active CN112817691B (en) 2021-01-27 2021-01-27 Resource allocation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112817691B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2969812A1 (en) * 2014-12-05 2016-06-09 Amazon Technologies, Inc. Automatic management of resource sizing
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN108958930A (en) * 2018-06-19 2018-12-07 北京百度网讯科技有限公司 Processing method, device and the equipment of container resource
CN112214330A (en) * 2020-11-04 2021-01-12 腾讯科技(深圳)有限公司 Method and device for deploying master nodes in cluster and computer-readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2969812A1 (en) * 2014-12-05 2016-06-09 Amazon Technologies, Inc. Automatic management of resource sizing
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN108958930A (en) * 2018-06-19 2018-12-07 北京百度网讯科技有限公司 Processing method, device and the equipment of container resource
CN112214330A (en) * 2020-11-04 2021-01-12 腾讯科技(深圳)有限公司 Method and device for deploying master nodes in cluster and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
容晓峰;周利华;: "密码服务器运算资源可扩展管理研究", 电信科学, no. 08 *

Also Published As

Publication number Publication date
CN112817691B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN105988874B (en) Resource processing method and device
US10154089B2 (en) Distributed system and data operation method thereof
CN106056529B (en) Method and equipment for training convolutional neural network for picture recognition
CN104202332B (en) Mobile device virtualization system and instant installation method based on linux kernel
CN112463375A (en) Data processing method and device
KR20210095690A (en) Resource management method and apparatus, electronic device and recording medium
CN113419846B (en) Resource allocation method and device, electronic equipment and computer readable storage medium
CN103548324B (en) Virtual machine distribution method and virtual machine distributor
CN103049328A (en) Distribution method of internal memory resources in computer system
CN113051195A (en) Memory, GPU and electronic equipment
CN111694658A (en) CPU resource allocation method, device, electronic equipment and storage medium
CN110287146A (en) Using the method, equipment and computer storage medium of downloading
CN113296926B (en) Resource allocation method, computing device and storage medium
KR101765725B1 (en) System and Method for connecting dynamic device on mass broadcasting Big Data Parallel Distributed Processing
CN115292014A (en) Image rendering method and device and server
CN107992351B (en) Hardware resource allocation method and device and electronic equipment
CN113765942A (en) Cloud computing power distribution method, user terminal, cloud computing power platform and system
Kim et al. RIDE: real-time massive image processing platform on distributed environment
CN109766179B (en) Video memory allocation method and device
CN106796535B (en) Video display method, video display device, electronic equipment and computer program product
CN112817691B (en) Resource allocation method, device, equipment and medium
CN112114958A (en) Resource isolation method, distributed platform, computer device, and storage medium
CN113535087B (en) Data processing method, server and storage system in data migration process
CN111475277A (en) Resource allocation method, system, equipment and machine readable storage medium
CN111813541B (en) Task scheduling method, device, medium and equipment

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