WO2023143057A1 - Resource flow method, apparatus and device - Google Patents

Resource flow method, apparatus and device Download PDF

Info

Publication number
WO2023143057A1
WO2023143057A1 PCT/CN2023/071611 CN2023071611W WO2023143057A1 WO 2023143057 A1 WO2023143057 A1 WO 2023143057A1 CN 2023071611 W CN2023071611 W CN 2023071611W WO 2023143057 A1 WO2023143057 A1 WO 2023143057A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
resource pool
resources
target
occupied
Prior art date
Application number
PCT/CN2023/071611
Other languages
French (fr)
Chinese (zh)
Inventor
董希加
王谦
赵禹
刘砚博
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023143057A1 publication Critical patent/WO2023143057A1/en

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/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
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • 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]
    • 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/5061Partitioning or combining of resources
    • G06F9/5072Grid computing

Definitions

  • the present application relates to the field of storage, and in particular to a resource flow method, device and equipment.
  • Hyper converged infrastructure includes one or more hyper-converged nodes. Multiple hyper-converged nodes can be aggregated through the network.
  • the resources on each hyper-converged node can be used not only to process computing services, but also to use for storage business.
  • the resources in the device are statically allocated in advance, for example, which resources are used to process storage services, which resources are used to process computing services, and which resources are used to process other services, etc. , cannot be changed dynamically while the application is running.
  • there may be surplus resources for processing storage services and insufficient resources for processing computing services or, in some scenarios, there may be surplus resources for processing computing services.
  • the resources used to process storage services are insufficient, which leads to unreasonable resource utilization.
  • This application provides a resource flow method, device, and equipment. Using the resource flow method of this application, resource flow can be realized without restarting application services, avoiding the disadvantages of business jitter and business interruption caused by restarting application services, and improving User experience.
  • the present application provides a resource flow method, including: classifying the target resources in the first resource pool into the second resource pool, wherein the resources in the first resource pool are used for processing the first business One or more of containers, secure containers, and processes, and the resources in the second resource pool are used by one or more of containers, secure containers, and processes that process the second service.
  • the method provided by this application can realize the flow of target resources in different resource pools, wherein the resources in different resource pools are used to process different services, and the target resources can be resources occupied by containers or secure containers. resources, or the resources occupied by the process, or a combination of the above. According to the method described in this application, there is no need to manually adjust the resource configuration parameters, and it is not necessary to restart the application service.
  • the user side has no perception of the resource flow process, and does not affect the operation of the business and the experience of the user side.
  • the first service is one of a storage service and a computing service
  • the second service is the other of the storage service and the computing service.
  • services include computing services and storage services
  • resources in the first storage pool are used to process computing services
  • resources in the second resource pool are used to process storage services
  • resources in the first storage pool are used to process For storage services
  • the resources in the second resource pool are used to process computing services.
  • the target resource includes one or more of a processor resource, a memory resource, and a network resource.
  • the first resource pool and the second resource pool are located in the same server.
  • the classifying the target resource in the first resource pool into the second resource pool includes: there is an occupied resource in the target resource in the first resource pool In other cases, release the occupied resource; classify the target resource into the second resource pool.
  • the occupied resources need to be released first, so that the target resources are in an idle state, and then the target resources are classified into the second resource pool.
  • the high-priority application is shifted to idle resources of the first resource pool.
  • idle resources in the first resource pool can be used to replace the occupied resources, and high-priority applications can be moved to idle resources, and high-priority applications can be processed by idle resources. application, keep the target resource in an idle state, and then classify the target resource into the second resource pool, so as to ensure that high-priority application services are not affected.
  • the low-priority application when the occupied resource is occupied by a low-priority application, the low-priority application is deleted or the low-priority application is moved to the In the idle resources of the first resource pool.
  • one implementation may be to replace the occupied resource with an idle resource in the first resource pool, and move the low-priority application to the idle resource.
  • Idle resources process low-priority applications, make the target resources idle, and then classify the target resources into the second resource pool; another implementation method may be to directly delete low-priority applications, make the target resources idle, and then into the second resource pool.
  • the application form in the first resource pool is a container or a security container, and the application form in the second resource pool is a process; or, the application form in the first resource pool is The application form of the resource pool is a process, and the application form in the second resource pool is a container and a security container.
  • the method described in this application may be applicable to a scenario where one of the first resource pool and the second resource pool is in the form of a container or a security container, and the other is in the form of a process.
  • the method further includes: monitoring each resource in the first resource pool and/or Or the occupancy of each resource in the second resource pool.
  • the present application provides a resource flow device, including: a resource management framework, configured to classify target resources in a first resource pool into a second resource pool, wherein the resources in the first resource pool are used The resources in the second resource pool are used for one or more of the container processing the first service, the security container and the process Multiple uses.
  • a resource management framework configured to classify target resources in a first resource pool into a second resource pool, wherein the resources in the first resource pool are used The resources in the second resource pool are used for one or more of the container processing the first service, the security container and the process Multiple uses.
  • the first service is one of a storage service and a computing service
  • the second service is the other of the storage service and the computing service.
  • the target resource includes one or more of a processor resource, a memory resource, and a network resource.
  • the first resource pool and the second resource pool are located in the same server.
  • the resource management framework is configured to: release the occupied resource if there is an occupied resource in the target resource in the first resource pool; Classify the target resource into the second resource pool.
  • the resource management framework is configured to: when the occupied resource is occupied by a high-priority application, translate the high-priority application to the first In the idle resources of a resource pool.
  • the resource management framework is configured to: delete the low-priority application or delete the Low-priority applications are shifted to idle resources in the first resource pool.
  • the application form in the first resource pool is a container or a security container, and the application form in the second resource pool is a process; or, the application form in the first resource pool is The application form of the resource pool is a process, and the application form in the second resource pool is a container and a security container.
  • the apparatus further includes: a monitoring module configured to monitor the occupancy of each resource in the first resource pool and/or each resource in the second resource pool.
  • Each functional module in the second aspect is used to implement the first aspect and the method described in any possible implementation manner of the first aspect.
  • the present application provides a resource flow device, including a memory and a processor, the memory is used to store instructions, and the processor is used to call the instructions stored in the memory to execute the above first aspect and the first aspect The method described in any one of the possible implementations.
  • the present application provides a computer-readable storage medium, including program instructions.
  • the program instructions When the program instructions are executed by a computer, the computer executes any possible implementation of the above-mentioned first aspect and the first aspect. method described in the method.
  • the present application provides a computer program product, the computer program product includes computer program code, and when the computer program code is executed by a computing device, the computing device executes the aforementioned first aspect or the first aspect.
  • the computer program product may be a software installation package, and if the method provided in the aforementioned first aspect or any possible implementation of the first aspect needs to be used, the computer program product may be downloaded and executed on a computing device. program product.
  • FIG. 1 is a schematic diagram of a system architecture provided by the present application
  • FIG. 2 is a schematic structural diagram of a server provided by the present application.
  • FIG. 3 is a schematic flowchart of a resource flow method provided by the present application.
  • FIG. 4 is a schematic diagram of state changes of resources provided by the present application.
  • FIG. 5 is a schematic diagram of resource flow provided by the present application.
  • FIG. 6 is a schematic structural diagram of a resource flow device provided by the present application.
  • FIG. 7 is a schematic structural diagram of a resource flow device provided by the present application.
  • the hyper-converged system architecture is based on a standard and general-purpose hardware platform to achieve computing, storage, and network integration through software definition, and to realize the technical architecture of a software-defined data center centered on virtualization.
  • hyper specifically refers to hyper virtualization
  • integration refers to deploying computing services and storage services on one node.
  • the resources used for computing and storage used in the hyper-converged system are all allocated and used reasonably through virtual machines. It is a virtualization application with virtual machines as the core.
  • FIG. 1 is a hyper-converged system architecture provided by the present application.
  • the hyper-converged system includes one or more bare metal servers, and each bare metal server can be regarded as a hyper-converged node.
  • Each hyper-converged node can provide computing power and storage capacity at the same time.
  • One or more virtual machines or containers can be created on the bare metal server, and resources on the bare metal server can be allocated through the virtual machines or containers.
  • the resources include processor resources, memory resources, and network resources.
  • resources can be divided according to the services actually carried by hyper-converged nodes. For example, all the resources in the server can be divided into multiple resource pools, and the resources in each resource pool are used to process different services. For example, all the resources in the server can be divided into A resource pool, B resource pool and C resource pool.
  • resources in resource pool A are used to process computing services
  • resources in resource pool B are used to process storage services
  • resources in resource pool C are used to process other services.
  • the resources in each resource pool include one or more of processor resources, memory resources and network resources.
  • the method of dividing resources is pre-set statically, that is, the resources in each resource pool are pre-configured statically, and the resources in each resource pool cannot be changed dynamically during the application running process, that is to say,
  • the resources used for computing services can only be used for computing services, and cannot be used to process storage services and other services.
  • the resources used for storage services can only be used for storage services, and cannot be used to process computing services and other services. If you want to change the allocation of resources, you must adjust the resource configuration parameters and restart the application, but this will cause service jitter and service interruption, and the user experience is not good.
  • FIG. 2 is a schematic structural diagram of the server provided by this application, in Figure 2, the resources in the first resource pool are used for computing services, and the resources in the second resource pool are used for storage services Use, or, resources in the first resource pool are used for storage services, and resources in the second resource pool are used for computing services.
  • RMF resource management framework
  • the RMF includes a first resource pool management component, a second resource pool management component, and a resource flow component, wherein the first resource pool management component is used to manage resources in the first resource pool, specifically including a resource query module, a flow interface module, a binding A binding/unbinding module, the second resource pool management component is used to manage resources in the second resource pool, specifically including a resource query module, a flow interface module, and a binding/unbinding module.
  • the resource query module is used to query the status of the resources in the resource pool.
  • the status of the resources includes whether the resources are occupied, which applications are used, and the priority of the occupied applications.
  • the resource query module in the first resource pool management component It can be used to query the state of a certain resource in the first resource pool
  • the resource query module in the second resource pool management component can be used to query the state of a certain resource in the second resource pool.
  • the resource occupied by the application may exist in one or more forms of a container, a security container, and a process.
  • the priority of the application can be determined according to the importance of the service, and the application can include high-priority applications and low-priority applications.
  • the priority of the application can also be reflected by the priority of the container or security container or process occupied by the application.
  • the container occupied by the application is a high-priority container.
  • the container is a high-priority security container, and the process it occupies is a high-priority process.
  • the application is a low-priority application
  • the container occupied by the application is a low-priority container
  • the security container it occupies is a low-priority security container.
  • the process occupied is a low-priority process.
  • One form of process is a virtualization machine (VM).
  • VM virtualization machine
  • a security container refers to a container with higher security than the container.
  • the flow interface module is used to realize the inflow or outflow of resources, for example, the flow interface module in the first resource pool management component can be used to realize the inflow or outflow of a certain resource in the first resource pool, and the flow in the second resource pool management component The interface module can be used to realize the inflow or outflow of a certain resource in the second resource pool.
  • the binding/unbinding module is used to realize the binding or unbinding between resources and applications, for example, the binding/unbinding module in the first resource pool management component is used to realize the resource and application located in the first resource pool Binding or unbinding between applications, the binding/unbinding module in the second resource pool management component is used to realize the binding or unbinding between resources in the second resource pool and applications.
  • the first resource pool management component may also include a status management module
  • the second resource pool management component may also include a status management module.
  • the status management module is used to manage the status of resources, for example, the status management module in the first resource pool management component is used to manage the status of resources in the first resource pool, and the status management module in the second resource pool management component is used to manage The status of the resources in the second resource pool.
  • the state management module is used to mark the resources.
  • the resources When the resources are not occupied, the resources are marked as idle; When resources occupied by high-level containers or resources occupied by high-priority security containers or resources occupied by high-priority processes exist in the form of resources occupied by high-priority processes, the resources are marked as movable; When a priority application occupies, or resources exist in the form of resources occupied by low-priority containers, resources occupied by low-priority security containers, or resources occupied by low-priority processes, resources are marked as preemptible.
  • the resource flow component is used to receive resource flow information.
  • the resource flow information may be an instruction or notification sent by a module outside the RMF, or an instruction or notification or information sent by a device or module or device outside the server.
  • the above instruction or notification is used to indicate that some or some resources in the first resource pool should be included in the second resource pool, or that some or some resources in the second resource pool should be included in the first resource pool.
  • the resource flow component is also used to send a response message to a module located outside the RMF, or a device or module or device located outside the server.
  • the response message can be used as a response to an instruction or notification.
  • the response message is used to indicate that the resource has been included successfully or that the resource has been included. fail.
  • the resource flow component in RMF receives the resource flow information
  • the resource flow information indicates that a target resource in the first resource pool should be included in the second resource pool
  • the query module queries the state of the target resource, performs corresponding operations according to the state, makes the target resource in an idle state, and then classifies the target resource into the second resource pool.
  • the target resource is bound to the new application through the binding/unbinding module in the second resource pool management component, and a label is marked for the target resource through the state management module in the second resource pool management component, and the label is Determined according to the priority of the new application bound to the target resource.
  • the resource flow information indicates that a certain target resource in the second resource pool should be included in the first resource pool
  • call the resource query module in the second resource pool management component to query the status of the target resource according to the resource flow information, and perform corresponding operations according to the status.
  • the operation makes the target resource in an idle state, and then classifies the target resource into the first resource pool.
  • bind the target resource to the new application through the binding/unbinding module in the first resource pool management component, and mark the target resource with a label through the state management module in the first resource pool management component, and the label is Determined according to the priority of the new application bound to the target resource.
  • This example uses computing services and storage services as examples to introduce how the resources in the first resource pool and the resources in the second resource pool flow.
  • the resources in the first resource pool and the resources in the second resource pool The resources can also be used for other businesses, which is not limited in this application.
  • the resources in the server can be divided into more resource pools for use by different services. This application does not limit the division method and number of resource pools.
  • the present application provides a resource flow method, which is applied to the server, as shown in FIG. 3 , which is a schematic flow chart of a resource flow method provided by the present application.
  • the above methods include but are not limited to the following descriptions.
  • the server acquires resource flow information, and the resource flow information indicates that target resources in the first resource pool are included in the second resource pool.
  • the resource flow information indicates that the target resources in the first resource pool should be included in the second resource pool as an example. It can be understood that the resource flow information can also indicate that the target resources in the second resource pool should be included in the first resource pool. in the resource pool.
  • the resource flow information and the sender of the resource flow information reference may be made to the description of related content in FIG. 2 , and details are not repeated here. If the resource flow information is sent by a device or device or module located outside the server, obtaining may be understood as receiving.
  • the target resource may be any one or more of processor resources, network resources, and memory resources, and this application does not limit the specific forms of processor resources, network resources, and memory resources.
  • the present application does not specifically limit the number of resource pools included in the server, and does not specifically limit the services that the resources in the first resource pool are used for processing and the resources in the second resource pool are used for processing.
  • the server may acquire resource flow information through a resource flow component in the RMF.
  • the server may also monitor the occupancy of each resource in the first resource pool and/or each resource in the second resource pool. For example, in one example, the server monitors the usage of each resource in the first resource pool and the usage of each resource in the second resource pool in real time, and when it is detected that the resources in the second resource pool are all occupied , and it is detected that there are resources in the first resource pool that are not occupied, that is, there are resources in the first resource pool that are idle, then the server generates resource flow information, and the resource flow information indicates that a certain resource in the first resource pool is idle The resources in the state are classified into the second resource pool.
  • the server pays more attention to the progress or status of the business handled by the resources in the second resource pool, then the server only pays attention to the business status of the second resource pool.
  • the usage of each resource in the resource pool when the server detects that each resource in the second resource pool is in the occupied state, the server generates resource flow information, which indicates that a certain resource in the first resource pool Included in the second resource pool, the included resources are used to process services in the second resource pool.
  • the state of the target resource includes whether the target resource is occupied, which application is occupied, and the priority of the occupied application is high or low.
  • the state of the target resource can be divided into an idle state, a translationable state, and a preemptible state, wherein, if there is no occupied resource in the target resource, the target resource is said to be in the idle state; if there is an occupied resource in the target resource Occupied resources and the occupied resources are occupied by high-priority applications, the target resource is said to be in a translational state; if there are occupied resources in the target resource and the occupied resources are occupied by low-priority applications, it is called the target resource is preemptible.
  • the applications include high-priority applications and low-priority applications, and the priority of applications can be determined according to actual service requirements.
  • the state of the target resource can be changed. For example, as shown in FIG. 4, if the target resource in the idle state is occupied by a low-priority application, the target resource becomes preemptible; When the resources occupied by the low-priority application are released, the target resource becomes idle; if the target resource in the idle state is occupied by the high-priority application, the target resource becomes movable; move the high-priority application to the same On the idle resource in the resource pool, that is, replace the target resource with the idle resource, rebind the high-priority application bound to the target resource to the idle resource, use the idle resource to process the high-priority application, and the target resource becomes idle state, where idle resource refers to a resource that is in an idle state.
  • the target resource in the preemptible state can be indirectly changed to the translational state.
  • the target resource is replaced by the idle resource in the same resource pool, and the idle resource is used to process the low-priority application, and the target resource is used to process the high-priority application.
  • the target resource It becomes a translationable state, or it can also directly release the resource occupying the target resource, and use the target resource to process high-priority applications, and the target resource becomes a translational state.
  • the status of the target resource may be queried through a resource query module in the first resource pool management component.
  • the target resource may be directly classified into the second resource pool.
  • the target resource can be divided from the first resource pool by calling the flow interface module in the first resource pool management component, and the target resource can be classified into the resource pool by calling the flow interface module in the second resource pool management component. Second resource pool.
  • the target resource determines whether there are resources occupied by high-priority applications in the target resource, that is, when the target resource is in the translational state, determine the idle resource in the first resource pool, and replace the target resource with the idle resource.
  • the priority application is bound to the idle resource, the idle resource is used to process the high-priority application, the target resource becomes idle, and the target resource is classified into the second resource pool.
  • the resource query module in the first resource pool management component queries the idle resources in the first resource pool
  • the binding/unbinding module interacts with the container orchestration component
  • the high The priority application is bound to the resource in the idle state, using the idle resource to process the high-priority application, the target resource becomes idle, and is divided from the first resource pool through the flow interface module in the first resource pool management component, Classify the target resources into the second resource pool through the flow interface module in the second resource pool management component.
  • a response message is sent, where the response message indicates that the target resource fails to be classified.
  • the resource flow component sends a response message to the sender of the resource flow information if there is no idle resource in the first resource pool after query by the resource query module in the first resource pool management component.
  • the target resource is in a preemptible state.
  • the target resource can be replaced by the idle resource, and the idle resource can be used.
  • the low-priority application bound to the target resource is processed, the target resource becomes idle, and then the target resource is classified into the second resource pool.
  • the resource query module in the first resource pool management component queries whether there are idle resources in the first resource pool, and if so, interacts with the container orchestration component through the binding/unbinding module, The target resource is replaced by the idle resource through the container orchestration component, the target resource is divided from the first resource pool through the flow interface module, and the target resource is classified into the second resource pool through the flow interface module in the second resource pool management component. resource pool.
  • the resource query module in the first resource pool management component queries whether there are idle resources in the first resource pool, and if not, the resource occupied by the target resource can be To release, divide the target resource from the first resource pool through the flow interface module in the first resource pool management component, and classify the target resource into the second resource pool through the flow interface module in the second resource pool management component.
  • the target resource can be used to process other services.
  • the binding/unbinding module in the second resource pool management component can be used to bind the target resource with other applications, the resource query module can be used to query the state of the target resource, and the state management module can be used to label the target resource.
  • the target resource when the target resource is idle, the target resource can be directly classified into the second resource pool, as shown by the solid line in Figure 5; when the target resource is preemptible In the case of the state and the translational state, the target resource needs to be turned into an idle state first.
  • the target resource is in a preemptible state
  • the occupied resource of the target resource can be released directly or replaced by an idle resource to make the target resource become idle.
  • the target resource can be changed to a hollow state by replacing the idle resource, and then the target resource is classified into the second resource pool.
  • the initial state of the target resources classified into the second resource pool is an idle state, which can be changed to a preemptible state by being bound to a low-priority application, and can be translated to a translational state by being bound to a high-priority application.
  • the target resources in the translationable state or the preemptible state can also become idle. Please refer to the related content about how the states change, and for the sake of brevity, the description will not be repeated here.
  • the method described in this application can be applied to the following scenarios, where one of the first resource pool and the second resource pool has an application form of a container or a secure container, and the other end has an application form of a process, that is, the application form of the first resource pool is A container or a secure container, the application form in the second resource pool is a process; or, the application form in the first resource pool is a process, and the application form in the second resource pool is a container or a secure container. It may also be applicable that the application forms of the first resource pool and the second resource pool are both containers, or both are secure containers, or both are processes.
  • the first resource pool and the second resource pool may be located in the same server, or may be located in different servers.
  • this application proposes a resource management framework, through which the flow of resources in different resource pools can be realized, for example, the resource used to process computing services and the resources used to process storage services can be realized
  • the resources in the resource pool used to process one business are insufficient, resources can be transferred from the resource pool processing another business to this resource pool through the resource management framework, and used as the resource processing business of this resource pool.
  • the method provided by this application makes reasonable use of resources and avoids waste of resources.
  • the user side has no perception during the entire resource flow process, does not affect business processing, improves user experience, and is easy to operate.
  • FIG. 6 is a schematic structural diagram of a resource flow device 600 provided by the present application.
  • the resource flow device 600 includes:
  • the resource management framework 610 is configured to classify the target resources in the first resource pool into the second resource pool, wherein the resources in the first resource pool are used for processing the first business container, security container, and process One or more uses, the resources in the second resource pool are used by one or more of the container processing the second service, the security container and the process.
  • the first service is one of a storage service and a computing service
  • the second service is the other of the storage service and the computing service.
  • the target resource includes one or more of processor resources, memory resources, and network resources.
  • the first resource pool and the second resource pool are located in the same server.
  • the resource management framework 610 is configured to: release the occupied resource if there is an occupied resource in the target resource in the first resource pool; Resources are grouped into the second resource pool.
  • the resource management framework 610 is configured to: if the occupied resource is occupied by a high-priority application, translate the high-priority application to the first resource pool. in idle resources.
  • the resource management framework 610 is configured to: delete the low-priority application or delete the low-priority application when the occupied resource is occupied by the low-priority application Translate to idle resources in the first resource pool.
  • the application form in the first resource pool is a container or a security container
  • the application form in the second resource pool is a process
  • the application forms in the second resource pool are containers and secure containers.
  • the apparatus 600 further includes: a monitoring module 620, configured to monitor the occupancy of each resource in the first resource pool and/or each resource in the second resource pool.
  • the resource management framework 610 includes: a first resource pool management component, a second resource pool management component, and a resource flow component, wherein the first resource pool management component is used to manage resources in the first resource pool,
  • the first resource pool management component includes a resource query module, a flow interface module, and a binding/unbinding module.
  • the second resource pool management component is used to manage resources in the second resource pool, specifically including a resource query module, a flow interface module, a binding Bind/unbind modules.
  • the resource flow component is used to communicate with external devices or external modules, such as receiving instructions or notifications sent by external devices or external modules, sending response messages to external devices or external modules, and so on.
  • external devices or external modules such as receiving instructions or notifications sent by external devices or external modules, sending response messages to external devices or external modules, and so on.
  • Each functional module in FIG. 6 is used to implement the steps described in the method embodiment in FIG. 3 .
  • FIG. 6 For details, refer to the system architecture in FIG. 2 and the description of related content in the method embodiment in FIG. 3 , which will not be repeated here for the sake of brevity.
  • the present application also provides a resource flow device, see FIG. 7, which is a schematic structural diagram of a resource flow device 700 provided in the present application.
  • the resource flow device 700 may be a server, including: a processor 710, a communication interface 720 and memory 730 .
  • the processor 710, the communication interface 720, and the memory 730 may be connected to each other through the internal bus 740, and may also communicate through other means such as wireless transmission.
  • the bus 740 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or the like.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus 740 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in FIG. 7 , but it does not mean that there is only one bus or one type of bus.
  • the processor 710 may be composed of at least one general-purpose processor, such as a CPU, or a combination of a CPU and a hardware chip.
  • the aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above-mentioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
  • the processor 710 executes various types of digitally stored instructions, such as software or firmware programs stored in the memory 730, which enable the resource flow device 700 to provide a wide variety of services.
  • the memory 730 is used to store program codes, and is controlled and executed by the processor 710 to execute the steps described in the embodiment of FIG. 3 above. For details, reference may be made to relevant descriptions of the above-mentioned embodiments, which will not be repeated here.
  • the memory 730 may include a volatile memory, such as a RAM; the memory 730 may also include a nonvolatile memory, such as a ROM, or a flash memory (flash memory); and the memory 730 may also include a combination of the above types.
  • a volatile memory such as a RAM
  • the memory 730 may also include a nonvolatile memory, such as a ROM, or a flash memory (flash memory); and the memory 730 may also include a combination of the above types.
  • the communication interface 720 can be a wired interface (such as an Ethernet interface), an internal interface (such as a high-speed serial computer expansion bus (peripheral component interconnect express, PCIE) bus interface), a wired interface (such as an Ethernet interface) or a wireless interface (such as a cellular network interface or using a wireless LAN interface) for communicating with other devices or modules.
  • a wired interface such as an Ethernet interface
  • an internal interface such as a high-speed serial computer expansion bus (peripheral component interconnect express, PCIE) bus interface
  • a wired interface such as an Ethernet interface
  • a wireless interface such as a cellular network interface or using a wireless LAN interface
  • FIG. 7 is only a possible implementation of the embodiment of the present application.
  • the resource flow device may include more or fewer components, which is not limited here.
  • the content that is not shown or described in the embodiment of the present application refer to the relevant explanation in the embodiment of the foregoing method, and details are not repeated here.
  • the present application also provides a computer-readable storage medium, including computer program instructions.
  • the resource flow device executes part or all of the above resource flow method embodiments. step.
  • the present application also provides a computer program product, including program instructions.
  • the program instructions When the program instructions are executed by the resource flow device, the resource flow device executes some or all of the steps described in the resource flow method embodiments above.
  • all or part may be implemented by software, hardware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product may comprise code.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium, or a semiconductor medium.
  • the steps in the method of the embodiment of the present application can be adjusted in order, merged or deleted according to actual needs; the units in the device of the embodiment of the present application can be divided, combined or deleted according to actual needs.

Abstract

The present application provides a resource flow method, apparatus and device. The method comprises: determining the state of a target resource; executing a corresponding operation according to the state of the target resource; classifying the target resource in a first resource pool into a second resource pool, wherein a resource in the first resource pool is used for processing one or more of a container, a secure container and a process of a first service, and a resource in the second resource pool is used for processing one or more of a container, a secure container and a process of a second service. According to the present application, the flow among resources in different resource pools can be realized, the waste of resources is avoided, a resource utilization rate is improved, and the user experience is improved.

Description

一种资源流动方法、装置及设备A resource flow method, device and equipment 技术领域technical field
本申请涉及存储领域,尤其涉及一种资源流动方法、装置及设备。The present application relates to the field of storage, and in particular to a resource flow method, device and equipment.
背景技术Background technique
超融合***架构(hyper converged infrastructure,HCI)包括一个或多个超融合节点,多个超融合节点可以通过网络聚合起来,每个超融合节点上的资源既可以用于处理计算业务,还可以用于处理存储业务。为避免存储业务、计算业务以及其他业务相互干扰,设备中的资源是预先静态分配好的,比如,哪些资源用于处理存储业务,哪些资源用于处理计算业务,哪些资源用于处理其他业务等,在应用运行过程中是无法动态改变的。但在某些场景下,在运行过程中,可能用于处理存储业务的资源有剩余,用于处理计算业务的资源不够,或者,在某些场景下,用于处理计算业务的资源有剩余,用于处理存储业务的资源不够,这就导致资源利用不合理。Hyper converged infrastructure (HCI) includes one or more hyper-converged nodes. Multiple hyper-converged nodes can be aggregated through the network. The resources on each hyper-converged node can be used not only to process computing services, but also to use for storage business. To avoid mutual interference between storage services, computing services, and other services, the resources in the device are statically allocated in advance, for example, which resources are used to process storage services, which resources are used to process computing services, and which resources are used to process other services, etc. , cannot be changed dynamically while the application is running. However, in some scenarios, during operation, there may be surplus resources for processing storage services and insufficient resources for processing computing services, or, in some scenarios, there may be surplus resources for processing computing services. The resources used to process storage services are insufficient, which leads to unreasonable resource utilization.
目前,要改变资源的分配,则必须手动调整资源配置参数,然后重启应用服务,但这影响了业务的运行,造成了业务抖动和业务中断,从而影响了用户使用体验。At present, to change the resource allocation, you must manually adjust the resource configuration parameters, and then restart the application service, but this affects the operation of the business, causing business jitter and business interruption, thus affecting the user experience.
发明内容Contents of the invention
本申请提供了一种资源流动方法、装置及设备,采用本申请的资源流动方法,无需重启应用服务即可实现资源的流动,避免了因重启应用服务造成业务抖动和业务中断的弊端,提升了用户使用体验。This application provides a resource flow method, device, and equipment. Using the resource flow method of this application, resource flow can be realized without restarting application services, avoiding the disadvantages of business jitter and business interruption caused by restarting application services, and improving User experience.
第一方面,本申请提供了一种资源流动方法,包括:将第一资源池中的目标资源归入第二资源池,其中,所述第一资源池中的资源用于供处理第一业务的容器、安全容器和进程中的一种或多种使用,所述第二资源池中的资源用于供处理第二业务的容器、安全容器和进程中的一种或多种使用。In a first aspect, the present application provides a resource flow method, including: classifying the target resources in the first resource pool into the second resource pool, wherein the resources in the first resource pool are used for processing the first business One or more of containers, secure containers, and processes, and the resources in the second resource pool are used by one or more of containers, secure containers, and processes that process the second service.
可以看到,本申请提供的方法可以实现不同资源池中目标资源的流动,其中,不同资源池中的资源用于处理不同的业务,目标资源可以是容器占用的资源,也可以是安全容器占用的资源,也可以是进程占用的资源,或者也可以是上述多种的组合。根据本申请所述的方法,无需手动调整资源配置参数,无需重启应用服务,资源流动过程用户侧无感知,不影响业务的运行以及用户侧的体验感受。It can be seen that the method provided by this application can realize the flow of target resources in different resource pools, wherein the resources in different resource pools are used to process different services, and the target resources can be resources occupied by containers or secure containers. resources, or the resources occupied by the process, or a combination of the above. According to the method described in this application, there is no need to manually adjust the resource configuration parameters, and it is not necessary to restart the application service. The user side has no perception of the resource flow process, and does not affect the operation of the business and the experience of the user side.
基于第一方面,在可能的实现方式中,所述第一业务为存储业务和计算业务中的其中一种,所述第二业务为所述存储业务和所述计算业务中的另一种。Based on the first aspect, in a possible implementation manner, the first service is one of a storage service and a computing service, and the second service is the other of the storage service and the computing service.
可以理解,例如业务包括计算业务和存储业务,第一存储池中的资源用于处理计算业务,第二资源池中的资源用于处理存储业务,或者,第一存储池中的资源用于处理存储业务,第二资源池中的资源用于处理计算业务。It can be understood that, for example, services include computing services and storage services, resources in the first storage pool are used to process computing services, resources in the second resource pool are used to process storage services, or resources in the first storage pool are used to process For storage services, the resources in the second resource pool are used to process computing services.
基于第一方面,在可能的实现方式中,所述目标资源包括处理器资源、存储器资源和网络资源中的一种或多种。Based on the first aspect, in a possible implementation manner, the target resource includes one or more of a processor resource, a memory resource, and a network resource.
基于第一方面,在可能的实现方式中,所述第一资源池和所述第二资源池位于同一台服务器中。Based on the first aspect, in a possible implementation manner, the first resource pool and the second resource pool are located in the same server.
基于第一方面,在可能的实现方式中,所述将第一资源池中的目标资源归入第二资源池,包括:在所述第一资源池中的目标资源中存在被占用的资源的情况下,将所述被占用的资源释放;将所述目标资源归入第二资源池。Based on the first aspect, in a possible implementation manner, the classifying the target resource in the first resource pool into the second resource pool includes: there is an occupied resource in the target resource in the first resource pool In other cases, release the occupied resource; classify the target resource into the second resource pool.
可以理解,若第一资源池中的目标资源中存在被占用的资源,则需要先将被占用的资源释放掉,使目标资源处于空闲状态,再将目标资源归入第二资源池。It can be understood that if there are occupied resources among the target resources in the first resource pool, the occupied resources need to be released first, so that the target resources are in an idle state, and then the target resources are classified into the second resource pool.
基于第一方面,在可能的实现方式中,在所述被占用的资源是被高优先级应用占用的情况下,将所述高优先级应用平移到所述第一资源池的空闲资源中。Based on the first aspect, in a possible implementation manner, when the occupied resource is occupied by a high-priority application, the high-priority application is shifted to idle resources of the first resource pool.
可以理解,若被占用的资源是被高优先级应用占用,可使用第一资源池中的空闲资源替换被占用的资源,将高优先级应用平移至空闲资源上,由空闲资源处理高优先级应用,使目标资源处于空闲状态,再将目标资源归入第二资源池,以保证高优先级应用业务不受影响。It can be understood that if the occupied resources are occupied by high-priority applications, idle resources in the first resource pool can be used to replace the occupied resources, and high-priority applications can be moved to idle resources, and high-priority applications can be processed by idle resources. application, keep the target resource in an idle state, and then classify the target resource into the second resource pool, so as to ensure that high-priority application services are not affected.
基于第一方面,在可能的实现方式中,在所述被占用的资源是被低优先级应用占用的情况下,将所述低优先级应用删除或者将所述低优先级应用平移到所述第一资源池的空闲资源中。Based on the first aspect, in a possible implementation manner, when the occupied resource is occupied by a low-priority application, the low-priority application is deleted or the low-priority application is moved to the In the idle resources of the first resource pool.
可以理解,若被占用的资源是被低优先级应用占用,一种实现方式可以是,使用第一资源池中的空闲资源替换被占用的资源,将低优先级应用平移至空闲资源上,由空闲资源处理低优先级应用,使目标资源处于空闲状态,再将目标资源归入第二资源池;另一种实现方式可以是,直接将低优先级应用删除,使目标资源处于空闲状态,再归入第二资源池。It can be understood that if the occupied resource is occupied by a low-priority application, one implementation may be to replace the occupied resource with an idle resource in the first resource pool, and move the low-priority application to the idle resource. Idle resources process low-priority applications, make the target resources idle, and then classify the target resources into the second resource pool; another implementation method may be to directly delete low-priority applications, make the target resources idle, and then into the second resource pool.
基于第一方面,在可能的实现方式中,所述第一资源池中的应用形式为容器、安全容器,所述第二资源池中的应用形式为进程;或者,所述第一资源池中的应用形式为进程,所述第二资源池中的应用形式为容器、安全容器。Based on the first aspect, in a possible implementation manner, the application form in the first resource pool is a container or a security container, and the application form in the second resource pool is a process; or, the application form in the first resource pool is The application form of the resource pool is a process, and the application form in the second resource pool is a container and a security container.
可以理解,本申请所述的方法可以适用于第一资源池和第二资源池其中一者应用形式为容器、安全容器,另一者应用形式为进程的场景中。It can be understood that the method described in this application may be applicable to a scenario where one of the first resource pool and the second resource pool is in the form of a container or a security container, and the other is in the form of a process.
基于第一方面,在可能的实现方式中,在所述将第一资源池中的目标资源归入第二资源池之前,所述方法还包括:监测所述第一资源池中各个资源和/或所述第二资源池中各个资源的被占用情况。Based on the first aspect, in a possible implementation manner, before the target resource in the first resource pool is classified into the second resource pool, the method further includes: monitoring each resource in the first resource pool and/or Or the occupancy of each resource in the second resource pool.
可以理解,通过监测第一资源池中各个资源和/或第二资源池中各个资源的被占用情况,根据实际需求来实现资源的实时流动,避免业务应用与资源不匹配出现业务堵塞的情况,实施本申请可以提升用户使用体验。It can be understood that by monitoring the occupancy of each resource in the first resource pool and/or each resource in the second resource pool, the real-time flow of resources is realized according to actual needs, and the situation of business congestion caused by the mismatch between business applications and resources is avoided. Implementing this application can improve user experience.
第二方面,本申请提供了一种资源流动装置,包括:资源管理框架,用于将第一资源池中的目标资源归入第二资源池,其中,所述第一资源池中的资源用于供处理第一业务的容器、安全容器和进程中的一种或多种使用,所述第二资源池中的资源用于供处理第二业务的容器、安全容器和进程中的一种或多种使用。In a second aspect, the present application provides a resource flow device, including: a resource management framework, configured to classify target resources in a first resource pool into a second resource pool, wherein the resources in the first resource pool are used The resources in the second resource pool are used for one or more of the container processing the first service, the security container and the process Multiple uses.
基于第二方面,在可能的实现方式中,所述第一业务为存储业务和计算业务中的其中一种,所述第二业务为所述存储业务和所述计算业务中的另一种。Based on the second aspect, in a possible implementation manner, the first service is one of a storage service and a computing service, and the second service is the other of the storage service and the computing service.
基于第二方面,在可能的实现方式中,所述目标资源包括处理器资源、存储器资源和网络资源中的一种或多种。Based on the second aspect, in a possible implementation manner, the target resource includes one or more of a processor resource, a memory resource, and a network resource.
基于第二方面,在可能的实现方式中,所述第一资源池和所述第二资源池位于同一台服务器中。Based on the second aspect, in a possible implementation manner, the first resource pool and the second resource pool are located in the same server.
基于第二方面,在可能的实现方式中,所述资源管理框架用于:在所述第一资源池中的目标资源中存在被占用的资源的情况下,将所述被占用的资源释放;将所述目标资源归入第二资源池。Based on the second aspect, in a possible implementation manner, the resource management framework is configured to: release the occupied resource if there is an occupied resource in the target resource in the first resource pool; Classify the target resource into the second resource pool.
基于第二方面,在可能的实现方式中,所述资源管理框架用于:在所述被占用的资源是被高优先级应用占用的情况下,将所述高优先级应用平移到所述第一资源池的空闲资源中。Based on the second aspect, in a possible implementation manner, the resource management framework is configured to: when the occupied resource is occupied by a high-priority application, translate the high-priority application to the first In the idle resources of a resource pool.
基于第二方面,在可能的实现方式中,所述资源管理框架用于:在所述被占用的资源是被低优先级应用占用的情况下,将所述低优先级应用删除或者将所述低优先级应用平移到所述第一资源池的空闲资源中。Based on the second aspect, in a possible implementation manner, the resource management framework is configured to: delete the low-priority application or delete the Low-priority applications are shifted to idle resources in the first resource pool.
基于第二方面,在可能的实现方式中,所述第一资源池中的应用形式为容器、安全容器,所述第二资源池中的应用形式为进程;或者,所述第一资源池中的应用形式为进程,所述第二资源池中的应用形式为容器、安全容器。Based on the second aspect, in a possible implementation manner, the application form in the first resource pool is a container or a security container, and the application form in the second resource pool is a process; or, the application form in the first resource pool is The application form of the resource pool is a process, and the application form in the second resource pool is a container and a security container.
基于第二方面,在可能的实现方式中,所述装置还包括:监测模块,用于监测所述第一资源池中各个资源和/或所述第二资源池中各个资源的被占用情况。Based on the second aspect, in a possible implementation manner, the apparatus further includes: a monitoring module configured to monitor the occupancy of each resource in the first resource pool and/or each resource in the second resource pool.
第二方面中的各个功能模块用于实现第一方面及第一方面的任意一种可能的实现方式所述的方法。Each functional module in the second aspect is used to implement the first aspect and the method described in any possible implementation manner of the first aspect.
第三方面,本申请提供了一种资源流动设备,包括存储器和处理器,所述存储器用于存储指令,所述处理器用于调用所述存储器中存储的指令执行上述第一方面及第一方面的任意一种可能的实现方式所述的方法。In a third aspect, the present application provides a resource flow device, including a memory and a processor, the memory is used to store instructions, and the processor is used to call the instructions stored in the memory to execute the above first aspect and the first aspect The method described in any one of the possible implementations.
第四方面,本申请提供了一种计算机可读存储介质,包括程序指令,当所述程序指令被计算机运行时,使得所述计算机执行上述第一方面及第一方面的任意一种可能的实现方式所述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, including program instructions. When the program instructions are executed by a computer, the computer executes any possible implementation of the above-mentioned first aspect and the first aspect. method described in the method.
第五方面,本申请提供了一种计算机程序产品,所述计算机程序产品包括计算机程序代码,在所述计算机程序代码被计算设备执行时,所述计算设备执行前述第一方面或第一方面的任意可能的实现方式中提供的方法。该计算机程序产品可以为一个软件安装包,在需要使用前述第一方面或第一方面的任意可能的实现方式中提供的方法的情况下,可以下载该计算机程序产品并在计算设备上执行该计算机程序产品。In a fifth aspect, the present application provides a computer program product, the computer program product includes computer program code, and when the computer program code is executed by a computing device, the computing device executes the aforementioned first aspect or the first aspect. Methods provided in any possible implementation. The computer program product may be a software installation package, and if the method provided in the aforementioned first aspect or any possible implementation of the first aspect needs to be used, the computer program product may be downloaded and executed on a computing device. program product.
附图说明Description of drawings
图1为本申请提供的一种***架构示意图;FIG. 1 is a schematic diagram of a system architecture provided by the present application;
图2为本申请提供的一种服务器的结构示意图;FIG. 2 is a schematic structural diagram of a server provided by the present application;
图3为本申请提供的一种资源流动方法的流程示意图;FIG. 3 is a schematic flowchart of a resource flow method provided by the present application;
图4为本申请提供的资源的状态变化示意图;FIG. 4 is a schematic diagram of state changes of resources provided by the present application;
图5为本申请提供的一种资源流动示意图;FIG. 5 is a schematic diagram of resource flow provided by the present application;
图6为本申请提供的一种资源流动装置的结构示意图;FIG. 6 is a schematic structural diagram of a resource flow device provided by the present application;
图7为本申请提供的一种资源流动设备的结构示意图。FIG. 7 is a schematic structural diagram of a resource flow device provided by the present application.
具体实施方式Detailed ways
在描述本申请实施例的方案之前,先介绍一下超融合架构。Before describing the solution of the embodiment of the present application, first introduce the hyper-converged architecture.
超融合***架构是基于标准通用的硬件平台通过软件定义实现计算、存储、网络融合,实现以虚拟化为中心的软件定义数据中心的技术架构。其中,超特指虚拟化hyper,融合是指将计算业务和存储业务部署在一个节点上。超融合***中用于计算的资源和用于存储的资源都是通过虚拟机来合理调配使用的,是一种以虚拟机为核心的虚拟化应用。The hyper-converged system architecture is based on a standard and general-purpose hardware platform to achieve computing, storage, and network integration through software definition, and to realize the technical architecture of a software-defined data center centered on virtualization. Among them, hyper specifically refers to hyper virtualization, and integration refers to deploying computing services and storage services on one node. The resources used for computing and storage used in the hyper-converged system are all allocated and used reasonably through virtual machines. It is a virtualization application with virtual machines as the core.
参见图1,图1为本申请提供的一种超融合***架构,超融合***包括一台或多台裸金属服务器,每一台裸金属服务器可以看做一个超融合节点。每个超融合节点可同时提供计算 能力和存储能力。Referring to FIG. 1, FIG. 1 is a hyper-converged system architecture provided by the present application. The hyper-converged system includes one or more bare metal servers, and each bare metal server can be regarded as a hyper-converged node. Each hyper-converged node can provide computing power and storage capacity at the same time.
可以在裸金属服务器上创建一个或多个虚拟机或容器,通过虚拟机或容器来实现裸金属服务器上资源的调配,资源包括处理器资源、存储器资源和网络资源。实际应用中,可以根据超融合节点实际承载的业务,来对资源进行划分。例如,可以将服务器中的所有资源划分为多个资源池,每个资源池中的资源用于处理不同的业务,例如,可以将服务器中的所有资源划分至A资源池、B资源池和C资源池中,其中,A资源池中的资源用于处理计算业务,B资源池中的资源用于处理存储业务,C资源池中的资源用于处理其他业务。其中,每个资源池中的资源包括处理器资源、存储器资源和网络资源中的一种或多种。One or more virtual machines or containers can be created on the bare metal server, and resources on the bare metal server can be allocated through the virtual machines or containers. The resources include processor resources, memory resources, and network resources. In practical applications, resources can be divided according to the services actually carried by hyper-converged nodes. For example, all the resources in the server can be divided into multiple resource pools, and the resources in each resource pool are used to process different services. For example, all the resources in the server can be divided into A resource pool, B resource pool and C resource pool. In resource pools, resources in resource pool A are used to process computing services, resources in resource pool B are used to process storage services, and resources in resource pool C are used to process other services. Wherein, the resources in each resource pool include one or more of processor resources, memory resources and network resources.
目前,划分资源的方式是预先静态设置好的,即每个资源池中的资源是预先静态配置好的,在应用运行过程中,各个资源池中的资源是无法动态改变的,也就是说,用于计算业务的资源只能用于计算业务,不能用于处理存储业务和其他业务,用于存储业务的资源只能用于存储业务,不能用于处理计算业务和其他业务。若想要改变资源的分配,就必须调整资源配置参数,重新启动应用,但这会造成业务抖动和业务中断,用户体验不佳。At present, the method of dividing resources is pre-set statically, that is, the resources in each resource pool are pre-configured statically, and the resources in each resource pool cannot be changed dynamically during the application running process, that is to say, The resources used for computing services can only be used for computing services, and cannot be used to process storage services and other services. The resources used for storage services can only be used for storage services, and cannot be used to process computing services and other services. If you want to change the allocation of resources, you must adjust the resource configuration parameters and restart the application, but this will cause service jitter and service interruption, and the user experience is not good.
本申请提出了一种资源管理框架(resource manage framework,RMF),RMF用于实现不同资源池中资源的流动。参见图2所示的示意图,图2为本申请提供的服务器的结构示意图,图2中,第一资源池中的资源用于供计算业务使用,第二资源池中的资源用于供存储业务使用,或者,第一资源池中的资源用于供存储业务使用,第二资源池中的资源用于供计算业务使用。下面介绍RMF,并以第一资源池和第二资源池为例介绍资源是如何流动的。This application proposes a resource management framework (resource management framework, RMF), which is used to realize the flow of resources in different resource pools. Referring to the schematic diagram shown in Figure 2, Figure 2 is a schematic structural diagram of the server provided by this application, in Figure 2, the resources in the first resource pool are used for computing services, and the resources in the second resource pool are used for storage services Use, or, resources in the first resource pool are used for storage services, and resources in the second resource pool are used for computing services. The following describes the RMF, and uses the first resource pool and the second resource pool as examples to introduce how resources flow.
RMF包括第一资源池管理组件、第二资源池管理组件和资源流动组件,其中,第一资源池管理组件用于管理第一资源池中的资源,具体包括资源查询模块、流动接口模块、绑定/解绑模块,第二资源池管理组件用于管理第二资源池中的资源,具体包括资源查询模块、流动接口模块、绑定/解绑模块。The RMF includes a first resource pool management component, a second resource pool management component, and a resource flow component, wherein the first resource pool management component is used to manage resources in the first resource pool, specifically including a resource query module, a flow interface module, a binding A binding/unbinding module, the second resource pool management component is used to manage resources in the second resource pool, specifically including a resource query module, a flow interface module, and a binding/unbinding module.
资源查询模块用于查询资源池中的资源的状态,资源的状态包括资源是否被占用、被哪些应用占用、所占用的应用的优先级高低,例如,第一资源池管理组件中的资源查询模块可用于查询第一资源池中的某个资源的状态,第二资源池管理组件中的资源查询模块可用于查询第二资源池中的某个资源的状态。其中,应用占用资源可以以容器、安全容器和进程中的一种或多种形式存在。应用的优先级可以根据业务的重要程度来确定,应用可以包括高优先级应用和低优先级应用。或者,应用的优先级也可以通过该应用所占用的容器或安全容器或进程的优先级来体现,若应用为高优先级,则该应用所占用的容器为高优先级容器,所占用的安全容器为高优先级安全容器,所占用的进程为高优先级进程,若应用为低优先级应用,则该应用所占用的容器为低优先级容器,所占用的安全容器为低优先级安全容器,所占用的进程为低优先级进程。进程的一种形式为虚拟机(virtualization machine,VM)。其中,安全容器(security container)指的是安全性比容器高的容器。The resource query module is used to query the status of the resources in the resource pool. The status of the resources includes whether the resources are occupied, which applications are used, and the priority of the occupied applications. For example, the resource query module in the first resource pool management component It can be used to query the state of a certain resource in the first resource pool, and the resource query module in the second resource pool management component can be used to query the state of a certain resource in the second resource pool. Wherein, the resource occupied by the application may exist in one or more forms of a container, a security container, and a process. The priority of the application can be determined according to the importance of the service, and the application can include high-priority applications and low-priority applications. Alternatively, the priority of the application can also be reflected by the priority of the container or security container or process occupied by the application. If the application is of high priority, the container occupied by the application is a high-priority container. The container is a high-priority security container, and the process it occupies is a high-priority process. If the application is a low-priority application, the container occupied by the application is a low-priority container, and the security container it occupies is a low-priority security container. , the process occupied is a low-priority process. One form of process is a virtualization machine (VM). Among them, a security container refers to a container with higher security than the container.
流动接口模块用于实现资源的流入或流出,例如,第一资源池管理组件中的流动接口模块可用于实现第一资源池中某个资源的流入或流出,第二资源池管理组件中的流动接口模块可用于实现第二资源池中某个资源的流入或流出。The flow interface module is used to realize the inflow or outflow of resources, for example, the flow interface module in the first resource pool management component can be used to realize the inflow or outflow of a certain resource in the first resource pool, and the flow in the second resource pool management component The interface module can be used to realize the inflow or outflow of a certain resource in the second resource pool.
绑定/解绑模块用于实现资源与应用之间的绑定或解绑,例如,第一资源池管理组件中的绑定/解绑模块用于实现位于第一资源池中的资源与应用之间的绑定或解绑,第二资源池管理组件中的绑定/解绑模块用于实现位于第二资源池中的资源与应用之间的绑定或解绑。The binding/unbinding module is used to realize the binding or unbinding between resources and applications, for example, the binding/unbinding module in the first resource pool management component is used to realize the resource and application located in the first resource pool Binding or unbinding between applications, the binding/unbinding module in the second resource pool management component is used to realize the binding or unbinding between resources in the second resource pool and applications.
可选的,第一资源池管理组件还可以包括状态管理模块,第二资源池管理组件种还可以 包括状态管理模块。状态管理模块用于管理资源的状态,例如,第一资源池管理组件中的状态管理模块用于管理第一资源池中的资源的状态,第二资源池管理组件中的状态管理模块用于管理第二资源池中的资源的状态。具体的,状态管理模块用于将资源标记标签,当资源未被占用时,标记资源为空闲状态;当资源用于处理重要业务时,即资源被高优先级应用占用,或者说资源以高优先级容器所占用的资源或高优先级安全容器所占用的资源或高优先级进程所占用的资源的形式存在时,标记资源为可平移状态;当资源用于处理普通业务时,即资源被低优先级应用占用,或者说资源以低优先级容器所占用的资源或低优先级安全容器所占用的资源或低优先级进程所占用的资源的形式存在时,标记资源为可抢占状态。Optionally, the first resource pool management component may also include a status management module, and the second resource pool management component may also include a status management module. The status management module is used to manage the status of resources, for example, the status management module in the first resource pool management component is used to manage the status of resources in the first resource pool, and the status management module in the second resource pool management component is used to manage The status of the resources in the second resource pool. Specifically, the state management module is used to mark the resources. When the resources are not occupied, the resources are marked as idle; When resources occupied by high-level containers or resources occupied by high-priority security containers or resources occupied by high-priority processes exist in the form of resources occupied by high-priority processes, the resources are marked as movable; When a priority application occupies, or resources exist in the form of resources occupied by low-priority containers, resources occupied by low-priority security containers, or resources occupied by low-priority processes, resources are marked as preemptible.
资源流动组件用于接收资源流动信息,资源流动信息可以是由位于RMF外部的模块等发送的指令或通知,也可以是由位于服务器外部的设备或模块或装置发送的指令或通知或信息,所述指令或通知用于指示将第一资源池中的某个或某些资源归入第二资源池中,或者将第二资源池中的某个或某些资源归入第一资源池中。资源流动组件还用于向位于RMF外部的模块,或者位于服务器外部的设备或模块或装置发送响应消息,响应消息可以作为指令或通知的响应,响应消息用于指示资源归入成功或资源归入失败。The resource flow component is used to receive resource flow information. The resource flow information may be an instruction or notification sent by a module outside the RMF, or an instruction or notification or information sent by a device or module or device outside the server. The above instruction or notification is used to indicate that some or some resources in the first resource pool should be included in the second resource pool, or that some or some resources in the second resource pool should be included in the first resource pool. The resource flow component is also used to send a response message to a module located outside the RMF, or a device or module or device located outside the server. The response message can be used as a response to an instruction or notification. The response message is used to indicate that the resource has been included successfully or that the resource has been included. fail.
当RMF中的资源流动组件接收到资源流动信息,若资源流动信息指示将第一资源池中的某目标资源归入第二资源池中,根据资源流动信息调用第一资源池管理组件中的资源查询模块查询目标资源的状态,根据状态执行相应的操作,使目标资源处于空闲状态,然后将目标资源归入第二资源池中。可选的,通过第二资源池管理组件中的绑定/解绑模块将目标资源绑定至新的应用,并通过第二资源池管理组件中的状态管理模块为目标资源标记标签,标签是根据与目标资源绑定的新的应用的优先级程度确定的。When the resource flow component in RMF receives the resource flow information, if the resource flow information indicates that a target resource in the first resource pool should be included in the second resource pool, call the resources in the first resource pool management component according to the resource flow information The query module queries the state of the target resource, performs corresponding operations according to the state, makes the target resource in an idle state, and then classifies the target resource into the second resource pool. Optionally, the target resource is bound to the new application through the binding/unbinding module in the second resource pool management component, and a label is marked for the target resource through the state management module in the second resource pool management component, and the label is Determined according to the priority of the new application bound to the target resource.
若资源流动信息指示将第二资源池中的某目标资源归入第一资源池中,则根据资源流动信息调用第二资源池管理组件中的资源查询模块查询目标资源的状态,根据状态执行相应的操作,使目标资源处于空闲状态,然后将目标资源归入第一资源池中。可选的,通过第一资源池管理组件中的绑定/解绑模块将目标资源绑定至新的应用,并通过第一资源池管理组件中的状态管理模块为目标资源标记标签,标签是根据与目标资源绑定的新的应用的优先级程度确定的。If the resource flow information indicates that a certain target resource in the second resource pool should be included in the first resource pool, call the resource query module in the second resource pool management component to query the status of the target resource according to the resource flow information, and perform corresponding operations according to the status. The operation makes the target resource in an idle state, and then classifies the target resource into the first resource pool. Optionally, bind the target resource to the new application through the binding/unbinding module in the first resource pool management component, and mark the target resource with a label through the state management module in the first resource pool management component, and the label is Determined according to the priority of the new application bound to the target resource.
本示例是以计算业务和存储业务为例,介绍第一资源池中的资源和第二资源池中的资源是如何流动的,实际应用中,第一资源池中的资源和第二资源池中的资源还可用于其他业务,本申请不做限定。另外,实际应用中,可以将服务器中的资源划分为更多的资源池,供不同业务使用,本申请对资源池的划分方式和划分数量不做限定。This example uses computing services and storage services as examples to introduce how the resources in the first resource pool and the resources in the second resource pool flow. In practical applications, the resources in the first resource pool and the resources in the second resource pool The resources can also be used for other businesses, which is not limited in this application. In addition, in practical applications, the resources in the server can be divided into more resource pools for use by different services. This application does not limit the division method and number of resource pools.
基于上述图2中服务器的结构示意图,本申请提供了一种资源流动方法,所述方法应用于服务器,参见图3所示,图3为本申请提供的一种资源流动方法的流程示意图,所述方法包括但不限于以下内容的描述。Based on the schematic structural diagram of the server in FIG. 2 above, the present application provides a resource flow method, which is applied to the server, as shown in FIG. 3 , which is a schematic flow chart of a resource flow method provided by the present application. The above methods include but are not limited to the following descriptions.
S101、服务器获取资源流动信息,资源流动信息指示第一资源池中的目标资源归入第二资源池中。S101. The server acquires resource flow information, and the resource flow information indicates that target resources in the first resource pool are included in the second resource pool.
本申请以资源流动信息指示将第一资源池中的目标资源归入第二资源池中为例进行介绍,可以理解,资源流动信息也可以指示将第二资源池中的目标资源归入第一资源池中。关于资源流动信息以及资源流动信息的发送者可以参考图2中相关内容的描述,在此不再赘述。若资源流动信息是由位于服务器外部的设备或装置或模块发送的,则获取可理解为接收。In this application, the resource flow information indicates that the target resources in the first resource pool should be included in the second resource pool as an example. It can be understood that the resource flow information can also indicate that the target resources in the second resource pool should be included in the first resource pool. in the resource pool. Regarding the resource flow information and the sender of the resource flow information, reference may be made to the description of related content in FIG. 2 , and details are not repeated here. If the resource flow information is sent by a device or device or module located outside the server, obtaining may be understood as receiving.
目标资源可以是处理器资源、网络资源和存储器资源中的任意一种或多种,本申请对处 理器资源、网络资源和存储器资源的具体形式不作限定。本申请对服务器中包括的资源池的数量不作具体限定,对第一资源池中的资源用于处理的业务和第二资源池中的资源用于处理的业务不作具体限定。The target resource may be any one or more of processor resources, network resources, and memory resources, and this application does not limit the specific forms of processor resources, network resources, and memory resources. The present application does not specifically limit the number of resource pools included in the server, and does not specifically limit the services that the resources in the first resource pool are used for processing and the resources in the second resource pool are used for processing.
在可能的实现方式中,服务器可以通过RMF中的资源流动组件获取资源流动信息。In a possible implementation manner, the server may acquire resource flow information through a resource flow component in the RMF.
可选的,服务器在获取资源流动信息之前,服务器还可以监测第一资源池中各个资源和/或第二资源池中各个资源被占用情况。例如,在一种示例中,服务器实时监测第一资源池中各个资源的使用情况和第二资源池中各个资源的使用情况,当监测到第二资源池中的资源均处于被占用的状态下,且监测到第一资源池中存在资源未被占用,即第一资源池中存在资源处于空闲状态,则服务器生成资源流动信息,该资源流动信息指示将第一资源池中的某个处于空闲状态的资源归入第二资源池中。又例如,在某种场景下,相比于第一资源池中的资源所处理的业务,服务器更关注第二资源池中资源所处理的业务的进度或业务的状态,则服务器只关注第二资源池中各个资源的使用情况,当服务器监测到第二资源池中各个资源均处于被占用的状态下,则服务器生成资源流动信息,该资源流动信息指示将第一资源池中的某个资源归入第二资源池中,归入的资源用于处理第二资源池中的业务。Optionally, before the server obtains the resource flow information, the server may also monitor the occupancy of each resource in the first resource pool and/or each resource in the second resource pool. For example, in one example, the server monitors the usage of each resource in the first resource pool and the usage of each resource in the second resource pool in real time, and when it is detected that the resources in the second resource pool are all occupied , and it is detected that there are resources in the first resource pool that are not occupied, that is, there are resources in the first resource pool that are idle, then the server generates resource flow information, and the resource flow information indicates that a certain resource in the first resource pool is idle The resources in the state are classified into the second resource pool. For another example, in a certain scenario, compared with the business handled by resources in the first resource pool, the server pays more attention to the progress or status of the business handled by the resources in the second resource pool, then the server only pays attention to the business status of the second resource pool. The usage of each resource in the resource pool, when the server detects that each resource in the second resource pool is in the occupied state, the server generates resource flow information, which indicates that a certain resource in the first resource pool Included in the second resource pool, the included resources are used to process services in the second resource pool.
S102、确定目标资源的状态。S102. Determine the state of the target resource.
目标资源的状态包括目标资源是否被占用、被哪些应用占用、占用的应用的优先级高低。The state of the target resource includes whether the target resource is occupied, which application is occupied, and the priority of the occupied application is high or low.
可选的,可以将目标资源的状态分为空闲状态、可平移状态和可抢占状态,其中,若目标资源中不存在被占用的资源,则称目标资源处于空闲状态;若目标资源中存在被占用的资源且被占用的资源是被高优先级应用占用,则称目标资源处于可平移状态;若目标资源中存在被占用的资源且被占用的资源是被低优先级应用占用,称目标资源处于可抢占状态。其中应用包括高优先级应用和低优先级应用,应用的优先级高低可根据实际业务需求来确定。Optionally, the state of the target resource can be divided into an idle state, a translationable state, and a preemptible state, wherein, if there is no occupied resource in the target resource, the target resource is said to be in the idle state; if there is an occupied resource in the target resource Occupied resources and the occupied resources are occupied by high-priority applications, the target resource is said to be in a translational state; if there are occupied resources in the target resource and the occupied resources are occupied by low-priority applications, it is called the target resource is preemptible. The applications include high-priority applications and low-priority applications, and the priority of applications can be determined according to actual service requirements.
目标资源所处的状态是可以改变的,例如,参见图4所示,若处于空闲状态的目标资源被低优先级应用占用的情况下,则目标资源变为可抢占状态;将目标资源中被低优先级应用所占用的资源释放掉,则目标资源变为空闲状态;若处于空闲状态的目标资源被高优先级应用占用,则目标资源变为可平移状态;将高优先级应用平移至同一资源池中的空闲资源上,即用空闲资源替换目标资源,将与目标资源绑定的高优先级应用重新绑定至空闲资源上,使用空闲资源处理高优先级应用,则目标资源变为空闲状态,其中空闲资源指的是处于空闲状态的资源。处于可抢占状态的目标资源可以间接变为可平移状态,通过同一资源池中的空闲资源置换目标资源,使用空闲资源处理低优先级应用,将目标资源用于处理高优先级应用,这样目标资源变为可平移状态,或者,也可以直接将占用目标资源的资源释放掉,将目标资源用于处理高优先级应用,目标资源变为可平移状态。可选的,可以通过第一资源池管理组件中的资源查询模块查询目标资源的状态。The state of the target resource can be changed. For example, as shown in FIG. 4, if the target resource in the idle state is occupied by a low-priority application, the target resource becomes preemptible; When the resources occupied by the low-priority application are released, the target resource becomes idle; if the target resource in the idle state is occupied by the high-priority application, the target resource becomes movable; move the high-priority application to the same On the idle resource in the resource pool, that is, replace the target resource with the idle resource, rebind the high-priority application bound to the target resource to the idle resource, use the idle resource to process the high-priority application, and the target resource becomes idle state, where idle resource refers to a resource that is in an idle state. The target resource in the preemptible state can be indirectly changed to the translational state. The target resource is replaced by the idle resource in the same resource pool, and the idle resource is used to process the low-priority application, and the target resource is used to process the high-priority application. In this way, the target resource It becomes a translationable state, or it can also directly release the resource occupying the target resource, and use the target resource to process high-priority applications, and the target resource becomes a translational state. Optionally, the status of the target resource may be queried through a resource query module in the first resource pool management component.
S103、根据目标资源的状态执行相应操作,将目标资源归入第二资源池中。S103. Perform a corresponding operation according to the state of the target resource, and classify the target resource into the second resource pool.
若目标资源中不存在被占用的资源,即目标资源处于空闲状态,则可直接将目标资源归入第二资源池中。在可能的实现方式中,可以通过调用第一资源池管理组件中的流动接口模块将目标资源从第一资源池中划分出来,调用第二资源池管理组件中的流动接口模块将目标资源归入第二资源池。If there is no occupied resource in the target resource, that is, the target resource is in an idle state, the target resource may be directly classified into the second resource pool. In a possible implementation, the target resource can be divided from the first resource pool by calling the flow interface module in the first resource pool management component, and the target resource can be classified into the resource pool by calling the flow interface module in the second resource pool management component. Second resource pool.
若目标资源中存在被高优先级应用占用的资源,即目标资源处于可平移状态的情况下,确定第一资源池中的空闲资源,通过空闲资源置换目标资源,将与目标资源绑定的高优先级应用绑定至空闲资源上,使用空闲资源处理高优先级应用,目标资源变为空闲状态,将目标资源归入第二资源池中。在可能的实现方式中,通过第一资源池管理组件中的资源查询模块 查询第一资源池中的处于空闲状态的资源,绑定/解绑模块与容器编排组件交互,通过容器编排组件将高优先级应用绑定至处于空闲状态的资源上,使用空闲资源处理高优先级应用,目标资源变为空闲状态,通过第一资源池管理组件中的流动接口模块从第一资源池中划分出来,通过第二资源池管理组件中的流动接口模块将目标资源归入第二资源池中。If there are resources occupied by high-priority applications in the target resource, that is, when the target resource is in the translational state, determine the idle resource in the first resource pool, and replace the target resource with the idle resource. The priority application is bound to the idle resource, the idle resource is used to process the high-priority application, the target resource becomes idle, and the target resource is classified into the second resource pool. In a possible implementation, the resource query module in the first resource pool management component queries the idle resources in the first resource pool, the binding/unbinding module interacts with the container orchestration component, and the high The priority application is bound to the resource in the idle state, using the idle resource to process the high-priority application, the target resource becomes idle, and is divided from the first resource pool through the flow interface module in the first resource pool management component, Classify the target resources into the second resource pool through the flow interface module in the second resource pool management component.
可选的,若第一资源池中不存在空闲资源,则发送响应消息,所述响应消息指示目标资源归入失败。在可能的实现方式中,经第一资源池管理组件中的资源查询模块查询,第一资源池中不存在处于空闲状态的资源,则资源流动组件发送响应消息至资源流动信息的发送者。Optionally, if there is no free resource in the first resource pool, a response message is sent, where the response message indicates that the target resource fails to be classified. In a possible implementation, the resource flow component sends a response message to the sender of the resource flow information if there is no idle resource in the first resource pool after query by the resource query module in the first resource pool management component.
若目标资源中存在被低优先级应用占用的资源,即目标资源处于可抢占状态,在一种示例中,若第一资源池中存在空闲资源,则可以通过空闲资源置换目标资源,使用空闲资源处理与目标资源绑定的低优先级应用,将目标资源变为空闲状态,然后将目标资源归入第二资源池中。在可能的实现方式中,通过第一资源池管理组件中的资源查询模块查询第一资源池中是否存在处于空闲状态的资源,若存在,可通过绑定/解绑模块与容器编排组件交互,通过容器编排组件将目标资源替换为处于空闲状态的资源,通过流动接口模块将目标资源从第一资源池中划分出来,通过第二资源池管理组件中的流动接口模块将目标资源归入第二资源池。If there are resources occupied by low-priority applications in the target resource, that is, the target resource is in a preemptible state. In one example, if there are idle resources in the first resource pool, the target resource can be replaced by the idle resource, and the idle resource can be used. The low-priority application bound to the target resource is processed, the target resource becomes idle, and then the target resource is classified into the second resource pool. In a possible implementation, the resource query module in the first resource pool management component queries whether there are idle resources in the first resource pool, and if so, interacts with the container orchestration component through the binding/unbinding module, The target resource is replaced by the idle resource through the container orchestration component, the target resource is divided from the first resource pool through the flow interface module, and the target resource is classified into the second resource pool through the flow interface module in the second resource pool management component. resource pool.
在又一种示例中,若第一资源池中不存在空闲资源,可直接将目标资源中所被占用的资源释放掉,目标资源变为空闲状态,将目标资源归入第二资源池中。在可能的实现方式中,通过第一资源池管理组件中的资源查询模块查询第一资源池中是否存在处于空闲状态的资源,若不存在,可通过容器编排组件将目标资源所被占用的资源释放掉,通过第一资源池管理组件中的流动接口模块将目标资源从第一资源池中划分出来,通过第二资源池管理组件中的流动接口模块将目标资源归入第二资源池。In yet another example, if there is no idle resource in the first resource pool, the resources occupied by the target resource may be released directly, the target resource becomes idle, and the target resource is classified into the second resource pool. In a possible implementation, the resource query module in the first resource pool management component queries whether there are idle resources in the first resource pool, and if not, the resource occupied by the target resource can be To release, divide the target resource from the first resource pool through the flow interface module in the first resource pool management component, and classify the target resource into the second resource pool through the flow interface module in the second resource pool management component.
可选的,目标资源归入第二资源池后,目标资源可用于处理其他的业务。第二资源池管理组件中的绑定/解绑模块可用于将目标资源与其他应用进行绑定,资源查询模块可用于查询目标资源的状态,状态管理模块可用于对目标资源标记标签。综上,可参见图5所示的示意图,在目标资源处于空闲状态的情况下,可直接将目标资源归入第二资源池中,如图5中实线所示;在目标资源处于可抢占状态和可平移状态的情况下,需要先将目标资源变为空闲状态,若目标资源处于可抢占状态,可直接释放目标资源中被占用的资源或通过空闲资源置换,使目标资源变为空闲状态,若目标资源处于可平移状态,可通过空闲资源置换的方式使目标资源变为空心状态,再将目标资源归入第二资源池中。归入第二资源池的目标资源初始状态为空闲状态,可通过与低优先级应用绑定变为可抢占状态,通过与高优先级应用绑定变为可平移状态。当然,处于可平移状态或可抢占状态的目标资源也可以变为空闲状态,参考前面关于状态之间是如何改变的相关内容,为了说明书的简洁在此不再赘述。Optionally, after the target resource is classified into the second resource pool, the target resource can be used to process other services. The binding/unbinding module in the second resource pool management component can be used to bind the target resource with other applications, the resource query module can be used to query the state of the target resource, and the state management module can be used to label the target resource. To sum up, referring to the schematic diagram shown in Figure 5, when the target resource is idle, the target resource can be directly classified into the second resource pool, as shown by the solid line in Figure 5; when the target resource is preemptible In the case of the state and the translational state, the target resource needs to be turned into an idle state first. If the target resource is in a preemptible state, the occupied resource of the target resource can be released directly or replaced by an idle resource to make the target resource become idle. , if the target resource is in a translational state, the target resource can be changed to a hollow state by replacing the idle resource, and then the target resource is classified into the second resource pool. The initial state of the target resources classified into the second resource pool is an idle state, which can be changed to a preemptible state by being bound to a low-priority application, and can be translated to a translational state by being bound to a high-priority application. Of course, the target resources in the translationable state or the preemptible state can also become idle. Please refer to the related content about how the states change, and for the sake of brevity, the description will not be repeated here.
本申请所述的方法可以适用于如下场景,第一资源池和第二资源池中其中一端应用形式为容器或安全容器,另一端应用形式为进程,即:第一资源池中的应用形式为容器或安全容器,第二资源池中的应用形式为进程;或者,第一资源池中的应用形式为进程,第二资源池中的应用形式为容器或安全容器。还可以适用于,第一资源池和第二资源池的应用形式均为容器,或均为安全容器,或均为进程。The method described in this application can be applied to the following scenarios, where one of the first resource pool and the second resource pool has an application form of a container or a secure container, and the other end has an application form of a process, that is, the application form of the first resource pool is A container or a secure container, the application form in the second resource pool is a process; or, the application form in the first resource pool is a process, and the application form in the second resource pool is a container or a secure container. It may also be applicable that the application forms of the first resource pool and the second resource pool are both containers, or both are secure containers, or both are processes.
本申请所述的方法中,第一资源池和第二资源池可以位于同一台服务器中,也可以位于不同服务器中。In the method described in this application, the first resource pool and the second resource pool may be located in the same server, or may be located in different servers.
可以看到,本申请提出了一种资源管理框架,通过资源管理框架可以实现不同资源池中的资源之间的流动,例如可以实现用于处理计算业务的资源与用于处理存储业务的资源之间的流动,当用于处理一种业务所在资源池中的资源不足时,可以通过资源管理框架从处理另 一业务的资源池中调用资源至本资源池,作为本资源池的资源处理业务,无需重新启动应用服务,本申请提供的方法,合理利用资源,避免了资源的浪费,整个资源流动过程用户侧无感知,不影响业务的处理,提升了用户使用体验,且操作简单。It can be seen that this application proposes a resource management framework, through which the flow of resources in different resource pools can be realized, for example, the resource used to process computing services and the resources used to process storage services can be realized When the resources in the resource pool used to process one business are insufficient, resources can be transferred from the resource pool processing another business to this resource pool through the resource management framework, and used as the resource processing business of this resource pool. There is no need to restart the application service. The method provided by this application makes reasonable use of resources and avoids waste of resources. The user side has no perception during the entire resource flow process, does not affect business processing, improves user experience, and is easy to operate.
参见图6,图6为本申请提供的一种资源流动装置600的结构示意图,资源流动装置600包括:Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a resource flow device 600 provided by the present application. The resource flow device 600 includes:
资源管理框架610,用于将第一资源池中的目标资源归入第二资源池,其中,所述第一资源池中的资源用于供处理第一业务的容器、安全容器和进程中的一种或多种使用,所述第二资源池中的资源用于供处理第二业务的容器、安全容器和进程中的一种或多种使用。The resource management framework 610 is configured to classify the target resources in the first resource pool into the second resource pool, wherein the resources in the first resource pool are used for processing the first business container, security container, and process One or more uses, the resources in the second resource pool are used by one or more of the container processing the second service, the security container and the process.
在可能的实现方式中,所述第一业务为存储业务和计算业务中的其中一种,所述第二业务为所述存储业务和所述计算业务中的另一种。In a possible implementation manner, the first service is one of a storage service and a computing service, and the second service is the other of the storage service and the computing service.
在可能的实现方式中,所述目标资源包括处理器资源、存储器资源和网络资源中的一种或多种。In a possible implementation manner, the target resource includes one or more of processor resources, memory resources, and network resources.
在可能的实现方式中,所述第一资源池和所述第二资源池位于同一台服务器中。In a possible implementation manner, the first resource pool and the second resource pool are located in the same server.
在可能的实现方式中,所述资源管理框架610用于:在所述第一资源池中的目标资源中存在被占用的资源的情况下,将所述被占用的资源释放;将所述目标资源归入第二资源池。In a possible implementation manner, the resource management framework 610 is configured to: release the occupied resource if there is an occupied resource in the target resource in the first resource pool; Resources are grouped into the second resource pool.
在可能的实现方式中,所述资源管理框架610用于:在所述被占用的资源是被高优先级应用占用的情况下,将所述高优先级应用平移到所述第一资源池的空闲资源中。In a possible implementation manner, the resource management framework 610 is configured to: if the occupied resource is occupied by a high-priority application, translate the high-priority application to the first resource pool. in idle resources.
在可能的实现方式中,所述资源管理框架610用于:在所述被占用的资源是被低优先级应用占用的情况下,将所述低优先级应用删除或者将所述低优先级应用平移到所述第一资源池的空闲资源中。In a possible implementation, the resource management framework 610 is configured to: delete the low-priority application or delete the low-priority application when the occupied resource is occupied by the low-priority application Translate to idle resources in the first resource pool.
在可能的实现方式中,所述第一资源池中的应用形式为容器、安全容器,所述第二资源池中的应用形式为进程;或者,所述第一资源池中的应用形式为进程,所述第二资源池中的应用形式为容器、安全容器。In a possible implementation manner, the application form in the first resource pool is a container or a security container, and the application form in the second resource pool is a process; or, the application form in the first resource pool is a process , the application forms in the second resource pool are containers and secure containers.
在可能的实现方式中,所述装置600还包括:监测模块620,用于监测所述第一资源池中各个资源和/或所述第二资源池中各个资源的被占用情况。In a possible implementation manner, the apparatus 600 further includes: a monitoring module 620, configured to monitor the occupancy of each resource in the first resource pool and/or each resource in the second resource pool.
在可能的实现方式中,资源管理框架610包括:第一资源池管理组件、第二资源池管理组件和资源流动组件,其中,第一资源池管理组件用于管理第一资源池中的资源,第一资源池管理组件包括资源查询模块、流动接口模块、绑定/解绑模块,第二资源池管理组件用于管理第二资源池中的资源,具体包括资源查询模块、流动接口模块、绑定/解绑模块。资源流动组件用于与外部设备或外部模块进行通信,例如接收外部设备或外部模块发送的指令或通知,向外部设备或外部模块发送响应消息,等等。资源管理框架610中各个功能模块的具体功能、作用可参考图2中相关内容的描述,为了说明书的简洁,关于资源管理框架610中各个功能模块的具体作用在此不再赘述。In a possible implementation manner, the resource management framework 610 includes: a first resource pool management component, a second resource pool management component, and a resource flow component, wherein the first resource pool management component is used to manage resources in the first resource pool, The first resource pool management component includes a resource query module, a flow interface module, and a binding/unbinding module. The second resource pool management component is used to manage resources in the second resource pool, specifically including a resource query module, a flow interface module, a binding Bind/unbind modules. The resource flow component is used to communicate with external devices or external modules, such as receiving instructions or notifications sent by external devices or external modules, sending response messages to external devices or external modules, and so on. For the specific functions and functions of each functional module in the resource management framework 610, please refer to the description of related content in FIG. 2 .
图6中的各个功能模块用于实现图3方法实施例所述的步骤,具体可参见图2***架构及图3方法实施例中相关内容的描述,为了说明书的简洁在此不再赘述。Each functional module in FIG. 6 is used to implement the steps described in the method embodiment in FIG. 3 . For details, refer to the system architecture in FIG. 2 and the description of related content in the method embodiment in FIG. 3 , which will not be repeated here for the sake of brevity.
本申请还提供了一种资源流动设备,参见图7,图7为本申请提供的一种资源流动设备700的结构示意图,资源流动设备700可以为服务器,包括:处理器710、通信接口720以及存储器730。其中,处理器710、通信接口720以及存储器730可以通过内部总线740相互连接,也可通过无线传输等其他手段实现通信。The present application also provides a resource flow device, see FIG. 7, which is a schematic structural diagram of a resource flow device 700 provided in the present application. The resource flow device 700 may be a server, including: a processor 710, a communication interface 720 and memory 730 . Wherein, the processor 710, the communication interface 720, and the memory 730 may be connected to each other through the internal bus 740, and may also communicate through other means such as wireless transmission.
以通过总线740连接为例,总线740可以是外设组件互联(peripheral component interconnect,PCI)总线或工业标准结构(extended industry standard architecture,EISA)总线等。总线740可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Taking the connection through the bus 740 as an example, the bus 740 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or the like. The bus 740 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in FIG. 7 , but it does not mean that there is only one bus or one type of bus.
处理器710可以由至少一个通用处理器构成,例如CPU,或者CPU和硬件芯片的组合。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC)、可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD)、现场可编程逻辑门阵列(field-programmable gate array,FPGA)、通用阵列逻辑(generic array logic,GAL)或其任意组合。处理器710执行各种类型的数字存储指令,例如存储在存储器730中的软件或者固件程序,它能使资源流动设备700提供较宽的多种服务。The processor 710 may be composed of at least one general-purpose processor, such as a CPU, or a combination of a CPU and a hardware chip. The aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof. The processor 710 executes various types of digitally stored instructions, such as software or firmware programs stored in the memory 730, which enable the resource flow device 700 to provide a wide variety of services.
存储器730用于存储程序代码,并由处理器710来控制执行,以执行上述图3实施例所述的步骤,具体可以参考上述所示实施例的相关描述,此处不再展开赘述。The memory 730 is used to store program codes, and is controlled and executed by the processor 710 to execute the steps described in the embodiment of FIG. 3 above. For details, reference may be made to relevant descriptions of the above-mentioned embodiments, which will not be repeated here.
存储器730可以包括易失性存储器,例如RAM;存储器730也可以包括非易失性存储器,例如ROM、快闪存储器(flash memory);存储器730还可以包括上述种类的组合。The memory 730 may include a volatile memory, such as a RAM; the memory 730 may also include a nonvolatile memory, such as a ROM, or a flash memory (flash memory); and the memory 730 may also include a combination of the above types.
通信接口720可以为有线接口(例如以太网接口),可以为内部接口(例如高速串行计算机扩展总线(peripheral component interconnect express,PCIE)总线接口)、有线接口(例如以太网接口)或无线接口(例如蜂窝网络接口或使用无线局域网接口),用于与与其他设备或模块进行通信。The communication interface 720 can be a wired interface (such as an Ethernet interface), an internal interface (such as a high-speed serial computer expansion bus (peripheral component interconnect express, PCIE) bus interface), a wired interface (such as an Ethernet interface) or a wireless interface ( such as a cellular network interface or using a wireless LAN interface) for communicating with other devices or modules.
需要说明的,图7仅仅是本申请实施例的一种可能的实现方式,实际应用中,资源流动设备还可以包括更多或更少的部件,这里不作限制。关于本申请实施例中未示出或未描述的内容,可参见前述方法所述实施例中的相关阐述,这里不再赘述。It should be noted that FIG. 7 is only a possible implementation of the embodiment of the present application. In practical applications, the resource flow device may include more or fewer components, which is not limited here. Regarding the content that is not shown or described in the embodiment of the present application, refer to the relevant explanation in the embodiment of the foregoing method, and details are not repeated here.
本申请还提供了一种计算机可读存储介质,包括计算机程序指令,当所述计算机程序指令由资源流动设备执行时,所述资源流动设备执行上述资源流动方法实施例中所描述的部分或全部步骤。The present application also provides a computer-readable storage medium, including computer program instructions. When the computer program instructions are executed by the resource flow device, the resource flow device executes part or all of the above resource flow method embodiments. step.
本申请还提供了一种计算机程序产品,包括程序指令,当所述程序指令被资源流动设备运行时,使得资源流动设备执行上述资源流动方法实施例中所描述的部分或全部步骤。The present application also provides a computer program product, including program instructions. When the program instructions are executed by the resource flow device, the resource flow device executes some or all of the steps described in the resource flow method embodiments above.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品可以包含代码。当计算机程序产品被计算机读取并执行时,可以实现上述方法实施例中记载的渲染方法的部分或者全部步骤。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如软盘、硬盘、磁带)、光介质、或者半导体介质等。In the above-mentioned embodiments, all or part may be implemented by software, hardware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product may comprise code. When the computer program product is read and executed by the computer, some or all steps of the rendering method described in the above method embodiments can be realized. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium, or a semiconductor medium.
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并或删减;本申请实施 例装置中的单元可以根据实际需要进行划分、合并或删减。The steps in the method of the embodiment of the present application can be adjusted in order, merged or deleted according to actual needs; the units in the device of the embodiment of the present application can be divided, combined or deleted according to actual needs.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for Those skilled in the art will have changes in specific implementation methods and application scopes based on the ideas of the present application. In summary, the contents of this specification should not be construed as limiting the present application.

Claims (18)

  1. 一种资源流动方法,其特征在于,包括:A resource flow method, characterized by comprising:
    将第一资源池中的目标资源归入第二资源池,其中,所述第一资源池中的资源用于供处理第一业务的容器、安全容器和进程中的一种或多种使用,所述第二资源池中的资源用于供处理第二业务的容器、安全容器和进程中的一种或多种使用。Classifying the target resources in the first resource pool into the second resource pool, wherein the resources in the first resource pool are used for one or more of the container processing the first business, the security container and the process, The resources in the second resource pool are used by one or more of the container processing the second service, the security container and the process.
  2. 根据权利要求1所述的方法,其特征在于,所述第一业务为存储业务和计算业务中的其中一种,所述第二业务为所述存储业务和所述计算业务中的另一种。The method according to claim 1, wherein the first service is one of a storage service and a computing service, and the second service is the other of the storage service and the computing service .
  3. 根据权利要求1或2所述的方法,其特征在于,所述目标资源包括处理器资源、存储器资源和网络资源中的一种或多种。The method according to claim 1 or 2, wherein the target resources include one or more of processor resources, memory resources and network resources.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述第一资源池和所述第二资源池位于同一台服务器中。The method according to any one of claims 1 to 3, wherein the first resource pool and the second resource pool are located in the same server.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述将第一资源池中的目标资源归入第二资源池,包括:The method according to any one of claims 1 to 4, wherein the classifying the target resources in the first resource pool into the second resource pool includes:
    在所述第一资源池中的目标资源中存在被占用的资源的情况下,将所述被占用的资源释放;If there are occupied resources among the target resources in the first resource pool, release the occupied resources;
    将所述目标资源归入第二资源池。Classify the target resource into the second resource pool.
  6. 根据权利要求5所述的方法,其特征在于,The method according to claim 5, characterized in that,
    在所述被占用的资源是被高优先级应用占用的情况下,将所述高优先级应用平移到所述第一资源池的空闲资源中。If the occupied resource is occupied by a high-priority application, the high-priority application is shifted to idle resources of the first resource pool.
  7. 根据权利要求5所述的方法,其特征在于,The method according to claim 5, characterized in that,
    在所述被占用的资源是被低优先级应用占用的情况下,将所述低优先级应用删除或者将所述低优先级应用平移到所述第一资源池的空闲资源中。If the occupied resource is occupied by a low-priority application, the low-priority application is deleted or the low-priority application is shifted to idle resources of the first resource pool.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述第一资源池中的应用形式为容器、安全容器,所述第二资源池中的应用形式为进程;或者,所述第一资源池中的应用形式为进程,所述第二资源池中的应用形式为容器、安全容器。The method according to any one of claims 1-7, wherein the application forms in the first resource pool are containers and secure containers, and the application forms in the second resource pool are processes; or, the The application forms in the first resource pool are processes, and the application forms in the second resource pool are containers and secure containers.
  9. 一种资源流动装置,其特征在于,包括:A resource flow device, characterized in that it comprises:
    资源管理框架,用于将第一资源池中的目标资源归入第二资源池,其中,所述第一资源池中的资源用于供处理第一业务的容器、安全容器和进程中的一种或多种使用,所述第二资源池中的资源用于供处理第二业务的容器、安全容器和进程中的一种或多种使用。A resource management framework, configured to classify target resources in the first resource pool into a second resource pool, wherein the resources in the first resource pool are used for one of the container, the security container, and the process for processing the first service One or more types of use, the resources in the second resource pool are used for one or more use of the container processing the second service, the security container and the process.
  10. 根据权利要求9所述的装置,其特征在于,所述第一业务为存储业务和计算业务中的其中一种,所述第二业务为所述存储业务和所述计算业务中的另一种。The device according to claim 9, wherein the first service is one of a storage service and a computing service, and the second service is the other of the storage service and the computing service .
  11. 根据权利要求9或10所述的装置,其特征在于,所述目标资源包括处理器资源、存储器资源和网络资源中的一种或多种。The device according to claim 9 or 10, wherein the target resources include one or more of processor resources, memory resources and network resources.
  12. 根据权利要求9至11任一项所述的装置,其特征在于,所述第一资源池和所述第二资源池位于同一台服务器中。The device according to any one of claims 9 to 11, wherein the first resource pool and the second resource pool are located in the same server.
  13. 根据权利要求9至12任一项所述的装置,其特征在于,所述资源管理框架用于:The device according to any one of claims 9 to 12, wherein the resource management framework is used for:
    在所述第一资源池中的目标资源中存在被占用的资源的情况下,将所述被占用的资源释放;If there are occupied resources among the target resources in the first resource pool, release the occupied resources;
    将所述目标资源归入第二资源池。Classify the target resource into the second resource pool.
  14. 根据权利要求13所述的装置,其特征在于,所述资源管理框架用于:The device according to claim 13, wherein the resource management framework is used for:
    在所述被占用的资源是被高优先级应用占用的情况下,将所述高优先级应用平移到所述 第一资源池的空闲资源中。If the occupied resource is occupied by a high-priority application, shift the high-priority application to idle resources in the first resource pool.
  15. 根据权利要求13所述的装置,其特征在于,所述资源管理框架用于:The device according to claim 13, wherein the resource management framework is used for:
    在所述被占用的资源是被低优先级应用占用的情况下,将所述低优先级应用删除或者将所述低优先级应用平移到所述第一资源池的空闲资源中。If the occupied resource is occupied by a low-priority application, the low-priority application is deleted or the low-priority application is shifted to idle resources of the first resource pool.
  16. 根据权利要求9-15任一项所述的装置,其特征在于,所述第一资源池中的应用形式为容器、安全容器,所述第二资源池中的应用形式为进程;或者,所述第一资源池中的应用形式为进程,所述第二资源池中的应用形式为容器、安全容器。The device according to any one of claims 9-15, wherein the application form in the first resource pool is a container or a security container, and the application form in the second resource pool is a process; or, the The application forms in the first resource pool are processes, and the application forms in the second resource pool are containers and secure containers.
  17. 一种资源流动设备,其特征在于,包括存储器和处理器,所述存储器用于存储指令,所述处理器用于调用所述存储器中存储的指令执行如权利要求1至8任一项所述的方法。A resource flow device, characterized in that it includes a memory and a processor, the memory is used to store instructions, and the processor is used to call the instructions stored in the memory to execute the method described in any one of claims 1 to 8 method.
  18. 一种计算机可读存储介质,其特征在于,包括程序指令,当所述程序指令被计算机运行时,使得所述计算机执行如权利要求1至8任一项所述的方法。A computer-readable storage medium, characterized by comprising program instructions, which, when executed by a computer, cause the computer to execute the method according to any one of claims 1 to 8.
