CN107979493B - Platform is construction method, server and the storage medium for servicing PAAS container platform - Google Patents

Platform is construction method, server and the storage medium for servicing PAAS container platform Download PDF

Info

Publication number
CN107979493B
CN107979493B CN201711161342.1A CN201711161342A CN107979493B CN 107979493 B CN107979493 B CN 107979493B CN 201711161342 A CN201711161342 A CN 201711161342A CN 107979493 B CN107979493 B CN 107979493B
Authority
CN
China
Prior art keywords
container
server
platform
service
proxy module
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.)
Active
Application number
CN201711161342.1A
Other languages
Chinese (zh)
Other versions
CN107979493A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201711161342.1A priority Critical patent/CN107979493B/en
Priority to PCT/CN2018/076110 priority patent/WO2019100605A1/en
Publication of CN107979493A publication Critical patent/CN107979493A/en
Application granted granted Critical
Publication of CN107979493B publication Critical patent/CN107979493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5054Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • 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

Abstract

It is construction method, server and the storage medium for servicing PAAS container platform the present invention relates to a kind of platform, this method comprises: virtual server is after receiving container service register instruction, it obtains registration Script according to register instruction and installs and obtain container proxy module, registered using the gate system intrinsic call interface of container proxy module and public server to platform portal system request;It is completed in registration, and after login, the operation platform of cloud pipe server is based on domain-name information and selects corresponding container service, and the creation for sending the container service is instructed to public server;Creation instruction is received by the container proxy module of virtual server, corresponding container is created based on creation instruction and is started;The corresponding IP address of domain-name information and port are reported to route service module to carry out the change of domain name routing address by the operation platform of cloud pipe server, to create PAAS container service.The present invention can create PAAS container service using existing virtual server, easy to operate, at low cost.

Description

