CN114356584A - Cloud server migration and resource management method and device and storage medium - Google Patents

Cloud server migration and resource management method and device and storage medium Download PDF

Info

Publication number
CN114356584A
CN114356584A CN202210042799.5A CN202210042799A CN114356584A CN 114356584 A CN114356584 A CN 114356584A CN 202210042799 A CN202210042799 A CN 202210042799A CN 114356584 A CN114356584 A CN 114356584A
Authority
CN
China
Prior art keywords
resource
host
resources
cloud server
over
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210042799.5A
Other languages
Chinese (zh)
Inventor
彭飞
蔡俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210042799.5A priority Critical patent/CN114356584A/en
Publication of CN114356584A publication Critical patent/CN114356584A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The embodiment of the invention provides a cloud server migration and resource management method, a cloud server migration and resource management device and a storage medium. The cloud server migration method comprises the following steps: acquiring the computing resource state of each host, wherein the computing resource state indicates unallocated resources and allocated resources; determining the over-allocatable resources of each host when the unallocated resources do not meet the resource requirements of the cloud servers in the failed host; determining a target host machine which can excessively distribute resources to meet the resource requirement; and migrating the cloud server from the fault host to the target host. The scheme of the embodiment of the invention improves the utilization efficiency of the allocated resources of the target host, avoids the influence on the resource use of the target host, can allocate the resources in excess, does not need to be additionally deployed, and is favorable for the rapid and reliable migration of the cloud server.

Description

