CN109120433A - Method and apparatus for containerization deployment host - Google Patents

Method and apparatus for containerization deployment host Download PDF

Info

Publication number
CN109120433A
CN109120433A CN201810810851.0A CN201810810851A CN109120433A CN 109120433 A CN109120433 A CN 109120433A CN 201810810851 A CN201810810851 A CN 201810810851A CN 109120433 A CN109120433 A CN 109120433A
Authority
CN
China
Prior art keywords
host
deployment
disposed
address
containerization
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
CN201810810851.0A
Other languages
Chinese (zh)
Other versions
CN109120433B (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 CN201810810851.0A priority Critical patent/CN109120433B/en
Publication of CN109120433A publication Critical patent/CN109120433A/en
Application granted granted Critical
Publication of CN109120433B publication Critical patent/CN109120433B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present application discloses the method and apparatus for containerization deployment host.One specific embodiment of this method includes: the internet protocol address for obtaining host to be disposed, obtain IP address set, connection is established with the host to be disposed of the IP address instruction in IP address set, for the IP address instruction in IP address set, the host to be disposed of connection, containerization deployment is carried out to the host to be disposed, containerization disposes the running environment information for comprising determining that the host to be disposed, obtain the deployment information with running environment information matches, and according to deployment information, the basic environment and container programming facility of containerization are supported in deployment on the host to be disposed.The embodiment realizes the containerization deployment for the host to be disposed of different running environment.

Description

Method and apparatus for containerization deployment host
Technical field
The invention relates to field of computer technology, and in particular to method and dress for containerization deployment host It sets.
Background technique
With the proposition and development of containerization technique, more and more enterprises want to build the containerization platform of oneself.Mesh Before, many enterprises are also using there is cloud service, and therefore, many enterprises have a variety of bases such as physical machine, virtual machine, cloud manufacturer host Facility, and the running environment (such as operating system) of various infrastructure has biggish difference, so as to these bases It is difficult to realize that facility carries out unified podsization deployment.Each host is carried out by way of manually disposing to dispose spent week Phase is very long, and is easy error.
Summary of the invention
The embodiment of the present application proposes the method and apparatus for containerization deployment host.
In a first aspect, the embodiment of the present application provides a kind of method for containerization deployment host, this method comprises: obtaining The internet protocol address for taking host to be disposed obtains IP address set;With in IP address set IP address instruction to Deployment host establishes connection;For the IP address instruction in IP address set, connection host to be disposed, this is waited to dispose master Machine carries out containerization deployment, and containerization disposes the running environment information for comprising determining that the host to be disposed, acquisition and running environment The deployment information of information matches, and according to deployment information, the basic environment of containerization is supported in deployment on the host to be disposed With container programming facility.
In some embodiments, the above method further include: according to the master to be disposed of the IP address instruction in IP address set The running environment information or functional type information of machine, or the grouping information sent according to receive, user, to IP address set In IP address instruction host to be disposed be grouped, obtain IP address group set;And for the IP in IP address set Address instruction, connection host to be disposed carries out containerization deployment to the host to be disposed, comprising: to IP address group set In the corresponding host groups to be disposed of IP address group carry out containerization deployment parallel.
In some embodiments, the above method further include: receive the set of applications to be installed and application installation of user's instruction Order information;According to the erection sequence of application erection sequence information instruction, the IP address in IP address set indicates, connection Wait dispose on host the application to be installed installed in set of applications to be installed.
In some embodiments, the above method further include: for the IP address group in IP address group set, by the IP address The host to be disposed of target numbers IP address instruction in group is determined as sample host complexes to be disposed;Sample is waited to dispose master Host to be disposed in machine set carries out containerization deployment;In response to determining the corresponding deployment success of sample host complexes to be disposed Rate is greater than preset sample success rate threshold value, to the IP address instruction in the IP address group, non-sample host progress to be disposed Containerization deployment.
In some embodiments, the above method further include: for the IP address group in IP address group set, with determining the IP The number for the IP address for including in the group of location, using the product of determining number and preset deployment failure rate threshold value as number of targets Mesh, in response to determining that the number of the IP address instruction in the IP address group, containerization deployment failure host to be disposed is greater than Target numbers, stop the container of the host to be disposed of to the IP address instruction in the IP address group, unfinished containerization deployment Change deployment;Determine the fault message for leading to containerization deployment failure;In response to repairing failure, continue to the IP in the IP address group The containerization deployment of the host to be disposed of address instruction, unfinished containerization deployment.
In some embodiments, running environment information includes operating system version information, with running environment information matches Deployment information includes the matched deployment file of operating system indicated with operating system version information.
In some embodiments, the deployment information with running environment information matches is obtained, comprising: from preset deployment information The deployment information with running environment information matches is searched in library.
In some embodiments, the host to be disposed with the IP address instruction in IP address set establishes connection, comprising: with The host to be disposed of IP address instruction in IP address set establishes the connection based on safety shell protocol.
In some embodiments, the above method further include: the relevant information of out-put containerization deployment.
Second aspect, the embodiment of the present application provide a kind of device for containerization deployment host, which includes: to obtain Unit is taken, is configured to obtain the internet protocol address of host to be disposed, obtains IP address set;Connection unit is matched It is set to and establishes connection with the host to be disposed of the IP address instruction in IP address set;Deployment unit is configured to for IP Host to be disposed that IP address in the set of location indicates, connection, carries out containerization deployment, containerization portion to the host to be disposed Administration comprises determining that the running environment information of the host to be disposed, and obtains the deployment information with running environment information matches, Yi Jigen According to deployment information, the basic environment and container programming facility of containerization are supported in deployment on the host to be disposed.
In some embodiments, above-mentioned apparatus further include: grouped element is configured to according to the IP in IP address set The running environment information or functional type information of the host to be disposed of location instruction, or the grouping sent according to receive, user Information is grouped the host to be disposed of the IP address instruction in IP address set, obtains IP address group set;Above-mentioned deployment Unit is further configured to carry out containerization parallel to the corresponding host groups to be disposed of IP address group in IP address group set Deployment.
In some embodiments, above-mentioned apparatus further include: receiving unit is configured to receive to be installed the answering of user's instruction With set and apply erection sequence information;Above-mentioned deployment unit is further configured to be indicated according to application erection sequence information Erection sequence, in IP address set IP address instruction, connection set of applications to be installed is installed wait dispose on host In application to be installed.
In some embodiments, above-mentioned deployment unit is further configured to: for the IP address in IP address group set The host to be disposed of target numbers IP address instruction in the IP address group is determined as sample host complexes to be disposed by group; Host to be disposed in host complexes to be disposed to sample carries out containerization deployment;In response to determining sample host complexes to be disposed The corresponding power that is deployed to is greater than preset sample success rate threshold value, to the IP address instruction in the IP address group, non-sample Host to be disposed carries out containerization deployment.
In some embodiments, above-mentioned deployment unit is further configured to: for the IP address in IP address group set Group determines the number for the IP address for including in the IP address group, and determining number is disposed multiplying for failure rate threshold value with preset Product is used as target numbers, in response to determining the IP address instruction in the IP address group, containerization deployment failure master to be disposed The number of machine is greater than target numbers, suspension is to the IP address instruction in the IP address group, unfinished containerization deployment to portion Affix one's name to the containerization deployment of host;Determine the fault message for leading to containerization deployment failure;In response to repairing failure, continue to the IP The containerization deployment of host to be disposed that IP address in group of addresses indicates, not completing containerization deployment.
In some embodiments, running environment information includes operating system version information, with running environment information matches Deployment information includes the matched deployment file of operating system indicated with operating system version information.
In some embodiments, above-mentioned deployment unit is further configured to: from preset deployment information library search with The deployment information of running environment information matches.
In some embodiments, above-mentioned connection unit is further configured to: being indicated with the IP address in IP address set Host to be disposed establish the connection based on safety shell protocol.
In some embodiments, above-mentioned apparatus further include: output unit is configured to the related letter of out-put containerization deployment Breath.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, which includes: one or more processing Device;Storage device, for storing one or more programs;When one or more programs are executed by one or more processors, make Obtain method of the one or more processors realization as described in implementation any in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should The method as described in implementation any in first aspect is realized when computer program is executed by processor.
Method and apparatus provided by the embodiments of the present application for containerization deployment host, by obtaining host to be disposed Internet protocol address obtains IP address set, establishes and connects with the host to be disposed of the IP address instruction in IP address set It connects, for the IP address instruction in IP address set, connection host to be disposed, containerization portion is carried out to the host to be disposed Administration, containerization dispose the running environment information for comprising determining that the host to be disposed, and obtain the deployment with running environment information matches Information, and according to deployment information, the basic environment and container programming facility of containerization are supported in deployment on the host to be disposed, To realize the host to be disposed for different running environment, the running environment for being suitable for each host to be disposed can be obtained Deployment information, and then containerization is completed to each host to be disposed using corresponding deployment information and is disposed.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for containerization deployment host of the application;
Fig. 3 is the flow chart according to another embodiment of the method for containerization deployment host of the application;
Fig. 4 is the schematic diagram according to an application scenarios of the method for containerization deployment host of the application;
Fig. 5 is the flow chart according to another embodiment of the method for containerization deployment host of the application;
Fig. 6 is the structural schematic diagram according to one embodiment of the device for containerization deployment host of the application;
Fig. 7 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1, which is shown, can dispose host for the method for containerization deployment host or for containerization using the application Device embodiment exemplary architecture 100.
As shown in Figure 1, system architecture 100 may include host 101,102,103 to be disposed, network 104 and main controller 105.Network 104 between host 101,102,103 to be disposed and main controller 105 to provide the medium of communication link.Network 104 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..
Host 101,102,103 to be disposed is interacted by network 104 with main controller 105, to receive and perform main controller pair The relevant operation etc. of the containerization deployment of host 101,102,103 to be disposed.It can be installed on host 101,102,103 to be disposed There are various client applications, such as various meanss of communication, application relevant to deployment etc..
Host 101,102,103 to be disposed can be hardware, be also possible to software.When host 101,102,103 to be disposed When for hardware, it can be the various electronic equipments with display screen, including but not limited to tablet computer, pocket computer on knee With desktop computer etc..When disposing host 101,102,103 is software,.Multiple softwares or software may be implemented into it Module (such as providing multiple softwares of Distributed Services or software module), also may be implemented into single software or software mould Block.It is not specifically limited herein.
Main controller 105 can be the various electronic equipments for being capable of providing containerization deployment services, such as can be for wait dispose Tablet computer, pocket computer on knee and the desk-top calculating of environment needed for host 101,102,103 builds support containerization Machine etc..Main controller can be searched according to the running environment information (such as operating system version information) of host to be disposed to be corresponded to The deployment file of the running environment of host to be disposed, and control host to be disposed and corresponding deployment file is installed, thus for portion Administration's host deployments are adapted to the containerization environment of the running environment of host to be disposed.In addition, during deployment, deployment services device Current deployment relevant information can also be exported to terminal device.
It should be noted that main controller 105, which can remotely treat deployment host 101,102,103, carries out containerization portion Administration.
It should be noted that the method provided by the embodiment of the present application for containerization deployment host is generally by main controller 105 execute, and correspondingly, the device for containerization deployment host is generally positioned in main controller 105.
It may also be noted that host 101,102,103 to be disposed can provide the master to be disposed of containerization deployment services Machine can also be used as main controller, at this point, the embodiment of the present application provided by for containerization deployment host method can by The host to be disposed that can provide containerization deployment services in deployment host 101,102,103 executes, and correspondingly, is used for container The device for changing deployment host, which also can be set, can provide containerization deployment services in the host 101,102,103 to be disposed Wait dispose in host.
It should be noted that main controller can be hardware, it is also possible to software.When main controller is hardware, can be each Kind electronic equipment.When main controller is software, multiple softwares or software module may be implemented into (such as providing distributed clothes The multiple softwares or software module of business), single software or software module also may be implemented into.It is not specifically limited herein.
It should be understood that the number of host to be disposed, network and main controller in Fig. 1 is only schematical.According to realization It needs, can have any number of host to be disposed, network and main controller.
With continued reference to Fig. 2, it illustrates one embodiment for being used for containerization and disposing the method for host according to the application Process 200.This for containerization deployment host method the following steps are included:
Step 201, the internet protocol address for obtaining host to be disposed obtains IP address set.
In the present embodiment, the executing subject (main controller 105 as shown in figure 1) for the method for containerization deployment host can To obtain the IP address of host to be disposed (host to be disposed 101,102,103 as shown in figure 1) first, to obtain IP address collection It closes.Wherein, host to be disposed can be electronic equipment various types of, with operating system.For example, host to be disposed can be with It is arbitrary computer.It should be noted that host to be disposed can be independent physical host, it is also possible to fictitious host computer.
Each host to be disposed can have an IP address.It is alternatively possible to be inputted to executing subject each wait dispose The IP address of host.Optionally, in executing subject, the IP for the All hosts that can be disposed with receiving vesselization can be stored in advance Address, and all IP address can be shown to user.It is then possible to select IP address according to demand by user.At this point, user The corresponding host of selected IP address is host to be disposed, and the selected IP address of user constitutes IP address set.
Step 202, the host to be disposed with the IP address instruction in IP address set establishes connection.
In the present embodiment, above-mentioned executing subject can establish connection with each host to be disposed.Wherein, the mode of connection It can be the existing and following various communication connection modes that may have.For example, can be established with each host to be disposed Based on SSL (Secure Socket Layer, Secure Sockets Layer), TLS (secure transport layer protocol, Transport Layer Security), the connection of SET (Secure Electronics Transactions protocol, Secure Electronic Transaction).
In some optional implementations of the present embodiment, can also with the IP address in IP address set indicate to It disposes host and establishes the connection for being based on SSH (safety shell protocol, Secure Shell).
Above-mentioned various connection types are the well-known techniques studied and applied extensively at present, and details are not described herein.
Step 203, for the IP address instruction in IP address set, connection host to be disposed, this is waited to dispose master Machine carries out containerization deployment, and containerization disposes the running environment information for comprising determining that the host to be disposed, acquisition and running environment The deployment information of information matches, and according to deployment information, the basic environment of containerization is supported in deployment on the host to be disposed With container programming facility.
In the present embodiment, above-mentioned executing subject can carry out containerization to each host to be disposed for having built up connection Deployment.For each host to be disposed, following deployment operation can be executed:
Step 2031, the running environment information of the host to be disposed is determined.
In the present embodiment, running environment information can refer to various information relevant to the hardware of host to be disposed, software. For example, running environment information may include processor model information, video card model information, memory size of host to be disposed etc.. Running environment information can also include the type information of the operating system of host to be disposed, the version information of operating system, to portion The title for the application installed on administration's host and version information etc..
Wherein it is possible to the running environment information of host to be disposed manually is inputted to executing subject, it can also be by master to be disposed Machine sends the running environment information of itself to executing subject, can also be each to detect using existing some coherent detection tools The running environment information of host to be disposed.
Step 2032, the deployment information with running environment information matches is obtained.
In the present embodiment, the deployment with the running environment information matches of host to be disposed can be obtained from Local or Remote Information.Wherein, deployment information may include containerization deployment needed for deployment file, deployment tool, it is various types of deployment say Bright information and user demand information etc..Matched deployment information can refer to the deployment information compatible with running environment information.For example, When running environment information includes operating system version information, deployment information may include can run on the operating system and with this The corresponding deployment file of the version of operating system, deployment tool etc..
It is alternatively possible to which a large amount of deployment information is stored in advance in the local of executing subject, and each deployment information is built Found corresponding running environment index.So as to search matched deployment according to the running environment information of host to be disposed Information.
Alternatively it is also possible to store running environment information and and its matched deployment in the back-end server of executing subject The corresponding relationship of information, so as to send the running environment information of host to be disposed to server, then server lookup pair The deployment information answered simultaneously is back to executing subject.
Step 2033, according to deployment information, the basic environment of containerization is supported in deployment on the host to be disposed.
In the present embodiment, support the basic environment of containerization that can refer to that host to be disposed is allowed to use container technique Basic environment.Container technique can refer to so that application program and its relevance are isolated, thus construct it is a set of can be with Locate the technology from housing unit (i.e. a container instance) of operation.Specifically, the basic environment of containerization is supported usually to build On the operating system layer of host.The host for building the basic environment of containerization can be from the available computing resource of system Various applications can be deployed in different container instances by distribution container instance later.
Wherein, deployment supports that the basic environment of containerization can be by installing container engine wait dispose on host come real It is existing.Currently, common container engine includes but is not limited to: Docker, Rocket, Odin, Runc etc..Different container engines can There can be different mounting means.Generally, above-mentioned various container engines are provided with the container mirror image of corresponding various versions File.So as to determine corresponding container engine image file and in host to be disposed according to the running environment of host to be disposed On installed.In practice, the container engine type for needing to dispose can also be specified by user according to the actual demand of user, Then according to the running environment information of the host to be disposed of user, the container engine image file for obtaining corresponding version is pacified Dress.
Step 2034, according to deployment information, the deployment container programming facility on the host to be disposed.
In the present embodiment, container programming facility can refer to some tools that can be used to manage the life cycle of container. The application for being managed with can be convenient using container programming facility, safeguarding, extending across machine operation containerization.
Currently, common container programming facility includes but is not limited to: Kubernetes, Mesos, Swarm, Fleet etc..No Same container programming facility may have different mounting means.Generally, above-mentioned various container programming facilities are provided with phase The mounting assembly answered.So as to determine corresponding mounting assembly and in host to be disposed according to the running environment of host to be disposed On installed.
In some optional implementations of the present embodiment, the basis for supporting containerization is being disposed wait dispose on machine After environment and container programming facility, the set of applications to be installed and application that can also further receive user's instruction are installed suitable Sequence information.Later, can be according to the erection sequence of application erection sequence information instruction, the IP address in IP address set indicates , connection wait dispose on host the application to be installed installed in set of applications to be installed.
Wherein it is possible to provide a user visualized operation platform, and show various application software.Later, user can be Selection needs application software to be mounted on operating platform, and specifies the erection sequence of each application software.In practice, it can provide The component icon of corresponding various application software, by user by pull need the corresponding component icon of application software to be mounted and Some process icons are indicated using erection sequence.
Optionally, user can choose installation kubernetes provide some infrastructure components come support user may after Wait dispose the various businesses application installed on host.Common infrastructure component includes log, monitoring, configuration, registration discovery, clothes The components such as business gateway.
In some optional implementations of the present embodiment, in the process for treating deployment machine progress containerization deployment In, or after completing deployment, it can be to the relevant information of user's out-put containerization deployment.For example, can be sequentially output each The deployment deadline of a machine to be disposed or Apply Names, the version information disposed etc..
The method provided by the above embodiment for containerization deployment host of the application is by obtaining host to be disposed Internet protocol address obtains IP address set, establishes and connects with the host to be disposed of the IP address instruction in IP address set It connects, for the IP address instruction in IP address set, connection host to be disposed, containerization portion is carried out to the host to be disposed Administration, containerization dispose the running environment information for comprising determining that the host to be disposed, and obtain the deployment with running environment information matches Information, and according to deployment information, the basic environment and container programming facility of containerization are supported in deployment on the host to be disposed, To realize the host to be disposed for different running environment, the running environment for being suitable for each host to be disposed can be obtained Deployment information, and then containerization is completed to each host to be disposed using corresponding deployment information and is disposed.
With continued reference to Fig. 3, it illustrates another implementations for being used for containerization and disposing the method for host according to the application The process 300 of example.This for containerization deployment host method the following steps are included:
Step 301, the IP address for obtaining host to be disposed obtains IP address set.
Step 302, the host to be disposed with the IP address instruction in IP address set establishes connection.
The specific implementation procedure of above-mentioned steps 301 and 302 can refer to step 201 in Fig. 2 corresponding embodiment and 202 Related description, details are not described herein.
Step 303, according to the running environment information or function of the host to be disposed of the IP address instruction in IP address set Type information, or the grouping information sent according to receive, user, to the IP address instruction in IP address set wait dispose Host is grouped, and obtains IP address group set.
In the present embodiment, each host to be disposed can be grouped, so that multiple host groups to be disposed are obtained, into And obtain the corresponding IP address group of each host groups to be disposed.Treat the mode that is grouped of deployment host can there are many.Example Such as, being classified according to the running environment information of host to be disposed, (operating system of such as same type and identical version is One group etc.), (such as one group can also be divided into, for text for handle data according to the functional type information of host to be disposed Part management is divided into one group etc.).Similarly, it can also be grouped according to other attributes of host to be disposed.Furthermore it is also possible to Grouping information is sent by user, deployment host is treated according to the packet mode that user indicates and is grouped.
Step 304, for the IP address group in IP address group set, by the target numbers IP address in the IP address group The host to be disposed indicated is determined as sample host complexes to be disposed;Host to be disposed in host complexes to be disposed to sample into The deployment of row containerization;In response to determining the corresponding power that is deployed to of sample host complexes to be disposed greater than preset sample success rate Threshold value, to the IP address instruction in the IP address group, non-sample host progress containerization deployment to be disposed.
In the present embodiment, it some hosts to be disposed be selected as sample can wait for wait dispose in host groups each first Host is disposed, containerization deployment then is carried out to the host to be disposed that these are picked out.Later, it can be waited for according to the sample of each group The corresponding power that is deployed to of deployment host determines further to the deployment way of each host groups to be disposed.Specifically, as following Shown in each step:
Step 3041, for the IP address group in IP address group set, by the target numbers IP in the IP address group The host to be disposed of location instruction is determined as sample host complexes to be disposed.
It in the present embodiment, can be from each host groups to be disposed for each host groups to be disposed obtained after grouping In pick out target numbers host to be disposed as sample host to be disposed, to obtain the respectively corresponding sample of host groups to be disposed This host complexes to be disposed.Wherein, target numbers can be the number specified by user, be also possible to be advised according to preset calculating Then (the percent of the host number to be disposed that host groups such as to be disposed include is second-class) calculated number.
Step 3042, the host to be disposed in host complexes to be disposed to sample carries out containerization deployment.
In the present embodiment, can in the corresponding sample host complexes to be disposed of each host groups to be disposed it is each to It disposes host and carries out containerization deployment.Specific deployment process can refer to the phase in the step 203 in Fig. 2 corresponding embodiment It speaks on somebody's behalf bright, details are not described herein.
Step 3043, in response to determine sample host complexes dispose it is corresponding be deployed to power be greater than preset sample at Power threshold, to the IP address instruction in the IP address group, non-sample host progress containerization deployment to be disposed.
In the present embodiment, each wait dispose in the corresponding sample host complexes to be disposed of each host groups to be disposed After host completes containerization deployment, the corresponding deployment success of each sample host complexes to be disposed can also be further counted Rate.It is then possible to which the power that is deployed to counted is compared with preset sample success rate threshold value.Wherein, deployment success Rate can be preset by technical staff.
Wherein, for the corresponding sample host set to be disposed for being deployed to power and being greater than preset sample success rate threshold value Close, can to corresponding to these samples host complexes dispose wait dispose it is in host groups, be not chosen as sample wait dispose lead Other hosts to be disposed of machine carry out containerization deployment.
In some optional implementations of the present embodiment, containerization can be carried out parallel to each host groups to be disposed Deployment.Specifically, operation and maintenance tools (such as Ansible, Puppet, the Saltstack of various support batch deployment be can use Deng) parallel container deployment is carried out to each host groups to be disposed.The operation and maintenance tools of above-mentioned support batch deployment can be simultaneously to big The host groups to be disposed of amount are disposed.
In the present embodiment, for the host to be disposed of deployment failure during containerization deployment, portion can be waited in each group The reason of affixing one's name to host groups to complete after disposing, can unifying be disposed again, or investigation deployment failure can be first passed through, It solves correspondence problem and then secondary is disposed.
With continued reference to Fig. 4, Fig. 4 be according to the present embodiment for the method for containerization deployment host application scenarios one A schematic diagram.In the application scenarios of Fig. 4, main controller 401 can be used as executing subject and treat deployment host progress containerization portion Administration.Firstly, main controller can establish the connection based on SSH with each host to be disposed.It is then possible to according to each master to be disposed Host to be disposed is grouped by the version of the operating system of machine.It can be divided into based on a Debian ((SuSE) Linux OS Release) host groups to be disposed 402, be based on Knoppix (release of a (SuSE) Linux OS) host to be disposed Group 403 and the host groups 404 to be disposed for being based on Ubuntu ((SuSE) Linux OS based on desktop application).Wherein, to Disposing host groups 402 includes nine machines to be disposed, and host groups 403 to be disposed include seven machines to be disposed, host to be disposed Group 404 includes five machines to be disposed.
It later, can be to selecting sample host to be disposed from host groups 402,403,404 to be disposed respectively.Below with to It is illustrated for deployment host groups 402: it is possible, firstly, to choose three sample hosts to be disposed, obtaining sample host to be disposed Group 405.Then, each sample host to be disposed in host groups 405 to be disposed to sample carries out containerization deployment.It completes to hold After deviceization deployment, statistics obtains sample deployment success rate 406.Later, sample can be disposed into success rate 406 and preset portion Administration's success rate threshold value 407 is compared.If sample deployment success rate 406, which is greater than, is deployed to power threshold 407, continue to treat portion Other six hosts to be disposed for being not chosen as sample in administration's host groups 402 carry out containerization deployment.
Containerization deployment is illustrated so that host 408 to be disposed to one of them carries out containerization deployment process as an example below Process: first main controller 401 can be determined by remote console order the operation system information of host 408 to be disposed be based on The Amber linux system of Debian.Then, main controller 401 can obtain and Amber from the library that it is pre-established The installation file of installation file (such as Docker image file) and container programming facility of the corresponding container engine of linux system (Kubernetes mounting assembly).Later, can successively be installed on host 408 to be disposed Docker image file and Kubernetes mounting assembly completes the containerization deployment for treating deployment host 408.
Figure 4, it is seen that disposing host for containerization in the present embodiment compared with the corresponding embodiment of Fig. 2 Method process 400 highlight treat deployment host be grouped after, host groups to be disposed for every group can first choose It selects part sample host to be disposed and carries out containerization deployment, and determined whether according to the power that is deployed to of sample host to be disposed Continue directly to carry out containerization deployment to corresponding other hosts to be disposed wait dispose in host groups, to execute in high-volume Containerization deployment before, a small amount of samples can be first passed through and tested, so timely find containerization deployment there may be The problem of.
With further reference to Fig. 5, it illustrates the processes of another embodiment of the method for containerization deployment host 500.This disposes the process 500 of host for containerization, comprising the following steps:
Step 501, the IP address for obtaining host to be disposed obtains IP address set.
Step 502, the host to be disposed with the IP address instruction in IP address set establishes connection.
The specific implementation procedure of above-mentioned steps 501 and 502 can refer to step 201 in Fig. 2 corresponding embodiment and 202 Related description, details are not described herein.
Step 503, according to the running environment information or function of the host to be disposed of the IP address instruction in IP address set Type information, or the grouping information sent according to receive, user, to the IP address instruction in IP address set wait dispose Host is grouped, and obtains IP address group set.
The specific implementation procedure of this step can refer to the related description of the step 303 in Fig. 3 corresponding embodiment, herein not It repeats again.
Step 504, for the IP address group in IP address group set, the number for the IP address for including in the IP address group is determined Mesh, using the product of determining number and preset deployment failure rate threshold value as target numbers, in response to determining the IP address group In IP address instruction, containerization deployment failure host to be disposed number be greater than target numbers, stop to the IP address The containerization deployment of host to be disposed that IP address in group indicates, not completing containerization deployment;Determination leads to containerization portion Affix one's name to the fault message of failure;In response to repairing failure, continue to the IP address instruction in the IP address group, unfinished containerization The containerization deployment of the host to be disposed of deployment.
It in the present embodiment, can be previously according to the number of the host to be disposed that each group host groups to be disposed are included and pre- If deployment failure rate threshold value, calculate the number of the host of deployment failure rate threshold value corresponding containerization deployment failure.Later, During carrying out containerization deployment to every group of host groups to be disposed, the host to be disposed of containerization deployment failure can be counted Number, when the number wait dispose host of containerization deployment failure is more than the corresponding number of calculated deployment failure rate, It can first stop currently to dispose the containerization of group host groups to be disposed, carry out malfunction elimination.Repair failure and then after The continuous containerization to the host groups to be disposed stopped before is disposed.Specifically, as shown in following step:
Step 5041, for the IP address group in IP address group set, the IP address for including in the IP address group is determined Number, using the product of determining number and preset deployment failure rate threshold value as target numbers.
In the present embodiment, for each IP address group, the number of the IP address in each IP address group can be first determined, i.e., It is the number of the corresponding host to be disposed of each IP address group.It is then possible to calculate each IP address group respectively with preset deployment The product of failure rate threshold value, it is corresponding according to preset failure rate threshold value to respectively obtain each IP address group, may containerization Dispose the number of the host to be disposed of failure.Wherein, deployment failure rate threshold value can be set by technical staff according to historical experience It sets.
Step 5042, the IP address instruction in the IP address group, containerization deployment failure wait dispose in response to determining The number of host be greater than target numbers, stop in the IP address group IP address instruction, do not complete containerization deployment to Dispose the containerization deployment of host.
In the present embodiment, during carrying out containerization deployment to each group host groups to be disposed, can continue to count The number of the host to be disposed of each group containerization deployment failure.For the number of the host to be disposed of accumulative containerization deployment failure Mesh is greater than the host groups to be disposed of the calculated number of above-mentioned steps 5041, can stop currently to group host groups to be disposed Containerization deployment, and carry out malfunction elimination.
Step 5043, the fault message for leading to containerization deployment failure is determined.
In the present embodiment, it can use existing various faults investigation mode to the master to be disposed of containerization deployment failure The failure cause of machine is checked, and fault message is obtained.For example, can by containerization dispose during caused by log into Row malfunction elimination also can use malfunction elimination function entrained by used batch deployment tool and carry out to current failure Investigation.
Step 5044, in response to repairing failure, continue to the IP address instruction in the IP address group, unfinished containerization The containerization deployment of the host to be disposed of deployment.
In the present embodiment, after above-mentioned steps 5043 obtain fault message, failure can be carried out by technical staff It repairs.After fault restoration, it can continue to carry out containerization deployment to the host groups respectively to be disposed of termination.
From figure 5 it can be seen that disposing host for containerization in the present embodiment compared with the corresponding embodiment of Fig. 2 The process 500 of method highlight each host to be disposed be grouped, and hold to every group of host groups to be disposed It, can be previously according to the host to be disposed of preset failure rate threshold value and every group of host groups to be disposed during deviceization is disposed Number calculates the number of the host to be disposed of the corresponding possible containerization deployment failure of each group host groups to be disposed.Later, may be used To add up the number of the host to be disposed of each group host groups containerization deployment failure to be disposed.When one group of host groups to be disposed is current When the number wait dispose host of accumulating capacityization deployment failure is more than the number of calculated possible failure, it can terminate current Process is disposed to the containerization of reorganization, and carries out malfunction elimination, in fault recovery and then continues to execute containerization deployment, from And a benchmark number can be determined according to preset deployment failure rate threshold value, lead to containerization deployment process frequency in failure When numerous failure, the host to be disposed to fail can be disposed by persistently counting current containerization during containerization is disposed Number, and be compared with benchmark number, when exceeding benchmark number, it can indicate that deployment failure rate is excessively high, at this point it is possible to temporarily Stop deployment process, and the problem of discovery deployment in time is solved, and the phenomenon that a large amount of deployment fail is avoided the occurrence of.
With further reference to Fig. 6, as the realization to method shown in above-mentioned each figure, this application provides dispose for containerization One embodiment of the device of host, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be with Applied in various electronic equipments.
As shown in fig. 6, the device 600 provided in this embodiment for containerization deployment host includes acquiring unit 601, connects Order member 602 and deployment unit 603.Wherein, acquiring unit 601 is with being configured to obtain the Internet protocol IP of host to be disposed Location obtains IP address set;Connection unit 602 is configured to build with the host to be disposed of the IP address instruction in IP address set Vertical connection;Deployment unit 603 is configured to the host to be disposed of connection for the IP address instruction in IP address set, right It is somebody's turn to do host to be disposed and carries out containerization deployment, containerization disposes the running environment information for comprising determining that the host to be disposed, and obtains With the deployment information of running environment information matches, and according to deployment information, containerization is supported in deployment on the host to be disposed Basic environment and container programming facility.
In the present embodiment, in the device 600 for containerization deployment host: acquiring unit 601,602 and of connection unit The specific processing of deployment unit 603 and its brought technical effect can respectively with reference in Fig. 2 corresponding embodiment step 201, The related description of step 202 and step 203, details are not described herein.
In some optional implementations of the present embodiment, the above-mentioned device 600 for containerization deployment host is also wrapped Include: grouped element (not shown) is configured to the fortune of the host to be disposed according to the IP address instruction in IP address set Row environmental information or functional type information, or the grouping information sent according to receive, user, to the IP in IP address set The host to be disposed of address instruction is grouped, and obtains IP address group set;Above-mentioned deployment unit, is further configured to IP The corresponding host groups to be disposed of IP address group in group of addresses set carry out containerization deployment parallel.
In some optional implementations of the present embodiment, the above-mentioned device 600 for containerization deployment host is also wrapped Include: receiving unit (not shown), the set of applications to be installed and application erection sequence for being configured to receive user's instruction are believed Breath;Above-mentioned deployment unit is further configured to the erection sequence according to application erection sequence information instruction, in IP address set In IP address instruction, connection wait dispose on host the application to be installed installed in set of applications to be installed.
In some optional implementations of the present embodiment, above-mentioned deployment unit 603 is further configured to: being directed to IP The host to be disposed of target numbers IP address instruction in the IP address group is determined as by the IP address group in group of addresses set Sample host complexes to be disposed;Host to be disposed in host complexes to be disposed to sample carries out containerization deployment;In response to true Originally the corresponding power that is deployed to of host complexes to be disposed is greater than preset sample success rate threshold value for random sample, in the IP address group IP address instruction, non-sample host progress containerization deployment to be disposed.
In some optional implementations of the present embodiment, above-mentioned deployment unit 603 is further configured to: being directed to IP IP address group in group of addresses set determines the number for the IP address for including in the IP address group, by determining number and presets Deployment failure rate threshold value product be used as target numbers, in response to determine the IP address group in IP address indicate, container The number for changing the host to be disposed of deployment failure is greater than the target numbers, stop to indicate the IP address in the IP address group , do not complete containerization deployment host to be disposed containerization deployment;Determine the fault message for leading to containerization deployment failure; In response to repairing failure, continue the host to be disposed of to the IP address instruction in the IP address group, unfinished containerization deployment Containerization deployment.
In some optional implementations of the present embodiment, running environment information includes operating system version information, with The deployment information of running environment information matches includes the matched deployment file of operating system indicated with operating system version information.
In some optional implementations of the present embodiment, above-mentioned deployment unit 603 is further configured to: from default Deployment information library in search and the deployment informations of running environment information matches.
In some optional implementations of the present embodiment, above-mentioned connection unit 602 is further configured to: with IP The host to be disposed of IP address instruction in the set of location establishes the connection based on safety shell protocol.
Device 600 in some optional implementations of the present embodiment, for containerization deployment host further include: defeated Unit (not shown) is configured to the relevant information of out-put containerization deployment out.
The device provided by the above embodiment of the application, the Internet protocol IP of host to be disposed is obtained by acquiring unit Address obtains IP address set, and the host to be disposed of the IP address instruction in connection unit and IP address set establishes connection, portion Unit is affixed one's name to for the IP address instruction in IP address set, connection host to be disposed, container is carried out to the host to be disposed Change deployment, containerization disposes the running environment information for comprising determining that the host to be disposed, and obtains and running environment information matches Deployment information, and according to deployment information, basic environment and the container layout of containerization are supported in deployment on the host to be disposed Tool can obtain the fortune for being suitable for each host to be disposed to realize the host to be disposed for different running environment The deployment information of row environment, and then containerization is completed to each host to be disposed using corresponding deployment information and is disposed.
Below with reference to Fig. 7, it illustrates the computer systems 700 for the electronic equipment for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Electronic equipment shown in Fig. 7 is only an example, function to the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 and Execute various movements appropriate and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data. CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always Line 704.
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.; And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon Computer program be mounted into storage section 708 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 709, and/or from detachable media 711 are mounted.When the computer program is executed by central processing unit (CPU) 701, limited in execution the present processes Above-mentioned function.
It should be noted that the computer-readable medium of the application can be computer-readable signal media or computer Readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example of machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, portable of one or more conducting wires Formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or The above-mentioned any appropriate combination of person.In this application, computer readable storage medium can be it is any include or storage program Tangible medium, which can be commanded execution system, device or device use or in connection.And in this Shen Please in, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by Instruction execution system, device or device use or program in connection.The journey for including on computer-readable medium Sequence code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor, packet Include acquiring unit, connection unit and deployment unit.Wherein, the title of these units is not constituted under certain conditions to the unit The restriction of itself, for example, acquiring unit is also described as " obtaining the internet protocol address of host to be disposed, obtaining The unit of IP address set ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device: obtaining the internet protocol address of host to be disposed, and obtains IP address set;Refer to the IP address in IP address set The host to be disposed shown establishes connection;For the IP address instruction in IP address set, connection host to be disposed, this is waited for It disposes host and carries out containerization deployment, containerization disposes the running environment information for comprising determining that the host to be disposed, and obtains and fortune The matched deployment information of row environmental information, and according to deployment information, the base of containerization is supported in deployment on the host to be disposed Plinth environment and container programming facility.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (20)

1. a kind of method for containerization deployment host, comprising:
The internet protocol address for obtaining host to be disposed obtains IP address set;
Connection is established with the host to be disposed of the IP address instruction in the IP address set;
For the IP address instruction in the IP address set, connection host to be disposed, which is held Deviceization deployment, the containerization deployment comprise determining that the running environment information of the host to be disposed, obtain and the running environment The deployment information of information matches, and according to the deployment information, the basis of containerization is supported in deployment on the host to be disposed Environment and container programming facility.
2. according to the method described in claim 1, wherein, the method also includes:
According in the IP address set IP address instruction host to be disposed running environment information or functional type information, Or the grouping information sent according to receive, user, to the host to be disposed of the IP address instruction in the IP address set It is grouped, obtains IP address group set;And
IP address instruction in the IP address set, the connection host to be disposed, to the host to be disposed into The deployment of row containerization, comprising:
Containerization deployment is carried out parallel to the corresponding host groups to be disposed of IP address group in the IP address group set.
3. according to the method described in claim 1, wherein, the method also includes:
It receives the set of applications to be installed of user's instruction and applies erection sequence information;
According to the erection sequence indicated using erection sequence information, that the IP address in the IP address set indicates, Connection wait dispose on host the application to be installed installed in the set of applications to be installed.
4. according to the method described in claim 2, wherein, the method also includes:
For the IP address group in the IP address group set, by target numbers IP address instruction in the IP address group to Deployment host is determined as sample host complexes to be disposed;Host to be disposed in sample host complexes to be disposed is held Deviceization deployment;In response to the corresponding power that is deployed to of determination sample host complexes to be disposed greater than preset sample success rate Threshold value, to the IP address instruction in the IP address group, non-sample host progress containerization deployment to be disposed.
5. according to the method described in claim 2, wherein, the method also includes:
For the IP address group in the IP address group set, the number for the IP address for including in the IP address group is determined, it will be true The product of fixed number and preset deployment failure rate threshold value is as target numbers, in response to determining the IP in the IP address group The number of location instruction, containerization deployment failure host to be disposed is greater than the target numbers, stops in the IP address group IP address instruction, do not complete containerization deployment host to be disposed containerization deployment;Determining causes containerization deployment to be lost The fault message lost;In response to repairing failure, continue to the IP address instruction in the IP address group, unfinished containerization deployment Host to be disposed containerization deployment.
6. according to the method described in claim 1, wherein, the running environment information includes operating system version information, with institute The deployment information for stating running environment information matches includes the matched portion of operating system indicated with the operating system version information Affix one's name to file.
7. according to the method described in claim 1, wherein, the deployment information of the acquisition and the running environment information matches, Include:
The deployment information with the running environment information matches is searched from preset deployment information library.
8. according to the method described in claim 1, wherein, the IP address instruction with the IP address set wait dispose Host establishes connection, comprising:
The connection based on safety shell protocol is established with the host to be disposed of the IP address instruction in the IP address set.
9. method described in one of -8 according to claim 1, wherein the method also includes:
The relevant information of out-put containerization deployment.
10. a kind of device for containerization deployment host, wherein described device includes:
Acquiring unit is configured to obtain the internet protocol address of host to be disposed, and obtains IP address set;
Connection unit is configured to establish connection with the host to be disposed of the IP address instruction in the IP address set;
Deployment unit is configured to the host to be disposed of connection for the IP address instruction in the IP address set, to this Host to be disposed carries out containerization deployment, and the containerization deployment comprises determining that the running environment information of the host to be disposed, obtains The deployment information with the running environment information matches is taken, and according to the deployment information, is disposed on the host to be disposed Support the basic environment and container programming facility of containerization.
11. device according to claim 10, wherein described device further include:
Grouped element is configured to the running environment letter of the host to be disposed according to the IP address instruction in the IP address set Breath or functional type information, or the grouping information sent according to receive, user, to the IP address in the IP address set The host to be disposed indicated is grouped, and obtains IP address group set;
The deployment unit is further configured to the corresponding host to be disposed of IP address group in the IP address group set Group is parallel to carry out containerization deployment.
12. device according to claim 10, wherein described device further include:
Receiving unit is configured to receive the set of applications to be installed of user's instruction and applies erection sequence information;
The deployment unit is further configured to according to the erection sequence indicated using erection sequence information, described In IP address set IP address instruction, connection wait dispose on host install it is to be installed in the set of applications to be installed Using.
13. device according to claim 11, wherein the deployment unit is further configured to:
For the IP address group in the IP address group set, by target numbers IP address instruction in the IP address group to Deployment host is determined as sample host complexes to be disposed;Host to be disposed in sample host complexes to be disposed is held Deviceization deployment;In response to the corresponding power that is deployed to of determination sample host complexes to be disposed greater than preset sample success rate Threshold value, to the IP address instruction in the IP address group, non-sample host progress containerization deployment to be disposed.
14. device according to claim 11, wherein the deployment unit is further configured to:
For the IP address group in the IP address group set, the number for the IP address for including in the IP address group is determined, it will be true The product of fixed number and preset deployment failure rate threshold value is as target numbers, in response to determining the IP in the IP address group The number of location instruction, containerization deployment failure host to be disposed is greater than the target numbers, stops in the IP address group IP address instruction, do not complete containerization deployment host to be disposed containerization deployment;Determining causes containerization deployment to be lost The fault message lost;In response to repairing failure, continue to the IP address instruction in the IP address group, unfinished containerization deployment Host to be disposed containerization deployment.
15. device according to claim 10, wherein the running environment information includes operating system version information, with The deployment information of the running environment information matches includes matched with the operating system of operating system version information expression Deployment file.
16. device according to claim 10, wherein the deployment unit is further configured to:
The deployment information with the running environment information matches is searched from preset deployment information library.
17. device according to claim 10, wherein the connection unit is further configured to:
The connection based on safety shell protocol is established with the host to be disposed of the IP address instruction in the IP address set.
18. device described in one of 0-17 according to claim 1, wherein described device further include:
Output unit is configured to the relevant information of out-put containerization deployment.
19. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-9.
20. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Method as described in any in claim 1-9.
CN201810810851.0A 2018-07-23 2018-07-23 Method and apparatus for containerized deployment of hosts Active CN109120433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810810851.0A CN109120433B (en) 2018-07-23 2018-07-23 Method and apparatus for containerized deployment of hosts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810810851.0A CN109120433B (en) 2018-07-23 2018-07-23 Method and apparatus for containerized deployment of hosts

Publications (2)

Publication Number Publication Date
CN109120433A true CN109120433A (en) 2019-01-01
CN109120433B CN109120433B (en) 2021-11-02

Family

ID=64863030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810810851.0A Active CN109120433B (en) 2018-07-23 2018-07-23 Method and apparatus for containerized deployment of hosts

Country Status (1)

Country Link
CN (1) CN109120433B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806881A (en) * 2019-11-05 2020-02-18 浪潮云信息技术有限公司 Method for deploying different CPU architectures by kubernets
CN111857758A (en) * 2020-07-27 2020-10-30 平安科技(深圳)有限公司 Application deployment method, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867955A (en) * 2015-09-18 2016-08-17 乐视云计算有限公司 Deployment system and deployment method of application program
CN105893010A (en) * 2015-11-17 2016-08-24 乐视云计算有限公司 Host scheduling method and system used for container deployment
CN106020930A (en) * 2016-05-13 2016-10-12 深圳市中润四方信息技术有限公司 Application container based application management method and system
CN106874028A (en) * 2016-12-26 2017-06-20 新华三技术有限公司 Using dispositions method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867955A (en) * 2015-09-18 2016-08-17 乐视云计算有限公司 Deployment system and deployment method of application program
CN105893010A (en) * 2015-11-17 2016-08-24 乐视云计算有限公司 Host scheduling method and system used for container deployment
CN106020930A (en) * 2016-05-13 2016-10-12 深圳市中润四方信息技术有限公司 Application container based application management method and system
CN106874028A (en) * 2016-12-26 2017-06-20 新华三技术有限公司 Using dispositions method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806881A (en) * 2019-11-05 2020-02-18 浪潮云信息技术有限公司 Method for deploying different CPU architectures by kubernets
CN110806881B (en) * 2019-11-05 2023-07-04 浪潮云信息技术股份公司 Method for deploying different CPU architectures by kubernetes
CN111857758A (en) * 2020-07-27 2020-10-30 平安科技(深圳)有限公司 Application deployment method, device and medium
CN111857758B (en) * 2020-07-27 2024-03-22 平安科技(深圳)有限公司 Application deployment method, device and medium

Also Published As

Publication number Publication date
CN109120433B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
US11782818B2 (en) Providing debug information on production containers using debug containers
CN108958992A (en) test method and device
CN109597677A (en) Method and apparatus for handling information
CN108768730A (en) Method and apparatus for operating intelligent network adapter
US9052963B2 (en) Cloud computing data center machine monitor and control
CN109783197A (en) Dispatching method and device for program runtime environment
CN110096424A (en) Processing method, device, electronic equipment and the storage medium of test
CN110221910B (en) Method and apparatus for performing MPI jobs
CN110399253A (en) Delay machine treating method and apparatus
CN109975688A (en) General evaluating method and device for heterogeneous chip
CN110677307B (en) Service monitoring method, device, equipment and storage medium
CN109120433A (en) Method and apparatus for containerization deployment host
CN109828830A (en) Method and apparatus for managing container
CN109992494A (en) A kind of automatic test execution method and apparatus
CN109818994A (en) Information processing method and device for agent side
CN108052449A (en) Operating system condition detection method and device
CN109873731A (en) Test method, device and system
CN109814957A (en) A kind of label addition method and device for IOS system
CN109766392A (en) Data processing method and device
CN113420010A (en) Database management method and device, electronic equipment and storage medium
CN109218338A (en) Information processing system, method and apparatus
CN111488268A (en) Dispatching method and dispatching device for automatic test
CN116088921A (en) Automatic operation and maintenance management system and method oriented to domestic operation system
CN114978923A (en) Fault drilling method, device and system
CN109145591A (en) The plug-in loading method of application program

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