CN116126462A - Method and device for service deployment in virtual scene and cloud server - Google Patents

Method and device for service deployment in virtual scene and cloud server Download PDF

Info

Publication number
CN116126462A
CN116126462A CN202211622486.3A CN202211622486A CN116126462A CN 116126462 A CN116126462 A CN 116126462A CN 202211622486 A CN202211622486 A CN 202211622486A CN 116126462 A CN116126462 A CN 116126462A
Authority
CN
China
Prior art keywords
virtual machine
request
service
task
target
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
CN202211622486.3A
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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202211622486.3A priority Critical patent/CN116126462A/en
Publication of CN116126462A publication Critical patent/CN116126462A/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/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • 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
    • 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/45595Network integration; Enabling network access in 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)
  • Computer And Data Communications (AREA)

Abstract

The method is applied to a cloud management platform, a service deployment request sent by a user through a service deployment interface is obtained through a host task arrangement management module, and a task arrangement request is generated in response to the service deployment request; the method comprises the steps that a host agent module receives a task arrangement request, analyzes the task arrangement request to obtain at least one virtual machine identifier, determines a target host serial port corresponding to each virtual machine identifier, and sends the task arrangement request to the target host serial port, so that the virtual machine agent module in a target virtual machine can obtain the task arrangement request through a virtual machine serial port establishing a channel with the target host serial port and send the task arrangement request to a virtual machine task arrangement management module of the target virtual machine, and the virtual machine task arrangement management module improves service deployment efficiency through responding to a client of a task arrangement request for deploying target services.

Description

Method and device for service deployment in virtual scene and cloud server
Technical Field
The present invention relates to the field of virtual machine service deployment technologies, and in particular, to a method and an apparatus for service deployment in a virtual scenario, and a cloud server.
Background
In a virtual scenario, the need for service deployment to virtual machines is often faced. Specifically, a service client needs to be deployed in a virtual machine, and a communication connection is established between the virtual machine and a service server through a host, so that the virtual machine communicates with the service server through the client.
In the related art, before deploying the clients of the service, the network communication between the virtual machine and the host, that is, between the virtual machine and the cloud server, needs to be tuned by a worker, and when a large number of clients of the target service are required to be deployed, the workload of tuning the network between each virtual machine and the cloud server by the worker is obviously huge, so that the service deployment efficiency is seriously reduced.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a method, a device and a system for service deployment in a virtual scene and a cloud server, so that communication between a virtual machine and the cloud server is realized without switching on a virtual machine network.
The first aspect of the present application provides a method for service deployment in a virtual scenario, which is applied to a cloud management platform, where the cloud management platform is deployed on a cloud server, and the cloud server is further deployed with at least one virtual machine, and the cloud management platform is configured to perform service deployment on the at least one virtual machine, and includes:
Acquiring a service deployment request sent by a user through a service deployment interface through a host task orchestration management module, responding to the service deployment request, and generating an orchestration task request; the service deployment request carries at least one virtual machine identifier to be subjected to service deployment;
the method comprises the steps that a host agent module receives a task arrangement request, analyzes the task arrangement request to obtain at least one virtual machine identifier, determines a target host serial port corresponding to each virtual machine identifier, and sends the task arrangement request to the target host serial port, so that a virtual machine agent module in a target virtual machine obtains the task arrangement request through a virtual machine serial port establishing a channel with the target host serial port and sends the task arrangement request to a virtual machine task arrangement management module of the target virtual machine, and the virtual machine task arrangement management module deploys a client of a target service by responding to the task arrangement request.
Optionally, the generating, in response to the service deployment request, a orchestration task request includes:
responding to the service deployment request, and generating an orchestration task request carrying at least one virtual machine identifier to be subjected to service deployment based on a first task and a second task; the first task comprises at least one of an environment detection task, an installation result checking task and an anti-killing monitoring task, and the second task comprises a downloading task and an installation task.
Optionally, the method further comprises:
receiving a service downloading request sent to a virtual machine serial port by a virtual machine agent module of the target virtual machine through the host serial port, wherein the service downloading request is generated after the virtual machine task arrangement management module responds to the task arrangement request;
the service downloading request is analyzed through the host agent module, a first address of the target virtual machine is determined, a second address which establishes a mapping relation with the first address is determined based on a pre-established routing mapping table, the service downloading request is sent to the second address, a service end of a target service corresponding to the second address obtains the service downloading request, and an installation package of the target service is sent after the service downloading request is responded.
Optionally, the method further comprises:
after the host agent module receives the service end of the target service and responds to the service downloading request, the installation package of the target service is sent through a second address, the installation package of the target service is sent to the host serial port, so that the virtual machine agent module obtains the installation package of the target service through the virtual machine serial port and sends the installation package to the virtual machine task arrangement management module, and the virtual machine task arrangement management module deploys the client end of the target service based on the installation package of the target service.
Optionally, the method further comprises:
receiving an information uploading request sent to the virtual machine serial port by the virtual machine agent module through the host serial port; the information uploading request is generated by a client of the target service deployed by the target virtual machine and carries virtual machine information and/or operation information of the target service;
and analyzing the information uploading request through the host agent module, determining a first address of the target virtual machine, determining a second address establishing a mapping relation with the first address based on a pre-established routing mapping table, and sending the information uploading request to the second address, so that a server side of the target service corresponding to the second address obtains the information uploading request.
Optionally, the method further comprises:
and receiving the mapping relation between the second address and the first address written by the server side of the target service through the host agent module, and storing the mapping relation into the routing mapping table.
The second aspect of the present application provides a device for service deployment in a virtual scenario, which is applied to a cloud management platform, where the cloud management platform is deployed on a cloud server, and the cloud server is further deployed with at least one virtual machine, and the cloud management platform is configured to perform service deployment on the at least one virtual machine, and includes:
The host serial port is used for establishing serial port transmission channels corresponding to the virtual machine serial ports of each virtual machine one by one respectively;
the host task orchestration management module is used for acquiring a service deployment request sent by a user through a service deployment interface, responding to the service deployment request and generating an orchestration task request; the service deployment request carries at least one virtual machine identifier to be subjected to service deployment;
the host agent module is used for receiving the task arrangement request, analyzing the task arrangement request to obtain the at least one virtual machine identifier, determining a target host serial port corresponding to each virtual machine identifier from the at least one host serial port, sending the task arrangement request to the target host serial port, enabling the virtual machine agent module in the target virtual machine to obtain the task arrangement request through the virtual machine serial port establishing a channel with the target host serial port, and sending the task arrangement request to the virtual machine task arrangement management module of the target virtual machine, wherein the virtual machine task arrangement management module is used for deploying a client of a target service by responding to the task arrangement request.
Optionally, the host task orchestration management module responds to the service deployment request to generate an orchestration task request, specifically: responding to the service deployment request, and generating an arranging task request carrying at least one virtual machine identifier to be subjected to service deployment based on an environment monitoring task, a downloading task, an installation result checking task and an anti-killing monitoring task.
Optionally, the host serial port is further configured to receive a service download request sent to a virtual machine serial port by a virtual machine proxy module of the target virtual machine, where the service download request is generated after the virtual machine task orchestration management module responds to the orchestration task request;
the host agent module is further configured to parse the service download request, determine a first address of the target virtual machine, determine a second address that establishes a mapping relationship with the first address based on a pre-established routing mapping table, send the service download request to the second address, so that a server side of a target service corresponding to the second address obtains the service download request, and send an installation package of the target service after responding to the service download request.
Optionally, the host agent module is further configured to receive an installation package of the target service sent by the second address after the service end of the target service responds to the service download request, and send the installation package of the target service to the host serial port, so that the virtual machine agent module in the target virtual machine obtains the installation package of the target service through the virtual machine serial port and sends the installation package to the virtual machine task orchestration management module, where the virtual machine task orchestration management module deploys the client end of the target service based on the installation package of the target service.
Optionally, the host serial port is further configured to receive an information upload request sent to the virtual machine serial port by the virtual machine proxy module; the information uploading request is generated by a client of the target service deployed by the target virtual machine and carries virtual machine information and/or operation information of the target service;
the host agent module is further configured to parse the information upload request, determine a first address of the target virtual machine, determine a second address that establishes a mapping relationship with the first address based on a pre-established routing mapping table, and send the information upload request to the second address, so that a server side of the target service corresponding to the second address obtains the information upload request.
Optionally, the host agent module is further configured to receive a mapping relationship between the second address and the first address written by the server side of the target service, and store the mapping relationship in the routing mapping table.
A third aspect of the present application provides a cloud server, including:
a processor; and
a memory having executable code stored thereon which, when executed by the processor, causes the processor to perform the method as described above.
The method for service deployment in the virtual scene is applied to a cloud management platform, the cloud management platform is deployed on a cloud server, the cloud server is further provided with at least one virtual machine, the cloud management platform is used for carrying out service deployment on the at least one virtual machine, specifically, a service deployment request sent by a user through a service deployment interface is obtained through a host task scheduling management module, and a scheduling task request is generated in response to the service deployment request; the service deployment request carries at least one virtual machine identifier to be subjected to service deployment; the method comprises the steps that a host agent module receives a task arrangement request, analyzes the task arrangement request to obtain at least one virtual machine identifier, determines a target host serial port corresponding to each virtual machine identifier, and sends the task arrangement request to the target host serial port, so that a virtual machine agent module in a target virtual machine obtains the task arrangement request through a virtual machine serial port establishing a channel with the target host serial port and sends the task arrangement request to a virtual machine task arrangement management module of the target virtual machine, and the virtual machine task arrangement management module deploys a client of a target service by responding to the task arrangement request;
Therefore, the service deployment instruction can be sent to the target virtual machine through the serial port transmission channel established between the host serial port of the cloud management platform and the virtual machine serial port of the target virtual machine needing service deployment, so that communication can be carried out through the serial port transmission channel during service deployment, a network between the cloud server and the target virtual machine is not required to be manually connected, and service deployment efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular descriptions of exemplary embodiments of the application as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the application.
Fig. 1 is a schematic structural diagram of a cloud management platform and a virtual machine according to an embodiment of a method of the present application;
FIG. 2 is a flow chart illustrating a method for service deployment in a virtual scenario according to one embodiment of the present application;
FIG. 3 is a flow chart of a method for service deployment in a virtual scenario according to another embodiment of the present application;
FIG. 4 is a schematic view of an application scenario according to another embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus for service deployment in a virtual scenario according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a cloud server according to still another embodiment of the present application.
Detailed Description
Preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The embodiment of the method provides a service deployment method in a virtual scene, which is applied to a cloud management platform, wherein the cloud management platform is deployed on a cloud server, the cloud server is further provided with at least one virtual machine, and the cloud management platform is used for carrying out service deployment on the at least one virtual machine.
In the application, a cloud management platform deployed on a cloud server and each virtual machine deployed on the cloud server are provided with a functional module for service deployment, and the cloud management platform and the virtual machines realize data communication through a serial port transmission channel. Referring to fig. 1, taking communication between a cloud management platform and a virtual machine as an example, a HOST task arrangement management module VMToolsAPI-HOST, a HOST agent module G2HProxy-HOST, and a HOST serial port are provided on the cloud management platform, and a virtual machine task arrangement management module VMToolsAPI-guiest, a virtual machine agent module G2 HProxy-guiest, and a virtual machine serial port are provided on the virtual machine.
And the serial port transmission channel is established between the host serial port and the virtual machine serial port. It should be noted that, the host serial port set by the cloud management platform has a one-to-one correspondence with the virtual machine serial port set by the virtual machine, that is, the cloud management platform sets a host serial port for each virtual machine, the host serial port establishes a serial port transmission channel corresponding to the virtual machine serial port of the virtual machine one by one, and in order to distinguish which virtual machine corresponds to each host serial port, the application also establishes a one-to-one correspondence between the host serial port and the virtual machine identifier, so that the serial port transmission channel of the virtual machine corresponding to the virtual machine identifier can be determined based on the virtual machine identifier.
Optionally, the HOST task orchestration management module VMToolsAPI-HOST and the virtual machine task orchestration management module VMToolsAPI-guist may be disposed at an application layer, the HOST agent module G2HProxy-HOST and the virtual machine agent module G2 HProxy-guist may be disposed at an agent layer, and the HOST serial port and the virtual machine serial port may be disposed at a tunnel layer.
As shown in fig. 2, the method may include the following process:
step 201: acquiring a service deployment request sent by a user through a service deployment interface through a host task orchestration management module, responding to the service deployment request, and generating an orchestration task request;
The service deployment request carries at least one virtual machine identifier to be subjected to service deployment.
In the application, the cloud management platform can provide a service deployment interface for a user, and when the user needs to perform service deployment on the virtual machine, a service deployment request is sent through the service deployment interface. In the implementation process, the service deployment interface can provide service deployment buttons, each virtual machine can respectively correspond to one service deployment button, and after a user triggers the service deployment button of the virtual machine needing service deployment, the cloud management platform can receive a service deployment request carrying at least one virtual machine identifier to be subjected to service deployment; or, all virtual machines correspond to a service deployment button, the user selects the virtual machine identifier required to be deployed, for example, by triggering a graph with the virtual machine identifier to select, then triggering the service deployment button, and the cloud management platform can receive a service deployment request carrying at least one virtual machine identifier to be deployed. Of course, the service deployment interface can also provide a service deployment window, and the user can input the virtual machine identifier required to be deployed in the service deployment window, and send a service deployment request to the cloud management platform by clicking a deployment button provided by the service deployment window after the user finishes inputting the virtual machine identifier.
The method is not limited to the method for service deployment by the user, and other methods for sending the service deployment request to the cloud management platform by the user are all within the protection scope of the method.
In some embodiments, in response to the service deployment request in step 201, generating a orchestration task request may specifically include: and responding to the service deployment request, and generating a task scheduling request carrying at least one virtual machine identifier to be subjected to service deployment based on the first task and the second task.
Wherein the first task includes at least one of an environment detection task, an installation result task, and an anti-backfire monitoring task.
The second task includes a download task and an install task.
The environment detection task is used for detecting the current environment of the virtual machine needing task deployment so as to judge whether the service deployment condition is met or not, and the task is executed before the task is downloaded. Specifically, the environment detection task may be configured to detect a current disk remaining amount of the virtual machine and/or a type of an operating system, determine that a service deployment condition is satisfied if the current disk remaining amount of the virtual machine is greater than a preset remaining amount and/or the operating system is a specified operating system, and otherwise determine that the service deployment condition is not satisfied, and prohibit the virtual machine from executing the second task if the service deployment condition is not satisfied.
The installation result task is used for detecting the service deployment result after the virtual machine deploys the client of the target service, and the task is executed after the installation task. Specifically, the installation result task is used for detecting whether the client side of the virtual machine for deploying the target service is successful or not, and feeding back the detection result task to the server side of the target service through the cloud management platform.
The anti-killing monitoring task is used for monitoring a client of a target service deployed by the virtual machine, and the task is executed after the task is installed. Specifically, the anti-killing monitoring task is used for monitoring a core file of a deployed client of a target service, providing a key input interface when a user wants to delete the core file of the client of the target service, inputting a key by the user, identifying whether the input key is correct, prohibiting deletion if not, and allowing deletion if correct; and the anti-killing monitoring task is also used for feeding back the running state of the deployed client of the target service to the server of the target service through the cloud management platform at fixed time.
The downloading task is used for requesting the client for downloading the target service from the server of the target service through the cloud management platform, and specifically, executing the downloading task can be used for generating a service downloading request.
The installation task is used for installing an installation package of the target service. In the implementation process, the downloading task is executed first, and the installation task is executed after the installation package of the target service is acquired.
Step 202: the method comprises the steps that a host agent module receives a task arrangement request, analyzes the task arrangement request to obtain at least one virtual machine identifier, determines a target host serial port corresponding to each virtual machine identifier, and sends the task arrangement request to the target host serial port, so that a virtual machine agent module in a target virtual machine obtains the task arrangement request through a virtual machine serial port establishing a channel with the target host serial port and sends the task arrangement request to a virtual machine task arrangement management module of the target virtual machine, and the virtual machine task arrangement management module deploys a client of a target service by responding to the task arrangement request.
Each host serial port is correspondingly provided with a virtual machine identifier, and the task arranging request is sent to the target host serial port by determining the target host serial port corresponding to the virtual machine identifier carried in the task arranging request, so that the task arranging request is transmitted to the target virtual machine corresponding to the virtual machine identifier through a serial port transmission channel established between the target host serial port and the virtual machine serial port of the virtual machine.
The virtual machine agent module in the target virtual machine acquires the task arrangement request through a virtual machine serial port establishing a channel with the target host serial port and sends the task arrangement request to the virtual machine task arrangement management module of the target virtual machine, and the virtual machine task arrangement management module deploys a client of the target service by responding to the task arrangement request.
In this embodiment, a host task orchestration management module obtains a service deployment request sent by a user through a service deployment interface, and generates an orchestration task request in response to the service deployment request; the method comprises the steps that a host agent module receives a task arrangement request, analyzes the task arrangement request to obtain at least one virtual machine identifier, determines a target host serial port corresponding to each virtual machine identifier, and sends the task arrangement request to the target host serial port, so that a virtual machine agent module in a target virtual machine obtains the task arrangement request through a virtual machine serial port establishing a channel with the target host serial port and sends the task arrangement request to a virtual machine task arrangement management module of the target virtual machine, and the virtual machine task arrangement management module deploys a client of a target service by responding to the task arrangement request; therefore, the service deployment instruction can be sent to the target virtual machine through the serial port transmission channel established between the host serial port of the cloud management platform and the virtual machine serial port of the target virtual machine needing service deployment, so that communication can be carried out through the serial port transmission channel during service deployment, a network between the cloud server and the target virtual machine is not required to be manually connected, and service deployment efficiency is improved.
Furthermore, the user can perform service deployment on one or more virtual machines through the service deployment interface, batch service deployment is realized, the user does not need to perform service deployment on the virtual machines one by one, and deployment efficiency is improved.
In the application, the target virtual machine needs to send a service downloading request to a service end of the target service to request a client end for deploying the target service. Then, communication needs to be performed between the target virtual machine and the server side of the target service, and in the related art, only if the network between the target virtual machine and the cloud server is turned on, the target virtual machine can communicate with the server side of the target service through the cloud server. When a large number of clients for deploying the target service are required, the workload of the staff for tuning the network between each virtual machine and the cloud server is obviously huge, and the service deployment efficiency is seriously reduced.
In order to solve the problem, another embodiment of the method provides a method for service deployment in a virtual scene, which is applied to a cloud management platform, wherein the cloud management platform is deployed on a cloud server, the cloud server is further deployed with at least one virtual machine, and the cloud management platform is used for service deployment of the at least one virtual machine.
As shown in fig. 3, the method may include the steps of:
step 301: acquiring a service deployment request sent by a user through a service deployment interface through a host task orchestration management module, responding to the service deployment request, and generating an orchestration task request;
the service deployment request carries at least one virtual machine identifier to be subjected to service deployment.
Step 302: the method comprises the steps that a host agent module receives a task arrangement request, analyzes the task arrangement request to obtain at least one virtual machine identifier, determines a target host serial port corresponding to each virtual machine identifier, and sends the task arrangement request to the target host serial port, so that a virtual machine agent module in a target virtual machine obtains the task arrangement request through a virtual machine serial port establishing a channel with the target host serial port and sends the task arrangement request to a virtual machine task arrangement management module of the target virtual machine, and the virtual machine task arrangement management module deploys a client of a target service by responding to the task arrangement request;
step 303: receiving a service downloading request sent to a virtual machine serial port by a virtual machine agent module of the target virtual machine through the host serial port;
The service downloading request is generated after the virtual machine task scheduling management module responds to the scheduling task request.
Step 304: the service downloading request is analyzed through the host agent module, a first address of the target virtual machine is determined, a second address which establishes a mapping relation with the first address is determined based on a pre-established routing mapping table, the service downloading request is sent to the second address, a service end of a target service corresponding to the second address obtains the service downloading request, and an installation package of the target service is sent after the service downloading request is responded.
In step 303, the virtual machine task orchestration management module of the target virtual machine receives the orchestration task request, and may generate a service download request by responding to the orchestration task request. Optionally, the virtual machine task arrangement management module obtains the first task and the second task by analyzing the task arrangement request, and sequentially executes the first task and the second task, and when the download task in the second task is executed, a service download request is generated and sent to the virtual machine proxy module, the virtual machine proxy module sends the task download request to the cloud management platform through the virtual machine serial port, and the cloud management platform receives the service download request through the serial port transmission channel established by the host serial port and the virtual machine serial port.
In the step 304, the host agent module may determine the first address of the target virtual machine by analyzing the service download request, where the first address includes the IP address of the target virtual machine and the port number corresponding to the service download request. For example, the IP address of the target virtual machine is: 127.0.0.0, the port number corresponding to the service download request is 8000; then the first address is: 127.0.0.0:8000.
the host agent module maintains a routing mapping table in advance, and the routing mapping table has a mapping relation between a first address of the virtual machine and a second address of the server, so that the host agent module can determine the second address corresponding to the first address through the routing mapping table.
For example, the mapping relationship in the routing mapping table is:
127.0.0.1:8080- > 200.201.172.66:8888. then the host agent module may determine the address 127.0.0.0 to be associated with the first address: 8000 corresponds to the second address: 200.201.172.66:8888.
it should be noted that, in the present application, network communication is not required between the virtual machine and the cloud management platform, but network communication is required between the cloud management platform and the service end of the target service, so that the service end of the target service can obtain the service download request from the second address under the condition of establishing network connection with the cloud management platform, and then send the installation package of the target service after responding to the service download request.
In the related art, a user needs to manually deploy services in the virtual machines, the deployment process is long and complicated, and the manual deployment mode is not only energy-consuming but also easy to make mistakes due to the huge number of virtual machines in the virtual environment.
To solve the problem, on the basis of the above method embodiment, the method may further include the following steps:
after receiving a service end response service downloading request of a target service through a host agent module, sending an installation package of the target service through a second address to a host serial port, so that the virtual machine agent module obtains the installation package of the target service through the virtual machine serial port and sends the installation package to a virtual machine task arrangement management module, and the virtual machine task arrangement management module deploys a client end of the target service based on the installation package of the target service.
Specifically, after receiving a service downloading request, the server side of the target service sends an installation package of the target service to the second address by responding to the service downloading request, the host agent module obtains the installation package of the target service and can send the installation package to the host serial port, the virtual machine agent module of the virtual machine obtains the installation package of the target service through the virtual machine serial port establishing a serial port transmission channel with the host serial port and sends the installation package of the target service to the virtual machine task arrangement management module of the virtual machine, and after the virtual machine task arrangement management module obtains the installation package of the target service, the client side of the target service can be deployed based on the installation package of the target service.
Therefore, in this embodiment, the host task orchestration management module obtains a service deployment request sent by a user through a service deployment interface, and responds to the service deployment request to generate an orchestration task request; the method comprises the steps that a host agent module receives a task arrangement request, analyzes the task arrangement request to obtain at least one virtual machine identifier, determines a target host serial port corresponding to each virtual machine identifier, and sends the task arrangement request to the target host serial port, so that a virtual machine agent module in a target virtual machine obtains the task arrangement request through a virtual machine serial port establishing a channel with the target host serial port and sends the task arrangement request to a virtual machine task arrangement management module of the target virtual machine, and the virtual machine task arrangement management module deploys a client of a target service by responding to the task arrangement request; that is, the service deployment instruction can be sent to the target virtual machine through the serial port channel established by the host serial port of the cloud management platform and the virtual machine serial port of the target virtual machine needing service deployment, so that when service deployment is performed, a network between the cloud server and the target virtual machine does not need to be manually connected, and service deployment efficiency is improved.
Further, the cloud management platform realizes communication between the target virtual machine and the service end of the target service through the routing mapping table, namely, the target virtual machine does not need to be communicated with a network between the virtual machine and the cloud server when communicating with the service end of the target service through the cloud management platform.
And the cloud management platform can also send the service downloading request issued by the target virtual machine to the service end of the target service, and feed back the installation package of the target service sent by the service end of the target service in response to the service downloading request to the target virtual machine, so that the target virtual machine can deploy the client end of the target service based on the installation package, thereby realizing automatic batch deployment and improving the deployment efficiency.
The embodiment of the method also provides a service deployment method in a virtual scene, and after a target virtual machine deploys a client of a target service, the method further comprises the following steps:
1.1 Receiving an information uploading request sent to the virtual machine serial port by the virtual machine agent module through the host serial port;
1.2 The host agent module analyzes the information uploading request, determines a first address of the target virtual machine, determines a second address establishing a mapping relation with the first address based on a pre-established routing mapping table, and sends the information uploading request to the second address, so that a server side of the target service corresponding to the second address obtains the information uploading request.
The information uploading request is generated by the client of the target service deployed by the target virtual machine and carries virtual machine information and/or running information of the target service.
The virtual machine information includes: virtual machine unique identification, i.e., one or more of virtual machine ID, processor model number, operating system, etc. The running information is used to characterize the running state of the client of the target service, including the state of the core process, whether the core file is deleted, and so on.
After the target virtual machine deploys and runs the client of the target service, the client of the target service can periodically generate an information uploading request, the virtual machine task arrangement management module of the target virtual machine receives the information uploading request and sends the information uploading request to the virtual machine proxy module, and the virtual machine proxy module sends the information uploading request through a virtual machine serial port.
The host agent module maintains a routing mapping table in advance, and the routing mapping table has a mapping relation between a first address of the virtual machine and a second address of the server, so that the host agent module can determine the second address corresponding to the first address through the routing mapping table, and then sends the information uploading request to the second address.
Optionally, in some embodiments, the method may further comprise: and receiving the mapping relation between the second address and the first address written by the server side of the target service through the host agent module, and storing the mapping relation into the routing mapping table.
That is, the server side of the target service may register the address mapping relationship between the server side and the virtual machine with the host agent module in advance, and the host agent module maintains the registered mapping relationship.
In the embodiment, when the target virtual machine reports information to the server side of the target service through the cloud management platform, the network between the target virtual machine and the cloud server is not required to be switched on, so that service deployment efficiency is improved, and the purpose that the target virtual machine reports information to the server side of the target service is achieved through the cloud management platform through the routing mapping table.
For easy understanding, in another method embodiment of the present application, a specific example is used to describe a flow of communication between a cloud management platform, a cloud server, a target virtual machine, and a server of a target service, and a simple description will be described with reference to fig. 4.
As shown in fig. 4, the cloud management platform is deployed on a cloud server, the virtual machines 1 to n are also deployed on the cloud server, the cloud management platform establishes serial port transmission channels with the virtual machine serial ports of the virtual machines 1 to n through host serial ports, and the cloud management platform establishes network communication with the EDR-MGR.
In this example, the following description is given of each module:
EDR-Agent is taken as an example of a client of a target service, EDR-Agent deployment is taken as an example for explanation, EDR-MGR is taken as a service end specifically taken as a terminal detection response platform, and the EDR-MGR is taken as an example of a service server of the target service.
Referring to fig. 1, a HOST task orchestration management module is called VMToolsAPI-HOST for short;
the HOST agent module is called G2HProxy-HOST for short;
the virtual machine agent module is called as G2HProxy-GUEST for short;
the virtual machine task orchestration management module is called VMToolsAPI-GUEST for short.
1. The flow for triggering batch operations for a user is as follows:
1.1 A serial port transmission channel between a host serial port arranged in the cloud management platform and a virtual machine serial port arranged in the virtual machine is established;
1.2 An administrator triggers batch installation of EDR-agents through a UI interface of a cloud management platform, and the cloud management platform calls REST (Representational State Transfer) API interfaces of sf-openAPIs;
1.3 The sf-open API receives the service deployment instruction request and then reverse-proxies to VMToolsAPI-HOST;
1.4 VMToolsAPI-HOST receives the service deployment request, generates a orchestration task request based on the service deployment request, and sends an http request of the orchestration task request to G2HProxy-HOST;
1.5 After the G2HProxy-HOST receives the task scheduling request, determining a target HOST serial port through a virtual machine identifier carried in the task scheduling request, packaging a message, and writing the task scheduling request into the target HOST serial port;
1.6 G2HProxy-GUEST of the target virtual machine reads the virtual machine serial port, analyzes the message, and agents the task arranging request to the VMToolsAPI-GUEST;
2.7 VMToolsAPI-GUEST receives the orchestration task request, parses the orchestration task request, and obtains the following tasks, for example:
an environment detection task; and executing an environment detection task, and monitoring whether the current installation environment of the target virtual machine meets service deployment conditions.
Downloading a task; responding to the downloading task, generating a service downloading request, and sending the service downloading request to a server side of the target service through the cloud management platform to request a client side for deploying the target service.
Installing a task; after receiving the installation package of the target service, responding to the installation task to realize the deployment of the client of the target service.
Installing a result task; after the client of the target service is deployed, responding to the installation result task and detecting whether the deployment is successful.
Anti-reverse killing monitoring tasks; when a user needs to delete a core file of a service client, providing a key input interface, inputting a key by the user, and identifying whether the input key is correct, if not, deleting is forbidden, if so, deleting is allowed; and the running state of the deployed client of the target service is fed back to the server of the target service through the cloud management platform at fixed time.
2. The flow of sending the service download request to the service end of the target service by the target virtual machine may be as follows:
2.1 VMToolsAPI-GUEST initiates a service download request to G2 HProxy-GUEST;
2.2 G2 HProxy-guiest receives the service download request, encapsulates the message, and writes the service download request into the virtual machine serial port.
2.3 G2HProxy-HOST reads the HOST serial port, analyzes the message, and obtains a service downloading request;
2.4 G2HProxy-HOST proxies the traffic download request to EDR-MGR through the routing mapping table;
2.5 EDR-MGR obtains service download request.
It should be noted that, a routing mapping table is maintained in the G2HProxy-HOST, and the EDR-MGR can directly implement registration, cancellation, etc. of the routing policy by calling the inner-API provided by the sf-openAPI module of the cloud server.
When the G2HProxy-HOST receives a request of a target virtual machine, a routing mapping table is read, IP and Port of a destination end (EDR-MGR) are acquired according to Port of a source end (target virtual machine), and finally the request is proxied to the EDR-MGR.
Refer to the following code and table 1 description for the routing field:
set up 127.0.0.0 in the routing mapping table: 8000-200.201.172.66:8999, wherein 127.0.0.0 is the local IP of the target virtual machine, 8000 is the Port of G2HProxy-GUEST listening of the target virtual machine, 200.201.172.66:8999 is the IP and Port of EDR-MGR.
That is, the target virtual machine does not need to pay attention to the IP and Port of the destination end, and the target virtual machine requests the local Port:8000, then G2HProxy-HOST can proxy the request to the destination.
The code is as follows:
Figure BDA0004003006700000111
TABLE 1
Figure BDA0004003006700000121
3. Referring to the description of the routing mapping table maintained for G2HProxy-HOST above, the process of sending an information upload request to EDR-MGR by EDR-Agent in the target virtual machine may be as follows:
3.1 EDR-MGR calls an inner API registration routing policy provided by sf-openAPI in advance. Assume that a 127.0.0.1 is registered: 8080- > 200.201.172.66:8888 routing policy;
3.2 G2HProxy-HOST persists the routing policy in the routing mapping table;
3.3 EDR-Agent initiates information report request, request 127.0.0.1:8080/report;
3.4 G2HProxy-GUEST encapsulation message, writing the information reporting request into the virtual machine serial port;
3.5 G2HProxy-HOST read HOST serial port, parse the message;
3.6 2HProxy-HOST reads the routing mapping table, acquires the destination IP and Port through the Port 8080 of the source, and then proxies the information reporting request to 200.201.172.66:8888/report, completes one information report request.
Corresponding to the method embodiment, the embodiment of the application device also provides a device for service deployment in the virtual scene.
An embodiment of a device provides a device for service deployment in a virtual scene, which is applied to a cloud management platform, wherein the cloud management platform is deployed on a cloud server, the cloud server is further deployed with at least one virtual machine, and the cloud management platform is used for service deployment of the at least one virtual machine, as shown in fig. 5, and the device comprises: a host task orchestration management module 110, a host agent module 120, and at least one host serial port 130; wherein:
the host serial port 130 is configured to establish serial port transmission channels corresponding to the virtual machine serial ports of each virtual machine one by one;
the host task orchestration management module 110 is configured to obtain a service deployment request sent by a user through a service deployment interface, respond to the service deployment request, and generate an orchestration task request; the service deployment request carries at least one virtual machine identifier to be subjected to service deployment;
the host agent module 120 receives the task scheduling request, analyzes the task scheduling request to obtain the at least one virtual machine identifier, determines a target host serial port corresponding to each virtual machine identifier from the at least one host serial port, and sends the task scheduling request to the target host serial port, so that a virtual machine agent module in a target virtual machine obtains the task scheduling request through a virtual machine serial port establishing a channel with the target host serial port, and sends the task scheduling request to a virtual machine task scheduling management module of the target virtual machine, wherein the virtual machine task scheduling management module deploys a client of a target service by responding to the task scheduling request.
In some embodiments, the host task orchestration management module 110 responds to the service deployment request to generate an orchestration task request, specifically: responding to the service deployment request, and generating an arranging task request carrying at least one virtual machine identifier to be subjected to service deployment based on an environment monitoring task, a downloading task, an installation result checking task and an anti-killing monitoring task.
In this embodiment, a host task orchestration management module obtains a service deployment request sent by a user through a service deployment interface, and generates an orchestration task request in response to the service deployment request; the method comprises the steps that a host agent module receives a task arrangement request, analyzes the task arrangement request to obtain at least one virtual machine identifier, determines a target host serial port corresponding to each virtual machine identifier, and sends the task arrangement request to the target host serial port, so that a virtual machine agent module in a target virtual machine obtains the task arrangement request through a virtual machine serial port establishing a channel with the target host serial port and sends the task arrangement request to a virtual machine task arrangement management module of the target virtual machine, and the virtual machine task arrangement management module deploys a client of a target service by responding to the task arrangement request; therefore, the service deployment instruction can be sent to the target virtual machine through the serial port transmission channel established between the host serial port of the cloud management platform and the virtual machine serial port of the target virtual machine needing service deployment, so that communication can be carried out through the serial port transmission channel during service deployment, a network between the cloud server and the target virtual machine is not required to be manually connected, and service deployment efficiency is improved.
Furthermore, the user can perform service deployment on one or more virtual machines through the service deployment interface, batch service deployment is realized, the user does not need to perform service deployment on the virtual machines one by one, and deployment efficiency is improved.
In another embodiment of the apparatus, the host serial port is further configured to receive a service download request sent to the virtual machine serial port by the virtual machine proxy module of the target virtual machine;
the service downloading request is generated after the virtual machine task scheduling management module responds to the scheduling task request.
The host agent module is further configured to parse the service download request, determine a first address of the target virtual machine, determine a second address that establishes a mapping relationship with the first address based on a pre-established routing mapping table, send the service download request to the second address, so that a service end of a target service corresponding to the second address obtains the service download request, and send an installation package of the target service after responding to the service download request.
In still another embodiment of the present application, the host agent module is further configured to receive an installation package of the target service sent by the second address after the service end of the target service responds to the service download request, and send the installation package of the target service to the host serial port, so that the virtual machine agent module in the target virtual machine obtains the installation package of the target service through the virtual machine serial port and sends the installation package of the target service to the virtual machine task orchestration management module, where the virtual machine task orchestration management module deploys the client of the target service based on the installation package of the target service.
In another embodiment of the present application, the host serial port is further configured to receive an information upload request sent by the virtual machine proxy module to the virtual machine serial port; the information uploading request is generated by a client of the target service deployed by the target virtual machine and carries virtual machine information and/or operation information of the target service;
the host agent module is further configured to parse the information upload request, determine a first address of the target virtual machine, determine a second address that establishes a mapping relationship with the first address based on a pre-established routing mapping table, and send the information upload request to the second address, so that a server side of the target service corresponding to the second address obtains the information upload request.
Optionally, in some embodiments, the host agent module is further configured to receive a mapping relationship between the second address and the first address written by the server side of the target service, and store the mapping relationship in the routing mapping table.
Still another embodiment of the present application further provides a cloud server, referring to fig. 6, the cloud server 1000 includes a memory 1010 and a processor 1020.
The processor 1020 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Memory 1010 may include various types of storage units, such as system memory, read Only Memory (ROM), and persistent storage. Where the ROM may store static data or instructions that are required by the processor 1020 or other modules of the computer. The persistent storage may be a readable and writable storage. The persistent storage may be a non-volatile memory device that does not lose stored instructions and data even after the computer is powered down. In some embodiments, the persistent storage device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the persistent storage may be a removable storage device (e.g., diskette, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as dynamic random access memory. The system memory may store instructions and data that are required by some or all of the processors at runtime. Furthermore, memory 1010 may comprise any combination of computer-readable storage media including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic disks, and/or optical disks may also be employed. In some implementations, memory 1010 may include readable and/or writable removable storage devices such as Compact Discs (CDs), digital versatile discs (e.g., DVD-ROMs, dual-layer DVD-ROMs), blu-ray discs read only, super-density discs, flash memory cards (e.g., SD cards, min SD cards, micro-SD cards, etc.), magnetic floppy disks, and the like. The computer readable storage medium does not contain a carrier wave or an instantaneous electronic signal transmitted by wireless or wired transmission.
The memory 1010 has stored thereon executable code that, when processed by the processor 1020, can cause the processor 1020 to perform some or all of the methods described above.
The aspects of the present application have been described in detail hereinabove with reference to the accompanying drawings. In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments. Those skilled in the art will also appreciate that the acts and modules referred to in the specification are not necessarily required in the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application may be sequentially adjusted, combined and pruned according to actual needs, and the modules in the apparatus of the embodiment of the present application may be combined, divided and pruned according to actual needs.
Furthermore, the method according to the present application may also be implemented as a computer program or computer program product comprising computer program code instructions for performing part or all of the steps of the above-described method of the present application.
Alternatively, the present application may also be embodied as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having stored thereon executable code (or a computer program, or computer instruction code) that, when executed by a processor of an electronic device (or electronic device, server, etc.), causes the processor to perform some or all of the steps of the above-described methods according to the present application.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the application herein may be implemented as electronic hardware, computer software, or combinations of both.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The embodiments of the present application have been described above, the foregoing description is exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the improvement of technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (13)

1. The service deployment method in the virtual scene is characterized by being applied to a cloud management platform, wherein the cloud management platform is deployed on a cloud server, the cloud server is further deployed with at least one virtual machine, and the cloud management platform is used for carrying out service deployment on the at least one virtual machine and comprises the following steps:
acquiring a service deployment request sent by a user through a service deployment interface through a host task orchestration management module, responding to the service deployment request, and generating an orchestration task request; the service deployment request carries at least one virtual machine identifier to be subjected to service deployment;
The method comprises the steps that a host agent module receives a task arrangement request, analyzes the task arrangement request to obtain at least one virtual machine identifier, determines a target host serial port corresponding to each virtual machine identifier, and sends the task arrangement request to the target host serial port, so that a virtual machine agent module in a target virtual machine obtains the task arrangement request through a virtual machine serial port establishing a channel with the target host serial port and sends the task arrangement request to a virtual machine task arrangement management module of the target virtual machine, and the virtual machine task arrangement management module deploys a client of a target service by responding to the task arrangement request.
2. The method of claim 1, wherein generating an orchestration task request in response to the service deployment request comprises:
responding to the service deployment request, and generating an orchestration task request carrying at least one virtual machine identifier to be subjected to service deployment based on a first task and a second task; the first task comprises at least one of an environment detection task, an installation result checking task and an anti-killing monitoring task, and the second task comprises a downloading task and an installation task.
3. The method as recited in claim 1, further comprising:
receiving a service downloading request sent to a virtual machine serial port by a virtual machine agent module of the target virtual machine through the host serial port, wherein the service downloading request is generated after the virtual machine task arrangement management module responds to the task arrangement request;
the service downloading request is analyzed through the host agent module, a first address of the target virtual machine is determined, a second address which establishes a mapping relation with the first address is determined based on a pre-established routing mapping table, the service downloading request is sent to the second address, a service end of a target service corresponding to the second address obtains the service downloading request, and an installation package of the target service is sent after the service downloading request is responded.
4. A method according to claim 3, further comprising:
after the host agent module receives the service end of the target service and responds to the service downloading request, the installation package of the target service is sent through a second address, the installation package of the target service is sent to the host serial port, so that the virtual machine agent module obtains the installation package of the target service through the virtual machine serial port and sends the installation package to the virtual machine task arrangement management module, and the virtual machine task arrangement management module deploys the client end of the target service based on the installation package of the target service.
5. The method as recited in claim 4, further comprising:
receiving an information uploading request sent to the virtual machine serial port by the virtual machine agent module through the host serial port; the information uploading request is generated by a client of the target service deployed by the target virtual machine and carries virtual machine information and/or operation information of the target service;
and analyzing the information uploading request through the host agent module, determining a first address of the target virtual machine, determining a second address establishing a mapping relation with the first address based on a pre-established routing mapping table, and sending the information uploading request to the second address, so that a server side of the target service corresponding to the second address obtains the information uploading request.
6. The method as recited in claim 5, further comprising:
and receiving the mapping relation between the second address and the first address written by the server side of the target service through the host agent module, and storing the mapping relation into the routing mapping table.
7. The device for service deployment in the virtual scene is characterized by being applied to a cloud management platform, wherein the cloud management platform is deployed on a cloud server, the cloud server is further deployed with at least one virtual machine, and the cloud management platform is used for service deployment of the at least one virtual machine and comprises the following components:
The host serial port is used for establishing serial port transmission channels corresponding to the virtual machine serial ports of each virtual machine one by one respectively;
the host task orchestration management module is used for acquiring a service deployment request sent by a user through a service deployment interface, responding to the service deployment request and generating an orchestration task request; the service deployment request carries at least one virtual machine identifier to be subjected to service deployment;
the host agent module is used for receiving the task arrangement request, analyzing the task arrangement request to obtain the at least one virtual machine identifier, determining a target host serial port corresponding to each virtual machine identifier from the at least one host serial port, sending the task arrangement request to the target host serial port, enabling the virtual machine agent module in the target virtual machine to obtain the task arrangement request through the virtual machine serial port establishing a channel with the target host serial port, and sending the task arrangement request to the virtual machine task arrangement management module of the target virtual machine, wherein the virtual machine task arrangement management module is used for deploying a client of a target service by responding to the task arrangement request.
8. The apparatus of claim 7, wherein the host task orchestration management module generates an orchestration task request in response to the service deployment request, in particular: responding to the service deployment request, and generating an arranging task request carrying at least one virtual machine identifier to be subjected to service deployment based on an environment monitoring task, a downloading task, an installation result checking task and an anti-killing monitoring task.
9. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the host serial port is further used for receiving a service downloading request sent to the virtual machine serial port by the virtual machine agent module of the target virtual machine, wherein the service downloading request is generated after the virtual machine task arrangement management module responds to the task arrangement request;
the host agent module is further configured to parse the service download request, determine a first address of the target virtual machine, determine a second address that establishes a mapping relationship with the first address based on a pre-established routing mapping table, send the service download request to the second address, so that a server side of a target service corresponding to the second address obtains the service download request, and send an installation package of the target service after responding to the service download request.
10. The apparatus of claim 9, wherein the device comprises a plurality of sensors,
the host agent module is further configured to receive an installation package of the target service sent by the second address after the service end of the target service responds to the service downloading request, and send the installation package of the target service to the host serial port, so that the virtual machine agent module in the target virtual machine obtains the installation package of the target service through the virtual machine serial port and sends the installation package to the virtual machine task arrangement management module, and the virtual machine task arrangement management module deploys the client end of the target service based on the installation package of the target service.
11. The apparatus of claim 10, wherein the device comprises a plurality of sensors,
the host serial port is also used for receiving an information uploading request sent to the virtual machine serial port by the virtual machine agent module; the information uploading request is generated by a client of the target service deployed by the target virtual machine and carries virtual machine information and/or operation information of the target service;
the host agent module is further configured to parse the information upload request, determine a first address of the target virtual machine, determine a second address that establishes a mapping relationship with the first address based on a pre-established routing mapping table, and send the information upload request to the second address, so that a server side of the target service corresponding to the second address obtains the information upload request.
12. The apparatus of claim 11, wherein the device comprises a plurality of sensors,
the host agent module is further configured to receive a mapping relationship between the second address and the first address written by the server side of the target service, and store the mapping relationship in the routing mapping table.
13. A cloud server, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of any of claims 1-6.
CN202211622486.3A 2022-12-16 2022-12-16 Method and device for service deployment in virtual scene and cloud server Pending CN116126462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211622486.3A CN116126462A (en) 2022-12-16 2022-12-16 Method and device for service deployment in virtual scene and cloud server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211622486.3A CN116126462A (en) 2022-12-16 2022-12-16 Method and device for service deployment in virtual scene and cloud server

Publications (1)

Publication Number Publication Date
CN116126462A true CN116126462A (en) 2023-05-16

Family

ID=86305512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211622486.3A Pending CN116126462A (en) 2022-12-16 2022-12-16 Method and device for service deployment in virtual scene and cloud server

Country Status (1)

Country Link
CN (1) CN116126462A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662128A (en) * 2023-07-25 2023-08-29 北京翼辉信息技术有限公司 Virtual machine monitoring system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662128A (en) * 2023-07-25 2023-08-29 北京翼辉信息技术有限公司 Virtual machine monitoring system and method
CN116662128B (en) * 2023-07-25 2023-12-12 北京翼辉信息技术有限公司 Virtual machine monitoring system and method

Similar Documents

Publication Publication Date Title
CN110462589B (en) On-demand code execution in a local device coordinator
US10719369B1 (en) Network interfaces for containers running on a virtual machine instance in a distributed computing environment
CN108063714B (en) Network request processing method and device
CN110352401B (en) Local device coordinator with on-demand code execution capability
CN107105050B (en) Storage and downloading method and system for service objects
CN106789153B (en) Multi-channel self-adaptive log recording and outputting method and system for terminal equipment of Internet of things system
CN107291750B (en) Data migration method and device
CN109960634B (en) Application program monitoring method, device and system
US10397353B2 (en) Context enriched distributed logging services for workloads in a datacenter
CN107800663B (en) Method and device for detecting flow offline file
CN114205342B (en) Service debugging routing method, electronic equipment and medium
US6868450B1 (en) System and method for a process attribute based computer network filter
CN112751897A (en) Load balancing method, device, medium and equipment
CN113326155A (en) Information processing method, device, system and storage medium
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
CN116126462A (en) Method and device for service deployment in virtual scene and cloud server
CN110677475A (en) Micro-service processing method, device, equipment and storage medium
US10547590B1 (en) Network processing using asynchronous functions
CN111800441B (en) Data processing method, system, device, user side server, user side and management and control server
CN113364660B (en) Data packet processing method and device in LVS load balancing
CN109905352B (en) Method, device and storage medium for auditing data based on encryption protocol
CN110661673A (en) Heartbeat detection method and device
CN110011850B (en) Management method and device for services in cloud computing system
CN114390108B (en) Method and system for processing user service request
US9787531B2 (en) Automatic notification of isolation

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