Search

CN-122018999-A - Cloud computer starting method and device, server and storage medium

CN122018999ACN 122018999 ACN122018999 ACN 122018999ACN-122018999-A

Abstract

The application provides a cloud computer starting method, a cloud computer starting device, a server and a storage medium, and belongs to the technical field of cloud computing. The cloud computer starting method comprises the steps of determining a first cloud computer with configuration information of a system disk conforming to a starting request in the started cloud computers, and mounting a data disk indicated by the starting request on the first cloud computer, so that the first cloud computer is used as the cloud computer requested to start by the starting request. Because the first cloud computer is in the starting state, the first cloud computer does not need to be restarted, the time consumed by starting the cloud computer is shortened, and the man-machine interaction efficiency is improved.

Inventors

  • DENG JINMEI

Assignees

  • 深圳市腾讯计算机系统有限公司

Dates

Publication Date
20260512
Application Date
20241112

Claims (11)

  1. 1. The cloud computer starting method is characterized by comprising the following steps of: responding to a starting request sent by a client device, determining a first cloud computer from at least one cloud computer in a starting state, wherein the at least one cloud computer comprises a system disk and a data disk, the starting request carries configuration information of the system disk and configuration information of the data disk in the requested cloud computer, and the configuration information of the system disk in the first cloud computer is identical to the configuration information of the system disk indicated by the starting request; Determining a data disk corresponding to the configuration information of the data disk according to the configuration information of the data disk carried by the starting request; and mounting the data disk to the first cloud computer.
  2. 2. The method according to claim 1, wherein the method further comprises: and responding to a shutdown request sent by the client equipment, and unloading the data disk in the first cloud computer from a first physical host carrying the first cloud computer.
  3. 3. The method of claim 1, wherein the system disk comprises a first image file and a second image file, wherein the first image file comprises a base configuration of the system disk, wherein the second image file comprises an operational record for the system disk, and wherein the configuration information of the system disk indicates an image version of the first image file in the system disk and an identification of the second image file in the system disk; The data disk comprises a third image file and a fourth image file, wherein the third image file comprises basic configuration of the data disk, the fourth image file comprises operation records of the data disk, and configuration information of the data disk indicates an image version of the third image file in the data disk and an identification of the fourth image file in the data disk.
  4. 4. The method of claim 1, wherein determining, based on the configuration information of the data disc carried by the boot request, the data disc corresponding to the configuration information of the data disc comprises: determining a third image file corresponding to the configuration information of the data disk from a first physical host carrying the first cloud computer according to the configuration information of the data disk; And determining a fourth image file corresponding to the configuration information of the data disk from a storage server connected with the first physical host according to the configuration information of the data disk, wherein the determined third image file and fourth image file are used for generating the data disk corresponding to the configuration information of the data disk.
  5. 5. The method according to claim 1, wherein the method further comprises: When the cloud computer which is the same as the configuration information of the system disk carried by the starting request does not exist in the at least one cloud computer, responding to the starting request, determining a second cloud computer from the cloud computers in a shutdown state, wherein the configuration information of the system disk in the second cloud computer is the same as the configuration information of the system disk indicated by the starting request, and the configuration information of the data disk in the second cloud computer is the same as the configuration information of the data disk carried by the starting request; And deploying the second cloud computer to a second physical host to enable the second target cloud computer to execute starting operation.
  6. 6. The method according to claim 1, wherein the method further comprises: Acquiring configuration information of at least two groups of system disks and configuration information of data disks; Creating at least two cloud computers according to the configuration information of the at least two groups of system disks and the configuration information of the data disks, wherein the configuration information of the at least two groups of system disks and the configuration information of the data disks correspond to the at least two cloud computers one by one; and storing the information of the at least two cloud computers, wherein the information of each cloud computer comprises the identification of each cloud computer, the configuration information of the system disk in each cloud computer and the configuration information of the data disk.
  7. 7. The method according to any one of claims 1-6, further comprising: and locking the system disk in the cloud computer, wherein the locked system disk is in a read-only state.
  8. 8. A cloud computer boot device, the device comprising: The first cloud computer determining module is used for responding to a starting request sent by the client device, determining a first cloud computer from at least one cloud computer in a starting state, wherein the at least one cloud computer comprises a system disk and a data disk, the starting request carries configuration information of the system disk and configuration information of the data disk in the requested cloud computer, and the configuration information of the system disk in the first cloud computer is identical to the configuration information of the system disk indicated by the starting request; The data disk determining module is used for determining the data disk corresponding to the configuration information of the data disk according to the configuration information of the data disk carried by the starting request; And the mounting module is used for mounting the data disc to the first cloud computer.
  9. 9. A server comprising a processor and a memory for storing at least one computer program, the at least one computer program being loaded by the processor and executing the method of any of claims 1 to 7.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium is adapted to store at least one computer program adapted to perform the method of any of claims 1 to 7.
  11. 11. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1 to 7.