Cloud server migration and resource management method and device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of cloud computing, in particular to a cloud server migration and resource management method, a cloud server migration and resource management device and a storage medium.
Background
Cloud computing services are a completely new infrastructure, usage and delivery model. In the cloud computing service, a virtual machine can be obtained from a physical machine through a server virtualization technology, and the virtual machine is used as an application server and provided for users or enterprises to use, so that finer-grained resource utilization is realized, and the overall data processing efficiency is improved. Compared with the traditional physical machine, the cloud server serving as the virtual machine is deployed in the host machine serving as the physical machine, so that the deployment process is more convenient and quicker.
When a host where the cloud server is located fails, the cloud server needs to be migrated to other normally operating hosts. If the resources of the normally running host are insufficient, the cloud server migration will fail. Therefore, a reliable cloud service migration scheme is needed.
Disclosure of Invention
Embodiments of the present invention provide a cloud server migration and resource management method, apparatus, and storage medium to at least partially solve the above problem.
According to a first aspect of the embodiments of the present invention, there is provided a cloud server migration method, including: acquiring a computing resource state of each host, wherein the computing resource state indicates unallocated resources and allocated resources; determining an over-allocatable resource of each host when the unallocated resource does not meet a computing resource requirement of a cloud server in a failed host, the over-allocatable resource comprising at least a portion of the allocated resource; determining a target host machine which can over-allocate resources to meet the resource demand; migrating the cloud server from the failed host to the target host.
According to a second aspect of the embodiments of the present invention, a resource management method is provided. The resource management method comprises the following steps: acquiring a current computing resource state of a host, wherein the computing resource state indicates unallocated resources and allocated resources; reporting the current computing resource state of the host machine; acquiring a cloud server to be migrated to the host; operating the cloud server based on the over-allocatable resource of the allocated resources.
According to a third aspect of the embodiments of the present invention, there is provided a cloud server migration apparatus, including: the acquisition module acquires the computing resource state of each host, wherein the computing resource state indicates unallocated resources and allocated resources; a first determining module, configured to determine an over-allocatable resource of each host when the unallocated resource does not meet a resource requirement of a cloud server in a faulty host, where the over-allocatable resource includes at least a part of allocated resources; a second determining module, for determining a target host machine which can over-allocate resources to meet the resource demand; and the migration module is used for migrating the cloud server from the fault host to the target host.
According to a fourth aspect of the embodiments of the present invention, there is provided a resource management apparatus, including: the first acquisition module is used for acquiring the current computing resource state of the host, wherein the computing resource state indicates unallocated resources and allocated resources; the reporting module reports the current computing resource state of the host machine; the second acquisition module is used for acquiring the cloud server to be migrated to the host machine; and the operation module operates the cloud server based on the allocable resources in the allocated resources.
According to a fifth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the corresponding operation of the method according to the first aspect or the second aspect.
According to a sixth aspect of embodiments of the present invention, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements a method according to the first or second aspect.
In the scheme of the embodiment of the invention, the resource capable of being over-distributed can be used for the cloud server except the cloud server of the distributed resource in the target host, so that the utilization efficiency of the distributed resource of the target host is improved, and the influence on the resource use of the target host is avoided. In addition, the resources which can be allocated in an excessive manner belong to the allocated resources, additional deployment is not needed, and rapid and reliable migration of the cloud server is facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present invention, and it is also possible for a person skilled in the art to obtain other drawings based on the drawings.
FIG. 1 is a diagram of a system architecture for an example cloud service migration.
Fig. 2 is a flowchart illustrating steps of a cloud server migration method according to an embodiment of the present invention.
FIG. 3 is a flowchart illustrating steps of a resource management method according to another embodiment of the present invention.
FIG. 4A is a diagram illustrating resource states of a host according to another embodiment of the invention.
FIG. 4B is a diagram illustrating resource states of hosts according to another embodiment of the present invention.
Fig. 4C is a schematic diagram of a cloud service system according to another embodiment of the present invention.
Fig. 5 is a block diagram illustrating a configuration of a cloud server migration apparatus according to another embodiment of the present invention.
Fig. 6 is a block diagram of a resource management device according to another embodiment of the invention.
Fig. 7 is a schematic structural diagram of an electronic device according to another embodiment of the invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention shall fall within the scope of the protection of the embodiments of the present invention.
The following further describes specific implementation of the embodiments of the present invention with reference to the drawings.
FIG. 1 is a diagram of a network architecture to which an example cloud service migration is applicable. In the system architecture of fig. 1, the cloud service deployment center 110 and the hosts 120 as physical machines are exemplarily shown, and each of the hosts 1 to N is an example of the host 120, generally speaking, the number of hosts is plural, and one or more virtual machines may be deployed in each host, and such virtual machines may be implemented by using a virtual technology such as JAVA virtual machine, and in the cloud service architecture, the virtual machines are implemented as cloud servers. Each cloud server in different hosts may perform distributed computing through a communication interface between hosts, or between different cloud servers. It should be understood that each cloud server does not necessarily communicate with any other cloud server.
It should be understood that although in this example, the cloud service deployment center 110 is presented as a device external to the hosts 120, the functions of the cloud service deployment center 110 may be deployed in the hosts 120 or other hosts like a cloud server, may be installed in a physical machine as a software program, or may be installed in at least one host 120 as a software program.
It should also be understood that cloud service deployment center 110 is used to create, manage, monitor, or destroy cloud servers in each host 120.
As an example, cloud servers 1 and X as virtual machines are operated in the host 1, and a cloud server 3 is operated in the host 3. When the host 1 fails, the cloud server 1 and the X need to be migrated to other hosts. For example, if the resources in host 3 are sufficient to run cloud server X, then cloud server X is migrated from host 1 to host 3.
It should be understood that cloud server 1 may be further migrated to host 3 if the resources in host 3 are sufficient to run server 1. Generally, all cloud servers in a failed host need to be migrated to other hosts, and when a plurality of cloud servers are stored, the cloud servers may be migrated to the same host or to different hosts. If the resources are in shortage after the host computer is in failure, but partial cloud servers can still be operated, only the partial cloud servers can be migrated.
The cloud service deployment center 110 executes the migration of the cloud server, and the fault tolerance of the cloud service is greatly improved. However, the timely migration of cloud services in a faulty host is a critical problem that needs to be solved urgently at present.
Fig. 2 is a flowchart illustrating steps of a cloud server migration method according to an embodiment of the present invention. The cloud service migration method of this embodiment may be implemented by the cloud service deployment center 110 in fig. 1. Each host in this embodiment may be the host 120 in fig. 1.
The cloud server migration method of the embodiment comprises the following steps:
s210: and acquiring the computing resource state of each host, wherein the computing resource state indicates unallocated resources and allocated resources.
It should be understood that the computing resource state of a host may be a local computing resource state, each host may be configured with a reporting module for reporting the computing resource state, and the reporting module may be implemented as a proxy for cloud server migration. The computing resource status may include an indicator indicating unallocated and allocated resources, e.g., a proportion of used resources, a proportion of available resources, etc.
S220: when the unallocated resources do not meet the resource requirements of the cloud servers in the failed hosts, determining the over-allocable resources of each host, wherein the over-allocable resources at least comprise part of the allocated resources.
It should be understood that the resource requirements of the cloud server may include requirements for shared resources, as well as requirements for non-shared resources. As an example, if the non-shared resource in the unallocated resource does not satisfy the resource requirement, it may be directly determined that the resource may be over-allocated, and if the non-shared resource in the unallocated resource satisfies the resource requirement, it may be determined whether the shared resource in the unallocated resource satisfies the resource requirement.
It should also be appreciated that, in one example, the over-allocated resources of the respective hosts include allocated resources of the respective hosts. In another example, the over-allocated resources of each host include allocated resources and partially unallocated resources of each host.
S230: a target host that can over-allocate resources to meet the resource demand is determined.
It should be understood that the target host may be one host or may be a plurality of hosts. When there are a plurality of cloud servers in the failed host, a target host corresponding to each cloud server may be determined at most.
S240: and migrating the cloud server from the fault host to the target host.
It should be understood that each host may be configured with a migration module for cloud server migration, and the migration module may be implemented as an agent. The migration module and the report module can be configured in the same agent program or different agent programs. The agent program can communicate with the cloud service deployment center, and accordingly the cloud service deployment center obtains the computing resource state of each host, determines whether each host runs normally or fails, determines a target host, and executes migration of the cloud server. The cloud service deployment center can send the migration instruction through the agent program of the fault host or the target host.
In the scheme of the embodiment of the invention, the resource capable of being over-distributed can be used for the cloud server except the cloud server of the distributed resource in the target host, so that the utilization efficiency of the distributed resource of the target host is improved, and the influence on the resource use of the target host is avoided. In addition, the resources which can be allocated in an excessive manner belong to the allocated resources, additional deployment is not needed, and rapid and reliable migration of the cloud server is facilitated.
In other examples, determining an over-allocable resource among the allocated resources of the respective hosts comprises: determining shared resources corresponding to the allocated resources of each host; an over-allocatable resource for the shared resource of each host is determined. Although the shared resources are already allocated to the cloud servers already running in the hosts, the shared resources facilitate the execution of resource over-allocation, so that the efficiency of judging the over-allocatable resources is improved, and the migration of the cloud servers in the failed hosts is further facilitated. In particular, shared resources may also be considered compressible resources, which can be shared among different cloud servers. More specifically, the shared resource may be shared by a plurality of cloud servers in the target host before the cloud server migration, or may be shared by these cloud servers and the cloud server after the migration. The shared resource includes, but is not limited to, a resource related to a processor (e.g., CPU) of a host, a communication bandwidth, which includes a communication bandwidth of a bus within the host, and a communication bandwidth for data transmission between different hosts.
In other examples, determining the over-allocatable resources for the shared resources of the respective hosts comprises: determining the load state of the shared resources of each host; determining the over-allocatable resource based on the load status of the shared resource. The load state can reflect the occupation state of the shared resource, so that the efficiency of judging the resource which can be over-distributed is improved. Specifically, load states include, but are not limited to, processor usage, disk I/O usage, network bandwidth utilization.
In other examples, determining a target host that can over-allocate resources to meet the resource demand includes: determining non-shared resources in unallocated resources in each host; and determining a host machine of which the non-shared resource and the over-allocatable resource both meet the resource requirement as a target host machine. Specifically, it is critical whether the resource demand of the cloud server can be met by the over-allocable resource as the allocated resource, but if the resource demand of the cloud service cannot be met by the non-shared resource as the unallocated resource, the operation reliability of the cloud server in the target host is poor, and performance competition with other cloud servers in the target host occurs. The host machine with the unshared resources and the over-allocatable resources meeting the resource requirements can provide enough computing resources for the cloud server to be migrated, and the operational reliability of the cloud server after migration is guaranteed.
It should be understood that non-shared resources may also be referred to as non-compressible resources, including but not limited to memory resources, hard disk resources, and the like storage resources. More specifically, the non-shared resources include memory usage, disk inode usage, thread number, and the like.
In other examples, the resource requirements of the cloud server include shared resource requirements and non-shared resource requirements. The non-shared resource of the target host is not less than the non-shared resource requirement of the cloud server. The shared resources of the target host are not less than the shared resource requirements of the cloud server. The non-shared resource requirement and the shared resource requirement of the cloud server can be met in the target host, so that the operation reliability of the cloud server in the target host is improved.
In some other examples, the cloud server migration method further comprises: when a fault host is found, whether the unallocated resources of each host meet the resource requirements of the cloud server in the fault host is judged. Therefore, the resource requirement of the cloud server is prevented from being determined prematurely before the failed host is found, and when the failed host does not occur, the computing resources related to the resource requirement computing can be saved.
Alternatively, it may also be determined in real time whether the unallocated resources of each host meet the resource demand of the cloud server, or the unallocated resources of each host are periodically calculated based on the first period. As an example, the computing resource status of each host may be periodically obtained based on a second time period, where the second time period is smaller than the first time period, so that when a failed host is found, whether to perform migration of the cloud server can be timely determined, and meanwhile, the above determination process is also avoided being performed based on the first time period, thereby saving computing resources related to resource demand computation.
In some other examples, the cloud server migration method further comprises: and if the unallocated resources of the target host machine meet the resource requirements of the cloud server, migrating the cloud server in the failed host machine to the target host machine. If the unallocated resources of the target host machine meet the resource requirements of the cloud server, the resource requirements of the cloud server can be met without excessively allocating the allocated resources, so that the cloud server can be migrated in time, and the migration flexibility of the cloud server is improved.
In the above examples, various situations of the cloud service migration method are described in detail, and accordingly, each host may execute the step flow of the resource management method described in fig. 3. Specifically, the resource management method of fig. 3 includes:
s310: and acquiring the current computing resource state of the host, wherein the computing resource state indicates unallocated resources and allocated resources.
It should be appreciated that the computing resource status of the host may be monitored in real-time, e.g., based on the second time period, to obtain the current computing resource status.
S320: and reporting the current computing resource state of the host.
It should be appreciated that the current computing resource status may be reported in real-time, e.g., based on the second time period.
S330: and acquiring the cloud server to be migrated to the host.
It should be appreciated that the cloud server may be obtained according to the cloud server migration instruction.
S340: the cloud server is operated based on the over-allocable ones of the allocated resources.
It should be appreciated that the cloud server may be configured based on the over-allocable resources and then started.
In the scheme of the embodiment of the invention, the resource capable of being over-distributed can be used for the cloud server except the cloud server of the distributed resource in the target host, so that the utilization efficiency of the distributed resource of the target host is improved, and the influence on the resource use of the target host is avoided. In addition, the resources which can be allocated in an excessive manner belong to the allocated resources, additional deployment is not needed, and rapid and reliable migration of the cloud server is facilitated.
In other examples, the resource management method further comprises: the current computing resource state is updated based on the over-allocatable resources.
FIG. 4A is a diagram illustrating resource states of a host according to another embodiment of the invention. In this embodiment, host 420 includes both non-shared resources and shared resources. For shared resources, the shaded portion represents the proportion of the allocated resources occupied by the occupied resources, and for non-shared resources, the shaded portion represents the proportion of the allocated resources.
The non-shared resources are not fully allocated and may be further allocated to other cloud servers. Although the shared resources can be allocated to other cloud servers, at least part of the allocated resources of the shared resources in this embodiment are fully occupied, and the shared resources are still unavailable to other cloud servers.
Thus, it is not appropriate to migrate the cloud server to the host of the present embodiment.
FIG. 4B is a diagram illustrating resource states of hosts according to another embodiment of the present invention. In this embodiment, host 420 includes both non-shared resources and shared resources. For shared resources, the shaded portion represents the proportion of the allocated resources occupied by the occupied resources, and for non-shared resources, the shaded portion represents the proportion of the allocated resources.
The non-shared resources are not fully allocated and may be further allocated to other cloud servers. Moreover, the shared resources in the present embodiment can be allocated to other cloud servers by over-allocation. Thus, the cloud server can be migrated to the host of the present embodiment.
Fig. 4C is a schematic diagram of a cloud service system according to another embodiment of the present invention. In this embodiment, the cloud service system includes a downtime detecting/migrating unit 111, a resource level controlling unit 112, and a host 420. The downtime detecting/migrating unit 111 and the resource level controlling unit 112 may be configured in the cloud service deployment center 110.
Specifically, the host 420 includes a downtime detection/migration module, a resource load monitoring module, and a plurality of cloud servers. The downtime detection/migration module can be realized as the agent program, and the resource load monitoring module can also be realized as the agent program. The plurality of cloud servers are implemented as virtual machines VM 1-3.
In addition, the downtime detection is used for detecting whether the host works normally or has a fault. The resource level control unit is used for controlling the resource which can be over-distributed in the shared resource.
It should be understood that the level of non-shared resources indicates an amount of a shared resource among the allocated resources, and the level of shared resources indicates an amount of a shared resource among the allocated resources, including the over-allocatable resource. The resource amount is an index for determining the resource demand.
It should also be understood that different unshared resource levels may be allocated and different shared resource levels may be determined separately, e.g., 80% CPU usage and 1000M bps average network bandwidth footprint. When the water level of different non-shared resources and different shared resources meet the resource requirements of the cloud server, more reliable migration of the cloud server can be executed.
The downtime detection/migration unit 111 is configured to acquire the computing resource state reported by each host 420 through the resource load monitoring module, and then determine whether the resource of each host 420 matches the resource requirement of the cloud server in the faulty host, so as to obtain a target host.
Further, the downtime detection/migration unit 111 executes migration control through the target host or a downtime detection/migration module in the faulty host, and migrates the cloud server from the faulty host to the target host.
In other examples, when determining the target host, the migration order of the plurality of cloud servers may be determined according to resource requirements of the plurality of cloud servers, and may be further determined based on service priorities of the plurality of cloud servers, where the higher the service priority is, the earlier the migration order is.
In other examples, the target host may be a group of hosts corresponding to a plurality of cloud servers, more hosts may be determined as much as possible, and preferably, a different host is determined for each cloud server, so as to add as few cloud servers as possible to the hosts that have already been operating normally.
In other examples, under the current cloud server deployment condition, when there is no host that meets the resource requirement of at least one cloud server of the plurality of cloud servers, the cloud servers of the normally operating hosts are redeployed, so that there is a host that meets the resource requirement. For example, in a group of hosts that are target hosts, the over-allocated resources in the allocated resources of any host are not sufficient to meet the resource requirements of the first cloud server of the failed host. The group of hosts comprises a first host and a second host, the over-allocation resources of the first host meet the resource requirements of a second cloud server in the second host, and the sum of the resource requirements of a second server in the second host and the over-allocation resources meets the resource requirements of the first cloud server, so that the second server can be migrated to the first host from the second host, and then the first cloud server is migrated to the second host from a failed host.
The migration of the cloud server in the above example involves a failed host, a first host and a second host, and it should be understood that more hosts may be involved, so that the migration of the cloud server is implemented as much as possible without increasing the hosts.
In other examples, a new host may be deployed after the cloud server is migrated from a failed host to a target host, and the cloud server may be further migrated from the target host to the new host after the new host deployment is completed.
Alternatively, after the cloud server is migrated from the failed host to the target host, maintenance may be performed on the failed host, and after troubleshooting of the failed host, the cloud server may be migrated from the target host back to the host after troubleshooting.
Fig. 5 is a block diagram illustrating a configuration of a cloud server migration apparatus according to another embodiment of the present invention. The cloud server migration apparatus of fig. 5 includes:
the obtaining module 510 obtains a computing resource status of each host, where the computing resource status indicates unallocated resources and allocated resources.
The first determining module 520 determines the over-allocatable resources of each host when the unallocated resources do not meet the resource requirement of the cloud server in the failed host, where the over-allocatable resources at least include part of the allocated resources.
A second determination module 530 determines a target host that can over-allocate resources to meet the resource demand.
A migration module 540, configured to migrate the cloud server from a failed host to the target host.
In the scheme of the embodiment of the invention, the resource capable of being over-distributed can be used for the cloud server except the cloud server of the distributed resource in the target host, so that the utilization efficiency of the distributed resource of the target host is improved, and the influence on the resource use of the target host is avoided. In addition, the resources which can be allocated in an excessive manner belong to the allocated resources, additional deployment is not needed, and rapid and reliable migration of the cloud server is facilitated.
In other examples, the first determining module is specifically configured to: determining shared resources corresponding to the allocated resources of each host; determining an over-allocatable resource for the shared resources of the respective hosts.
In other examples, the first determining module is specifically configured to: determining the load state of the shared resources of each host; and determining the resource capable of being over-distributed according to the load state of the shared resource.
In other examples, the second determination module is specifically configured to: determining non-shared resources in the unallocated resources in each host; and determining a host machine which meets the resource requirement by the non-shared resource and the over-allocatable resource as a target host machine.
In other examples, the resource requirements of the cloud server include shared resource requirements and non-shared resource requirements. The non-shared resource of the target host is not less than the non-shared resource requirement of the cloud server. And the shared resource of the target host is not less than the shared resource requirement of the cloud server.
In other examples, the cloud service migration apparatus further includes: and the judging module is used for judging whether the unallocated resources of each host meet the resource requirements of the cloud server when the failed host is found.
In other examples, the migration module is further to: and if the unallocated resources of the target host machine meet the resource requirements of the cloud server, migrating the cloud server in the failed host machine to the target host machine.
The apparatus of this embodiment is used to implement the corresponding method in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again. In addition, the functional implementation of each module in the apparatus of this embodiment can refer to the description of the corresponding part in the foregoing method embodiment, and is not described herein again.
Fig. 6 is a block diagram of a resource management device according to another embodiment of the invention. The resource management apparatus of fig. 6 includes:
the first obtaining module 610 obtains a current computing resource status of the host, where the computing resource status indicates unallocated resources and allocated resources.
And a reporting module 620, configured to report the current computing resource state of the host.
The second obtaining module 630 obtains the cloud server to be migrated to the host.
An operation module 640 operates the cloud server based on the over-allocable ones of the allocated resources.
In the scheme of the embodiment of the invention, the resource capable of being over-distributed can be used for the cloud server except the cloud server of the distributed resource in the target host, so that the utilization efficiency of the distributed resource of the target host is improved, and the influence on the resource use of the target host is avoided. In addition, the resources which can be allocated in an excessive manner belong to the allocated resources, additional deployment is not needed, and rapid and reliable migration of the cloud server is facilitated.
In other examples, the resource management method further comprises: an update module that updates the current computing resource state based on the over-allocatable resource.
The apparatus of this embodiment is used to implement the corresponding method in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again. In addition, the functional implementation of each module in the apparatus of this embodiment can refer to the description of the corresponding part in the foregoing method embodiment, and is not described herein again.
Referring to fig. 7, a schematic structural diagram of an electronic device according to another embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 7, the electronic device may include: a processor (processor)702, a Communications Interface 704, a memory 706, and a communication bus 708.
Wherein: the processor 702, communication interface 704, and memory 706 communicate with each other via a communication bus 708.
A communication interface 704 for communicating with other electronic devices or servers.
The processor 702 is configured to execute the program 710, and may specifically execute the relevant steps in the foregoing method embodiments.
In particular, the program 710 may include program code that includes computer operating instructions.
The processor 702 may be a processor CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The intelligent device comprises one or more processors which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
The memory 706 stores a program 710. The memory 706 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 710 may specifically be used to cause the processor 702 to perform the following operations: acquiring a computing resource state of each host, wherein the computing resource state indicates unallocated resources and allocated resources; determining an over-allocatable resource of each host when the unallocated resource does not meet a computing resource requirement of a cloud server in a failed host, the over-allocatable resource comprising at least a portion of the allocated resource; determining a target host machine which can over-allocate resources to meet the resource demand; migrating the cloud server from the failed host to the target host.
Alternatively, the program 710 may be specifically configured to cause the processor 702 to perform the following operations: acquiring a current computing resource state of a host, wherein the computing resource state indicates unallocated resources and allocated resources; reporting the current computing resource state of the host machine; acquiring a cloud server to be migrated to the host; operating the cloud server based on the over-allocatable resource of the allocated resources.
In addition, for specific implementation of each step in the program 710, reference may be made to corresponding steps and corresponding descriptions in units in the foregoing method embodiments, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
It should be noted that, according to the implementation requirement, each component/step described in the embodiment of the present invention may be divided into more components/steps, and two or more components/steps or partial operations of the components/steps may also be combined into a new component/step to achieve the purpose of the embodiment of the present invention.
The above-described method according to an embodiment of the present invention may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein may be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware such as an ASIC or FPGA. It will be appreciated that a computer, processor, microprocessor controller, or programmable hardware includes memory components (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by a computer, processor, or hardware, implements the methods described herein. Further, when a general-purpose computer accesses code for implementing the methods illustrated herein, execution of the code transforms the general-purpose computer into a special-purpose computer for performing the methods illustrated herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The above embodiments are only for illustrating the embodiments of the present invention and not for limiting the embodiments of the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention, so that all equivalent technical solutions also belong to the scope of the embodiments of the present invention, and the scope of patent protection of the embodiments of the present invention should be defined by the claims.

Claims (12)

1. A cloud server migration method comprises the following steps:
acquiring a computing resource state of each host, wherein the computing resource state indicates unallocated resources and allocated resources;
determining an over-allocatable resource of each host when the unallocated resource does not meet a computing resource requirement of a cloud server in a failed host, the over-allocatable resource comprising at least a portion of the allocated resource;
determining a target host machine which can over-allocate resources to meet the resource demand;
migrating the cloud server from the failed host to the target host.
2. The method of claim 1, wherein said determining the over-allocatable resources of said respective hosts comprises:
determining shared resources corresponding to the allocated resources of each host;
determining an over-allocatable resource for the shared resources of the respective hosts.
3. The method of claim 2, wherein said determining an over-allocatable resource of the shared resources of the respective hosts comprises:
determining the load state of the shared resources of each host;
and determining the resource capable of being over-distributed according to the load state of the shared resource.
4. The method of claim 2, wherein said determining a target host that can over-allocate resources to meet the resource demand comprises:
determining non-shared resources in the unallocated resources in each host;
and determining a host machine which meets the resource requirement by the non-shared resource and the over-allocatable resource as a target host machine.
5. The method of claim 4, wherein the resource requirements of the cloud server include shared resource requirements and non-shared resource requirements,
the unshared resources of the target host are not less than the unshared resource requirements of the cloud server,
and the shared resource of the target host is not less than the shared resource requirement of the cloud server.
6. The method of claim 1, wherein the method further comprises:
and when the fault host is found, judging whether the unallocated resources of each host meet the resource requirement of the cloud server.
7. The method of claim 6, wherein the method further comprises:
and if the unallocated resources of the target host machine meet the resource requirements of the cloud server, migrating the cloud server in the failed host machine to the target host machine.
8. A method of resource management, comprising:
acquiring a current computing resource state of a host, wherein the computing resource state indicates unallocated resources and allocated resources;
reporting the current computing resource state of the host machine;
acquiring a cloud server to be migrated to the host;
operating the cloud server based on the over-allocatable resource of the allocated resources.
9. The method of claim 8, wherein the method further comprises:
updating the current computing resource state based on the over-allocatable resource.
10. A cloud server migration apparatus comprising:
the acquisition module acquires the computing resource state of each host, wherein the computing resource state indicates unallocated resources and allocated resources;
a first determining module, configured to determine an over-allocatable resource of each host when the unallocated resource does not meet a resource requirement of a cloud server in a faulty host, where the over-allocatable resource includes at least a part of allocated resources;
a second determining module, for determining a target host machine which can over-allocate resources to meet the resource demand;
and the migration module is used for migrating the cloud server from the fault host to the target host.
11. A resource management apparatus, comprising:
the first acquisition module is used for acquiring the current computing resource state of the host, wherein the computing resource state indicates unallocated resources and allocated resources;
the reporting module reports the current computing resource state of the host machine;
the second acquisition module is used for acquiring the cloud server to be migrated to the host machine;
and the operation module operates the cloud server based on the allocable resources in the allocated resources.
12. A computer storage medium having stored thereon a computer program which, when executed by a processor, carries out the method of any one of claims 1-9.
CN202210042799.5A 2022-01-14 2022-01-14 Cloud server migration and resource management method and device and storage medium Pending CN114356584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210042799.5A CN114356584A (en) 2022-01-14 2022-01-14 Cloud server migration and resource management method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210042799.5A CN114356584A (en) 2022-01-14 2022-01-14 Cloud server migration and resource management method and device and storage medium

Publications (1)

Publication Number Publication Date
CN114356584A true CN114356584A (en) 2022-04-15

Family

ID=81091837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210042799.5A Pending CN114356584A (en) 2022-01-14 2022-01-14 Cloud server migration and resource management method and device and storage medium

Country Status (1)

Country Link
CN (1) CN114356584A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024037439A1 (en) * 2022-08-17 2024-02-22 维沃移动通信有限公司 Computing power task migration method and apparatus, and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024037439A1 (en) * 2022-08-17 2024-02-22 维沃移动通信有限公司 Computing power task migration method and apparatus, and device

Similar Documents

Publication Publication Date Title
US10963285B2 (en) Resource management for virtual machines in cloud computing systems
US8875142B2 (en) Job scheduling on a multiprocessing system based on reliability and performance rankings of processors and weighted effect of detected errors
US11169854B2 (en) Node eligibility determinations
WO2016022405A1 (en) Providing higher workload resiliency in clustered systems based on health heuristics
CN109960575B (en) Computing capacity sharing method, system and related equipment
CN111209110B (en) Task scheduling management method, system and storage medium for realizing load balancing
CN112052072B (en) Scheduling strategy and super-fusion system of virtual machine
CN108874549B (en) Resource multiplexing method, device, terminal and computer readable storage medium
US11483416B2 (en) Composable infrastructure provisioning and balancing
US20230418661A1 (en) Decentralized resource scheduling
CN112256433B (en) Partition migration method and device based on Kafka cluster
CN113672345A (en) IO prediction-based cloud virtualization engine distributed resource scheduling method
CN114356584A (en) Cloud server migration and resource management method and device and storage medium
CN112162839A (en) Task scheduling method and device, computer equipment and storage medium
CN110377664B (en) Data synchronization method, device, server and storage medium
US11544091B2 (en) Determining and implementing recovery actions for containers to recover the containers from failures
CN111400241A (en) Data reconstruction method and device
CN109284169B (en) Big data platform process management method based on process virtualization and computer equipment
CN108737144B (en) Method and device for resource management
CN111949384A (en) Task scheduling method, device, equipment and computer readable storage medium
CN112612604B (en) Task scheduling method and device based on Actor model
CN115827148A (en) Resource management method and device, electronic equipment and storage medium
CN110297692B (en) Distributed software task dynamic management method and system
CN109614242B (en) Computing capacity sharing method, device, equipment and medium
CN110928679B (en) Resource allocation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination