CN116069445A - Virtualized service deployment method, device, equipment and storage medium - Google Patents

Virtualized service deployment method, device, equipment and storage medium Download PDF

Info

Publication number
CN116069445A
CN116069445A CN202211726540.9A CN202211726540A CN116069445A CN 116069445 A CN116069445 A CN 116069445A CN 202211726540 A CN202211726540 A CN 202211726540A CN 116069445 A CN116069445 A CN 116069445A
Authority
CN
China
Prior art keywords
virtual machine
preset
deployed
configuration information
deployment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211726540.9A
Other languages
Chinese (zh)
Inventor
张琦
王延伟
张毅
吴楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hollysys Automation Co Ltd
Original Assignee
Hangzhou Hollysys Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hollysys Automation Co Ltd filed Critical Hangzhou Hollysys Automation Co Ltd
Priority to CN202211726540.9A priority Critical patent/CN116069445A/en
Publication of CN116069445A publication Critical patent/CN116069445A/en
Pending legal-status Critical Current

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/4555Para-virtualisation, i.e. guest operating system has to be modified
    • 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 application discloses a virtualized service deployment method, a device, equipment and a storage medium, which relate to the technical field of virtualization and comprise the following steps: acquiring a preset virtualized automatic operation and maintenance service; judging whether the current communication state between the self and the server network where the physical server is located meets the preset data communication condition or not; if the preset data communication condition is met currently, acquiring a preset virtual machine deployment request; determining a plurality of virtual machines to be deployed and corresponding virtual machine configuration information based on a preset virtual machine deployment request so as to obtain a virtual machine configuration information set; and determining a plurality of physical servers to be deployed from a server network according to the virtual machine configuration information set, and sending virtual machine configuration information to the plurality of physical servers to be deployed through a man-machine interaction interface of a preset virtualization automatic operation and maintenance service so as to deploy a plurality of virtual machines to be deployed on the plurality of physical servers to be deployed. In this way, the efficiency of virtualized service deployment may be improved.

Description

Virtualized service deployment method, device, equipment and storage medium
Technical Field
The present invention relates to the field of virtualization technologies, and in particular, to a method, an apparatus, a device, and a storage medium for deploying a virtualized service.
Background
The virtualization technology has the advantages of reducing the excessive provision of servers, improving the utilization rate of equipment, reducing the overall investment of IT (Information Technology ), enhancing the flexibility of providing IT environments, sharing resources and the like. For example, server virtualization technology may run multiple virtual servers on a single physical server, and provide virtual hardware resources for the virtual servers that ensure their normal operation, such as virtual BIOS (Basic Input Output System ), virtual CPU (Central Processing Unit, central processing unit), virtual memory, virtual I/O (Input/Output) devices, etc., while also providing good isolation and security for the virtual machines.
At present, an operation and maintenance person operates each server needing to be virtualized at a server terminal, but the method needs the operation and maintenance person to master a large number of complicated virtualization operation commands, and frequent switching is needed among the servers so as to deploy and manage the virtualized service on each server, thereby seriously affecting the efficiency of virtualized service deployment. Therefore, how to improve the efficiency of virtualized service deployment is a challenge.
Disclosure of Invention
Accordingly, the present invention aims to provide a method, apparatus, device and storage medium for deploying a virtualized service, which can avoid manually deploying each virtual machine to be deployed, and save labor cost and technical cost, thereby improving the efficiency of deploying the virtualized service. The specific scheme is as follows:
in a first aspect, the present application provides a virtualized service deployment method, applied to an operation and maintenance server, including:
acquiring a preset virtualized automatic operation and maintenance service;
judging whether the current communication state between the self and the server network where the physical server is located meets the preset data communication condition or not;
if the preset data communication conditions are met currently, a preset virtual machine deployment request is acquired;
determining a plurality of virtual machines to be deployed and corresponding virtual machine configuration information based on the preset virtual machine deployment request so as to obtain a virtual machine configuration information set;
and determining a plurality of physical servers to be deployed from the server network according to the virtual machine configuration information set, and sending the virtual machine configuration information to the plurality of physical servers to be deployed through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed.
Optionally, the determining a plurality of virtual machines to be deployed based on the preset virtual machine deployment request includes:
and determining a plurality of virtual machines to be deployed in a corresponding number according to target deployment modes related to the deployment number of the virtual machines carried in the preset virtual machine deployment request.
Optionally, the sending, by the man-machine interaction interface of the preset virtualized automatic operation and maintenance service, the virtual machine configuration information to the plurality of physical servers to be deployed, so that after the deploying the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed, the method further includes:
obtaining a virtual machine deployment result returned by the physical server to be deployed;
judging whether a virtual machine with deployment failure exists in the physical server to be deployed currently according to the deployment result of the virtual machine, and if so, triggering a corresponding deployment failure alarm operation.
Optionally, the sending, by the man-machine interaction interface of the preset virtualized automatic operation and maintenance service, the virtual machine configuration information to the plurality of physical servers to be deployed, so that after the deploying the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed, the method further includes:
acquiring successful deployment time of each virtual machine to be deployed returned by the server to be deployed, and storing the successful deployment time of each virtual machine to be deployed into a local preset database.
Optionally, the sending, by the man-machine interaction interface of the preset virtualized automatic operation and maintenance service, the virtual machine configuration information to the plurality of physical servers to be deployed, so that after the deploying the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed, the method further includes:
acquiring a preset container engine deployment request;
determining corresponding container engine configuration information and a currently deployed target virtual machine based on the preset container engine deployment request;
and sending the container engine configuration information to a target physical server where the target virtual machine is located through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy a corresponding target container engine on the target virtual machine of the target physical server.
Optionally, the sending the container engine configuration information to a target physical server where the target virtual machine is located through the man-machine interaction interface of the preset virtualized automatic operation service, so that after deploying a corresponding target container engine on the target virtual machine of the target physical server, further includes:
acquiring a preset container deployment request;
determining corresponding container configuration information based on the preset container deployment request;
and sending the container configuration information to the target physical server through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy a corresponding container on the target virtual machine of the target physical server.
Optionally, the sending the container configuration information to the target physical server through the man-machine interaction interface of the preset virtualized automatic operation and maintenance service, so that after deploying the corresponding container on the target virtual machine of the target physical server, the method further includes:
acquiring a preset container configuration change request;
determining a container to be changed and corresponding new configuration information in the target virtual machine according to the preset container configuration change request;
and sending the new configuration information to the target physical server through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service, so that the target virtual machine of the target physical server can utilize the new configuration information to change the corresponding container to be changed.
In a second aspect, the present application provides a virtualized service deployment apparatus, applied to an operation and maintenance server, including:
the service acquisition module is used for acquiring a preset virtualized automatic operation and maintenance service;
the condition judging module is used for judging whether the communication state between the current self and the server network where the physical server is located meets the preset data communication condition or not;
the virtual machine deployment request acquisition module is used for acquiring a preset virtual machine deployment request if the preset data communication condition is met currently;
the virtual machine configuration information determining module is used for determining a plurality of virtual machines to be deployed and corresponding virtual machine configuration information based on the preset virtual machine deployment request so as to obtain a virtual machine configuration information set;
the virtual machine configuration information sending module is used for determining a plurality of physical servers to be deployed from the server network according to the virtual machine configuration information set, and sending the virtual machine configuration information to the plurality of physical servers to be deployed through a man-machine interaction interface of the preset virtualized automatic operation and maintenance service so as to deploy the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed.
In a third aspect, the present application provides an electronic device, including:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the virtualization service deployment method.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the aforementioned virtualized service deployment method.
In the application, a preset virtualized automatic operation and maintenance service is acquired; judging whether the current communication state between the self and the server network where the physical server is located meets the preset data communication condition or not; if the preset data communication conditions are met currently, a preset virtual machine deployment request is acquired; determining a plurality of virtual machines to be deployed and corresponding virtual machine configuration information based on the preset virtual machine deployment request so as to obtain a virtual machine configuration information set; and determining a plurality of physical servers to be deployed from the server network according to the virtual machine configuration information set, and sending the virtual machine configuration information to the plurality of physical servers to be deployed through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed. In this way, the virtual machine to be deployed and the corresponding virtual machine configuration information are determined through the preset virtual machine deployment request, and then the virtual machine deployment operation is performed by using the obtained preset virtual automatic operation and maintenance service, so that the manual deployment operation on each virtual machine to be deployed is avoided, the labor cost and the technical cost are saved, the efficiency of virtual service deployment is improved, and the error rate in the deployment process is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for deploying a virtualized service provided in the present application;
FIG. 2 is a flow chart of a container deployment method provided herein;
FIG. 3 is a schematic diagram of a method for deploying a virtualized service according to the present application;
FIG. 4 is a schematic diagram of a specific virtualized service deployment method provided in the present application;
fig. 5 is a schematic structural diagram of a virtualized service deployment device provided in the present application;
fig. 6 is a block diagram of an electronic device provided in the present application.
Detailed Description
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 be within the scope of the invention.
At present, an operation and maintenance person operates each server needing to be virtualized at a server terminal, but the method needs the operation and maintenance person to master a large number of complicated virtualization operation commands, and frequent switching is needed among the servers so as to deploy and manage the virtualized service on each server, thereby seriously affecting the efficiency of virtualized service deployment. Therefore, the application discloses a virtualized service deployment method, which can improve the efficiency of virtualized service deployment.
Referring to fig. 1, an embodiment of the present invention discloses a virtualized service deployment method, which is applied to an operation server and includes:
and S11, acquiring a preset virtualized automatic operation and maintenance service.
In this embodiment, a preset virtualized automatic operation and maintenance service is pre-installed on an operation and maintenance server so as to obtain the preset virtualized automatic operation and maintenance service, and it can be understood that the preset virtualized automatic operation and maintenance service is a service for performing automatic operation and maintenance on the virtualized service, and may have a graphical operation interface so as to facilitate operation by operation and maintenance personnel.
Step S12, judging whether the current communication state between the server network where the physical server is located and the current self-communication state meets the preset data communication condition.
In this embodiment, before a preset virtual machine deployment request is obtained, it is required to determine whether a communication state between the current self and a server network where a physical server is located meets a preset data communication condition, and if the determination result indicates that the communication state does not meet the preset data communication condition, it is difficult to deploy a virtualized service by characterizing a communication state between the current self and the server network where the physical server is located.
And step S13, if the preset data communication conditions are met currently, acquiring a preset virtual machine deployment request.
In this embodiment, if the preset data communication condition is currently satisfied, a preset virtual machine deployment request is obtained. It should be noted that, the preset virtual machine deployment request is a request including configuration information of the virtual machine to be deployed and a physical server to be deployed, so as to complete the deployment operation of the virtual machine to be deployed according to the preset virtual machine deployment request.
Step S14, determining a plurality of virtual machines to be deployed and corresponding virtual machine configuration information based on the preset virtual machine deployment request so as to obtain a virtual machine configuration information set.
In this embodiment, a plurality of virtual machines to be deployed and corresponding virtual machine configuration information are determined based on the obtained preset virtual machine deployment request, and it can be understood that the virtual machine configuration information includes the data size of the virtual machines to be deployed and virtual environment information of the virtual machines to be deployed, so as to obtain a virtual machine configuration information set. It should be noted that the determining, based on the preset virtual machine deployment request, a plurality of virtual machines to be deployed may specifically include: and determining a plurality of virtual machines to be deployed in a corresponding number according to target deployment modes related to the deployment number of the virtual machines carried in the preset virtual machine deployment request. That is, the operation and maintenance server may determine a corresponding number of a plurality of virtual machines to be deployed according to a target deployment manner related to the number of virtual machines to be deployed carried in the preset virtual machine deployment request, so as to deploy the plurality of virtual machines to be deployed on the physical server to be deployed. For example, if the target deployment mode carried in the preset virtual machine deployment request is to deploy three virtual machines on each physical server to be deployed, a corresponding number of virtual machines to be deployed may be determined according to the number of physical servers to be deployed in the server network.
And step S15, determining a plurality of physical servers to be deployed from the server network according to the virtual machine configuration information set, and sending the virtual machine configuration information to the plurality of physical servers to be deployed through a man-machine interaction interface of the preset virtualized automatic operation and maintenance service so as to deploy the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed.
In this embodiment, it may be understood that the sending, by the man-machine interaction interface of the preset virtualized automatic operation and maintenance service, the virtual machine configuration information to the plurality of physical servers to be deployed, so that after the deploying of the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed, the method specifically further may include: obtaining a virtual machine deployment result returned by the physical server to be deployed; judging whether a virtual machine with deployment failure exists in the physical server to be deployed currently according to the deployment result of the virtual machine, and if so, triggering a corresponding deployment failure alarm operation. In this way, the deployment failure alarm operation can be triggered after the deployment of the virtual machine fails, so that the operation and maintenance personnel can perform corresponding emergency treatment according to the deployment failure alarm operation.
It should be noted that, the sending, by the man-machine interaction interface of the preset virtualized automatic operation and maintenance service, the virtual machine configuration information to the plurality of physical servers to be deployed, so that after the plurality of virtual machines to be deployed are deployed on the plurality of physical servers to be deployed, the method specifically may further include: acquiring successful deployment time of each virtual machine to be deployed returned by the server to be deployed, and storing the successful deployment time of each virtual machine to be deployed into a local preset database.
In this embodiment, a preset virtualized automatic operation and maintenance service is acquired; judging whether the current communication state between the self and the server network where the physical server is located meets the preset data communication condition or not; if the preset data communication conditions are met currently, a preset virtual machine deployment request is acquired; determining a plurality of virtual machines to be deployed and corresponding virtual machine configuration information based on the preset virtual machine deployment request so as to obtain a virtual machine configuration information set; and determining a plurality of physical servers to be deployed from the server network according to the virtual machine configuration information set, and sending the virtual machine configuration information to the plurality of physical servers to be deployed through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed. In this way, the virtual machine to be deployed and the corresponding virtual machine configuration information are determined through the preset virtual machine deployment request, and then the virtual machine deployment operation is performed by using the obtained preset virtual automatic operation and maintenance service, so that the manual deployment operation on each virtual machine to be deployed is avoided, the labor cost and the technical cost are saved, the efficiency of virtual service deployment is improved, and the error rate in the deployment process is reduced.
The foregoing embodiment specifically describes a method for deploying a virtual machine, where after a plurality of virtual machines to be deployed are deployed on a plurality of physical servers to be deployed, a container engine and a container may also be deployed on a virtual machine that completes the deployment, so as to complete the deployment of a virtualization service. Referring to fig. 2, the embodiment of the invention discloses a container deployment method after completing virtual machine deployment, which is applied to an operation server and comprises the following steps:
step S21, obtaining a preset container engine deployment request.
In this embodiment, after the deployment operation of executing the virtual machine is completed, if a container engine needs to be deployed, a preset container engine deployment request may be obtained, where the container engine may provide environments and functions necessary for container operation and container management.
And S22, determining corresponding container engine configuration information and the currently deployed target virtual machine based on the preset container engine deployment request.
Step S23, the container engine configuration information is sent to a target physical server where the target virtual machine is located through a man-machine interaction interface of a preset virtualization automatic operation and maintenance service, so that a corresponding target container engine is deployed on the target virtual machine of the target physical server.
In this embodiment, after determining the configuration information of the container engine and the target virtual machine, the configuration information of the container engine is sent to a target physical server where the target virtual machine is located through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service, so that a corresponding target container engine is deployed on the target virtual machine of the target physical server. It may be appreciated that the man-machine interaction interface of the preset virtualization automatic operation and maintenance service sends the container engine configuration information to a target physical server where the target virtual machine is located, so that after a corresponding target container engine is deployed on the target virtual machine of the target physical server, corresponding container engine deployment success information may be obtained, so that an operation and maintenance personnel determines whether to execute step S24 according to the container engine deployment success information.
Step S24, obtaining a preset container deployment request.
Step S25, determining corresponding container configuration information based on the preset container deployment request.
And step S26, sending the container configuration information to the target physical server through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy a corresponding container on the target virtual machine of the target physical server.
In this embodiment, it should be noted that, after the sending, by the man-machine interaction interface of the preset virtualized automatic operation and maintenance service, the container configuration information to the target physical server, so as to deploy a corresponding container on the target virtual machine of the target physical server, the method specifically may further include: acquiring a preset container configuration change request; determining a container to be changed and corresponding new configuration information in the target virtual machine according to the preset container configuration change request; and sending the new configuration information to the target physical server through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service, so that the target virtual machine of the target physical server can utilize the new configuration information to change the corresponding container to be changed.
In this embodiment, a preset container engine deployment request is obtained; determining corresponding container engine configuration information and a currently deployed target virtual machine based on the preset container engine deployment request; the container engine configuration information is sent to a target physical server where the target virtual machine is located through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy a corresponding target container engine on the target virtual machine of the target physical server; acquiring a preset container deployment request; determining corresponding container configuration information based on the preset container deployment request; and sending the container configuration information to the target physical server through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy a corresponding container on the target virtual machine of the target physical server. In this way, the configuration information of the container engine is determined through the preset container engine deployment request, the deployment operation of the container engine is performed by utilizing the preset virtualized automatic operation and maintenance service, and then the deployment operation of the container is performed based on the preset container deployment request, so that the container engine and the container are deployed in batch and automatically, and the efficiency of deploying the virtualized service is improved.
The present application is described in detail below in conjunction with a comparison between a virtualized service deployment method and the prior art disclosed herein.
Fig. 3 is a schematic diagram of a currently commonly used virtualized service deployment method, and fig. 4 is a schematic diagram of a specific virtualized service deployment method disclosed in the present application, in which an operator is required to deploy virtual machines on physical servers one by one, and sequentially connect each deployed virtual machine, deploy a container engine on the deployed virtual machines, then switch to the next physical server, and repeat the above operations, so that the workload of the operator is huge when the server scale is large, and the error probability increases. In the method for deploying the virtualized services shown in fig. 4, an operation and maintenance person obtains a preset virtualized automatic operation and maintenance service on an operation and maintenance server, determines the operation and maintenance server as a virtualized-automatic operation and maintenance server, obtains a preset virtual machine deployment request if preset data communication conditions are met currently, deploys virtual machines based on the preset virtual machine deployment request and the preset virtualized automatic operation and maintenance service, and deploys a container engine on a deployed virtual machine by using a preset container engine deployment request after the deployment of the virtual machines is completed, so that batch deployment can be realized, and the efficiency of deploying the virtualized services is improved.
Referring to fig. 5, the application discloses a virtualized service deployment device, which is applied to an operation server and comprises:
the service acquisition module 11 is used for acquiring a preset virtualized automatic operation and maintenance service;
the condition judging module 12 is configured to judge whether a current communication state between itself and a server network where the physical server is located meets a preset data communication condition;
a virtual machine deployment request acquisition module 13, configured to acquire a preset virtual machine deployment request if the preset data communication condition is currently satisfied;
the virtual machine configuration information determining module 14 is configured to determine a plurality of virtual machines to be deployed and corresponding virtual machine configuration information based on the preset virtual machine deployment request, so as to obtain a virtual machine configuration information set;
the virtual machine configuration information sending module 15 is configured to determine a plurality of physical servers to be deployed from the server network according to the virtual machine configuration information set, and send the virtual machine configuration information to the plurality of physical servers to be deployed through a man-machine interaction interface of the preset virtualized automatic operation and maintenance service, so as to deploy the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed.
In the application, a preset virtualized automatic operation and maintenance service is acquired; judging whether the current communication state between the self and the server network where the physical server is located meets the preset data communication condition or not; if the preset data communication conditions are met currently, a preset virtual machine deployment request is acquired; determining a plurality of virtual machines to be deployed and corresponding virtual machine configuration information based on the preset virtual machine deployment request so as to obtain a virtual machine configuration information set; and determining a plurality of physical servers to be deployed from the server network according to the virtual machine configuration information set, and sending the virtual machine configuration information to the plurality of physical servers to be deployed through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed. In this way, the virtual machine to be deployed and the corresponding virtual machine configuration information are determined through the preset virtual machine deployment request, and then the virtual machine deployment operation is performed by using the obtained preset virtual automatic operation and maintenance service, so that the manual deployment operation on each virtual machine to be deployed is avoided, the labor cost and the technical cost are saved, the efficiency of virtual service deployment is improved, and the error rate in the deployment process is reduced.
In some specific embodiments, the virtual machine configuration information determining module 14 may specifically include:
the to-be-deployed virtual machine quantity determining unit is used for determining a plurality of to-be-deployed virtual machines with corresponding quantity according to a target deployment mode which is carried in the preset virtual machine deployment request and is related to the virtual machine deployment quantity.
In some specific embodiments, the virtualized service deployment apparatus may specifically further include:
the virtual machine deployment result acquisition unit is used for acquiring a virtual machine deployment result returned by the physical server to be deployed;
and the alarm operation triggering unit is used for judging whether the virtual machine with the deployment failure exists in the physical server to be deployed currently according to the deployment result of the virtual machine, and triggering corresponding deployment failure alarm operation if the virtual machine with the deployment failure exists in the physical server to be deployed currently.
In some specific embodiments, the virtualized service deployment apparatus may specifically further include:
the deployment time storage unit is used for acquiring successful deployment time of each virtual machine to be deployed returned by the server to be deployed and storing the successful deployment time of each virtual machine to be deployed into a local preset database.
In some specific embodiments, the virtualized service deployment apparatus may specifically further include:
the container engine deployment request acquisition unit is used for acquiring a preset container engine deployment request;
the container engine configuration information determining unit is used for determining corresponding container engine configuration information and a target virtual machine which is deployed currently based on the preset container engine deployment request;
and the container engine configuration information sending unit is used for sending the container engine configuration information to a target physical server where the target virtual machine is located through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy a corresponding target container engine on the target virtual machine of the target physical server.
In some specific embodiments, the virtualized service deployment apparatus may specifically further include:
the container deployment request acquisition unit is used for acquiring a preset container deployment request;
a container configuration information determining unit, configured to determine corresponding container configuration information based on the preset container deployment request;
and the container configuration information sending unit is used for sending the container configuration information to the target physical server through a man-machine interaction interface of the preset virtualized automatic operation and maintenance service so as to deploy a corresponding container on the target virtual machine of the target physical server.
In some specific embodiments, the virtualized service deployment apparatus may specifically further include:
a container configuration change request acquiring unit configured to acquire a preset container configuration change request;
the container new configuration information determining unit is used for determining a container to be changed and corresponding new configuration information in the target virtual machine according to the preset container configuration change request;
and the container new configuration information sending unit is used for sending the new configuration information to the target physical server through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service, so that the target virtual machine of the target physical server can utilize the new configuration information to carry out changing operation on the corresponding container to be changed.
Further, the embodiment of the present application further discloses an electronic device, and fig. 6 is a structural diagram of the electronic device 20 according to an exemplary embodiment, where the content of the drawing is not to be considered as any limitation on the scope of use of the present application.
Fig. 6 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is configured to store a computer program that is loaded and executed by the processor 21 to implement relevant steps in the virtualized service deployment method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and computer programs 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the virtualized service deployment method performed by the electronic device 20 disclosed in any of the previous embodiments.
Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the previously disclosed virtualized service deployment method. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has outlined the detailed description of the preferred embodiment of the present application, and the detailed description of the principles and embodiments of the present application has been provided herein by way of example only to facilitate the understanding of the method and core concepts of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method for deploying a virtualized service, applied to an operation server, comprising:
acquiring a preset virtualized automatic operation and maintenance service;
judging whether the current communication state between the self and the server network where the physical server is located meets the preset data communication condition or not;
if the preset data communication conditions are met currently, a preset virtual machine deployment request is acquired;
determining a plurality of virtual machines to be deployed and corresponding virtual machine configuration information based on the preset virtual machine deployment request so as to obtain a virtual machine configuration information set;
and determining a plurality of physical servers to be deployed from the server network according to the virtual machine configuration information set, and sending the virtual machine configuration information to the plurality of physical servers to be deployed through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed.
2. The virtualized service deployment method of claim 1, wherein the determining a number of virtual machines to be deployed based on the preset virtual machine deployment request comprises:
and determining a plurality of virtual machines to be deployed in a corresponding number according to target deployment modes related to the deployment number of the virtual machines carried in the preset virtual machine deployment request.
3. The method for deploying a virtualized service according to claim 1, wherein the sending the virtual machine configuration information to the plurality of physical servers to be deployed through the man-machine interaction interface of the preset virtualized automatic operation service so as to deploy the plurality of virtual machines on the plurality of physical servers to be deployed further comprises:
obtaining a virtual machine deployment result returned by the physical server to be deployed;
judging whether a virtual machine with deployment failure exists in the physical server to be deployed currently according to the deployment result of the virtual machine, and if so, triggering a corresponding deployment failure alarm operation.
4. The method for deploying a virtualized service according to claim 1, wherein the sending the virtual machine configuration information to the plurality of physical servers to be deployed through the man-machine interaction interface of the preset virtualized automatic operation service so as to deploy the plurality of virtual machines on the plurality of physical servers to be deployed further comprises:
acquiring successful deployment time of each virtual machine to be deployed returned by the server to be deployed, and storing the successful deployment time of each virtual machine to be deployed into a local preset database.
5. The method for deploying a virtualized service according to any one of claims 1-4, wherein the sending the virtual machine configuration information to the number of physical servers to be deployed through the man-machine interface of the preset virtualized automatic operation service to deploy the number of virtual machines on the number of physical servers to be deployed further comprises:
acquiring a preset container engine deployment request;
determining corresponding container engine configuration information and a currently deployed target virtual machine based on the preset container engine deployment request;
and sending the container engine configuration information to a target physical server where the target virtual machine is located through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy a corresponding target container engine on the target virtual machine of the target physical server.
6. The method for deploying a virtualization service according to claim 5, wherein the sending the container engine configuration information to a target physical server where the target virtual machine is located through the man-machine interaction interface of the preset virtualization automatic operation and maintenance service, so as to deploy a corresponding target container engine on the target virtual machine of the target physical server, further comprises:
acquiring a preset container deployment request;
determining corresponding container configuration information based on the preset container deployment request;
and sending the container configuration information to the target physical server through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service so as to deploy a corresponding container on the target virtual machine of the target physical server.
7. The method for deploying a virtualized service according to claim 6, wherein the sending the container configuration information to the target physical server through the man-machine interface of the preset virtualized automatic operation service to deploy the corresponding container on the target virtual machine of the target physical server further comprises:
acquiring a preset container configuration change request;
determining a container to be changed and corresponding new configuration information in the target virtual machine according to the preset container configuration change request;
and sending the new configuration information to the target physical server through a man-machine interaction interface of the preset virtualization automatic operation and maintenance service, so that the target virtual machine of the target physical server can utilize the new configuration information to change the corresponding container to be changed.
8. A virtualized service deployment apparatus, applied to an operation and maintenance server, comprising:
the service acquisition module is used for acquiring a preset virtualized automatic operation and maintenance service;
the condition judging module is used for judging whether the communication state between the current self and the server network where the physical server is located meets the preset data communication condition or not;
the virtual machine deployment request acquisition module is used for acquiring a preset virtual machine deployment request if the preset data communication condition is met currently;
the virtual machine configuration information determining module is used for determining a plurality of virtual machines to be deployed and corresponding virtual machine configuration information based on the preset virtual machine deployment request so as to obtain a virtual machine configuration information set;
the virtual machine configuration information sending module is used for determining a plurality of physical servers to be deployed from the server network according to the virtual machine configuration information set, and sending the virtual machine configuration information to the plurality of physical servers to be deployed through a man-machine interaction interface of the preset virtualized automatic operation and maintenance service so as to deploy the plurality of virtual machines to be deployed on the plurality of physical servers to be deployed.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the virtualized service deployment method of any of claims 1 to 7.
10. A computer readable storage medium for storing a computer program which when executed by a processor implements the virtualized service deployment method of any of claims 1-7.
CN202211726540.9A 2022-12-30 2022-12-30 Virtualized service deployment method, device, equipment and storage medium Pending CN116069445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211726540.9A CN116069445A (en) 2022-12-30 2022-12-30 Virtualized service deployment method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211726540.9A CN116069445A (en) 2022-12-30 2022-12-30 Virtualized service deployment method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116069445A true CN116069445A (en) 2023-05-05

Family

ID=86178003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211726540.9A Pending CN116069445A (en) 2022-12-30 2022-12-30 Virtualized service deployment method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116069445A (en)

Similar Documents

Publication Publication Date Title
CN101197743B (en) Connection control in thin client system
EP1643361A2 (en) Updating software while it is running
CN107566165B (en) Method and system for discovering and deploying available resources of power cloud data center
CN110719209B (en) Cluster network configuration method, system, equipment and readable storage medium
CN109725950B (en) Method, device and storage medium for realizing single-instance operation of client
CN110750343B (en) Cluster system timing task scheduling control method and cluster system
CN104038390A (en) Linux server cluster unified peripheral event monitoring method based on netlink
CN111339194A (en) Automatic scheduling method and device for middleware of database access layer
CN101453473A (en) Remote service system based on different operation systems and equipment thereof
CN108595195B (en) Application program updating method, device, terminal and storage medium
CN113672336A (en) K8S container cluster deployment method, device, equipment and readable storage medium
CN108965403A (en) O&M monitors establishment of connection method and terminal device
CN108073426B (en) Software management method, device and system based on cloud computing
CN113268254A (en) Cluster system installation method and device, electronic equipment and storage medium
CN109495298B (en) Method and device for managing nodes in OpenStack system
CN116069445A (en) Virtualized service deployment method, device, equipment and storage medium
CN113746676B (en) Network card management method, device, equipment, medium and product based on container cluster
EP3467655A1 (en) System and method for mpi implementation in an embedded operating system
CN115550427A (en) Equipment upgrading method, device, equipment and storage medium
CN115442285A (en) Network testing method, device, equipment and medium based on virtualization configuration
US11425203B2 (en) Commissioning a virtualized network function
CN115514750A (en) Electronic device remote control method, server, system, medium, and device
CN115865667B (en) Network switching method, device, equipment and storage medium
CN107317880B (en) Method and device for realizing load balance
CN109150941B (en) Data center physical resource floating method

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