Description

Cloud computer starting method and device, server and storage medium Technical Field The present application relates to the field of cloud computing technologies, and in particular, to a method and apparatus for booting a cloud computer, a server, and a storage medium. Background Cloud computers are a service based on cloud computing technology. And (3) centralizing hardware such as a CPU (Central Processing Unit, a central processing unit), a memory, a hard disk and the like into a data center of the cloud to form a virtual machine, namely a cloud computer. The user accesses and uses the cloud computer through a client device connected to the internet, and all operations performed by the user on the cloud computer are performed and stored on the cloud server. At present, in the use process of a cloud computer, the time consumed by the cloud computer for starting is long, a user needs to wait for a long time to use the cloud computer, and a cloud computer starting method is needed to shorten the time consumed by the cloud computer for starting, so that the man-machine interaction efficiency is improved. Disclosure of Invention The application provides a cloud computer starting method, a cloud computer starting device, a server and a storage medium, which are used for shortening the time consumed by starting a cloud computer and improving the man-machine interaction efficiency. The technical scheme is as follows: in one aspect, a cloud computer starting method is provided, and the method comprises the following steps: Responding to a starting request sent by a client device, determining a first cloud computer from at least one cloud computer in a starting state, wherein the at least one cloud computer comprises a system disk and a data disk, the starting request carries configuration information of the system disk and configuration information of the data disk in the requested cloud computer, and the configuration information of the system disk in the first cloud computer is identical with the configuration information of the system disk indicated by the starting request; determining a data disk corresponding to the configuration information of the data disk according to the configuration information of the data disk carried by the startup request; and mounting the data disk to the first cloud computer. According to the cloud computer starting method, the first cloud computer with the configuration information of the system disk matched with the starting request is determined in the started cloud computers, and the data disk indicated by the starting request is mounted on the first cloud computer, so that the first cloud computer is used as the cloud computer requested to start by the starting request. Because the first cloud computer is in the starting state, the first cloud computer does not need to be restarted, the time consumed by starting the cloud computer is shortened, and the man-machine interaction efficiency is improved. Optionally, the method further comprises: and responding to a shutdown request sent by the client device, and unloading the data disk in the first cloud computer from the first physical host carrying the first cloud computer. Optionally, the system disk comprises a first image file and a second image file, wherein the first image file comprises basic configuration of the system disk, the second image file comprises operation records of the system disk, and configuration information of the system disk indicates an image version of the first image file in the system disk and an identification of the second image file in the system disk; The data disk comprises a third image file and a fourth image file, wherein the third image file comprises basic configuration of the data disk, the fourth image file comprises operation records of the data disk, and configuration information of the data disk indicates an image version of the third image file in the data disk and identification of the fourth image file in the data disk. Optionally, determining the data disc corresponding to the configuration information of the data disc according to the configuration information of the data disc carried by the startup request includes: Determining a third image file corresponding to the configuration information of the data disk from a first physical host carrying the first cloud computer according to the configuration information of the data disk; And determining a fourth image file corresponding to the configuration information of the data disk from a storage server connected with the first physical host according to the configuration information of the data disk, wherein the determined third image file and fourth image file are used for generating the data disk corresponding to the configuration information of the data disk. Optionally, the method further comprises: Under the condition that at least one cloud computer does not have the cloud computer which is the same as the configuration informat