PCT/CN2023/071611 2022-01-27 2023-01-10 Resource flow method, apparatus and device WO2023143057A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210099460.9 2022-01-27
CN202210099460.9A CN116560822A (en) 2022-01-27 2022-01-27 Resource flow method, device and equipment

Publications (1)

Publication Number Publication Date
WO2023143057A1 true WO2023143057A1 (en) 2023-08-03

Family

ID=87470428

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/071611 WO2023143057A1 (en) 2022-01-27 2023-01-10 Resource flow method, apparatus and device

Country Status (2)

Country Link
CN (1) CN116560822A (en)
WO (1) WO2023143057A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030061262A1 (en) * 2001-09-25 2003-03-27 Hahn Stephen C. Method and apparatus for partitioning resources within a computer system
CN102279771A (en) * 2011-09-02 2011-12-14 北京航空航天大学 Method and system for adaptively allocating resources as required in virtualization environment
US20180176785A1 (en) * 2016-12-19 2018-06-21 Acer Incorporated Method and communications device for dynamically allocating resources
CN110457135A (en) * 2019-08-09 2019-11-15 重庆紫光华山智安科技有限公司 A kind of method of resource regulating method, device and shared GPU video memory
CN112948113A (en) * 2021-03-01 2021-06-11 上海微盟企业发展有限公司 Cluster resource management scheduling method, device, equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030061262A1 (en) * 2001-09-25 2003-03-27 Hahn Stephen C. Method and apparatus for partitioning resources within a computer system
CN102279771A (en) * 2011-09-02 2011-12-14 北京航空航天大学 Method and system for adaptively allocating resources as required in virtualization environment
US20180176785A1 (en) * 2016-12-19 2018-06-21 Acer Incorporated Method and communications device for dynamically allocating resources
CN110457135A (en) * 2019-08-09 2019-11-15 重庆紫光华山智安科技有限公司 A kind of method of resource regulating method, device and shared GPU video memory
CN112948113A (en) * 2021-03-01 2021-06-11 上海微盟企业发展有限公司 Cluster resource management scheduling method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN116560822A (en) 2023-08-08