Platform is construction method, server and the storage medium for servicing PAAS container platform
Technical field
The present invention relates to field of communication technology more particularly to a kind of platform be the construction method for servicing PAAS container platform, Server and storage medium.
Background technique
Currently, container service Open Source Platform is relatively more, for PAAS, (Platform-as-a-Service, platform are taken Business) for, when disposing PAAS container service, need to buy corresponding virtual machine, and construct complicated network to support to communicate Interaction, this scheme is cumbersome, and cost is big.In consideration of it, quickly and easily creating PAAS container service and reducing cost, become Problem to be solved.
Summary of the invention
It is construction method, server and the storage for servicing PAAS container platform the purpose of the present invention is to provide a kind of platform Medium, it is intended to quickly and easily create PAAS container service and reduce cost.
To achieve the above object, the present invention provides the construction method that a kind of platform services PAAS container platform, described flat Platform be service PAAS container platform construction method the following steps are included:
S1, virtual server is after receiving the container service register instruction based on cloud pipe server, according to the registration Instruction obtains corresponding registration Script, installs the registration Script and obtains corresponding container proxy module, utilizes the container generation The gate system intrinsic call interface Portal Inner API of module and public server is managed to platform portal system PAAS Portal request registration;
S2 requests registration to be completed, and logs in this in user and put down in virtual server to platform portal system PAAS Portal After platform gate system PAAS Portal, the domain-name information selection that the operation platform of cloud pipe server is inputted based on user is corresponding Container service, by it is scheduled issue channel and send the creation of the container service instruct to public server, which is taken The creation instruction of business is transmitted to virtual server;
S3 is received the container of the intrinsic call interface forwarding of public server by the container proxy module of virtual server The creation of service instructs;
S4 is based on creation instruction by the container proxy module of virtual server and creates the corresponding container of the container service, And start the container;
S5, after the container proxy module of virtual server starts container, the operation platform of cloud pipe server is by input The corresponding IP address of domain-name information and port are reported to route service module to carry out the change of domain name routing address, are with construction platform PAAS container platform is serviced, and accesses corresponding container in subsequently received access request.
Preferably, the step S4 includes:
Instruct the container for preparing the container service is corresponding to match based on the creation by the container proxy module of virtual server Change file is set, the variable in the configuration change file is read and is updated, pulls the corresponding mirror image of the container, creation volume And all volumes of the carry container, start the container.
Preferably, the step S4 further comprises:
Before starting the container further include: health detection is carried out to the container by scheduled health examination mechanism, And start the container after health detection success.
Preferably, after the step S1, further includes:
After the registration is finished, the operation platform of cloud pipe server records corresponding registration information;
After the step S4, further includes:
The operation platform of cloud pipe server receives the creation information of the container of the intrinsic call interface forwarding of public server, Record the creation information;
After the step S5, further includes:
After accessing container, the operation platform of cloud pipe server records corresponding access information.
Preferably, after the step S5, further includes:
The operation platform batch of cloud pipe server acts on behalf of each container that agency's upgrading data are issued to virtual server Module is upgraded automatically, and the corresponding liter that each container proxy module for receiving virtual server is returned by public server Grade information, records the upgrade information.
Preferably, in container operational process, further includes:
The operation of the intermediate steps monitoring of container service, the intermediate steps are initiated by the container proxy module of virtual server The operation of monitoring includes environmental variance setting, storage carry result, starting or the result and monitoring health inspection of closing container service The result of survey;
Report container relevant information to operation platform, the container relevant information packet by the container proxy module of virtual server Include container process, cpu operation conditions, memory and heart time;
Report host relevant information to operation platform, the host relevant information packet by the container proxy module of virtual server Include cpu operation conditions, memory, input and output io and container mappings port status information;
Container relevant information that the container proxy module that the operation platform of cloud pipe server receives virtual server reports and Host relevant information, and when container relevant information or host relevant information are abnormal, issue warning information.
To achieve the above object, the present invention also provides a kind of virtual server, the virtual server include memory and The processor connecting with the memory is stored with the processing system that can be run on the processor, institute in the memory It states when processing system is executed by the processor and realizes following steps:
Registration step, after receiving the container service register instruction based on cloud pipe server, according to the register instruction Corresponding registration Script is obtained, the registration Script is installed and obtains corresponding container proxy module, acts on behalf of mould using the container The gate system intrinsic call interface Portal Inner API of block and public server is to platform portal system PAAS Portal Request registration;
Receiving step: the intrinsic call interface forwarding of public server is received by the container proxy module of virtual server The creation of container service instructs;
Foundation step is based on the creation by the container proxy module of virtual server and instructs the creation container service corresponding Container, and start the container.
To achieve the above object, the present invention also provides a kind of cloud pipe server, the cloud pipe server include memory and The processor connecting with the memory is stored with the operational system that can be run on the processor, institute in the memory It states when operational system is executed by the processor and realizes following steps:
Creation instruction sending step requests registration to be completed in virtual server to platform portal system PAAS Portal, and After user logs in platform portal system PAAS Portal, the domain-name information based on user's input selects corresponding container clothes Business, by it is scheduled issue channel and send the creation of the container service instruct to public server, by the wound of the container service It builds instruction and is transmitted to virtual server;
Step is changed, after the container proxy module of virtual server starts container, by the domain-name information pair of user's input The IP address and port answered are reported to route service module to carry out the change of domain name routing address, and PAAS is serviced with construction platform and is held Device platform, and corresponding container is accessed in subsequently received access request.
The present invention also provides a kind of computer readable storage medium, processing is stored on the computer readable storage medium System, the processing system realize following steps when being executed by processor:
Registration step, after receiving the container service register instruction based on cloud pipe server, according to the register instruction Corresponding registration Script is obtained, the registration Script is installed and obtains corresponding container proxy module, acts on behalf of mould using the container The gate system intrinsic call interface Portal Inner API of block and public server is to platform portal system PAAS Portal Request registration;
Receiving step: the intrinsic call interface forwarding of public server is received by the container proxy module of virtual server The creation of container service instructs;
Foundation step is based on the creation by the container proxy module of virtual server and instructs the creation container service corresponding Container, and start the container.
The present invention also provides another computer readable storage medium, fortune is stored on the computer readable storage medium System is maintained, the operational system realizes following steps when being executed by processor:
Creation instruction sending step requests registration to be completed in virtual server to platform portal system PAAS Portal, and After user logs in platform portal system PAAS Portal, the domain-name information based on user's input selects corresponding container clothes Business, by it is scheduled issue channel and send the creation of the container service instruct to public server, by the wound of the container service It builds instruction and is transmitted to virtual server;
Step is changed, after the container proxy module of virtual server starts container, by the domain-name information pair of user's input The IP address and port answered are reported to route service module to carry out the change of domain name routing address, and PAAS is serviced with construction platform and is held Device platform, and corresponding container is accessed in subsequently received access request.
The beneficial effects of the present invention are: the present invention is installed automatically using existing one key of virtual server obtains container agency Module is simultaneously registered to platform portal system PAAS Portal, corresponding container service is selected according to the domain name of user's input, by holding Device proxy module creates the corresponding container of the container service, after starting container, operation platform by the corresponding ip of domain-name information and Port be reported to route service carry out the change of domain name routing address, when to receive access request next time directly according to domain name just Accessible container, the present invention do not need to buy corresponding virtual machine, can use existing virtual server creation PAAS and hold Device service, it is at low cost, the complicated communication network of building is not needed, it is easy to operate.
Detailed description of the invention
Fig. 1 is the optional application environment schematic diagram of each embodiment one of the invention;
Fig. 2 is the schematic diagram of the hardware structure of one embodiment of virtual server in Fig. 1;
Fig. 3 is the schematic diagram of the hardware structure of one embodiment of Fig. 1 medium cloud pipe server;
Fig. 4 is that platform of the present invention is the flow diagram for servicing one embodiment of construction method of PAAS container platform.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
As shown in fig.1, being answering for the preferred embodiment for the construction method that platform of the present invention services PAAS container platform Use environment schematic.The application environment schematic diagram includes virtual server 1, cloud pipe server 2 and public server 3.Virtual clothes The technology be engaged between device 1 and cloud public server 3, can be suitble to by network etc. between cloud pipe server 2 and public server 3 Carry out data interaction.Public server 3 plays the role of VPC isolation for virtual server 1 and cloud pipe server 2.
Virtual server 1 and cloud pipe server 2 be it is a kind of can according to the instruction for being previously set or storing, automatically into Line number value calculates and/or the equipment of information processing, can be the server of single network server, multiple network servers composition Group or the cloud being made of a large amount of hosts or network server based on cloud computing, wherein cloud computing is the one of distributed computing Kind, a super virtual computer consisting of a loosely coupled set of computers.
In conjunction with refering to Fig. 2 and Fig. 3, in the present embodiment, virtual server 1 may include, but be not limited only to, and can pass through system Bus is in communication with each other the memory 11, processor 12, network interface 13 of connection, and memory 11, which is stored with, to be transported on the processor 12 Capable processing system.Cloud pipe server 2 may include, but be not limited only to, and the memory of connection can be in communication with each other by system bus 21, processor 22, network interface 23, memory 21 are stored with the operational system that can be run on processor 22.It may be noted that It is that Fig. 2 and Fig. 3 are illustrated only with said modules virtual server 1 and cloud pipe server 2, it should be understood that simultaneously should not Realistic to apply all components shown, the implementation that can be substituted is more or less component.
Wherein, memory 11 (memory 21) includes the readable storage medium storing program for executing of memory and at least one type.Inside save as electricity The operation of sub-device 1 provides caching;Readable storage medium storing program for executing can be for if flash memory, hard disk, multimedia card, card-type memory are (for example, SD Or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electricity Erasable Programmable Read Only Memory EPROM (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc. Non-volatile memory medium.In some embodiments, readable storage medium storing program for executing can be virtual server 1 (cloud pipe server 2) Internal storage unit, such as the hard disk of the virtual server 1 (cloud pipe server 2);In further embodiments, this is non-volatile Property storage medium is also possible to the External memory equipment of virtual server 1 (cloud pipe server 2), such as (the cloud pipe of virtual server 1 Server 2) on the plug-in type hard disk that is equipped with, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..In the present embodiment, the readable storage medium of memory 11 (memory 21) Matter is installed on the operating system and types of applications software of virtual server 1 (cloud pipe server 2), such as this hair commonly used in storage The program code etc. of processing system (operational system) in a bright embodiment.In addition, memory 11 (memory 21) can also be used In temporarily storing the Various types of data that has exported or will export.
The processor 12 (processor 22) can be central processing unit (Central in some embodiments Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 (processor 22) is commonly used in controlling the overall operation of the virtual server 1 (cloud pipe server 2), such as executes data interaction Or the relevant control of communication and processing etc..In the present embodiment, the processor 12 (processor 22) is for running the storage The program code stored in device 11 (memory 21) or processing data, such as operation processing system (operational system) etc..
The network interface 13 (network interface 23) may include radio network interface or wired network interface, the network interface 13 (network interfaces 23) are commonly used in establishing between the virtual server 1 (cloud pipe server 2) and other electronic equipments logical Letter connection.
The processing system (operational system) is stored in memory 11 (memory 21), including at least one is stored in Computer-readable instruction in reservoir 11 (memory 21), at least one computer-readable instruction can be by (the processing of processor 12 Device 22) it executes, the method to realize each embodiment of the application;And at least one computer-readable instruction is according to its each portion Divide realized function different, can be divided into different logic modules.
In one embodiment, following steps are realized when the processing system of virtual server 1 is executed by the processor 12:
Registration step, after receiving the container service register instruction based on cloud pipe server, according to the register instruction Corresponding registration Script is obtained, the registration Script is installed and obtains corresponding container proxy module, acts on behalf of mould using the container The gate system intrinsic call interface Portal Inner API of block and public server is to platform portal system PAAS Portal Request registration;
It in the present embodiment, can be operated at the terminal by user, key note is executed after logging in existing virtual server Volume specifically sends the container service register instruction based on cloud pipe server to virtual server, virtual server is according to Register instruction obtains corresponding registration Script, and registration Script is installed to obtain container proxy module automatically, and is acted on behalf of by container Module registers are to platform portal system PAAS Portal, wherein container proxy module sends to public server and requests, public The gate system intrinsic call interface Portal Inner API of server sends the request to cloud pipe server, with Xiang Yun Platform portal system PAAS Portal in pipe server requests registration.
Receiving step: the intrinsic call interface forwarding of public server is received by the container proxy module of virtual server The creation of container service instructs;
Foundation step is based on the creation by the container proxy module of virtual server and instructs the creation container service corresponding Container, and start the container.
In the present embodiment, the platform portal system PAAS Portal request registration in Xiang Yun pipe server is completed, and After user logs in platform portal system PAAS Portal, the domain-name information based on user's input selects corresponding container service, The creation that the container proxy module of virtual server receives the container service of the intrinsic call interface forwarding of public server refers to It enables, creates the corresponding container of the container service according to the service procedure of platform portal system PAAS portal.
Specifically, the container pair for preparing the container service is instructed based on the creation by the container proxy module of virtual server The configuration change file answered reads the variable in the configuration change file and is updated, pulls the corresponding mirror image of the container, All volumes of creation volume and the carry container, can star the container after the completion of aforesaid operations, so far, virtual server is matched It closes and completes with cloud pipe server construction platform to be the operation for servicing PAAS container platform.
Preferably, in order to check the availability of service, prevent from occurring when other service calls it is abnormal, start the container it Before further include: health detection is carried out to the container by scheduled health examination mechanism, and is started after health detection success The container.Wherein, scheduled health examination mechanism is process level health examination mechanism, and the interval of health detection can be 30 twice Second.
In one embodiment, following steps are realized when the processing system of cloud pipe server 2 is executed by the processor 22:
Creation instruction sending step requests registration to be completed in virtual server to platform portal system PAAS Portal, and After user logs in platform portal system PAAS Portal, the domain-name information based on user's input selects corresponding container clothes Business, by it is scheduled issue channel and send the creation of the container service instruct to public server, by the wound of the container service It builds instruction and is transmitted to virtual server;
In the present embodiment, after user logs in platform portal system PAAS Portal, in platform portal system PAAS Domain-name information is inputted on Portal, the operation platform of cloud pipe server selects corresponding container based on the domain-name information that user inputs Service, by it is scheduled issue channel and send the creation of the container service instruct to public server, wherein it is scheduled issue it is logical Road includes that Websocket issues channel or Http issues channel, i.e. operation platform can issue channel by Http and directly will Creation instruction is sent to public server or operation platform and can issue channel by Websocket and send creation instruction To public server, the creation instruction of the container service is transmitted to Virtual Service by intrinsic call interface by public server Device.
Step is changed, after the container proxy module of virtual server starts container, by the domain-name information pair of user's input The IP address and port answered are reported to route service module to carry out the change of domain name routing address, and PAAS is serviced with construction platform and is held Device platform, and corresponding container is accessed in subsequently received access request.
In the present embodiment, after container starting, domain-name information that the operation platform of cloud pipe server is inputted according to user into The corresponding IP address of domain-name information and port, i.e., is reported to the road of cloud pipe server by row IP bindings or CNAME operation The change of domain name routing address is carried out by service module, in subsequent access, handles and is accessed corresponding being NAT automatically from the background Container service.By above-mentioned operation, construction platform services PAAS container platform, to create PAAS container service.
In one embodiment, as shown in figure 4, platform of the present invention is to service the construction method of PAAS container platform including as follows Step:
Step S1, virtual server is after receiving the container service register instruction based on cloud pipe server, according to described Register instruction obtains corresponding registration Script, installs the registration Script and obtains corresponding container proxy module, utilizes the appearance The gate system intrinsic call interface Portal Inner API of device proxy module and public server is to platform portal system PAAS Portal request registration;
It in the present embodiment, can be operated at the terminal by user, key note is executed after logging in existing virtual server Volume specifically sends the container service register instruction based on cloud pipe server to virtual server, virtual server is according to Register instruction obtains corresponding registration Script, and registration Script is installed to obtain container proxy module automatically, and is acted on behalf of by container Module registers are to platform portal system PAAS Portal, wherein container proxy module sends to public server and requests, public The gate system intrinsic call interface Portal Inner API of server sends the request to cloud pipe server, with Xiang Yun Platform portal system PAAS Portal in pipe server requests registration.
Step S2 requests registration to be completed, and logs in user in virtual server to platform portal system PAAS Portal After platform portal system PAAS Portal, domain-name information selection pair that the operation platform of cloud pipe server is inputted based on user The container service answered, by it is scheduled issue channel and send the creation of the container service instruct to public server, by the appearance The creation instruction of device service is transmitted to virtual server;
In the present embodiment, after user logs in platform portal system PAAS Portal, in platform portal system PAAS Domain-name information is inputted on Portal, the operation platform of cloud pipe server selects corresponding container based on the domain-name information that user inputs Service, by it is scheduled issue channel and send the creation of the container service instruct to public server, wherein it is scheduled issue it is logical Road includes that Websocket issues channel or Http issues channel, i.e. operation platform can issue channel by Http and directly will Creation instruction is sent to public server or operation platform and can issue channel by Websocket and send creation instruction To public server, the creation instruction of the container service is transmitted to Virtual Service by intrinsic call interface by public server Device.
Step S3 receives being somebody's turn to do for the intrinsic call interface forwarding of public server by the container proxy module of virtual server The creation of container service instructs;
Step S4 is based on creation instruction by the container proxy module of virtual server and creates the corresponding appearance of the container service Device, and start the container;
In the present embodiment, the container proxy module of virtual server receives the intrinsic call interface forwarding of public server The creation of the container service instructs, and it is corresponding to create the container service according to the service procedure of platform portal system PAAS portal Container.
Specifically, the container pair for preparing the container service is instructed based on the creation by the container proxy module of virtual server The configuration change file answered reads the variable in the configuration change file and is updated, pulls the corresponding mirror image of the container, All volumes of creation volume and the carry container, can star the container after the completion of aforesaid operations.
Preferably, in order to check the availability of service, prevent from occurring when other service calls it is abnormal, start the container it Before further include: health detection is carried out to the container by scheduled health examination mechanism, and is started after health detection success The container.Wherein, scheduled health examination mechanism is process level health examination mechanism, and the interval of health detection can be 30 twice Second.
Step S5, after the container proxy module of virtual server starts container, the operation platform of cloud pipe server will be defeated The corresponding IP address of the domain-name information entered and port are reported to route service module to carry out the change of domain name routing address, flat to construct Platform services PAAS container platform, and corresponding container is accessed in subsequently received access request.
In the present embodiment, after container starting, domain-name information that the operation platform of cloud pipe server is inputted according to user into The corresponding IP address of domain-name information and port, i.e., is reported to the road of cloud pipe server by row IP bindings or CNAME operation The change of domain name routing address is carried out by service module, in subsequent access, handles and is accessed corresponding being NAT automatically from the background Container service.By above-mentioned operation, construction platform services PAAS container platform, to create PAAS container service.
Compared with prior art, the present embodiment is installed automatically using existing one key of virtual server obtains container and acts on behalf of mould Block is simultaneously registered to platform portal system PAAS Portal, corresponding container service is selected according to the domain name of user's input, by container Proxy module creates the corresponding container of the container service, and after starting container, operation platform is by the corresponding ip of domain-name information and end Mouth is reported to route service to carry out the change of domain name routing address, directly can according to domain name when to receive access request next time To access container, the present embodiment does not need to buy corresponding virtual machine, can use existing virtual server creation PAAS and holds Device service, it is at low cost, the complicated communication network of building is not needed, it is easy to operate.
In a preferred embodiment, on the basis of the above embodiments, after the step S1, further includes: complete After registration, the operation platform of cloud pipe server records corresponding registration information, wherein registration information includes container proxy module Id information (AgentId), host MAC, host id (random to generate), host IP address (hostIp), Agent end message breath (agentPort), place host region (zone), place computer room (hostIdc), ak authentication information, sk authentication information.
In an additional preferred embodiment, after the step S4, further includes: the operation platform of cloud pipe server receives public The creation information of the container of the intrinsic call interface forwarding of server altogether, records the creation information, wherein creation information includes holding Device proxy module Id information (AgentId), request routing ID (reqRouteId), carry content (volumnContent), Docker start command (dockerCmd), application Service Instance content (applyContent, including CPU and memory), docker Environmental variance (dockerEnv), mirror image title (image), Docker starting network mode (dockerNetMode), container with The relationship map (servicePortMap) of Host map.
In an additional preferred embodiment, after the step S5, further includes: after accessing container, cloud pipe server Operation platform record corresponding access information.Wherein, access information mainly include container starting ip, Host map port and The domain-name information of binding.
The operation platform of cloud pipe server, can be to container industry by record registration information, creation information and access information Business is more comprehensively managed or trace scheduling, and note abnormalities situation in time, improves using flexible.
In other preferred embodiments, in order to more fully carry out control or trace scheduling, the step to container business After rapid S5, further includes: agency's upgrading data are issued to each of virtual server by the operation platform batch of cloud pipe server Container proxy module is upgraded automatically, and each container proxy module for receiving virtual server is returned by public server Respective upgrades information, record the upgrade information.Wherein, upgrade information includes the container proxy module Id information of upgrading (AgentId), version number and updating result, updating result include upgrading successfully information or upgrading failure information.
In a preferred embodiment, for the business procedure of the tracking container scheduling of further comprehensive full link, with Just container scheduling information is managed in all directions, on the basis of the above embodiments, in container operational process, further includes:
The operation of the intermediate steps monitoring of container service, the intermediate steps are initiated by the container proxy module of virtual server The operation of monitoring includes environmental variance setting, storage carry result, starting or the result and monitoring health inspection of closing container service The result of survey;
Report container relevant information to operation platform, the container relevant information packet by the container proxy module of virtual server Include container process, cpu operation conditions, memory and heart time;
Report host relevant information to operation platform, the host relevant information packet by the container proxy module of virtual server Include cpu operation conditions, memory, input and output io and container mappings port status information;
Container relevant information that the container proxy module that the operation platform of cloud pipe server receives virtual server reports and Host relevant information, and when container relevant information or host relevant information are abnormal, such as low memory or cpu make It is more than scheduled utilization rate with rate, then issues warning information automatically.
It is realized the present invention also provides a kind of computer readable storage medium, when the processing system is executed by processor as follows Step: registration step obtains after receiving the container service register instruction based on cloud pipe server according to the register instruction Corresponding registration Script installs the registration Script and obtains corresponding container proxy module, using the container proxy module and The gate system intrinsic call interface Portal Inner API of public server is requested to platform portal system PAAS Portal Registration;Receiving step: the appearance of the intrinsic call interface forwarding of public server is received by the container proxy module of virtual server The creation of device service instructs;Foundation step is based on creation instruction by the container proxy module of virtual server and creates the container Corresponding container is serviced, and starts the container.
The present invention also provides another computer readable storage medium, fortune is stored on the computer readable storage medium Maintain system, the operational system realizes following steps when being executed by processor: creation instruction sending step, virtual server to Platform portal system PAAS Portal request registration is completed, and after user logs in platform portal system PAAS Portal, Domain-name information based on user's input selects corresponding container service, passes through the scheduled wound for issuing channel and sending the container service Instruction is built to public server, the creation instruction of the container service is transmitted to virtual server;Step is changed, is virtually being taken It is engaged in after the container proxy module starting container of device, the corresponding IP address of domain-name information of user's input and port is reported into routing Service module carries out the change of domain name routing address, services PAAS container platform with construction platform, and in subsequently received access Corresponding container is accessed when request.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (6)

1. a kind of platform is the construction method for servicing PAAS container platform, which is characterized in that the platform services PAAS container The construction method of platform the following steps are included:
S1, virtual server is after receiving the container service register instruction based on cloud pipe server, according to the register instruction Corresponding registration Script is obtained, the registration Script is installed and obtains corresponding container proxy module, acts on behalf of mould using the container The gate system intrinsic call interface Portal Inner API of block and public server is to platform portal system PAAS Portal Request registration;
S2 requests registration to be completed, and logs in the platform door in user in virtual server to platform portal system PAAS Portal After the system PAAS Portal of family, the operation platform of cloud pipe server selects corresponding container based on the domain-name information that user inputs Service, by it is scheduled issue channel and send the creation of the container service instruct to public server, by the container service Creation instruction is transmitted to virtual server;
S3 is received the container service of the intrinsic call interface forwarding of public server by the container proxy module of virtual server Creation instruction;
S4 is based on creation instruction by the container proxy module of virtual server and creates the corresponding container of the container service, and opens Move the container;
S5, after the container proxy module of virtual server starts container, the operation platform of cloud pipe server is by the domain name of input The corresponding IP address of information and port are reported to route service module to carry out the change of domain name routing address, are serviced with construction platform PAAS container platform, and corresponding container is accessed in subsequently received access request;
The step S4 includes:
The corresponding configuration of container for preparing the container service is instructed to become based on the creation by the container proxy module of virtual server More file reads the variable in the configuration change file and is updated, pulls the corresponding mirror image of the container, and creation is rolled up and hung All volumes for carrying the container, start the container;
After the step S1, further includes:
After the registration is finished, the operation platform of cloud pipe server records corresponding registration information;
After the step S4, further includes:
The operation platform of cloud pipe server receives the creation information of the container of the intrinsic call interface forwarding of public server, record The creation information;
After the step S5, further includes:
After accessing container, the operation platform of cloud pipe server records corresponding access information.
2. platform according to claim 1 is the construction method for servicing PAAS container platform, which is characterized in that the step S4 further comprises:
Before starting the container further include: by scheduled health examination mechanism to container progress health detection, and Start the container after health detection success.
3. platform according to claim 2 is the construction method for servicing PAAS container platform, which is characterized in that the step After S5, further includes:
Agency's upgrading data are issued to each container proxy module of virtual server by the operation platform batch of cloud pipe server Automatically upgraded, and each container proxy module for receiving virtual server is believed by the respective upgrades that public server returns Breath, records the upgrade information.
4. platform according to claim 2 is the construction method for servicing PAAS container platform, which is characterized in that transported in container During row, further includes:
The operation of the intermediate steps monitoring of container service, intermediate steps monitoring are initiated by the container proxy module of virtual server Operation include environmental variance setting, storage carry result, starting or the result and monitoring health detection of closing container service As a result;
Report container relevant information to operation platform by the container proxy module of virtual server, which includes holding Device process, cpu operation conditions, memory and heart time;
Report host relevant information to operation platform by the container proxy module of virtual server, which includes Cpu operation conditions, memory, input and output io and container mappings port status information;
The container relevant information and host that the container proxy module that the operation platform of cloud pipe server receives virtual server reports Relevant information, and when container relevant information or host relevant information are abnormal, issue warning information.
5. a kind of virtual server, which is characterized in that the virtual server includes memory and connect with the memory Processor is stored with the processing system that can be run on the processor in the memory, and the processing system is by the place Reason device realizes following steps when executing:
Registration step obtains after receiving the container service register instruction based on cloud pipe server according to the register instruction Corresponding registration Script installs the registration Script and obtains corresponding container proxy module, using the container proxy module and The gate system intrinsic call interface Portal Inner API of public server is requested to platform portal system PAAS Portal Registration;
Receiving step: the container of the intrinsic call interface forwarding of public server is received by the container proxy module of virtual server The creation of service instructs;
Foundation step is based on creation instruction by the container proxy module of virtual server and creates the corresponding appearance of the container service Device, and start the container;
The container proxy module by virtual server is based on creation instruction and creates the corresponding container of the container service, and opens The foundation step for moving the container includes:
The corresponding configuration of container for preparing the container service is instructed to become based on the creation by the container proxy module of virtual server More file reads the variable in the configuration change file and is updated, pulls the corresponding mirror image of the container, and creation is rolled up and hung All volumes for carrying the container, start the container.
6. a kind of computer readable storage medium, which is characterized in that be stored with processing system on the computer readable storage medium System, the processing system realize following steps when being executed by processor:
Registration step obtains after receiving the container service register instruction based on cloud pipe server according to the register instruction Corresponding registration Script installs the registration Script and obtains corresponding container proxy module, using the container proxy module and The gate system intrinsic call interface Portal Inner API of public server is requested to platform portal system PAAS Portal Registration;
Receiving step: the container of the intrinsic call interface forwarding of public server is received by the container proxy module of virtual server The creation of service instructs;
Foundation step is based on creation instruction by the container proxy module of virtual server and creates the corresponding appearance of the container service Device, and start the container;
The container proxy module by virtual server is based on creation instruction and creates the corresponding container of the container service, and opens The foundation step for moving the container includes:
The corresponding configuration of container for preparing the container service is instructed to become based on the creation by the container proxy module of virtual server More file reads the variable in the configuration change file and is updated, pulls the corresponding mirror image of the container, and creation is rolled up and hung All volumes for carrying the container, start the container.
CN201711161342.1A 2017-11-21 2017-11-21 Platform is construction method, server and the storage medium for servicing PAAS container platform Active CN107979493B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711161342.1A CN107979493B (en) 2017-11-21 2017-11-21 Platform is construction method, server and the storage medium for servicing PAAS container platform
PCT/CN2018/076110 WO2019100605A1 (en) 2017-11-21 2018-02-10 Platform-as-a-service paas container platform construction method, server, system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711161342.1A CN107979493B (en) 2017-11-21 2017-11-21 Platform is construction method, server and the storage medium for servicing PAAS container platform

Publications (2)

Publication Number Publication Date
CN107979493A CN107979493A (en) 2018-05-01
CN107979493B true CN107979493B (en) 2019-10-29

Family

ID=62010602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711161342.1A Active CN107979493B (en) 2017-11-21 2017-11-21 Platform is construction method, server and the storage medium for servicing PAAS container platform

Country Status (2)

Country Link
CN (1) CN107979493B (en)
WO (1) WO2019100605A1 (en)

Families Citing this family (44)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920251A (en) * 2018-06-08 2018-11-30 郑州云海信息技术有限公司 A kind of management system and method for container
CN109005066A (en) * 2018-08-28 2018-12-14 福建星网智慧软件有限公司 Based on Docker distributed server operation management method and computer readable storage medium
CN109345232B (en) * 2018-09-18 2023-05-16 三六零科技集团有限公司 Method and system for constructing application platform based on hierarchical container mechanism
CN109672580B (en) * 2018-09-21 2022-01-18 平安科技(深圳)有限公司 Full link monitoring method, device, terminal equipment and storage medium
CN109936571B (en) * 2019-02-22 2020-05-29 全球能源互联网研究院有限公司 Mass data sharing method, open sharing platform and electronic equipment
CN110196722B (en) * 2019-05-07 2023-11-28 平安科技(深圳)有限公司 Cloud host batch management method, system, equipment and storage medium
CN110286997B (en) * 2019-05-17 2023-08-18 平安科技(深圳)有限公司 Multi-container application creation method, device, computer equipment and storage medium
CN112148419B (en) * 2019-06-28 2024-01-02 杭州海康威视数字技术股份有限公司 Mirror image management method, device and system in cloud platform and storage medium
CN112148348B (en) * 2019-06-28 2023-10-20 杭州海康威视数字技术股份有限公司 Task processing method, device and storage medium
CN110288104A (en) * 2019-07-04 2019-09-27 北京百佑科技有限公司 O&M flow system, O&M workflow management method and device
CN112491940A (en) * 2019-09-12 2021-03-12 北京京东振世信息技术有限公司 Request forwarding method and device of proxy server, storage medium and electronic equipment
CN112532674B (en) * 2019-09-19 2023-07-28 贵州白山云科技股份有限公司 Creation method, device and medium of network edge computing system
CN112532758B (en) * 2019-09-19 2023-04-18 贵州白山云科技股份有限公司 Method, device and medium for establishing network edge computing system
CN112543109B (en) * 2019-09-20 2023-08-15 上海数荃数据科技有限公司 Cloud host creation method, cloud host creation system, server and storage medium
CN110764779B (en) * 2019-10-21 2023-09-15 百度在线网络技术(北京)有限公司 Encapsulation method, registration method, device and rendering equipment
CN110830289B (en) * 2019-10-21 2021-06-11 华中科技大学 Container abnormity monitoring method and monitoring system
CN112988321A (en) * 2019-12-13 2021-06-18 北京金山云网络技术有限公司 Container mirror image data management method and device, electronic equipment and storage medium
CN111209087B (en) * 2020-01-15 2024-01-30 南京中新赛克科技有限责任公司 Docker-based big data learning platform building method
CN111209025A (en) * 2020-01-19 2020-05-29 山东浪潮通软信息科技有限公司 SaaS platform implementation method based on heartbeat mechanism
CN113364727B (en) * 2020-03-05 2023-04-18 北京金山云网络技术有限公司 Container cluster system, container console and server
CN111813418B (en) * 2020-06-30 2024-04-05 深圳赛安特技术服务有限公司 Distributed link tracking method, device, computer equipment and storage medium
CN111885174B (en) * 2020-07-27 2023-01-17 佛山市霖罕崞信息科技有限公司 Method and system for processing nodes in different network segments
CN112118123A (en) * 2020-07-30 2020-12-22 爱普(福建)科技有限公司 Stack-based gateway management method and system
CN112104723B (en) * 2020-09-07 2024-03-15 腾讯科技(深圳)有限公司 Multi-cluster data processing system and method
CN112422325A (en) * 2020-10-30 2021-02-26 蒋光洵 Management method and system based on multi-cloud mixed platform
CN112564979B (en) * 2020-12-17 2023-10-13 金蝶软件(中国)有限公司 Execution method and device of construction task, computer equipment and storage medium
CN112579303A (en) * 2020-12-30 2021-03-30 苏州浪潮智能科技有限公司 Method and equipment for allocating deep learning development platform resources
CN112698917B (en) * 2020-12-31 2022-06-21 武汉达梦数据技术有限公司 PaaS platform network architecture based on containerization and implementation method thereof
CN112988329A (en) * 2021-03-22 2021-06-18 北京思特奇信息技术股份有限公司 Container configuration management method and system
CN112804376B (en) * 2021-03-22 2022-02-15 北京浩瀚深度信息技术股份有限公司 Batch command execution method and device in NAT environment and storage medium
CN113110917B (en) * 2021-04-28 2024-03-15 北京链道科技有限公司 Data discovery and security access method based on Kubernetes
CN113691389A (en) * 2021-07-05 2021-11-23 深圳爱捷云科技有限公司 Configuration method of load balancer, server and storage medium
CN113608721B (en) * 2021-07-26 2023-07-18 浪潮软件科技有限公司 Container-based service center implementation method and implementation system
CN113542431A (en) * 2021-08-02 2021-10-22 北京百度网讯科技有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN113783967A (en) * 2021-09-22 2021-12-10 浙江简捷物联科技有限公司 Method and system for realizing Internet of things access layer at cloud based on WooLinkOS system
CN113923116A (en) * 2021-10-28 2022-01-11 西安热工研究院有限公司 Method for managing multiple wide area network clusters based on one platform
CN114143048B (en) * 2021-11-18 2023-09-26 绿盟科技集团股份有限公司 Method, device and storage medium for managing safety resources
CN114500300B (en) * 2022-01-07 2024-04-05 支付宝(杭州)信息技术有限公司 Service registration processing method and device
CN114374743B (en) * 2022-01-13 2023-08-22 上海金融期货信息技术有限公司 Gateway routing rule generation method and system supporting multiple service discovery mechanisms
CN114706622B (en) * 2022-03-10 2023-08-18 北京百度网讯科技有限公司 Method, device, equipment, medium and product for starting model service
CN114629924B (en) * 2022-04-13 2024-02-13 北京赛博云睿智能科技有限公司 Method for synchronous operation of service data by container
CN114844859A (en) * 2022-05-05 2022-08-02 北京达佳互联信息技术有限公司 Domain name configuration method and device, electronic equipment and storage medium
CN115150191A (en) * 2022-07-29 2022-10-04 济南浪潮数据技术有限公司 Cross-region cloud management platform information interaction method and related components
CN117075984B (en) * 2023-10-17 2023-12-26 海马云(天津)信息技术有限公司 Module processing method, device, communication equipment and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102376064A (en) * 2010-08-12 2012-03-14 威睿公司 Elastic permission of software in cloud environment
CN103812911B (en) * 2012-11-14 2018-05-08 中兴通讯股份有限公司 A kind of method and system controlled using PaaS cloud computing platform Service Sources
US9652178B2 (en) * 2013-09-10 2017-05-16 Veritas Technologies Systems and methods for protecting virtual machine data
US20150334070A1 (en) * 2013-12-09 2015-11-19 Jeffrey N. Dinardo, JR. Send2Mobile Cloud System
CN104503882B (en) * 2014-12-25 2018-10-19 北京京东尚科信息技术有限公司 container management method and device
CN104793946B (en) * 2015-04-27 2018-07-06 广州杰赛科技股份有限公司 Dispositions method and system are applied based on cloud computing platform
CN105979009B (en) * 2016-07-06 2019-05-17 乾云数创(山东)信息技术研究院有限公司 A kind of increase load automatic balancing method for cloud application container

Also Published As

Publication number Publication date
CN107979493A (en) 2018-05-01
WO2019100605A1 (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN107979493B (en) Platform is construction method, server and the storage medium for servicing PAAS container platform
CN107911421B (en) Method, apparatus, and computer storage medium for configuring cross-network communications in a blockchain
CN102833323B (en) Method and system for remote control of controlled terminal by server
US8738815B2 (en) System and method for virtualizing the peripherals in a terminal device to enable remote management via removable portable media with processing capability
CN107015870B (en) Method and device for realizing communication between web page and local application and electronic equipment
CN109656807A (en) Interface mock test method, device, equipment and storage medium based on information security
CN109639701B (en) Access control method, device and equipment based on OPC protocol and storage medium
CN108427705A (en) Electronic device, distributed system journal querying method and storage medium
CN103607428B (en) A kind of method and apparatus for accessing shared drive
CN108491222A (en) Gateway device upgrade method, device, gateway device and storage medium
CN110198334A (en) Access method, device and storage medium based on object storage service
CN102204210A (en) Method, server, and system for starting application
WO2019127864A1 (en) Electronic device, springmvc-based data interface and automatic description generation method therefor, and storage medium
CN110033373A (en) Device, method and the storage medium endorsed in block chain
WO2009097776A1 (en) System, device and method for achieving service upgrade
CN108512747A (en) The plug-in management method and home gateway of home gateway, communication system
CN110830481A (en) Vehicle-mounted equipment internet surfing method and device, server and storage medium
CN104468811B (en) Upgrade method and device
CN112565439B (en) Internet of things communication method and system
CN114124917A (en) Remote upgrading method, equipment, system and medium for ground lock firmware
TW200622671A (en) Program installation system and method using the same
CN111935260B (en) Account synchronization method and device, electronic equipment and storage medium
US20180337922A1 (en) Method and device for controlling smart device, server and storage medium
WO2024022277A1 (en) Map update data downloading method and apparatus, device, and readable medium
CN113268257A (en) Vehicle-mounted application upgrading system, method and computer 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