CN116089020A - Virtual machine operation method, capacity expansion method and capacity expansion system - Google Patents

Virtual machine operation method, capacity expansion method and capacity expansion system Download PDF

Info

Publication number
CN116089020A
CN116089020A CN202310362950.8A CN202310362950A CN116089020A CN 116089020 A CN116089020 A CN 116089020A CN 202310362950 A CN202310362950 A CN 202310362950A CN 116089020 A CN116089020 A CN 116089020A
Authority
CN
China
Prior art keywords
virtual machine
execution
target
request
capacity expansion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310362950.8A
Other languages
Chinese (zh)
Other versions
CN116089020B (en
Inventor
张�杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba Cloud Computing 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 Cloud Computing Ltd filed Critical Alibaba Cloud Computing Ltd
Priority to CN202310362950.8A priority Critical patent/CN116089020B/en
Publication of CN116089020A publication Critical patent/CN116089020A/en
Application granted granted Critical
Publication of CN116089020B publication Critical patent/CN116089020B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a virtual machine operation method, a capacity expansion system, computing equipment and a computer storage medium. The virtual machine operation method comprises the following steps: creating and operating a first virtual machine according to a first execution mode; the first execution mode comprises a plurality of execution stages; determining at least one target execution stage meeting the time-consuming requirement according to the execution time respectively corresponding to the execution stages; adjusting the at least one target execution stage to be a target processing mode by taking the shortened execution time as an adjustment requirement; combining the target processing mode of the at least one target execution stage to obtain a second execution mode; the second execution mode is used for creating and running a second virtual machine based on the capacity expansion request. The technical scheme provided by the embodiment of the invention can shorten the time consumption of virtual machine creation and operation.

Description

Virtual machine operation method, capacity expansion method and capacity expansion system
Technical Field
The embodiment of the invention relates to the technical field of virtualization, in particular to a virtual machine running method, a capacity expansion system, computing equipment and a computer storage medium.
Background
Through virtualization technology, one or more virtual computers (hereinafter referred to as virtual machines) may be created on a physical computer, and these virtual machines may function as real computers, such as installing an operating system, installing application programs, accessing network resources, and the like. For an application running in a virtual machine, it is a real computer, and it has hardware environments such as CPU, memory, hard disk, motherboard, network card, etc. Because of the above-described characteristics of virtual machines, virtual machines have seen a trend to replace traditional PCs.
The virtual machine cluster may be a computing, task processing cluster that deploys a large number of virtual machines. Each virtual machine in the virtual machine cluster may receive the processing request and perform a corresponding processing task.
When the virtual machine faces the burst flow request, so that the currently deployed virtual machine in the virtual machine cluster cannot bear the burst flow request, a new virtual machine needs to be created and operated to expand the capacity of the virtual machine cluster, and therefore the processing capacity of the virtual machine cluster is improved.
The inventor finds that in the process of realizing the inventive concept, in the related art, the time consumed for creating and running a new virtual machine is long, so that the virtual machine cannot be expanded in time.
Thus, how to increase the speed of creating and running virtual machines is a technical problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a virtual machine operation method, a capacity expansion method, a virtual machine operation device, a capacity expansion system, computing equipment and a computer storage medium.
In a first aspect, an embodiment of the present invention provides a virtual machine operation method, including:
creating and operating a first virtual machine according to a first execution mode; the first execution mode comprises a plurality of execution stages;
determining at least one target execution stage meeting the time-consuming requirement according to the execution time respectively corresponding to the execution stages;
adjusting the at least one target execution stage to be a target processing mode by taking the shortened execution time as an adjustment requirement;
combining the target processing mode of the at least one target execution stage to obtain a second execution mode; the second execution mode is used for creating and running a second virtual machine based on the capacity expansion request.
In a second aspect, an embodiment of the present invention provides a capacity expansion method, including:
obtaining a capacity expansion request from a virtual machine cluster, wherein the capacity expansion request is generated when a processing request received by the virtual machine cluster exceeds a preset processing threshold;
Responding to the capacity expansion request, acquiring a second execution mode, wherein a plurality of execution phases of the second execution mode comprise at least one target execution phase, and the target execution phase is obtained by adjusting at least one execution phase meeting the time-consuming requirement in the plurality of execution phases of the first execution mode to shorten the execution time as an adjustment requirement;
and creating and running a second virtual machine by using the second execution mode.
In a third aspect, an embodiment of the present invention provides a virtual machine running apparatus, including:
the first creating module is used for creating and running a first virtual machine according to a first execution mode; the first execution mode comprises a plurality of execution stages;
the first determining module is used for determining at least one target execution stage meeting the time-consuming requirement according to the execution time respectively corresponding to the execution stages;
the first adjusting module is used for adjusting the at least one target execution stage to be a target processing mode by taking the shortened execution time as an adjusting requirement;
the first obtaining module is used for obtaining a second execution mode by combining the target processing mode of the at least one target execution stage; the second execution mode is used for creating and running a second virtual machine based on the virtual machine creation request.
In a fourth aspect, an embodiment of the present invention provides a capacity expansion device, including:
the first acquisition module is used for acquiring a capacity expansion request from the virtual machine cluster, wherein the capacity expansion request is generated when a processing request received by the virtual machine cluster exceeds a preset processing threshold;
the second obtaining module is used for responding to the capacity expansion request to obtain a second execution mode, wherein a plurality of execution phases of the second execution mode comprise at least one target execution phase, and the target execution phase is obtained by adjusting at least one execution phase meeting the time-consuming requirement in the plurality of execution phases of the first execution mode so as to shorten the execution time as an adjustment requirement;
and the second creating module is used for executing a plurality of execution stages in the second execution mode and creating and running a second virtual machine.
In a fifth aspect, an embodiment of the present invention provides a capacity expansion system, including:
the virtual machine cluster is used for generating a capacity expansion request and sending the capacity expansion request to the server, wherein the capacity expansion request is generated when a processing request received by the virtual machine cluster exceeds a preset processing threshold;
the server is used for realizing the virtual machine running method provided by the embodiment of the invention or the capacity expansion method provided by the embodiment of the invention.
The embodiment of the invention provides a virtual machine operation method, which comprises the following steps: creating and operating a first virtual machine according to a first execution mode; the first execution mode comprises a plurality of execution stages; determining at least one target execution stage meeting the time-consuming requirement according to the execution time respectively corresponding to the execution stages; adjusting the at least one target execution stage to be a target processing mode by taking the shortened execution time as an adjustment requirement; combining the target processing mode of the at least one target execution stage to obtain a second execution mode; the second execution mode is used for creating and running the technical scheme of the second virtual machine based on the virtual machine creation request, and at least one execution stage in the process of creating the virtual machine is adjusted so as to shorten the execution time of the corresponding execution stage, thereby shortening the time consumption of virtual machine creation and running.
These and other aspects of the invention will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 schematically illustrates a generic architecture diagram of a container orchestration system kubernetes;
FIG. 2 schematically illustrates a flowchart of a method for operating a virtual machine according to an embodiment of the present invention;
FIG. 3 schematically illustrates a schematic diagram of a virtual machine operation method provided by an embodiment of the present invention;
fig. 4 schematically illustrates a schematic diagram of a virtual machine operation method provided by an embodiment of the present invention;
FIG. 5 schematically illustrates a flow chart of a method for expanding capacity according to one embodiment of the present invention;
FIG. 6 schematically illustrates a block diagram of a virtual machine running apparatus according to an embodiment of the present invention;
fig. 7 schematically illustrates a block diagram of a capacity expansion device according to an embodiment of the present invention;
FIG. 8 schematically illustrates a block diagram of a computing device provided by one embodiment of the invention.
Detailed Description
In order to enable those skilled in the art to better understand the present invention, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present invention with reference to the accompanying drawings.
In some of the flows described in the specification and claims of the present invention and in the foregoing figures, a plurality of operations occurring in a particular order are included, but it should be understood that the operations may be performed out of order or performed in parallel, with the order of operations such as 101, 102, etc., being merely used to distinguish between the various operations, the order of the operations themselves not representing any order of execution. In addition, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present invention are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide corresponding operation entries for the user to select authorization or rejection.
Through virtualization technology, one or more virtual computers (hereinafter referred to as virtual machines) may be created on a physical computer, and these virtual machines may function as real computers, such as installing an operating system, installing application programs, accessing network resources, and the like. For an application running in a virtual machine, it is a real computer, and it has hardware environments such as CPU, memory, hard disk, motherboard, network card, etc. Because of the above-described characteristics of virtual machines, virtual machines have seen a trend to replace traditional PCs.
The virtual machine cluster may be a computing, task processing cluster that deploys a large number of virtual machines. Each virtual machine in the virtual machine cluster may receive the processing request and perform a corresponding processing task.
In an embodiment of the present invention, the virtual machine cluster may be implemented as a container orchestration system kubernetes, for example.
Fig. 1 schematically shows a general architecture diagram of a container orchestration system kubernetes.
As shown in fig. 1, kubernetes divides nodes in a cluster into one Master Node (Master) and at least one working Node (Node). Master and Node may be virtual machines in a cloud environment. The cloud environment is specifically a computing cluster comprising at least one cloud computing device (e.g., a central server). In some implementations, the masters and nodes can also be virtual machines in an edge environment. The edge environment is specifically a computing cluster that includes at least one edge computing device (e.g., an edge server). In other implementations, the masters and nodes may also be end devices or virtual machines on end devices. It should be noted that, the Master and the Node may be virtual machines in the same environment, or may be physical machines or virtual machines in different environments, for example, the Master may be a physical machine in a cloud environment, and the Node may be a physical machine in an edge environment.
Among them, a set of processes related to cluster management, such as an interface server (kube-apiserver), a kube controller manager (kube-controller-manager), a scheduler (kube-scheduler), and a memory (etcd), run on the Master, and the kube-apiserver stores data depending on the etcd. The Master can realize the management capabilities of resource management, pod scheduling, elastic expansion, safety control, error correction and the like of the whole cluster through the processes.
And running the process of the application program on the Node to provide the resources required by the running of the process of the application program. Wherein the process of the application program is specifically running in the container of the pod. Service processes such as a proxy (kubelet), a network proxy (kube-proxy) and the like are also operated on the Node, and the Node realizes the creation, starting, restarting, destroying and load balancing of the Pod through the service processes.
Fig. 1 is an illustration of kubernetes cluster including a Master and a Node. In some implementations, a kubernetes cluster may include multiple nodes, and as such, applications may be distributed across multiple nodes. Further, a plurality of masters may be included in the kubernetes cluster, and when one Master fails, another Master may be enabled, thus ensuring high availability.
When the virtual machines in kubernetes face the burst flow request, so that the currently deployed virtual machines in kubernetes cannot bear, new virtual machines need to be created and operated to expand the virtual machine cluster, and therefore the processing capacity of the virtual machine cluster is improved.
The inventor finds that in the process of realizing the inventive concept, in the related art, the time consumed for creating and running a new virtual machine is long, so that the virtual machine cannot be expanded in time.
Thus, how to increase the speed of creating and running virtual machines is a technical problem to be solved.
In order to solve the technical problems in the related art, the embodiment of the invention provides a virtual machine operation method, which comprises the following steps: creating and operating a first virtual machine according to a first execution mode; the first execution mode comprises a plurality of execution stages; determining at least one target execution stage meeting the time-consuming requirement according to the execution time respectively corresponding to the execution stages; adjusting the at least one target execution stage to be a target processing mode by taking the shortened execution time as an adjustment requirement; combining the target processing mode of the at least one target execution stage to obtain a second execution mode; the second execution mode is used for creating and running the technical scheme of the second virtual machine based on the virtual machine creation request, and at least one execution stage in the process of creating the virtual machine is adjusted so as to shorten the execution time of the corresponding execution stage, thereby shortening the time consumption of virtual machine creation and running.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
Fig. 2 schematically illustrates a flowchart of a virtual machine operation method according to an embodiment of the present invention, where, as shown in fig. 2, the virtual machine operation method may include the following steps:
201, creating and running a first virtual machine according to a first execution mode; the first execution mode comprises a plurality of execution phases;
202, determining at least one target execution stage meeting the time-consuming requirement according to the execution time respectively corresponding to the execution stages;
203, adjusting at least one target execution stage to be a target processing mode by taking the shortened execution time as an adjustment requirement;
204, combining the target processing modes of at least one target execution stage to obtain a second execution mode; the second execution mode is used for creating and running a second virtual machine based on the virtual machine creation request.
According to an embodiment of the present invention, in the process of executing the first execution mode, the buried point detection may be performed on a plurality of execution phases of the first execution mode, so as to detect and obtain an execution time of each execution phase in the first execution mode, where the execution time may include a time consumed for executing the execution phase.
According to an embodiment of the present invention, the time-consuming requirement may include a reference execution time corresponding to each execution stage in the first execution mode. Thus, the detected execution time can be compared with the corresponding reference execution time to determine the target execution phase.
For example, the execution time of each execution stage in the first execution manner may be compared with the corresponding reference execution time, and if the execution time is less than or equal to the reference execution time, the time comparison of the next execution stage is continued, and if the execution time is greater than the reference execution time, the execution stage is determined as the target execution stage, and the comparison of the next execution stage is continued until each execution stage is traversed.
According to an embodiment of the present invention, the reference execution time may be determined empirically by an expert, such that the time to create and run the virtual machine is a short execution time.
According to the embodiment of the invention, if the execution time of a certain execution stage is longer than the reference execution time, it can be determined that the overall time for creating and running the virtual machine is correspondingly longer due to the longer execution time of the execution stage, and the execution stage can be optimized by common sense to shorten the execution time of the execution stage, thereby reducing the overall time for creating and running the virtual machine.
According to an embodiment of the present invention, adjusting the target execution stage may include removing one or more execution steps included in the target execution stage, or optimizing one or more execution steps to shorten the execution time of the target execution stage.
According to an embodiment of the present invention, after determining the target execution phases, adjusting at least one target execution phase to a target processing manner may include:
providing an adjustment configuration page, wherein the adjustment configuration page displays an execution step of a target execution stage;
acquiring an adjustment operation generated by a user based on an adjustment configuration page, wherein the adjustment operation is used for performing adjustment operation on at least one execution step;
based on the obtained adjustment operation, the corresponding execution step is adjusted to obtain the target processing mode.
According to the embodiment of the invention, the first execution mode can be a general execution mode for creating and running the virtual machine, and the time consumed for creating and running the virtual machine through the first execution mode is long, so that the requirement for quickly creating and running the virtual machine cannot be met.
According to the embodiment of the invention, the first execution mode can be optimized and the time consumption for executing the first execution mode can be shortened by adjusting at least one execution stage in the first execution mode with the shortened execution time as the adjustment requirement.
According to the embodiment of the invention, the optimized first execution mode can be integrated, an unregulated execution stage in the first execution mode is reserved, and the regulated target stage is combined to obtain the second execution mode, wherein the time for creating and running the virtual machine by the second execution mode is less than the time for creating and running the virtual machine by the first execution mode.
In an embodiment of the present invention, by employing: creating and operating a first virtual machine according to a first execution mode; the first execution mode comprises a plurality of execution phases; determining at least one target execution stage meeting the time-consuming requirement according to the execution time respectively corresponding to the execution stages; adjusting at least one target execution stage as a target processing mode by taking the shortened execution time as an adjustment requirement; combining the target processing mode of at least one target execution stage to obtain a second execution mode; the second execution mode is used for creating and running the technical scheme of the second virtual machine based on the virtual machine creation request, and at least one execution stage in the process of creating the virtual machine is adjusted so as to shorten the execution time of the corresponding execution stage, thereby shortening the time consumption of virtual machine creation and running.
According to the embodiment of the invention, the virtual machine operation method further comprises the following steps:
acquiring a virtual machine creation request, wherein the virtual machine creation request is used for requesting to create and run a second virtual machine;
responding to a virtual machine creation request, and acquiring a second execution mode;
executing a plurality of execution stages in a second execution mode, and creating and running a second virtual machine.
According to the embodiment of the invention, the acquisition of the virtual machine creation request can be specifically realized as follows:
A virtual machine creation request from a virtual machine cluster is acquired, and the virtual machine creation request is generated when a processing request received by the virtual machine cluster exceeds a preset processing threshold.
According to the embodiment of the invention, the virtual machine operation method further comprises the following steps:
registering the created and operated second virtual machine to the virtual machine cluster so that the second virtual machine processes the processing request received by the virtual machine cluster.
Fig. 3 schematically illustrates a schematic diagram of a virtual machine operation method provided by an embodiment of the present invention.
As shown in fig. 3, 301 may include a cluster of virtual machines and 302 may represent a console.
According to an embodiment of the present invention, the virtual machine cluster 301 may be implemented as a container organization system kubernetes, in which a plurality of nodes are running, each node may be implemented as a virtual machine.
Kubernetes may be used to provide services to the outside, and each virtual machine may be used to process service requests.
In an actual application scenario, the Kubernetes may generally encounter some burst service requests, for example, the Kubernetes may serve as a background of the e-commerce platform, then when a shopping node or the shopping platform performs a promotion activity, a large number of burst service requests come to the Kubernetes, and at this time, the number of virtual machines deployed in the Kubernetes is insufficient, so that the burst service requests cannot be processed, then additional virtual machines need to be created and operated to supplement the virtual machines currently deployed in the Kubernetes, so that the number of virtual machines deployed in the Kubernetes is increased, and the large number of burst service requests can be processed.
According to the embodiment of the invention, when the Kubernetes detects that the currently deployed virtual machine cannot meet the service request processing requirement, a virtual machine creation request can be sent to the console.
After the console obtains the virtual machine creation request, a second execution mode obtained by adjusting and optimizing the first execution mode can be obtained, and the second virtual machine is created and operated by using the second execution mode, so that the service is provided by using the second virtual machine.
According to the embodiment of the invention, because the time consumed when the virtual machine is created and operated by the first execution mode is long, when the virtual machine is created and operated by the first execution mode, a new virtual machine cannot be started timely to accept the sudden processing request. By adjusting and optimizing the first execution mode, the execution time of the first execution mode is shortened, the second execution mode is obtained, and when the virtual machine is created and operated by the second execution mode, a new virtual machine can be started timely, so that the requirement of timely capacity expansion of Kubernetes is met.
According to the embodiment of the invention, after the second virtual machine is created and operated by the second execution mode, the second virtual machine can be registered to the Kubernetes to inform the completion of the creation of the second virtual machine of the Kubernetes, and services can be provided to the outside. After registering the second virtual machine with the Kubernetes, the Kubernetes may then schedule the service request to the second virtual machine such that the second virtual machine processes the service request.
According to an embodiment of the invention, the execution phase comprises a virtual machine creation phase;
according to the embodiment of the present invention, executing the plurality of execution phases in the second execution manner, and creating and running the second virtual machine may be specifically implemented as:
in the virtual machine creation stage, obtaining a virtual machine image from an image warehouse;
and creating a second virtual machine according to the virtual machine image.
According to the embodiment of the invention, in the first implementation manner, when the virtual machine is created, the user-defined configuration of the virtual machine is generally required to be obtained first, then the configuration information is sent to the virtual machine creation component, and the virtual machine creation component analyzes the configuration information to obtain the configuration file. And then acquiring a configuration file from the virtual machine creation component, generating an image file matched with the user-defined configuration based on the configuration file, and sending the image file to the virtual machine creation component.
After the image file is acquired, the virtual machine creation component can pull up and run the image file to realize the creation of the virtual machine.
In the virtual machine creation stage in the first implementation manner, firstly, multiple interactions with the virtual machine creation component are required, each interaction needs to consume a certain time, and secondly, because the virtual machine is configured by a user in a self-defining manner, as configuration items of the user are increased, the data volume of the image file is increased, and more time is consumed in the process of transmitting the image file, and in the process of pulling up and running the image file.
In the embodiment of the invention, since the creation of the virtual machine is applicable to the capacity expansion scene of Kubernetes, the virtual machine is not required to be configured by a user, and then the virtual machine image can be created in advance and stored in an image warehouse. When the virtual machine creation is needed, the virtual machine creation component is directly informed to draw the virtual machine image from the image warehouse and run the virtual machine image, so that the virtual machine creation is realized, and the control console does not need to interact with the virtual machine creation component for a plurality of times. Because the virtual machine image does not need to be configured by a user, the data volume of the virtual machine image is correspondingly smaller, and the transmission time of the virtual machine model is shortened.
According to an embodiment of the invention, the execution phase further comprises a network configuration phase; the executing the plurality of execution phases in the second execution mode, creating and running the second virtual machine includes: and in the network configuration stage, configuring network information for the second virtual machine so as to perform network connection by utilizing the preconfigured network information after the second virtual machine is established.
According to the embodiment of the invention, in the first implementation mode, after the virtual machine is built, in the starting process of the virtual machine, a network configuration request is sent to a server by the virtual machine, after the server responds to the network configuration request, a network address is allocated to the virtual machine, the network address is returned to the virtual machine, and then the virtual machine utilizes the obtained network address to realize network connection. In this implementation, the virtual machine needs to interact with the server, and waits for the server to allocate a network address and perform network connection, which consumes a long time.
In the embodiment of the invention, in the creation stage of the virtual machine, a console can allocate a network address for the second virtual machine which is not created temporarily, so that after the creation of the second virtual machine is completed, in the starting stage of the second virtual machine, the second virtual machine can directly realize network connection by using the network address which is allocated in advance by the console, and the network address is not required to be applied to a server side and connected in the starting process, thereby shortening the time consumption of the starting stage.
According to an embodiment of the invention, the execution phase further comprises a storage configuration phase; the executing the plurality of execution phases in the second execution mode, creating and running the second virtual machine includes:
acquiring a cloud storage system;
and taking the cloud storage system as storage equipment of the second virtual machine.
According to the embodiment of the invention, the cloud storage system can be a storage system deployed at the cloud, and has the characteristic that the storage space is elastically telescopic.
According to the embodiment of the invention, the cloud storage system is used as the storage equipment of the second virtual machine, and the storage space of the cloud storage system has the characteristic of elasticity, so that the operation of readjusting the disk space of the physical machine for the second virtual machine by the console can be omitted, and the configuration time of the storage equipment of the second virtual machine is shortened.
According to an embodiment of the invention, the execution phase comprises an operating system configuration phase;
the executing the plurality of execution phases in the second execution mode, creating and running the second virtual machine includes: acquiring an adjusted operating system image file, wherein the adjusted operating system image file is obtained by disabling at least one starting item in the operating system image file;
and starting the second virtual machine by using the adjusted operating system image file.
According to the embodiment of the invention, at least one starting item in the operating system image file is forbidden, so that the reduced operating system image can be obtained, and the starting speed of the second virtual machine is faster when the second virtual machine is started based on the reduced operating system image because the starting item in the reduced operating system image is fewer than the starting item of the complete operating system image.
According to the embodiment of the invention, the disabled startup item in the operating system image file can be determined by the application requirement of the second virtual machine, and the startup item which is not needed in the running process of the virtual machine can be disabled, so that the startup time of the virtual machine is shortened.
According to the embodiment of the invention, registering the created and operated second virtual machine to the virtual machine cluster can be specifically realized as follows:
sending a registration request to a virtual machine cluster;
acquiring a registration credential returned by the virtual machine cluster in response to the registration request;
and sending the registration certificate to the virtual machine cluster so that the virtual machine cluster can verify the registration certificate according to a preset verification frequency, wherein the preset verification frequency is matched with the application time of the registration certificate.
According to the embodiment of the invention, in the virtual machine cluster, a verification policy can be provided, namely, for the virtual machine needing to be registered in the virtual machine cluster, the virtual machine needs to apply for registration credentials to the virtual machine cluster first, then when the registration application is proposed to the virtual machine cluster, the virtual machine cluster can verify the registration credentials provided by the virtual machine according to a first verification frequency, after the verification is passed, the virtual machine is allowed to be registered in the virtual machine cluster, and otherwise, the virtual machine is not allowed to be registered in the virtual machine cluster.
According to the embodiment of the invention, in the first execution mode, the first verification frequency is not matched with the application time of the registration certificate, for example, the operation of applying for the registration certificate can be completed within 1 second, but the certificate verification frequency of the virtual machine cluster is 10 seconds once, so in the process, the application of the instant registration certificate is completed, waiting is also needed, waiting for reaching the verification node of the virtual machine cluster, and then the registration certificate is verified.
In the embodiment of the invention, the registration time of the virtual machine can be shortened by modifying the first verification frequency of the virtual machine cluster to the preset verification frequency matched with the application time of the registration certificate. For example, when the application time of the registration credential is 1 second, the preset verification frequency may be set to be verified once every 1 second, so that after the registration credential is applied, the virtual machine cluster may be enabled to immediately verify the registration frequency.
According to the embodiment of the invention, the virtual machine operation method further comprises the following steps:
determining a target physical machine from the plurality of physical machines in response to the virtual machine creation request;
the virtual machine creation request is forwarded to the target physical machine so that the target physical machine creates and runs a second virtual machine based on the virtual machine creation request.
According to the embodiment of the invention, the control console can manage a hardware resource pool, and a plurality of physical machines can be arranged in the hardware resource pool.
According to the embodiment of the invention, after the console obtains the virtual machine creation request, one target physical machine can be determined from a plurality of physical machines in the hardware resource pool, and then the virtual machine creation request is scheduled to the target physical machine, so that a second virtual machine can be created and operated on the target physical machine.
According to the embodiment of the invention, the target physical machine can be determined from a plurality of physical machines according to the resource requirement of the second virtual machine indicated by the virtual machine creation request.
According to an embodiment of the present invention, adjusting at least one target execution stage to a target processing manner may be specifically implemented as:
acquiring a first flow threshold value pre-configured in a target execution stage, wherein the first flow threshold value is used for indicating the request quantity received by a virtual machine;
the first flow restriction information is adjusted to a second flow threshold, wherein the second flow threshold is greater than the first flow threshold.
According to the embodiment of the invention, the flow threshold of the second virtual machine is increased, so that the flow limiting measure of the second virtual machine is contacted, and the request quantity of the requests which can be processed by the second virtual machine can be increased.
According to an embodiment of the present invention, the adjusting the at least one target execution stage to the target processing mode with the shortened execution time as the adjustment requirement includes:
in the case that the at least one target execution stage includes a virtual machine creation stage, adjusting the at least one target execution stage to be a target processing manner as follows: obtaining a virtual machine image from an image warehouse to create the second virtual machine according to the virtual machine image;
And/or
In the case that the at least one target execution phase includes a network configuration phase, adjusting the at least one target execution phase to be a target processing manner as follows: pre-configuring network information for the second virtual machine so as to perform network connection by utilizing the pre-configured network information after the second virtual machine is established;
and/or
In the case that the at least one target execution phase includes a storage configuration phase, adjusting the at least one target execution phase to a target processing manner as follows: acquiring a cloud storage system, wherein the cloud storage system is used as storage equipment of the second virtual machine;
and/or
In the case that the at least one target execution phase includes an operating system configuration phase, adjusting the at least one target execution phase to a target processing manner as follows: acquiring an operating system image file of the virtual machine; analyzing the operating system image file to determine a plurality of starting items; and disabling at least one of the plurality of startup items to obtain an adjusted operating system image file.
Fig. 4 schematically illustrates a schematic diagram of a virtual machine operation method according to an embodiment of the present invention.
As shown in fig. 4, a full link schematic of a virtual machine is created and run.
When the virtual machine needs to be expanded, a capacity expansion request is received from a control console, and services can be formally provided for the virtual machine, wherein the virtual machine can be divided into a virtual machine creation stage and a virtual machine starting stage, and the virtual machine creation stage and the virtual machine starting stage respectively comprise a plurality of sub-execution stages. Because the capacity expansion link has more execution stages, if the execution time of the execution stages is longer, the capacity expansion time of the virtual machine cannot meet the requirement of timely capacity expansion.
In the capacity expansion link shown in fig. 4, firstly, a virtual machine cluster sends a capacity expansion request to a console, and after the console obtains the capacity expansion request, the console searches a hardware resource pool according to the resource requirement of a second virtual machine indicated in the capacity expansion request, so as to determine a target physical machine capable of meeting the resource requirement of the second virtual machine.
After determining the target physical machine, the console may schedule the capacity expansion request to the target physical machine. The target physical machine may have a management and control component deployed therein and a virtual machine creation component. Specifically, the console may send the capacity expansion request to a management and control component of the physical machine, which in particular sends virtual machine creation instructions to a virtual machine creation component.
After receiving the virtual machine creation instruction, the virtual machine creation component may perform creation of the second virtual machine according to the second execution mode.
First, the virtual machine creation component may obtain a virtual machine image directly from the image repository, and create a virtual machine based on the obtained virtual machine image. Meanwhile, when the mirror image of the virtual machine is pulled, a network address can be allocated in advance for the second virtual machine, an access space in the cloud storage system can be obtained, and the access space of the cloud storage system is used as storage equipment of the second virtual machine.
After the network address and the storage device are allocated to the second virtual machine, waiting for the completion of the pulling of the virtual machine image, and completing the creation stage of the virtual machine according to the virtual machine image.
After the second virtual machine is created, an operating system image can be acquired, and the operating system image can be a simplified operating system image, so that redundant starting items in an original operating system are removed, and the starting time of the operating system can be prolonged.
After the starting of the operating system is completed, the networking of the second virtual machine can be realized by utilizing the pre-configured network address.
In the first implementation, after the second virtual machine is created, the proxy component running in the second virtual machine also typically needs to attempt to connect to the container configuration port, which takes about 5 seconds, and in the second implementation, the process can be removed.
In the first implementation, the second virtual machine typically also attempts to acquire the configuration map of the network proxy (kube-proxy) several times, which takes about 5 seconds, and in the second implementation, the process may be eliminated.
According to the embodiment of the invention, in the virtual machine cluster, a verification policy can be provided, namely, for the virtual machine needing to be registered in the virtual machine cluster, the virtual machine needs to apply for registration credentials to the virtual machine cluster first, then when the registration application is proposed to the virtual machine cluster, the virtual machine cluster can verify the registration credentials provided by the virtual machine according to a first verification frequency, after the verification is passed, the virtual machine is allowed to be registered in the virtual machine cluster, and otherwise, the virtual machine is not allowed to be registered in the virtual machine cluster.
According to the embodiment of the invention, in the first execution mode, the first verification frequency is not matched with the application time of the registration certificate, for example, the operation of applying for the registration certificate can be completed within 1 second, but the certificate verification frequency of the virtual machine cluster is 10 seconds once, so that in the process, even if the application of the registration certificate is completed, the application needs to wait until reaching the verification node of the virtual machine cluster, and then the registration certificate is verified.
In the embodiment of the invention, the registration time of the virtual machine can be shortened by modifying the first verification frequency of the virtual machine cluster to the preset verification frequency matched with the application time of the registration certificate. For example, when the application time of the registration credential is 1 second, the preset verification frequency may be set to be verified once every 1 second, so that after the registration credential is applied, the virtual machine cluster may be enabled to immediately verify the registration frequency.
Fig. 5 schematically illustrates a flow chart of a capacity expansion method according to an embodiment of the present invention, and as shown in fig. 5, the capacity expansion method may specifically include the following steps:
501, acquiring a capacity expansion request from a virtual machine cluster, wherein the capacity expansion request is generated when a processing request received by the virtual machine cluster exceeds a preset processing threshold;
502, responding to the capacity expansion request, acquiring a second execution mode, wherein a plurality of execution phases of the second execution mode comprise at least one target execution phase, and the target execution phase is obtained by adjusting at least one execution phase meeting the time-consuming requirement in the plurality of execution phases of the first execution mode with the shortened execution time as an adjustment requirement;
503, creating and running a second virtual machine by using a second execution mode.
FIG. 6 schematically illustrates a block diagram of a virtual machine running apparatus according to an embodiment of the present invention, as shown in FIG. 6, a virtual machine running apparatus 600 may include:
a first creating module 601, configured to create and run a first virtual machine according to a first execution manner; the first execution mode comprises a plurality of execution phases;
a first determining module 602, configured to determine at least one target execution stage that meets a time-consuming requirement according to execution times corresponding to the multiple execution stages, respectively;
a first adjusting module 603, configured to adjust at least one target execution stage to a target processing mode with the shortened execution time as an adjustment requirement;
a first obtaining module 604, configured to obtain a second execution mode in combination with the target processing mode of at least one target execution stage; the second execution mode is used for creating and running a second virtual machine based on the virtual machine creation request.
According to an embodiment of the present invention, the virtual machine running apparatus 600 further includes:
the request acquisition module is used for acquiring a virtual machine creation request, wherein the virtual machine creation request is used for requesting to create and run a second virtual machine;
the execution mode acquisition module is used for responding to the virtual machine creation request to acquire a second execution mode;
The second creating module is used for executing a plurality of execution stages in a second execution mode and creating and running a second virtual machine.
According to an embodiment of the present invention, the request acquisition module includes:
the request acquisition unit is used for acquiring a virtual machine creation request from the virtual machine cluster, wherein the virtual machine creation request is generated when a processing request received by the virtual machine cluster exceeds a preset processing threshold value.
According to an embodiment of the present invention, the virtual machine running apparatus 600 further includes:
and the registration module is used for registering the created and operated second virtual machine to the virtual machine cluster so that the second virtual machine processes the processing request received by the virtual machine cluster.
According to an embodiment of the invention, the execution phase comprises a virtual machine creation phase;
according to an embodiment of the present invention, the second creation module includes:
the image acquisition unit is used for acquiring the virtual machine image from the image warehouse in the virtual machine creation stage;
and the creation unit is used for creating a second virtual machine according to the virtual machine image.
According to an embodiment of the present invention, the second creation module further includes:
and the network configuration unit is used for configuring network information for the second virtual machine so as to perform network connection by utilizing the preconfigured network information after the second virtual machine is established.
According to an embodiment of the present invention, the second creation module further includes:
the storage system acquisition unit is used for acquiring the cloud storage system;
and the storage device determining unit is used for taking the cloud storage system as the storage device of the second virtual machine.
According to an embodiment of the invention, the execution phase comprises a virtual machine creation phase;
according to an embodiment of the present invention, the first adjustment module 603 includes:
the image file acquisition unit is used for acquiring an adjusted operating system image file, wherein the adjusted operating system image file is obtained by disabling at least one starting item in the operating system image file;
and the starting unit is used for starting the second virtual machine by using the adjusted operating system image file.
According to an embodiment of the present invention, the registration module includes:
a request sending unit, configured to send a registration request to a virtual machine cluster;
the certificate acquisition unit is used for acquiring a registration certificate returned by the virtual machine cluster in response to the registration request;
the certificate sending unit is used for sending the registration certificate to the virtual machine cluster so that the virtual machine cluster can verify the registration certificate according to the preset verification frequency, wherein the preset verification frequency is matched with the application time of the registration certificate.
According to an embodiment of the present invention, the virtual machine running apparatus 600 further includes:
the physical machine determining module is used for determining a target physical machine from a plurality of physical machines in response to a virtual machine creation request;
and the request forwarding module is used for forwarding the virtual machine creation request to the target physical machine so that the target physical machine creates and runs the second virtual machine based on the capacity expansion request.
According to an embodiment of the present invention, the first adjustment module 603 includes:
a first threshold value acquisition unit configured to acquire a first flow threshold value configured in advance in a target execution stage, the first flow threshold value being used to indicate a request amount that can be received by the virtual machine;
and the threshold value adjusting unit is used for adjusting the first flow limiting information to a second flow threshold value, wherein the second flow threshold value is larger than the first flow threshold value.
According to an embodiment of the present invention, the first adjustment module 603 includes:
the first adjusting unit is configured to adjust, when the at least one target execution stage includes a virtual machine creation stage, the at least one target execution stage to a target processing manner as follows: obtaining a virtual machine image from an image warehouse to create the second virtual machine according to the virtual machine image;
and/or
The second adjusting unit is configured to adjust, when the at least one target execution stage includes a network configuration stage, the at least one target execution stage to be in a target processing manner as follows: pre-configuring network information for the second virtual machine so as to perform network connection by utilizing the pre-configured network information after the second virtual machine is established;
and/or
A third adjusting unit, configured to adjust, in a case where the at least one target execution stage includes a storage configuration stage, the at least one target execution stage to a target processing manner as follows: acquiring a cloud storage system, wherein the cloud storage system is used as storage equipment of the second virtual machine;
and/or
A fourth adjusting unit, configured to adjust, when the at least one target execution stage includes an operating system configuration stage, the at least one target execution stage to a target processing manner as follows: acquiring an operating system image file of the virtual machine; analyzing the operating system image file to determine a plurality of starting items; and disabling at least one of the plurality of startup items to obtain an adjusted operating system image file.
The virtual machine running apparatus of fig. 6 may execute the virtual machine running method of the embodiment shown in fig. 2, and its implementation principle and technical effects are not repeated. The specific manner in which the respective modules and units of the capacity expansion device in the above embodiments perform operations has been described in detail in the embodiments related to the method, and will not be described in detail herein.
Fig. 7 schematically illustrates a block diagram of a capacity expansion device according to an embodiment of the present invention, and as shown in fig. 7, the capacity expansion device may include:
a first obtaining module 701, configured to obtain a capacity expansion request from a virtual machine cluster, where the capacity expansion request is generated when a processing request received by the virtual machine cluster exceeds a preset processing threshold;
the second obtaining module 702 is configured to obtain a second execution manner in response to the capacity expansion request, where a plurality of execution phases of the second execution manner include at least one target execution phase, and the target execution phase is obtained by adjusting at least one execution phase, which meets a time-consuming requirement, of the plurality of execution phases of the first execution manner, with a shortened execution time as an adjustment requirement;
the second creating module 703 is configured to create and run a second virtual machine using a second execution mode.
The capacity expansion device shown in fig. 7 may perform the capacity expansion method shown in the embodiment shown in fig. 5, and its implementation principle and technical effects are not repeated. The specific manner in which the respective modules and units of the capacity expansion device in the above embodiments perform operations has been described in detail in the embodiments related to the method, and will not be described in detail herein.
The embodiment of the invention also provides a capacity expansion system, which comprises:
the virtual machine cluster is used for generating a capacity expansion request and sending the capacity expansion request to the server, wherein the capacity expansion request is generated when a processing request received by the virtual machine cluster exceeds a preset processing threshold;
the server is used for realizing the virtual machine running method provided by the embodiment of the invention or the capacity expansion method provided by the embodiment of the invention.
In one possible design, the virtual machine running apparatus and the capacity expansion apparatus provided by the embodiments of the present invention may be implemented as a computing device, as shown in fig. 8, where the computing device may include a storage component 801 and a processing component 802;
the storage unit 801 stores one or more computer instructions, where the one or more computer instructions are used for the processing unit 802 to call and execute, so as to implement the virtual machine running method and the capacity expansion method provided by the embodiment of the present invention.
Of course, the computing device may necessarily include other components, such as input/output interfaces, communication components, and the like. The input/output interface provides an interface between the processing component and a peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the computing device and other devices, and the like.
The computing device may be a physical device or an elastic computing host provided by the cloud computing platform, and at this time, the computing device may be a cloud server, and the processing component, the storage component, and the like may be a base server resource rented or purchased from the cloud computing platform.
When the computing device is a physical device, the computing device may be implemented as a distributed cluster formed by a plurality of servers or terminal devices, or may be implemented as a single server or a single terminal device.
The embodiment of the invention also provides a computer readable storage medium which stores a computer program, and the computer program can realize the virtual machine running method and the capacity expansion method provided by the embodiment of the invention when being executed by a computer.
The embodiment of the invention also provides a computer program product, which comprises a computer program, wherein the computer program can realize the virtual machine running method and the capacity expansion method provided by the embodiment of the invention when being executed by a computer.
Wherein the processing components of the respective embodiments above may include one or more processors to execute computer instructions to perform all or part of the steps of the methods described above. Of course, the processing component may also be implemented as one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic elements for executing the methods described above.
The storage component is configured to store various types of data to support operation in the device. The memory component may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (15)

1. A method for operating a virtual machine, comprising:
creating and operating a first virtual machine according to a first execution mode; the first execution mode comprises a plurality of execution stages;
determining at least one target execution stage meeting the time-consuming requirement according to the execution time respectively corresponding to the execution stages;
adjusting the at least one target execution stage to be a target processing mode by taking the shortened execution time as an adjustment requirement;
combining the target processing mode of the at least one target execution stage to obtain a second execution mode; the second execution mode is used for creating and running a second virtual machine based on the virtual machine creation request.
2. The method according to claim 1, wherein the method further comprises:
obtaining a virtual machine creation request, wherein the virtual machine creation request is used for requesting to create and run a second virtual machine;
responding to the virtual machine creation request, and acquiring the second execution mode;
executing a plurality of execution stages in the second execution mode, and creating and running a second virtual machine.
3. The method of claim 2, wherein the obtaining a virtual machine creation request comprises:
And acquiring the virtual machine creation request from the virtual machine cluster, wherein the virtual machine creation request is generated when the processing request received by the virtual machine cluster exceeds a preset processing threshold.
4. A method according to claim 3, characterized in that the method further comprises:
determining a target physical machine from a plurality of physical machines in response to the virtual machine creation request;
and forwarding the virtual machine creation request to the target physical machine so that the target physical machine creates and runs the second virtual machine based on the virtual machine creation request.
5. A method according to claim 3, characterized in that the method further comprises:
registering the created and operated second virtual machine to the virtual machine cluster so that the second virtual machine processes the processing request received by the virtual machine cluster.
6. The method of claim 5, wherein registering the second virtual machine to be created and run with the cluster of virtual machines comprises:
sending a registration request to the virtual machine cluster;
acquiring a registration credential returned by the virtual machine cluster in response to the registration request;
And sending the registration certificate to the virtual machine cluster so that the virtual machine cluster can verify the registration certificate according to a preset verification frequency, wherein the preset verification frequency is matched with the application time of the registration certificate.
7. The method of claim 2, wherein the execution phase comprises a virtual machine creation phase;
the executing the plurality of execution phases in the second execution mode, creating and running the second virtual machine includes:
in the virtual machine creation stage, obtaining a virtual machine image from an image warehouse;
and creating the second virtual machine according to the virtual machine image.
8. The method of claim 2, wherein the execution phase further comprises a network configuration phase;
the executing the plurality of execution phases in the second execution mode, creating and running the second virtual machine includes:
and in the network configuration stage, configuring network information for the second virtual machine so as to perform network connection by utilizing the pre-configured network information after the second virtual machine is established.
9. The method of claim 8, wherein the execution phase further comprises a store configuration phase;
The executing the plurality of execution phases in the second execution mode, creating and running the second virtual machine includes:
in the storage configuration stage, acquiring a cloud storage system;
and taking the cloud storage system as storage equipment of the second virtual machine.
10. The method of claim 2, wherein the execution phase comprises an operating system configuration phase;
the executing the plurality of execution phases in the second execution mode, creating and running the second virtual machine includes:
acquiring an adjusted operating system image file, wherein the adjusted operating system image file is obtained by disabling at least one starting item in the operating system image file;
and starting the second virtual machine by using the adjusted operating system image file.
11. The method of claim 1, wherein adjusting the at least one target execution phase to a target processing mode with the shortened execution time as an adjustment requirement comprises:
in the case that the at least one target execution stage includes a virtual machine creation stage, adjusting the at least one target execution stage to be a target processing manner as follows: obtaining a virtual machine image from an image warehouse to create the second virtual machine according to the virtual machine image;
And/or
In the case that the at least one target execution phase includes a network configuration phase, adjusting the at least one target execution phase to be a target processing manner as follows: pre-configuring network information for the second virtual machine so as to perform network connection by utilizing the pre-configured network information after the second virtual machine is established;
and/or
In the case that the at least one target execution phase includes a storage configuration phase, adjusting the at least one target execution phase to a target processing manner as follows: acquiring a cloud storage system, wherein the cloud storage system is used as storage equipment of the second virtual machine;
and/or
In the case that the at least one target execution phase includes an operating system configuration phase, adjusting the at least one target execution phase to a target processing manner as follows: acquiring an operating system image file of the virtual machine; analyzing the operating system image file to determine a plurality of starting items; and disabling at least one of the plurality of startup items to obtain an adjusted operating system image file.
12. A method of expanding a volume, comprising:
obtaining a capacity expansion request from a virtual machine cluster, wherein the capacity expansion request is generated when a processing request received by the virtual machine cluster exceeds a preset processing threshold;
Responding to the capacity expansion request, acquiring a second execution mode, wherein a plurality of execution phases of the second execution mode comprise at least one target execution phase, and the target execution phase is obtained by adjusting at least one execution phase meeting the time-consuming requirement in the plurality of execution phases of the first execution mode to shorten the execution time as an adjustment requirement;
executing a plurality of execution stages in the second execution mode, and creating and running a second virtual machine.
13. A capacity expansion system, comprising:
the virtual machine cluster is used for generating a capacity expansion request and sending the capacity expansion request to the server, wherein the capacity expansion request is generated when a processing request received by the virtual machine cluster exceeds a preset processing threshold;
the server is configured to implement the virtual machine operation method according to any one of claims 1 to 11, or implement the capacity expansion method according to claim 12.
14. A computing device comprising a processing component and a storage component;
the storage component stores one or more computer instructions; the one or more computer instructions are configured to be invoked by the processing component to implement a virtual machine operation method as claimed in any one of claims 1 to 11, or to implement a capacity expansion method as claimed in claim 12.
15. A computer storage medium, wherein a computer program is stored, which when executed by a computer, implements the virtual machine operation method according to any one of claims 1 to 11, or implements the capacity expansion method according to claim 12.
CN202310362950.8A 2023-04-06 2023-04-06 Virtual machine operation method, capacity expansion method and capacity expansion system Active CN116089020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310362950.8A CN116089020B (en) 2023-04-06 2023-04-06 Virtual machine operation method, capacity expansion method and capacity expansion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310362950.8A CN116089020B (en) 2023-04-06 2023-04-06 Virtual machine operation method, capacity expansion method and capacity expansion system

Publications (2)

Publication Number Publication Date
CN116089020A true CN116089020A (en) 2023-05-09
CN116089020B CN116089020B (en) 2023-09-08

Family

ID=86202924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310362950.8A Active CN116089020B (en) 2023-04-06 2023-04-06 Virtual machine operation method, capacity expansion method and capacity expansion system

Country Status (1)

Country Link
CN (1) CN116089020B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214117A (en) * 2010-04-07 2011-10-12 中兴通讯股份有限公司 Virtual machine management method, system and server
CN103067425A (en) * 2011-10-20 2013-04-24 中国移动通信集团公司 Creation method of virtual machine, management system of virtual machine and related equipment thereof
CN104268001A (en) * 2014-09-24 2015-01-07 华为技术有限公司 Method and device for creating virtual machine
US20150277952A1 (en) * 2014-03-31 2015-10-01 Vmware, Inc. Rapid creation and reconfiguration of virtual machines on hosts
CN109656686A (en) * 2018-12-17 2019-04-19 武汉烽火信息集成技术有限公司 The upper deployment container cloud method of OpenStack, storage medium, electronic equipment and system
CN114461335A (en) * 2021-12-24 2022-05-10 新奥新智科技有限公司 Elastic expansion method, device and equipment for virtual machine and container in cloud computing environment
CN115878916A (en) * 2021-09-30 2023-03-31 北京字节跳动网络技术有限公司 Time-consuming optimization method and device for page refreshing and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214117A (en) * 2010-04-07 2011-10-12 中兴通讯股份有限公司 Virtual machine management method, system and server
CN103067425A (en) * 2011-10-20 2013-04-24 中国移动通信集团公司 Creation method of virtual machine, management system of virtual machine and related equipment thereof
US20150277952A1 (en) * 2014-03-31 2015-10-01 Vmware, Inc. Rapid creation and reconfiguration of virtual machines on hosts
CN104268001A (en) * 2014-09-24 2015-01-07 华为技术有限公司 Method and device for creating virtual machine
CN109656686A (en) * 2018-12-17 2019-04-19 武汉烽火信息集成技术有限公司 The upper deployment container cloud method of OpenStack, storage medium, electronic equipment and system
CN115878916A (en) * 2021-09-30 2023-03-31 北京字节跳动网络技术有限公司 Time-consuming optimization method and device for page refreshing and terminal equipment
CN114461335A (en) * 2021-12-24 2022-05-10 新奥新智科技有限公司 Elastic expansion method, device and equipment for virtual machine and container in cloud computing environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张新朝;孙峰;: "基于OpenStack云平台虚拟集群环境的部署", 闽南师范大学学报(自然科学版), no. 01 *

Also Published As

Publication number Publication date
CN116089020B (en) 2023-09-08

Similar Documents

Publication Publication Date Title
US11960915B2 (en) Method and apparatus for creating virtual machine based on parameter information of a virtual network interface card
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
CN109327490B (en) Method and server for deploying cloud service component
US11687354B2 (en) Virtual machine management using onboarding operations and openstack control
US20190158626A1 (en) Method, apparatus and computer readable storage medium for processing service
CN109375933B (en) Method and equipment for upgrading client
US11558311B2 (en) Automated local scaling of compute instances
CN109995814B (en) Cloud host resource migration method and device, communication equipment and storage medium
CN112491948A (en) Non-invasive monomer application micro-service method and device and computer equipment
US20230221997A1 (en) System and method for subscription management using composed systems
US20200133708A1 (en) Method for Managing VNF Instantiation and Device
CN113190282A (en) Android operating environment construction method and device
CN111143031A (en) Method and device for changing capacity of virtual machine
US11418583B2 (en) Transaction process management by dynamic transaction aggregation
US11321109B2 (en) Container engine for selecting driver based on container metadata
CN116089020B (en) Virtual machine operation method, capacity expansion method and capacity expansion system
CN108833532B (en) Service processing method, device and system based on Internet of things
US10528397B2 (en) Method, device, and non-transitory computer readable storage medium for creating virtual machine
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN112130900B (en) User information management method, system, equipment and medium for BMC
CN111414200B (en) Method, apparatus, electronic device and computer readable medium for installing operating system
CN113687908A (en) PMEM virtual machine creation method, device, equipment and readable storage medium
CN109257201B (en) License sending method and device
WO2023193609A1 (en) Selective privileged container augmentation
CN111352710A (en) Process management method and device, computing equipment and storage medium

Legal Events

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