CN109600439A - The dispositions method and PaaS platform of PaaS platform based on micro services - Google Patents

The dispositions method and PaaS platform of PaaS platform based on micro services Download PDF

Info

Publication number
CN109600439A
CN109600439A CN201811527264.7A CN201811527264A CN109600439A CN 109600439 A CN109600439 A CN 109600439A CN 201811527264 A CN201811527264 A CN 201811527264A CN 109600439 A CN109600439 A CN 109600439A
Authority
CN
China
Prior art keywords
service module
working machine
paas platform
information
distributed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811527264.7A
Other languages
Chinese (zh)
Other versions
CN109600439B (en
Inventor
李�昊
王辉
韩丁
陈浩栋
周倜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811527264.7A priority Critical patent/CN109600439B/en
Publication of CN109600439A publication Critical patent/CN109600439A/en
Application granted granted Critical
Publication of CN109600439B publication Critical patent/CN109600439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides the dispositions method and PaaS platform of a kind of PaaS platform based on micro services, and the party is used for the PaaS platform, this method comprises: Web service module receives the request message that user is triggered by client, request message is for requesting deployment PaaS platform;PXE service module calls DHCP service module when distributed work machine enters PXE start-up mode, so that DHCP service module is that distributed work machine distributes IP address;Distributed work machine obtains kernel file according to IP address, by TFTP service module;Distributed work machine passes through NFS service module carry Telefile according to IP address and kernel file, start-up operation system.The flexibility of exploitation environmental structure can be improved, so as to promote the efficiency of exploitation and test in the dispositions method and PaaS platform of PaaS platform provided by the invention based on micro services.

Description

PaaS platform and deployment method thereof based on microservice
Technical Field
The invention relates to the field of computers, in particular to a deployment method of a PaaS platform based on micro-services and the PaaS platform.
Background
With the rapid development of cloud computing and big data in the computer industry, the requirement on the development environment in the hardware-assisted virtualization technology is higher and higher, and how to rapidly deploy the development environment in the hardware-assisted virtualization technology is more and more important.
In the prior art, a Docker containerization technology is mainly used for rapidly deploying and developing environments in a Linux hardware-assisted virtualization technology. Specifically, Docker deploys the application in a software container and provides a software abstraction layer on the Linux operating system, and also provides an automatic management mechanism for virtualization of the Linux operating system layer. Whereas Docker creates an independent software container by utilizing the resource separation system in the Linux kernel and the Linux kernel namespace. Finally, the user deploys the development test environment quickly by deploying the target image in the physical machine pre-installed with the Docker environment.
Docker brings great convenience in the aspect of environment rapid construction, but the production environment is not limited to a software level, and when software development and test involve adaptation of a hardware environment, a system virtualization scheme such as Docker cannot achieve the purpose. Its disadvantages are mainly two: firstly, an application program is blocked from hardware, the application program runs in a software layer abstracted by Docker instead of a bare physical machine, namely the production environment of the Docker is relatively fixed and cannot be freely adapted, and further the flexibility of a development environment is poor; secondly, the function loss caused by the Docker containerization shared kernel is as follows: kernel resource isolation in development cannot be met, the design of Docker is centered on an application program, and requirements cannot be met in scheduling of other physical resources, that is, kernel resource isolation in development cannot be met through physical resources other than the application program, which results in reduction of development and test efficiency.
Disclosure of Invention
The embodiment of the invention provides a deployment method of a PaaS platform based on micro-services and the PaaS platform, which can improve the flexibility of building a development environment, thereby improving the efficiency of development and testing.
According to a first aspect of an embodiment of the present invention, a method for deploying a PaaS platform based on a microservice is provided, where the method is applied to the PaaS platform, and the PaaS platform includes: distributed work machines and servers; the server comprises an internet (World Wide Web, Web) service module, a simple File transfer Protocol (TFTP) service module, a Network File System (NFS) service module, a Dynamic Host Configuration Protocol (DHCP) service module and a pre-start execution environment PXE service module; the method comprises the following steps:
the Web service module receives a request message triggered by a user through a client, wherein the request message is used for requesting to deploy the PaaS platform;
the PXE service module calls the DHCP service module when the distributed working machine enters a PXE starting mode so that the DHCP service module allocates an IP address for the distributed working machine;
the distributed working machine acquires a kernel file through the TFTP service module according to the IP address;
and the distributed working machine starts an operating system according to the IP address and the kernel file, and mounts a remote file system through the NFS service module.
Optionally, the request message includes configuration information of the distributed work machine, where the configuration information includes at least one of the following information: processor information, kernel files, usage state information, or startup parameter information.
Optionally, after the Web service module receives a request message triggered by a user, the method further includes:
and the Web service module sends a starting instruction to a network power supply according to the request message, wherein the starting instruction is used for indicating the network power supply to control the distributed working machine to start or restart.
Optionally, the method further includes:
and the distributed working machine sends serial port information to a serial port server so that the serial port server sends serial port data to the Web service module according to the serial port information.
Optionally, the method further includes:
and the distributed working machine sends display information to a remote desktop server so that the remote desktop server sends the display information to the client.
According to a second aspect of the embodiments of the present invention, there is provided a microservice-based PaaS platform, including: distributed work machines and servers; the server comprises a Web service module, a simple file transfer protocol (TFTP) service module, a Network File System (NFS) service module, a Dynamic Host Configuration Protocol (DHCP) service module and a pre-starting execution environment (PXE) service module;
the Web service module is used for receiving a request message triggered by a user through a client, wherein the request message is used for requesting to deploy the PaaS platform;
the PXE service module is used for calling the DHCP service module when the distributed working machine enters a PXE starting mode so that the DHCP service module allocates an IP address for the distributed working machine;
the distributed working machine is used for acquiring a kernel file through the TFTP service module according to the IP address;
the distributed working machine is further configured to start an operating system according to the IP address and the kernel file, and mount a remote file system through the NFS service module.
Optionally, the request message includes configuration information of the distributed work machine, where the configuration information includes at least one of the following information: processor information, kernel files, usage state information, or startup parameter information.
Optionally, the PaaS platform based on the micro service further includes a network power supply;
the Web service module is used for sending a starting instruction to a network power supply according to the request message; and the network power supply is used for controlling the distributed working machine to be started or restarted according to the starting instruction.
Optionally, the PaaS platform based on the micro-service further includes a serial server;
the distributed working machine is used for sending serial port information to the serial port server;
and the serial server is used for sending serial data to the Web service module according to the serial information.
Optionally, the PaaS platform based on the micro service further includes a remote desktop server;
the distributed working machine is used for sending display information to the remote desktop server;
and the program desktop server is used for sending the display information to the client.
The embodiment of the invention provides a deployment method of a PaaS platform based on micro-services and the PaaS platform, wherein a Web service module is used for receiving a request message triggered by a user through a client, wherein the request message is used for requesting the deployment of the PaaS platform; when the PXE service module enters a PXE starting mode in the distributed working machine, the DHCP service module is called to enable the DHCP service module to distribute an IP address for the distributed working machine; the distributed working machine acquires the kernel file through the TFTP service module according to the IP address; the distributed working machine starts an operating system according to an IP address and a kernel file, and mounts a remote file system through the NFS service module, because a request message triggered by a user through a client is received through the Web service module, the TFTP service module, the NFS service module, the DHCP service module and the PXE service module in a pre-starting execution environment perform respective tasks according to the received request message, and further complete the deployment of a PaaS platform, the development and test efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a system architecture diagram of a PaaS platform based on microservice according to an exemplary embodiment of the present invention.
Fig. 2 is a schematic diagram of a deployment process of the PaaS platform of the microservice provided by the present invention.
Fig. 3 is a flowchart illustrating a method for deploying a PaaS platform based on microservice according to an exemplary embodiment of the present invention.
Fig. 4 is a system front end design diagram of a PaaS platform based on microservice according to an exemplary embodiment of the present invention.
Fig. 5 is a flowchart illustrating a PXE system boot of a microservice-based PaaS platform according to an exemplary embodiment of the present invention.
Fig. 6 is a system back-end service architecture diagram of a PaaS platform based on microservices according to an exemplary embodiment of the present invention.
Fig. 7 is a flowchart illustrating a method for deploying a PaaS platform based on microservice according to an exemplary embodiment of the present invention.
Fig. 8 is a flowchart illustrating a user usage of a microservice-based PaaS platform according to an exemplary embodiment of the present invention.
Fig. 9 is a flowchart illustrating a deployment apparatus of a PaaS platform based on microservice according to an exemplary embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The deployment method of the PaaS platform based on the micro-service provided by the embodiment of the invention can be applied to a rapid deployment development environment in the Linux hardware assisted virtualization technology. In the prior art, on the one hand, the system service can encounter obstacles in Docker containerization. Containerized system services are very different from Linux native services, which results in the failure of the original environment variable settings. In addition, Docker has weak communication capability with Linux Kernel, and communication may be isolated in the process. On the other hand, the use of the Docker container is greatly limited due to the sharing of the Linux kernel, and the requirement of Docker design on physical resource scheduling cannot be met because the Docker design mainly centers on application programs in the development process cannot meet the requirement.
In view of the above problems, the present invention provides a deployment method for a PaaS platform based on microservice, which receives a request message triggered by a user through a client through a Web service module, wherein the request message is used for requesting to deploy the PaaS platform; when the PXE service module enters a PXE starting mode in the distributed working machine, the DHCP service module is called to enable the DHCP service module to distribute an IP address for the distributed working machine; the distributed working machine acquires the kernel file through the TFTP service module according to the IP address; the distributed working machine starts an operating system according to an IP address and a kernel file, and mounts a remote file system through the NFS service module, because a request message triggered by a user through a client is received through the Web service module, the TFTP service module, the NFS service module, the DHCP service module and the PXE service module in a pre-starting execution environment perform respective tasks according to the received request message, and further complete the deployment of a PaaS platform, the development and test efficiency is improved.
Fig. 1 is a system architecture diagram of a PaaS platform based on microservice according to an exemplary embodiment of the present invention. As shown in fig. 1, each distributed worker of the diskless PaaS platform is regarded as a distributed node, and the TFTP service, the Web service, the PXE service and the NFS service are provided in a host server connected through an ethernet, and the TFTP service, the Web service, the PXE service and the NFS service are designed as micro services, and the DHCP server is independent from the host server and performs communication and data transmission through a dedicated subnet. And the user selects the CPU model, the GPU model, the kernel version, the file system and the application environment of the physical machine through the webpage of the client. After the remote operating system is started, a distributed working machine is accessed through a Secure Shell (SSH) protocol or KVM over IP equipment of Raritan company is used for obtaining display information of a remote desktop and sending a keyboard mouse signal to the remote desktop, and in addition, a PDU network power supply of Raritan company is used for remotely controlling the on-off of the power supply through IP. In addition, the serial server is used for collecting the working logs of all the distributed nodes.
Fig. 2 is a schematic diagram of a deployment process of the PaaS platform of the microservice provided by the present invention. As shown in fig. 2: the whole deployment process mainly comprises two parts: development and operation and maintenance. First, developers are required to deploy a series of microservices for technical support. The method comprises the steps that firstly, PXE service is deployed and used for supporting a machine to start up and starting an operating system through a network card; the second step is to deploy DHCP service for IP address allocation when PXE starts; thirdly, deploying TFTP service for transmission of kernel files during PXE starting; and fourthly, deploying NFS network file system service for mounting the file system from the network by the operating system. After the micro-service is deployed, a front-end Web which is friendly to interaction with a user needs to be developed, and the Web service calls a service interface to complete a user request. After the development work is finished, operation and maintenance personnel are required to be delivered to provide resources and management services for users, firstly, a kernel is required to be compiled according to team development requirements, the type of the kernel is determined by 4 dimensions, namely a CPU virtualization technology, a virtualization type, a GPU virtualization technology and a kernel native version; then, packaging and manufacturing a standard file system (mirror image) from the existing release Linux; and finally, deploying the machine and the machine room, performing management work, deploying a serial port server to collect logs of the working nodes, deploying a network power supply to enable a user to remotely control the start and stop of the machine, deploying a switch to connect the whole system into the same subnet, deploying a remote desktop service to display and receive keyboard and mouse signals for the user remote transmission machine.
The method comprises the steps that a request message triggered by a user through a client is received through a Web service module, and the silicon among the Web service module, a simple file transfer protocol (TFTP) service module, a Network File System (NFS) service module, a Dynamic Host Configuration Protocol (DHCP) service module and a pre-boot execution environment (PXE) service module carries out respective tasks according to the received request message, so that the deployment of a PaaS platform is completed, and the efficiency of development and testing is improved.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 3 is a flowchart illustrating a method for deploying a PaaS platform based on microservice according to an exemplary embodiment of the present invention. The method is applied to a PaaS platform based on micro-service, and the PaaS platform comprises the following steps: distributed work machines and servers; the server comprises a Web service module, a simple file transfer protocol (TFTP) service module, a Network File System (NFS) service module, a Dynamic Host Configuration Protocol (DHCP) service module and a pre-starting execution environment (PXE) service module; as shown in fig. 3, the method comprises the steps of:
step 301, the Web service module receives a request message triggered by a user through a client, where the request message is used to request to deploy a PaaS platform.
In this step, a Web service module of the system receives a request message of a user, which is used to request to deploy a PaaS platform required by the user, where the request message may include configuration information of a distributed work machine, and the configuration information includes at least one of the following information: the Processor information may include the type selection information of a Central Processing Unit (CPU) and the type selection information of a Graphics Processing Unit (GPU). The kernel file is the type selection information of the kernel, the use state information may include information whether the processor or the kernel is in use, and the startup parameter information is startup parameter setting information. In addition, the configuration information also includes selection information of the file system, specifically, the selection information may be the type of the standard file system or the information of copying the file system of other users.
The user can impose an idle machine unoccupied by other users by selecting the type of the processor, further selects the selection of the kernel and the file system, and configures the startup parameters.
Specifically, fig. 4 is a schematic system front-end design diagram of a PaaS platform based on microservice according to an exemplary embodiment of the present invention. As shown in fig. 4, after the interface of the background is completed, it is desirable to provide a friendly interactive web page for the client user when performing daily development test using the diskless PaaS system, and each user can log in using a personal account and then remotely start a mirror image (make a standard file system) required by the user or copy a mirror image of another person. Web services manage the occupancy of machines and mirrors and monitor hard disk reads and writes and network throughput.
And connecting the Web service with the KVM over IP, and popping up a display window corresponding to the distributed working machine according to the selection of the user. And calling the PDU network power supply, and correspondingly selecting a power socket according to the on-off state of the distributed working machine selected by the user to realize on-off or restarting (the distributed working machine is set to be powered on and automatically started). And calling a serial server, and popping up the collected serial log of the distributed working machine according to the serial number of the user distributed working machine. In this step, the user can select the CPU, the GPU, the kernel and the file system according to the requirement, so that the utilization rate of the machine can be improved through free selection, after one machine is released by one user, the other user can immediately occupy and start the own file system, and the situation that the internal resources of the team occupy the idle state is avoided.
Step 302, when the distributed working machine enters the PXE start mode, the PXE service module calls the DHCP service module, so that the DHCP service module allocates an IP address to the distributed working machine.
In this step, after the Web service module receives the request message of the user, the system will build a PaaS platform for development and testing.
In this step, fig. 5 is a flowchart illustrating the start of the PXE service System of the PaaS platform based on microservice according to an exemplary embodiment of the present invention, as shown in fig. 5, specifically, the PXE service works in a Client network mode and a Server network mode, when a computer boots, a Basic Input Output System (BIOS) calls the PXE Client into a memory for execution, and then the PXE Client downloads a file placed at a remote end to a local operation through a network, and can be configured with a start script similar to a multiple operating System start manager (GRUB) for selecting start parameters for a user, the PXE program searches for a DHCP service in a current network during execution and obtains an IP address corresponding to a Media Access Control (MAC) of the distributed working machine, that is, when the distributed working machine enters the PXE start mode, the DHCP service module calls the DHCP service, so that the DHCP service module assigns IP addresses to the distributed working machines.
And 303, the distributed working machine acquires the kernel file through the TFTP service module according to the IP address.
In this step, after the DHCP service module allocates an IP to the distributed work machine, a bootstrap program is downloaded to the distributed work machine through a TFTP protocol in the TFTP service module according to the allocated IP address, and then a kernel file of an operating system placed at a remote end is downloaded to a local operation through a network. The kernel file is a kernel file compiled in advance on the TFTP service module, and with continued reference to fig. 5, the distributed working machine may further obtain a pxelinux.0 boot file, initrd, and the like through the TFTP service module according to the IP address.
And step 304, the distributed working machine starts an operating system according to the IP address and the kernel file, and mounts the remote file system through the NFS service module.
In this step, when the IP address and the kernel file are obtained, the operating system is started according to the IP address and the kernel file, and the remote network file system is mounted through the NFS service module.
In this embodiment, in the network starting process, after entering the PXE for starting, the distributed working machine first obtains the IP address, the address of the TFTP service module, and the name of the start file through the DHCP service module, and then downloads the start file, the start configuration file, the kernel file, and the file system through the TFTP protocol of the TFTP service module. Therefore, the following conditions must be satisfied for the remote Linux system to be successfully started: the distributed working machine network card supports PXE starting; the server is provided with a DHCP service; the server installs the TFTP service; the remote file system supports NFS services. Of course, the Web service module, the TFTP service module, the NFS service module, the DHCP service module and the PXE service module may be integrated into one server or may be respectively integrated into different servers, which is not limited in the present invention.
Specifically, fig. 6 is a system back-end design diagram of a PaaS platform based on microservice according to an exemplary embodiment of the present invention. As shown in fig. 6, in order to facilitate backup and migration of services, a virtual machine is selected as a server to provide a system backend service, the virtual machine is started on a physical server to start PXE service and mount, a disk group is divided into a plurality of users through a disk array of Independent Disks (RAID ) controller, and a 50G disk is initially reserved for each user partition by default to store a file system. Because the file system can be mounted by a large number of users, a large network bandwidth is needed, and a single network card is difficult to meet the requirements, a plurality of network cards of the server are bound into one logical network card on the Linux system, the bound physical network card is not used directly any more, and the IP address is configured on the bound logical network card, so that the network bandwidth is improved, and the stability is improved.
According to the deploying method of the PaaS platform based on the micro-service, provided by the embodiment of the invention, a request message triggered by a user through a client is received through a Web service module, wherein the request message is used for requesting to deploy the PaaS platform; when the PXE service module enters a PXE starting mode in the distributed working machine, the DHCP service module is called to enable the DHCP service module to distribute an IP address for the distributed working machine; the distributed working machine acquires the kernel file through the TFTP service module according to the IP address; the distributed working machine starts an operating system according to an IP address and a kernel file, and mounts a remote file system through the NFS service module, because a request message triggered by a user through a client is received through the Web service module, the TFTP service module, the NFS service module, the DHCP service module and the PXE service module in a pre-starting execution environment perform respective tasks according to the received request message, and further the deployment of a PaaS platform can be flexibly completed, so that the efficiency of development and testing is improved.
Fig. 7 is a flowchart illustrating a method for deploying a PaaS platform based on microservice according to an exemplary embodiment of the present invention. On the basis of fig. 3, the process after the Web service module receives the request message triggered by the user is explained in detail, as shown in fig. 7, the steps of the method are:
step 701, a Web service module receives a request message triggered by a user through a client, and the request message is used for requesting to deploy a PaaS platform.
Step 701 is similar to step 301 and will not be described herein again.
In step 702, the Web service module sends a boot instruction to the network power supply according to the request message, where the boot instruction is used to instruct the network power supply to control the distributed working machine to boot or restart.
In this step, after the Web service module receives the request message, the Web service module will issue the request message to the distributed working machines, and first the Web service module will send a power-on instruction to the network power supply, where the instruction can instruct the network power supply to control the power-on or restart of the distributed working machines, so that the distributed working machines perform task allocation according to the request message.
In this step, a power-on instruction is sent to the network power supply through the Web service module, so that the distributed working machine can be controlled to be powered on or powered off, and the development or testing process can be controlled more directly.
Step 703, when the distributed working machine enters the PXE start mode, the PXE service module calls the DHCP service module, so that the DHCP service module allocates an IP address to the distributed working machine.
And step 704, the distributed working machine acquires the kernel file through the TFTP service module according to the IP address.
Step 705, the distributed working machine starts an operating system according to the IP address and the kernel file, and mounts the remote file system through the NFS service module.
Steps 703-705 are similar to steps 302-304 and will not be described herein.
Optionally, the distributed working machine sends serial port information to the serial port server, so that the serial port server sends serial port data to the Web service module according to the serial port information.
The serial server is used for collecting logs of the distributed working machine, specifically, the distributed working machine sends serial information to the serial server, the serial information indicates that the serial server sends serial data to the Web service module, and the serial data can be the log information of the distributed working machine collected by the serial server, and certainly can also be other information.
Optionally, the distributed working machine sends the display information to the remote desktop server, so that the remote desktop server sends the display information to the client.
When the distributed working machine distributes tasks, display information can be sent to the remote desktop server and can be directly fed back to the client, so that a user can directly check the development process and results, and user experience is improved.
According to the deploying method of the PaaS platform based on the microservice, which is provided by the embodiment of the invention, the Web service module sends a starting instruction to the network power supply, so that the starting or the shutdown of the distributed working machine can be controlled, and the process in development or test can be more directly controlled. Through setting up remote desktop server, can directly feed back the information that shows to the client to make the user can direct look over development process and result, improved user's experience.
How to deploy the microservice PaaS platform is described in the following with specific examples. Fig. 8 is a flowchart illustrating a user usage of a microservice-based PaaS platform according to an exemplary embodiment of the present invention. As shown in fig. 8: the user can set starting parameters according to the types of the selected CPU, GPU, kernel and file system by selecting the types of the CPU, GPU, kernel and file system, and further generate request information of the user, at the moment, the Web service receives the request information sent by the user, the Web service sends an instruction for controlling the starting of the distributed working machine (requested node) to the network power supply according to the received request information, at the moment, the distributed working machine carries out starting according to the starting instruction, and then the distributed working machine enters a PXE starting mode, and after the distributed working machine enters the PXE starting mode, the PXE service calls the DHCP service, so that the DHCP service allocates an IP address for the distributed working machine; the distributed working machine acquires a pre-compiled kernel file on the TFTP service according to the acquired IP address, loads the kernel file into a memory system of the distributed working machine, simultaneously starts an operating system, and mounts the started operating system on a remote network file system through the NFS service. In addition, the distributed working machine can collect logs of working nodes through the serial server and upload the collected serial logs to the Web service, the distributed working machine is further connected with the remote desktop server, the remote desktop server is used for displaying information, the displayed information can be transmitted to the client side, a user can check the information of the whole process, and the remote desktop server can also receive a keyboard and mouse signal sent by the user.
According to the method for the PaaS platform based on the microservice, provided by the embodiment of the invention, a user can freely select and copy the starting file system of other users according to the specific software and hardware environment required to be reproduced in the development and test, so that the development and test efficiency is improved. The user only needs to log in the webpage to operate the specified machine without knowing any details about the machine, the complexity of work is reduced, meanwhile, the transmission rate of the network cable is far superior to that of a hard disk data interface, the data transmission rate is increased by multiple times, and the performance of the machine is also improved.
Fig. 9 is a block diagram illustrating a microservice-based PaaS platform in accordance with an exemplary embodiment of the invention. As shown in fig. 9, the PaaS platform 100 includes: a distributed working machine 10 and a server 20; the server 20 includes: a Web service module 21, a TFTP service module 22, an NFS service module 23, a DHCP service module 24, and a PXE service module 25; wherein,
the Web service module 21 is configured to receive a request message triggered by a user through a client, where the request message is used to request deployment of a PaaS platform;
the PXE service module 22 is used for calling the DHCP service module when the distributed working machine enters a PXE starting mode so that the DHCP service module allocates an IP address for the distributed working machine;
the distributed working machine 10 is used for acquiring the kernel file through the TFTP service module according to the IP address;
the distributed working machine 10 is further configured to start the operating system according to the IP address and the kernel file, and mount the remote file system through the NFS service module.
The PaaS platform of this embodiment may be configured to execute the technical solution of the method embodiment shown in fig. 3, and the implementation principle and the technical effect are similar, which are not described herein again.
The PaaS platform based on the micro-service provided by the embodiment of the invention receives a request message triggered by a user through a client through a Web service module, wherein the request message is used for requesting the deployment of the PaaS platform; when the PXE service module enters a PXE starting mode in the distributed working machine, the DHCP service module is called to enable the DHCP service module to distribute an IP address for the distributed working machine; the distributed working machine acquires the kernel file through the TFTP service module according to the IP address; the distributed working machine starts an operating system according to an IP address and a kernel file, and mounts a remote file system through the NFS service module, because a request message triggered by a user through a client is received through the Web service module, the TFTP service module, the NFS service module, the DHCP service module and the PXE service module in a pre-starting execution environment perform respective tasks according to the received request message, and further complete the deployment of a PaaS platform, the efficiency of development and testing is improved.
Optionally, the request message includes configuration information of the distributed work machine, where the configuration information includes at least one of the following information: processor information, kernel files, usage state information, or startup parameter information.
Optionally, the PaaS platform based on the micro service further includes a network power supply;
the Web service module is used for sending a starting instruction to the network power supply according to the request message; and the network power supply is used for controlling the distributed working machine to be started or restarted according to the starting instruction.
Optionally, the PaaS platform based on the micro-service further includes a serial server;
the distributed working machine is used for sending serial port information to the serial port server;
and the serial server is used for sending serial data to the Web service module according to the serial information.
Optionally, the PaaS platform based on the micro service further includes a remote desktop server;
the distributed working machine is used for sending display information to the remote desktop server;
and the program desktop server is used for sending the display information to the client.
With regard to the PaaS platform in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A deployment method of a PaaS platform based on micro-services is characterized in that the PaaS platform comprises the following steps: distributed work machines and servers; the server comprises a Web service module, a simple file transfer protocol (TFTP) service module, a Network File System (NFS) service module, a Dynamic Host Configuration Protocol (DHCP) service module and a pre-starting execution environment (PXE) service module; the method comprises the following steps:
the Web service module receives a request message triggered by a user through a client, wherein the request message is used for requesting to deploy the PaaS platform;
the PXE service module calls the DHCP service module when the distributed working machine enters a PXE starting mode so that the DHCP service module allocates an IP address for the distributed working machine;
the distributed working machine acquires a kernel file through the TFTP service module according to the IP address;
and the distributed working machine starts an operating system according to the IP address and the kernel file, and mounts a remote file system through the NFS service module.
2. The method of claim 1, wherein the request message includes configuration information of the distributed work machine, and wherein the configuration information includes at least one of the following information: processor information, kernel files, usage state information, or startup parameter information.
3. The method of claim 1, wherein after the Web service module receives the user-triggered request message, the method further comprises:
and the Web service module sends a starting instruction to a network power supply according to the request message, wherein the starting instruction is used for indicating the network power supply to control the distributed working machine to start or restart.
4. The method of claim 1, further comprising:
and the distributed working machine sends serial port information to a serial port server so that the serial port server sends serial port data to the Web service module according to the serial port information.
5. The method according to any one of claims 1-4, further comprising:
and the distributed working machine sends display information to a remote desktop server so that the remote desktop server sends the display information to the client.
6. A microservice-based PaaS platform, comprising: distributed work machines and servers; the server comprises a Web service module, a simple file transfer protocol (TFTP) service module, a Network File System (NFS) service module, a Dynamic Host Configuration Protocol (DHCP) service module and a pre-starting execution environment (PXE) service module;
the Web service module is used for receiving a request message triggered by a user through a client, wherein the request message is used for requesting to deploy the PaaS platform;
the PXE service module is used for calling the DHCP service module when the distributed working machine enters a PXE starting mode so that the DHCP service module allocates an IP address for the distributed working machine;
the distributed working machine is used for acquiring a kernel file through the TFTP service module according to the IP address;
the distributed working machine is further configured to start an operating system according to the IP address and the kernel file, and mount a remote file system through the NFS service module.
7. The microservice-based PaaS platform according to claim 6, wherein the request message comprises configuration information of the distributed work machines, the configuration information comprising at least one of: processor information, kernel files, usage state information, or startup parameter information.
8. The microservice-based PaaS platform of claim 6, further comprising a network power supply;
the Web service module is used for sending a starting instruction to a network power supply according to the request message; and the network power supply is used for controlling the distributed working machine to be started or restarted according to the starting instruction.
9. The microservice-based PaaS platform of claim 6, further comprising a serial server;
the distributed working machine is used for sending serial port information to the serial port server;
and the serial server is used for sending serial data to the Web service module according to the serial information.
10. A microservice-based PaaS platform according to any of the claims 6-9, further comprising a remote desktop server;
the distributed working machine is used for sending display information to the remote desktop server;
and the program desktop server is used for sending the display information to the client.
CN201811527264.7A 2018-12-13 2018-12-13 PaaS platform and deployment method thereof based on microservice Active CN109600439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811527264.7A CN109600439B (en) 2018-12-13 2018-12-13 PaaS platform and deployment method thereof based on microservice

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811527264.7A CN109600439B (en) 2018-12-13 2018-12-13 PaaS platform and deployment method thereof based on microservice

Publications (2)

Publication Number Publication Date
CN109600439A true CN109600439A (en) 2019-04-09
CN109600439B CN109600439B (en) 2021-09-07

Family

ID=65961925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811527264.7A Active CN109600439B (en) 2018-12-13 2018-12-13 PaaS platform and deployment method thereof based on microservice

Country Status (1)

Country Link
CN (1) CN109600439B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569043A (en) * 2019-09-06 2019-12-13 程延辉 Multi-user kbroker distributed operating system and multi-user management system
CN112988323A (en) * 2019-12-02 2021-06-18 美商安迈国际有限责任公司 Server deployment method and system under virtualization framework
CN113296798A (en) * 2021-05-31 2021-08-24 腾讯科技(深圳)有限公司 Service deployment method, device and readable storage medium
CN114860271A (en) * 2022-05-27 2022-08-05 苏州浪潮智能科技有限公司 PXE starting method, system and device and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944129A (en) * 2010-09-21 2011-01-12 广东威创视讯科技股份有限公司 Diskless system, workstation thereof, and building method of local root file by workstation
CN102681899A (en) * 2011-03-14 2012-09-19 金剑 Virtual computing resource dynamic management system of cloud computing service platform
CN103200271A (en) * 2013-04-17 2013-07-10 北京百度网讯科技有限公司 Advanced Risc machine (ARM) server and method of automatic installation system thereof
CN104199694A (en) * 2014-08-27 2014-12-10 山东超越数控电子有限公司 Automatic operating system installation and recovery method based on PXE
CN104580519A (en) * 2015-01-29 2015-04-29 福建师范大学福清分校 Method for rapid deployment of openstack cloud computing platform
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)
US20150143094A1 (en) * 2013-11-21 2015-05-21 Dell Products L.P. System and Method to Perform an OS Boot Using Service Location Protocol and Launching OS Using a Dynamic Update of Network Boot Order Without a Reboot
CN105959134A (en) * 2016-04-22 2016-09-21 汉柏科技有限公司 Automatic installation deployment method based on PXE, and PXE server
CN107566165A (en) * 2017-08-18 2018-01-09 国网山东省电力公司信息通信公司 A kind of method and system for finding and disposing electric power cloud data center available resources
CN108829410A (en) * 2018-06-20 2018-11-16 郑州云海信息技术有限公司 A kind of method and device of the configuration and customization PXE without disc system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944129A (en) * 2010-09-21 2011-01-12 广东威创视讯科技股份有限公司 Diskless system, workstation thereof, and building method of local root file by workstation
CN102681899A (en) * 2011-03-14 2012-09-19 金剑 Virtual computing resource dynamic management system of cloud computing service platform
CN103200271A (en) * 2013-04-17 2013-07-10 北京百度网讯科技有限公司 Advanced Risc machine (ARM) server and method of automatic installation system thereof
US20150143094A1 (en) * 2013-11-21 2015-05-21 Dell Products L.P. System and Method to Perform an OS Boot Using Service Location Protocol and Launching OS Using a Dynamic Update of Network Boot Order Without a Reboot
CN104199694A (en) * 2014-08-27 2014-12-10 山东超越数控电子有限公司 Automatic operating system installation and recovery method based on PXE
CN104580519A (en) * 2015-01-29 2015-04-29 福建师范大学福清分校 Method for rapid deployment of openstack cloud computing platform
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)
CN105959134A (en) * 2016-04-22 2016-09-21 汉柏科技有限公司 Automatic installation deployment method based on PXE, and PXE server
CN107566165A (en) * 2017-08-18 2018-01-09 国网山东省电力公司信息通信公司 A kind of method and system for finding and disposing electric power cloud data center available resources
CN108829410A (en) * 2018-06-20 2018-11-16 郑州云海信息技术有限公司 A kind of method and device of the configuration and customization PXE without disc system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
EMAN HOSSNY等: ""A Case Study Deploying Applications on heterogeneous PaaS Platforms"", 《2013 INTERNATIONAL CONFERENCE ON CLOUD COMPUTING AND BIG DATA》 *
刘欢欢: ""基于Paas的云应用软件部署环境的元模型"", 《网络与通信》 *
周勇: ""PXE无盘引导过程的透析与实践"", 《西南科技大学学报》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569043A (en) * 2019-09-06 2019-12-13 程延辉 Multi-user kbroker distributed operating system and multi-user management system
CN112988323A (en) * 2019-12-02 2021-06-18 美商安迈国际有限责任公司 Server deployment method and system under virtualization framework
CN112988323B (en) * 2019-12-02 2024-02-06 美商安迈国际有限责任公司 Server deployment method and system under virtualization architecture
CN113296798A (en) * 2021-05-31 2021-08-24 腾讯科技(深圳)有限公司 Service deployment method, device and readable storage medium
CN113296798B (en) * 2021-05-31 2022-04-15 腾讯科技(深圳)有限公司 Service deployment method, device and readable storage medium
CN114860271A (en) * 2022-05-27 2022-08-05 苏州浪潮智能科技有限公司 PXE starting method, system and device and readable storage medium
CN114860271B (en) * 2022-05-27 2024-10-15 苏州浪潮智能科技有限公司 PXE starting method, system, device and readable storage medium