Similar Documents

Publication Publication Date Title
US11456930B2 (en) Network resource management method, apparatus, and system
EP3512233B1 (en) Method for managing network slice and management unit
EP3800926B1 (en) Alarm method and device
EP3291499B1 (en) Method and apparatus for network service capacity expansion
US10924966B2 (en) Management method, management unit, and system
JP2017503421A (en) Network function virtualized NFV failure management apparatus, device, and method
US20190268213A1 (en) Network function management method, management unit, and system
US11088924B2 (en) Network management method, device, and system
JP2019534643A (en) Network slice management method, management unit, and system
CN111245634B (en) Virtualization management method and device
CN112789832A (en) Dynamic slice priority handling
WO2021057378A1 (en) Vnf instantiation method, nfvo, vim, vnfm and system
EP3470983A1 (en) Method, system and computer readable medium to allocate resources to at least one application
WO2020108337A1 (en) Cpu resource scheduling method and electronic equipment
CN109076027B (en) Network service request
WO2023143057A1 (en) Resource flow method, apparatus and device
CN114979286B (en) Access control method, device, equipment and computer storage medium for container service
WO2019052363A1 (en) Method and apparatus for modifying network slice instance
US11366648B2 (en) Compiling monoglot function compositions into a single entity
US11768704B2 (en) Increase assignment effectiveness of kubernetes pods by reducing repetitive pod mis-scheduling
WO2022141293A1 (en) Elastic scaling method and apparatus
CN113098705B (en) Authorization method and device for life cycle management of network service
CN110417568B (en) NFV strategy negotiation method and system
WO2023147882A1 (en) Version-dependency information for management of a network service
WO2022111173A1 (en) Network slice access method, device, and system, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23745940

Country of ref document: EP

Kind code of ref document: A1