Also Published As

Publication number Publication date
CN109600439B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN109600439B (en) PaaS platform and deployment method thereof based on microservice
US10044795B2 (en) Methods and apparatus for rack deployments for virtual computing environments
WO2017166785A1 (en) Method for deploying virtual machines, host machine, and system
WO2019084853A1 (en) Method and system for discovering hardware attribute of bare metal server
CN102932408B (en) A kind of management method of server cluster and platform
US8495624B2 (en) Provisioning a suitable operating system environment
US10686755B2 (en) Assigning IP addresses and configuration parameters in hyper-converged infrastructure
CN101820387B (en) Method for rapidly deploying extensible cluster
CN104572372A (en) System and method for building server performance testing environment
CN103024079B (en) Obtain the method for server resource information, resource pool management system and server
CN111198696B (en) OpenStack large-scale deployment method and system based on bare computer server
CN111966384B (en) System updating method, device, equipment and computer readable storage medium
US20220121502A1 (en) System and Method for Auto-Clustering of Clusterable Services
CN109522028A (en) A kind of installation method and system of operating system
US11797329B2 (en) Pausing deployment of a virtual machine prior to a machine name dependency
CN114968477A (en) Container heat transfer method and container heat transfer device
CN110489305B (en) Server management method and device
CN114995888A (en) Intelligent network card deployment method, device and medium
CN112948008A (en) Ironic based physical bare computer management method
KR100439175B1 (en) Method for automatically installing operating system in linux-based cluster system at remote place
US20170322788A1 (en) Parallel distribution of application services to virtual nodes
CN113746673B (en) Method, device, equipment and medium for deploying bare metal server ipxe
CN111614488B (en) Method and device for deploying heterogeneous supercomputing platform
CN117278527A (en) Bare metal server online system, method and device
CN111475176B (en) Data reading and writing method, related device, system and storage medium

Legal Events

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