CN110413288A - Using dispositions method, device, server and storage medium - Google Patents

Using dispositions method, device, server and storage medium Download PDF

Info

Publication number
CN110413288A
CN110413288A CN201910703051.3A CN201910703051A CN110413288A CN 110413288 A CN110413288 A CN 110413288A CN 201910703051 A CN201910703051 A CN 201910703051A CN 110413288 A CN110413288 A CN 110413288A
Authority
CN
China
Prior art keywords
component
destination service
server
application
service component
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
CN201910703051.3A
Other languages
Chinese (zh)
Other versions
CN110413288B (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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN201910703051.3A priority Critical patent/CN110413288B/en
Publication of CN110413288A publication Critical patent/CN110413288A/en
Application granted granted Critical
Publication of CN110413288B publication Critical patent/CN110413288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present embodiments relate to big data technical fields, in particular to a kind of application dispositions method, device, server and storage medium, which comprises obtain to destination service component needed for application deployment;Page info based on pre-stored destination service component generates the parameter configuration page of destination service component;The configuration parameter of destination service component is obtained based on the parameter configuration page;Obtain the built-in properties of destination service component;It calls the preset function of Kubernetes cluster offer to start destination service component according to built-in properties and configuration parameter, Kubernetes clustered deploy(ment) is made to wait for application deployment.The present invention realizes one-touch deployment, improves the efficiency using deployment.

Description

Using dispositions method, device, server and storage medium
Technical field
The present embodiments relate to big data technical fields, in particular to a kind of application dispositions method, device, clothes Business device and storage medium.
Background technique
In the prior art, in application deployment, it usually needs the corresponding server of manual creation and resource, and build application The dependence environment of operation is estimated using resources such as memory, CPU, the memory spaces for needing to occupy, and this method is to physical server Environment has strong dependence, and using the low efficiency of deployment, when physical server accident delay machine, the application disposed on physical server is difficult With migration.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of application dispositions method, device, server and storage medium, to Solve the problems, such as the low efficiency using deployment.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, the embodiment of the invention provides it is a kind of apply dispositions method, be applied to server, the server with Kubernetes cluster communication, which comprises obtain to destination service component needed for application deployment;Based on destination service The page info of component generates the parameter configuration page of destination service component;Destination service component is obtained based on the parameter configuration page Configuration parameter;Obtain the built-in properties of destination service component;Kubernetes collection is called according to built-in properties and configuration parameter The preset function that group provides makes Kubernetes clustered deploy(ment) wait for application deployment to start destination service component.
Second aspect, the embodiment of the invention also provides a kind of applications to dispose device, is applied to server, the server With Kubernetes cluster communication, described device includes that component obtains module, page generation module, parameter acquisition module, built-in Attribute obtains module and deployment module.Wherein, component obtains module for obtaining to destination service component needed for application deployment; Parameter of the page generation module for the page info based on pre-stored destination service component to generate destination service component is matched Set the page;Parameter acquisition module, for obtaining the configuration parameter of destination service component based on the parameter configuration page;Built-in properties obtain Modulus block, for obtaining the built-in properties of destination service component;Deployment module, for being called according to built-in properties and configuration parameter The preset function that Kubernetes cluster provides makes Kubernetes clustered deploy(ment) wait for that deployment is answered to start destination service component With.
The third aspect, the embodiment of the invention also provides a kind of server, the server includes: one or more processing Device;Memory, for storing one or more programs, when one or more of programs are held by one or more of processors When row, so that one or more of processors realize above-mentioned application dispositions method.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program, the computer program are realized above-mentioned using dispositions method when being executed by processor.
Compared with the prior art, a kind of application dispositions method provided in an embodiment of the present invention, device, server and storage are situated between Matter, in user based on Kubernetes clustered deploy(ment) in application, determining the destination service component to application deployment, system first The parameter configuration page can be generated for destination service component;Then, obtain user inputted on the parameter configuration page configuration parameter and The built-in properties of destination service component, the default letter for calling Kubernetes cluster to provide according to built-in properties and configuration parameter Number, to start destination service component, makes Kubernetes clustered deploy(ment) wait for application deployment.Compared with prior art, the present invention is real The configuration parameter that example only needs user to input destination service component on the parameter configuration page is applied, according to matching for destination service component It sets parameter and is automatically performed deployment to application deployment, realize one-touch deployment, improve the efficiency using deployment.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, special embodiment below, and appended by cooperation Attached drawing is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the software architecture schematic diagram of application scenarios provided in an embodiment of the present invention.
Fig. 2 shows the block diagrams of server provided in an embodiment of the present invention.
Fig. 3 shows application dispositions method flow chart provided in an embodiment of the present invention.
Fig. 4 is a kind of sub-step flow chart of implementation of step S101 shown in Fig. 3.
Fig. 5 is the sub-step flow chart of the step S101 another kind implementation shown in Fig. 3.
Fig. 6 is the sub-step flow chart of the step S105 shown in Fig. 3.
Fig. 7 shows interface function intrinsic call relational graph provided in an embodiment of the present invention.
Fig. 8 shows the exemplary diagram after web application deployment provided in an embodiment of the present invention.
Fig. 9 shows the block diagram of application deployment device provided in an embodiment of the present invention.
Icon: 10- server;101- memory;102- communication interface;103- processor;104- bus;200- application section Affix one's name to device;201- component obtains module;202- page generation module;203- parameter acquisition module;204- built-in properties obtain mould Block;205- deployment module.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
In big data technical field, with increasing for the application disposed is needed, caused by physical server condition depended not Compatibility is highlighted with the problem of difficult migration, causes deployment efficiency sharply to decline, reliability reduction, to object when applying deployment to reduce The strong dependence of server environment is managed, usually will be using deployment on a virtual machine, virtual machine is based on physical server and operation system The hardware resource that intermediate software layer between system fictionalizes on the hardware resource fictionalized, then installs required operation System formed, therefore, can based on operating system environment required for different physical server creating environments application deployment, It is based on operating system environment application deployment again, reduces the dependence using deployment to physical server environment as a result,.
Although virtual machine reduces the dependence using deployment to physical server environment, in practical applications, exploitation Environment and practical O&M environmental difference it is larger, develop between environment and O&M environment and be unable to reach good bridge joint, in portion Affix one's name to online in application, still needing the incompatible problem of processing environment of taking time.
In order to further increase using deployment efficiency, key deployment is realized, the embodiment of the present invention is based on Kubernetes collection Group carries out using deployment, and Kubernetes cluster is an open source, for managing the containerization in cloud platform in multiple main frames Application, the target of Kubernetes cluster is to make the application of deployment container simple and efficiently, and Kubernetes cluster mentions It has supplied using deployment, planning, a kind of mechanism for updating and safeguarding.The embodiment of the present invention provides the parameter configuration page, when user exists It is complete according to the preset function that configuration parameter calls Kubernetes cluster to provide after inputting configuration parameter on the parameter configuration page At the deployment to application deployment, will be described in detail below.
Fig. 1 is please referred to, Fig. 1 shows the software architecture schematic diagram of application scenarios provided in an embodiment of the present invention.In Fig. 1, Bottom is the storage control for running (SuSE) Linux OS, for managing hardware storage device, by running on storage control (SuSE) Linux OS dispose clusterFs cluster file system on a storage device, be mainly used for save container group pod hang Data needed for carrying, pod are minimum/simplest basic units of the creation of Kubernetes cluster or deployment, and a pod is represented A process being currently running on Kubernetes cluster.One pod encapsulates an application container container or multiple Container, storage resource, an independent network IP and management control the policing option of the container method of operation, these Container shares storage resource, network, NameSpace, is uniformly arranged and is dispatched, and operates in shared context. Container is a kind of portable, lightweight OS-Level virtual technology, passes through the operation ring of the self-contained software of mirror image Anywhere border can very easily be run.Kubernetes cluster is disposed based on clusterFs cluster file system, is answered It is based on the realization of Kubernetes cluster again with deployment system.Kubernetes cluster is divided into 2 NameSpaces: built-in services space With application service space, built-in services space is mainly used to start database, the service broker's work that application deployment system relies on The service that the support systems such as tool, mirror site operate normally;Application service space is that user is answered by what application deployment system was disposed With service support is provided, above-mentioned application deployment device belongs to a functional module of application deployment system, application deployment system It further include the other functions module such as monitoring module and mirror image management module, health of the monitoring module mainly for the application to deployment State carries out inspection and early warning, carries out drawing presentation and early warning for application resource service condition, and mirror image management module is for bearing Duty manages the corresponding mirror image of each serviced component.
Referring to figure 2., Fig. 2 shows the block diagram of server 10 provided in an embodiment of the present invention, server 10 is wrapped Include memory 101, communication interface 102, processor 103 and bus 104, the memory 101, communication interface 102 and processor 103 are connected by bus 104, and processor 103 is for executing the executable module stored in memory 101, such as computer journey Sequence.
Wherein, memory 101 may include high-speed random access memory (RAM:Random Access Memory), It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely A few communication interface 102 (can be wired or wireless) realizes the communication link between the server 10 and External memory equipment It connects.
Bus 104 can be isa bus, pci bus or eisa bus etc..It is only indicated with a four-headed arrow in Fig. 2, but It is not offered as only a bus or a type of bus.
Wherein, memory 101 is for storing program, and the processor 103 executes the journey after receiving and executing instruction Sequence with realize the above embodiment of the present invention disclose apply dispositions method.
In the present embodiment, server 10 and Kubernetes cluster communication include at least two following situations: (1) servicing Device 10 is independently of the hardware device of Kubernetes cluster, at this point, server 10 is connect with Kubernetes cluster communication, clothes Device 10 be engaged in after obtaining built-in properties and configuration parameter, the preset function for calling Kubernetes cluster to provide starts destination service Component, so that Kubernetes clustered deploy(ment) waits for application deployment.(2) the corresponding portion of application dispositions method that above-described embodiment discloses Administration's program also runs on Kubernetes cluster, that is, the server 10 for executing the deployment program is clothes in Kubernetes cluster Business device, at this point, executing server 10 and the Kubernetes cluster communication of the deployment program, server 10 is obtaining built-in properties After configuration parameter, the preset function for calling Kubernetes cluster to provide starts destination service component, so that Kubernetes Clustered deploy(ment) waits for application deployment.Referring to figure 3., Fig. 3 shows application dispositions method flow chart provided in an embodiment of the present invention, answers For server 10, this apply dispositions method the following steps are included:
Step S101 is obtained to destination service component needed for application deployment.
In the present embodiment, an application can be divided into multiple services, and service can be described using serviced component, often A service can correspond to a serviced component, and serviced component defines the configuration parameter item and built-in properties item of corresponding with service, matches Setting parameter item can be the parameter that the external running environment of the serviced components such as memory, CPU, environmental variance dependence needs to configure, and match The value for setting parameter item can be inputted on the parameter configuration page by user;Built-in properties item can be image filename, starting The attribute relevant to the program that serviced component relies on such as parameter and corresponding value, for example, the built-in properties item packet of serviced component A Include image filename, the value of image filename are as follows: a_image can find operation service component A according to the image filename The program needed to be implemented.Built-in properties item can be the database being pre-stored in server 10.One can to application deployment To need one or more destination service components, the offer of Kubernetes cluster is called when each destination service component passes through After preset function starting, the deployment for waiting for application deployment is just completed, for example, a web application needs three destination service groups Part: web front-end, redis database, mysql database call Kubernetes collection when these three destination service components pass through After the preset function starting that group provides, web application deployment is completed.
In the present embodiment, firstly, user can issue using Disposition Instructions at deployment interface to determine destination service group Part, then, server 10 obtain destination service component again, at least determine destination service component there are two types of specific implementation, son Step S1011-S1012 corresponds to a kind of mode of determining destination service component, and sub-step S1013-S1014 is corresponding another determining The mode of destination service component.
Referring to figure 4., Fig. 4 is a kind of sub-step flow chart of implementation of step S101 shown in Fig. 3, and step S101 can To include following sub-step:
Sub-step S1011 is received and is applied Disposition Instructions, wherein is used to indicate server from least one using Disposition Instructions Destination service template is determined in a service moulding plate.
In the present embodiment, in order to simplify user's operation, multiple common service moulding plates have been stored in advance in server 10, It include multiple serviced components in each service moulding plate, user is the institute that may be selected in service moulding plate by selection service moulding plate There is serviced component, avoids serviced component required for user selects one by one on deployment interface, user's operation is simplified with this, is increased Strong availability.
The serviced component that destination service template includes is determined as taking to target needed for application deployment by sub-step S1012 Business component.
In the present embodiment, user is by choosing destination service template that can choose all targets in destination service template Serviced component, hereby it is achieved that once-through operation can select needed for destination service component, further simplify user's operation.
In the present embodiment, when pre-stored service moulding plate is not achieved when the requirement of application deployment, for the ease of with Destination service component required for family quickly determines can also be to select to application deployment in addition to the clothes in destination service template Component except business component, enhances the flexibility using deployment, and sub-step S1013-S1014 can reach this purpose.
Referring to figure 5., Fig. 5 is the sub-step flow chart of the step S101 another kind implementation shown in Fig. 3, step S101 Can also include following sub-step:
Sub-step S1013 is received and is applied Disposition Instructions, wherein is used to indicate server from least one using Disposition Instructions Destination service template is determined in a service moulding plate, and free serviced component is determined from least one alternative services component.
In the present embodiment, deployment interface can also show alternative services group in addition to display service moulding plate is for user's selection Part for user select, the page info of alternative services component be stored in advance in server 10.
Serviced component that destination service template includes and free serviced component are determined as wait dispose by sub-step S1014 Using required destination service component.
It should be noted that user can also need to generate customized mould according to template generation rule and actual scene Plate further increases the flexibility using deployment.
It should also be noted that, user can also not use destination service template, determined directly from alternative services component Free serviced component is determined as to destination service component needed for application deployment by free serviced component.
Step S102, the parameter that the page info based on pre-stored destination service component generates destination service component are matched Set the page.
In the present embodiment, configuration parameter is more easily inputted for the ease of user, mesh has been stored in advance in server 10 The page info for marking serviced component, can be generated the corresponding parameter configuration page according to the page info of destination service component, with User is set to input the configuration parameter of destination service component on the parameter configuration page.
Step S103 obtains the configuration parameter of destination service component based on the parameter configuration page.
In the present embodiment, for example, showing that the configuration parameter item of mysql can have on the parameter configuration page: user name, close Code, memory, the holding time of CPU, deployment way, user can input that configuration parameter item is corresponding to match on the parameter configuration page Set parameter, user name are as follows: test, password are as follows: 123456, the interior holding time for saving as 1GB, CPU be 10ms, deployment way is single Machine mode.
Step S104 obtains the built-in properties of destination service component.
Step S105 calls the preset function of Kubernetes cluster offer to start according to built-in properties and configuration parameter Destination service component makes Kubernetes clustered deploy(ment) wait for application deployment.
In the present embodiment, Kubernetes clustered deploy(ment) waits for that application deployment are by starting to every needed for application deployment What one destination service component was realized, in order to allow each destination service component to require to start according to user, therefore, it is necessary to foundations The configuration parameter of the destination service component and parameter-embedded starting, and between multiple destination service components there is preset calling to close System, in order to can be to application deployment normal use, it is necessary to successively start corresponding destination service according to preset call relation Component, in order to be deployed on Kubernetes cluster to application deployment so that it is more stable to application deployment, more efficiently transport Row starts destination service component by the preset function for calling Kubernetes cluster to provide.
In the present embodiment, simplified as far as possible with Kubernetes cluster in order to realize and Kubernetes cluster lower coupling Interaction between the preset function of offer, improve it is maintainable, firstly, by the configuration parameter of each destination service component and built-in Attribute is packaged to obtain the corresponding component entities class of each destination service component.Then, according between destination service component The component entities class of destination service component is packaged to obtain the application entity class to application deployment by correlation.Finally, right Application entity class is parsed, and calls Kubernetes cluster to provide according to the correlation between destination service component default Function starts each destination service component.
Fig. 6 is please referred to, Fig. 6 is the sub-step flow chart of the step S105 shown in Fig. 3, and step S105 may include following son Step:
The configuration parameter of each destination service component and built-in properties are packaged, obtain each mesh by sub-step S1051 Mark the component entities class of serviced component.
In the present embodiment, the example that component entities class can be abstract structure, the abstract structure include serviced component Configuration parameter item and built-in properties item and the operating method that configuration parameter item is operated and built-in attribute item is grasped The operating method of work.By taking java is realized as an example, abstract structure can be a component class, after which is instantiated To component entities class, a process simply instantiated may is that an object for first creating the component class, and then basis is matched It sets parameter and built-in properties is that corresponding attribute item carries out assignment in the object.It should be noted that being adopted in practical application scene Development language can be C++, python etc., and the application is not predetermined to specific implementation language to be limited, for the reality of component class The process of exampleization can not only include assignment, also may include increase and realization of certain methods etc..
Sub-step S1052, it is according to the correlation between destination service component, the component of each destination service component is real Body class is packaged, and obtains the application entity class to application deployment.
In the present embodiment, the specific encapsulation process of application entity class is similar with the encapsulation process of component entities class, only not The not above-mentioned component class of the abstract structure used is crossed, one contains answering for the correlation between destination service component With class, the application entity class to application deployment is obtained after this is instantiated using class.The application entity class includes to portion Correlation between the component entities class and destination service component of the required destination service component of administration's application.
Sub-step S1053, the preset function for calling Kubernetes cluster to provide according to application entity class are each to start Destination service component.
As a kind of specific embodiment, can be accomplished in that
Firstly, parsing to using entity class, each target is determined according to the correlation between destination service component The boot sequence of serviced component.
In the present embodiment, the correlation between destination service component can be in destination service component target two-by-two and take Dependence between business component, for example, web front-end component relies on redis component, therefore, before redis component will be prior to web Hold component starting.
Secondly, the preset function that Kubernetes cluster needed for determining each destination service component of starting provides.
Finally, successively calling corresponding preset function starting corresponding according to the boot sequence of each destination service component Destination service component.
It should be noted that the realization step of sub-step S1044 can be encapsulated in one as a kind of specific implementation In interface function, the input parameter of the interface function is application entity class, which can be with: the application entity class is carried out Parsing determines the boot sequence of each destination service component according to the correlation between destination service component;Determine that starting is every The preset function that Kubernetes cluster needed for one destination service component provides;Starting according to each destination service component is suitable Sequence successively calls corresponding preset function to start corresponding destination service component.
Fig. 7 is please referred to, Fig. 7 shows interface function intrinsic call relational graph provided in an embodiment of the present invention.Due to all Destination service component finally run all in the form of pod, and the relevant data of pod need to carry out persistent storage, it is contemplated that Reliability, pod can have multiple copies.When realizing inside interface function, corresponding deposit can be prepared first for destination service component Space is stored up, then other resources needed for generating pod based on this memory space.In Fig. 7, memory module provides storage for pod Space, based on memory module deployment cluster file system (such as clusterFs cluster file system), for managing memory module The space of offer simultaneously externally provides access interface, and the access interface that interface function calls cluster file system to provide first prepares Space required for pod, the interface function (also referred to as K8s api) for then Kubernetes cluster being called to provide carry out pod institute Need resource creation, comprising: based on ready memory space creation persistently volume pv (persistent volume, pv) and Persistently volume statement pvc (persistent volume claim, pvc), pv provide storage resource for pvc, and pvc is asking for storage It asks, pvc requests specific storage resource size and storage access patterns to pv, visits without being concerned about that specific storage resource stores The realization details asked, pvc need to be tied on pv, the storage resource needed for could requesting to the pv of binding;Creation Statefulset controller, statefulset controller are the stateful controller in Kubernetes cluster, can guarantee pod Each copy in whole life cycle title be constant, while statefuleset controller can guarantee copy according to solid Fixed sequence starting, update or deletion;Creation service (service), service define one group of specific pod of extraneous access Mode, service provides load balancing for pod, and service has IP and the port of oneself, externally mentioned by the IP and port For service;Ingress agency is created, the unified resource that ingress agency can provide cluster outside access to service positions Accord with URL (Uniform Resource Locator, URL), load balancing, Secure Socket Layer SSL (Secure Sockets Layer, SSL) termination, hypertext transfer protocol HTTP (HyperText Transfer Protocol, HTTP) routing etc.;Wound Pod is built, pod is added in container, each container corresponds to a mirror image, and container is based on volume (volume) Operation, storage resource needed for volume provides operation by pvc for container.
Fig. 8 is please referred to, Fig. 8 shows the exemplary diagram after web application deployment provided in an embodiment of the present invention.In Fig. 8, web Using including three target elements: web front-end target element, redis target element and mysql target element, web front-end target Component is mutually backups there are two pod: the copy of pod1 and pod1, corresponding service 1, a redis database object component with There are two pod, each pod respectively to correspond to a service, provide external service for mysql database object component, the two clothes Business externally provides principal and subordinate's service respectively, and redis target element has primary tank group 2 and from container group 2, respectively corresponds 2 Hes of main service There is primary tank group 3 from service 2, mysql target element and from container group 3, respectively corresponds main service 3 and from service 3, which is answered Application service is externally provided in the form of URL with by ingress agency, for example, user can pass throughhttp://ip:port/ test/Access the service that web application provides.These three target elements are finally all based on clusterFs cluster file system The memory space of offer runs and provides web services.
Compared with prior art, the embodiment of the present invention has the advantages that
Configuration parameter is inputted to user firstly, providing the parameter configuration page, after obtaining the configuration parameter of user, is not necessarily to user It operates again, is automatically performed the deployment of application, realize one-touch deployment, greatly improve the efficiency using deployment.
Secondly, simplifying user's operation using service moulding plate, the efficiency using deployment is further increased.
Again, user can improve the flexibility using deployment with customized service moulding plate.
Finally, the operation for the preset function for calling Kubernetes cluster to provide uniformly is encapsulated in the same interface function It is interior, the lower coupling with Kubernetes cluster is realized, simplifies the exploitation of software, reduce software maintenance cost.
Fig. 9 is please referred to, Fig. 9 shows the block diagram of application deployment device 200 provided in an embodiment of the present invention.Using Deployment device 200 include at least one can be stored in the form of software or firmware (firmware) in the memory 101 or The software function module being solidificated in the operating system (operating system, OS) of the server 10.It is filled using deployment Setting 200 includes that component obtains module 201, page generation module 202, parameter acquisition module 203, built-in properties acquisition module 204 And deployment module 205.
Component obtains module 201, for obtaining to destination service component needed for application deployment.
In the present embodiment, server 10 is previously stored at least one service moulding plate, and each service moulding plate includes at least One serviced component, as a kind of specific embodiment, component obtains module 201 and is specifically used for: it receives using Disposition Instructions, In, server is used to indicate using Disposition Instructions, and destination service template is determined from least one service moulding plate;By destination service The serviced component that template includes is determined as to destination service component needed for application deployment.
In the present embodiment, server 10 is previously stored at least one service moulding plate and at least one alternative services group Part, each service moulding plate include at least one serviced component, and as another specific embodiment, component, which obtains module 201, to be had Body is also used to: being received and is applied Disposition Instructions, wherein is used to indicate server from least one service moulding plate using Disposition Instructions It determines destination service template, and determines free serviced component from least one alternative services component;By destination service template Including serviced component and free serviced component be determined as to destination service component needed for application deployment.
Page generation module 202 generates destination service for the page info based on pre-stored destination service component The parameter configuration page of component.
Parameter acquisition module 203, for obtaining the configuration parameter of destination service component based on the parameter configuration page.
Built-in properties obtain module 204, for obtaining the built-in properties of destination service component.
Deployment module 205, the default letter for calling Kubernetes cluster to provide according to built-in properties and configuration parameter Number makes Kubernetes clustered deploy(ment) wait for application deployment to start destination service component.
In the present embodiment, destination service component is multiple, and deployment module 205 is specifically used for: by each destination service group The configuration parameter and built-in properties of part are packaged, and obtain the component entities class of each destination service component;According to destination service The component entities class of destination service component is packaged by the correlation between component, is obtained real to the application of application deployment Body class;Call the preset function of Kubernetes cluster offer to start each destination service component according to application entity class.
In the present embodiment, deployment module 205, which is executed, calls the pre- of Kubernetes cluster offer according to application entity class If function is in a manner of making Kubernetes clustered deploy(ment) wait for application deployment, comprising: parsed to using entity class, according to mesh Correlation between mark serviced component determines the boot sequence of each destination service component;It determines and starts each destination service group The preset function that Kubernetes cluster needed for part provides;According to the boot sequence of each destination service component, calls and correspond to Preset function start corresponding destination service component.
It is apparent to those skilled in the art that for convenience and simplicity of description, the application of foregoing description The specific work process for disposing device 200, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
The embodiment of the present invention further discloses a kind of computer readable storage medium, is stored thereon with computer program, described That present invention announcement is realized when computer program is executed by processor 103 applies dispositions method.
In conclusion the embodiment of the present invention provides a kind of application dispositions method, device, server and storage medium, application In server, the server and Kubernetes cluster communication, which comprises obtain to target needed for application deployment Serviced component;Wherein, the page info of destination service component is pre-stored within the server;According to the page of destination service component The parameter configuration page of face information generation destination service component;The configuration ginseng of destination service component is obtained from the parameter configuration page Number;The preset function for calling Kubernetes cluster to provide according to configuration parameter is so that Kubernetes clustered deploy(ment) waits for that deployment is answered With.Compared with prior art, the embodiment of the present invention only needs user to input matching for destination service component on the parameter configuration page Parameter is set, the configuration parameter according to destination service component is automatically performed the deployment to application deployment, realizes one-touch deployment, improves The efficiency of application deployment.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.

Claims (10)

1. a kind of apply dispositions method, which is characterized in that be applied to server, the server and Kubernetes cluster are logical Letter, which comprises
It obtains to destination service component needed for application deployment;
Page info based on the pre-stored destination service component generates the parameter configuration page of the destination service component Face;
The configuration page obtains the configuration parameter of the destination service component based on the parameter;
Obtain the built-in properties of the destination service component;
Call the preset function of the Kubernetes cluster offer to start according to the built-in properties and the configuration parameter The destination service component makes described in the Kubernetes clustered deploy(ment) to application deployment.
2. applying dispositions method as described in claim 1, which is characterized in that the server is previously stored at least one clothes Business template, each service moulding plate includes at least one serviced component, and the acquisition is to destination service needed for application deployment The step of component, comprising:
It receives and applies Disposition Instructions, wherein the application Disposition Instructions are used to indicate the server from least one described clothes Destination service template is determined in template of being engaged in;
The serviced component that the destination service template includes is determined as described to destination service group needed for application deployment Part.
3. applying dispositions method as described in claim 1, which is characterized in that the server is previously stored at least one clothes Be engaged in template and at least one alternative services component, each service moulding plate includes at least one serviced component, it is described obtain to Needed for application deployment the step of destination service component, comprising:
It receives and applies Disposition Instructions, wherein the application Disposition Instructions are used to indicate the server from least one described clothes Destination service template is determined in template of being engaged in, and free serviced component is determined from least one described alternative services component;
Serviced component that the destination service template includes and the free serviced component are determined as described to application deployment The required destination service component.
4. applying dispositions method as described in claim 1, which is characterized in that when the destination service component is multiple, institute It states and calls the preset function of the Kubernetes cluster offer to start according to the built-in properties and the configuration parameter The step of stating destination service component, comprising:
The configuration parameter of each destination service component and the built-in properties are packaged, each target clothes are obtained The component entities class of business component;
According to the correlation between destination service component, the component entities class of each destination service component is packaged, is obtained To the application entity class to application deployment;
Call the preset function of the Kubernetes cluster offer to start each destination service according to the application entity class Component.
5. applying dispositions method as claimed in claim 4, which is characterized in that described according to described in application entity class calling The step of preset function that Kubernetes cluster provides is to start each destination service component, comprising:
The application entity class is parsed, determines each destination service group according to the correlation between destination service component The boot sequence of part;
Determine the preset function that the Kubernetes cluster provides needed for starting each destination service component;
According to the boot sequence of each destination service component, corresponding preset function is successively called to start corresponding target clothes Business component.
6. device is disposed in a kind of application, which is characterized in that be applied to server, the server and Kubernetes cluster are logical Letter, described device include:
Component obtains module, for obtaining to destination service component needed for application deployment;
Page generation module generates the destination service for the page info based on the pre-stored destination service component The parameter configuration page of component;
Parameter acquisition module obtains the configuration parameter of the destination service component for configuring the page based on the parameter;
Built-in properties obtain module, for obtaining the built-in properties of the destination service component;
Deployment module, it is pre- for calling the Kubernetes cluster to provide according to the built-in properties and the configuration parameter If function is made described in the Kubernetes clustered deploy(ment) with starting the destination service component to application deployment.
7. application deployment device as claimed in claim 6, which is characterized in that the server is previously stored at least one clothes Business template, each service moulding plate includes at least one serviced component, and the component obtains module and is specifically used for:
It receives and applies Disposition Instructions, wherein the application Disposition Instructions are used to indicate the server from least one described clothes Destination service template is determined in template of being engaged in;
The serviced component that the destination service template includes is determined as described to destination service group needed for application deployment Part.
8. application deployment device as claimed in claim 6, which is characterized in that the server is previously stored at least one clothes Template of being engaged in and at least one alternative services component, each service moulding plate includes at least one serviced component, and the component obtains Modulus block is specifically used for:
It receives and applies Disposition Instructions, wherein the application Disposition Instructions are used to indicate the server from least one described clothes Destination service template is determined in template of being engaged in, and free serviced component is determined from least one described alternative services component;
Serviced component that the destination service template includes and free serviced component are determined as described to needed for application deployment The destination service component.
9. a kind of server, which is characterized in that the server includes:
One or more processors;
Memory, for storing one or more programs, when one or more of programs are by one or more of processors When execution, so that one or more of processors realize method according to any one of claims 1 to 5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt Processor realizes method according to any one of claims 1 to 5 when executing.
CN201910703051.3A 2019-07-31 2019-07-31 Application deployment method, device, server and storage medium Active CN110413288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910703051.3A CN110413288B (en) 2019-07-31 2019-07-31 Application deployment method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910703051.3A CN110413288B (en) 2019-07-31 2019-07-31 Application deployment method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN110413288A true CN110413288A (en) 2019-11-05
CN110413288B CN110413288B (en) 2023-05-09

Family

ID=68364774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910703051.3A Active CN110413288B (en) 2019-07-31 2019-07-31 Application deployment method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN110413288B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158709A (en) * 2019-12-29 2020-05-15 北京浪潮数据技术有限公司 Cluster deployment method, device and equipment and computer readable storage medium
CN111221593A (en) * 2019-12-31 2020-06-02 五八有限公司 Dynamic loading method and device
CN111277460A (en) * 2020-01-17 2020-06-12 江苏满运软件科技有限公司 ZooKeeper containerization control method and device, storage medium and electronic equipment
CN111399983A (en) * 2020-03-18 2020-07-10 北京达佳互联信息技术有限公司 Scheduling method and device based on container scheduling service
CN111666155A (en) * 2020-06-02 2020-09-15 中国建设银行股份有限公司 Resource configuration file management method, device, equipment and medium
CN111897539A (en) * 2020-07-20 2020-11-06 国云科技股份有限公司 Method and device for deploying applications according to service roles
CN111984270A (en) * 2020-08-20 2020-11-24 第四范式(北京)技术有限公司 Application deployment method and system
CN112764753A (en) * 2020-12-31 2021-05-07 北京知因智慧科技有限公司 Project deployment method and device, electronic equipment and storage medium
CN113676501A (en) * 2020-05-13 2021-11-19 北京金山云网络技术有限公司 Application deployment method and device based on Kubernetes cluster and electronic equipment
CN115357258A (en) * 2022-10-24 2022-11-18 北京闪马智建科技有限公司 Application deployment method and device, storage medium and electronic device
WO2023165471A1 (en) * 2022-03-01 2023-09-07 苏州浪潮智能科技有限公司 Cloud platform application deployment method and apparatus, electronic device, and storage medium
CN116737344A (en) * 2023-08-10 2023-09-12 中国电子投资控股有限公司 Multi-container cluster scheduling method and scheduling service system

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225851A1 (en) * 2002-01-18 2003-12-04 Fanshier Stephen R. Systems and methods for application management and deployment
WO2009152736A1 (en) * 2008-06-16 2009-12-23 华为技术有限公司 Method and apparatus for creating and deploying service
CN105260203A (en) * 2015-09-25 2016-01-20 福州大学 Model-based Hadoop deploy and allocation method
CN105487891A (en) * 2015-11-26 2016-04-13 航天恒星科技有限公司 Distributed cluster deploying method and system
CN106055388A (en) * 2016-06-25 2016-10-26 国云科技股份有限公司 Cloud platform application automatic deployment framework
CN106406933A (en) * 2016-08-30 2017-02-15 广西电网有限责任公司 One-key automatic deployment method for Tomcat cluster
WO2017045424A1 (en) * 2015-09-18 2017-03-23 乐视控股(北京)有限公司 Application program deployment system and deployment method
US20180048545A1 (en) * 2016-08-11 2018-02-15 Hewlett Packard Enterprise Development Lp Container monitoring configuration deployment
CN107766060A (en) * 2017-10-31 2018-03-06 新华三云计算技术有限公司 Application configuration dispositions method and device
WO2018077198A1 (en) * 2016-10-31 2018-05-03 华为技术有限公司 Method, apparatus, and system for deploying virtual network
CN108549542A (en) * 2018-04-11 2018-09-18 泰康保险集团股份有限公司 A kind of file dispositions method, device and equipment
CN108574702A (en) * 2017-03-08 2018-09-25 中兴通讯股份有限公司 A kind of cloud application dispositions method and system
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN109391514A (en) * 2018-10-11 2019-02-26 深信服科技股份有限公司 Deployed with devices method, server, storage medium and device based on high availability
CN109426514A (en) * 2017-08-24 2019-03-05 北京金山云网络技术有限公司 Automatization of service dispositions method, device, electronic equipment and storage medium
CN109885316A (en) * 2019-02-18 2019-06-14 国家计算机网络与信息安全管理中心 Hdfs-hbase dispositions method and device based on kubernetes

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225851A1 (en) * 2002-01-18 2003-12-04 Fanshier Stephen R. Systems and methods for application management and deployment
WO2009152736A1 (en) * 2008-06-16 2009-12-23 华为技术有限公司 Method and apparatus for creating and deploying service
WO2017045424A1 (en) * 2015-09-18 2017-03-23 乐视控股(北京)有限公司 Application program deployment system and deployment method
CN105260203A (en) * 2015-09-25 2016-01-20 福州大学 Model-based Hadoop deploy and allocation method
CN105487891A (en) * 2015-11-26 2016-04-13 航天恒星科技有限公司 Distributed cluster deploying method and system
CN106055388A (en) * 2016-06-25 2016-10-26 国云科技股份有限公司 Cloud platform application automatic deployment framework
US20180048545A1 (en) * 2016-08-11 2018-02-15 Hewlett Packard Enterprise Development Lp Container monitoring configuration deployment
CN106406933A (en) * 2016-08-30 2017-02-15 广西电网有限责任公司 One-key automatic deployment method for Tomcat cluster
WO2018077198A1 (en) * 2016-10-31 2018-05-03 华为技术有限公司 Method, apparatus, and system for deploying virtual network
CN108574702A (en) * 2017-03-08 2018-09-25 中兴通讯股份有限公司 A kind of cloud application dispositions method and system
CN109426514A (en) * 2017-08-24 2019-03-05 北京金山云网络技术有限公司 Automatization of service dispositions method, device, electronic equipment and storage medium
CN107766060A (en) * 2017-10-31 2018-03-06 新华三云计算技术有限公司 Application configuration dispositions method and device
CN108549542A (en) * 2018-04-11 2018-09-18 泰康保险集团股份有限公司 A kind of file dispositions method, device and equipment
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN109391514A (en) * 2018-10-11 2019-02-26 深信服科技股份有限公司 Deployed with devices method, server, storage medium and device based on high availability
CN109885316A (en) * 2019-02-18 2019-06-14 国家计算机网络与信息安全管理中心 Hdfs-hbase dispositions method and device based on kubernetes

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
何震苇 等: "基于开源PaaS技术的互联网业务平台自动部署方案" *
姚思佳 等: "基于模板的云应用部署引擎设计", 《计算机应用与软件》 *
陈出新等: "云计算环境下面向高性能应用的服务部署系统的设计与研究", 《信息与电脑(理论版)》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158709A (en) * 2019-12-29 2020-05-15 北京浪潮数据技术有限公司 Cluster deployment method, device and equipment and computer readable storage medium
CN111221593A (en) * 2019-12-31 2020-06-02 五八有限公司 Dynamic loading method and device
CN111277460A (en) * 2020-01-17 2020-06-12 江苏满运软件科技有限公司 ZooKeeper containerization control method and device, storage medium and electronic equipment
CN111277460B (en) * 2020-01-17 2022-02-25 江苏满运软件科技有限公司 ZooKeeper containerization control method and device, storage medium and electronic equipment
CN111399983A (en) * 2020-03-18 2020-07-10 北京达佳互联信息技术有限公司 Scheduling method and device based on container scheduling service
CN113676501A (en) * 2020-05-13 2021-11-19 北京金山云网络技术有限公司 Application deployment method and device based on Kubernetes cluster and electronic equipment
CN111666155A (en) * 2020-06-02 2020-09-15 中国建设银行股份有限公司 Resource configuration file management method, device, equipment and medium
CN111897539A (en) * 2020-07-20 2020-11-06 国云科技股份有限公司 Method and device for deploying applications according to service roles
CN111897539B (en) * 2020-07-20 2024-03-29 国云科技股份有限公司 Method and device for deploying application according to service roles
CN111984270A (en) * 2020-08-20 2020-11-24 第四范式(北京)技术有限公司 Application deployment method and system
CN112764753A (en) * 2020-12-31 2021-05-07 北京知因智慧科技有限公司 Project deployment method and device, electronic equipment and storage medium
CN112764753B (en) * 2020-12-31 2024-04-12 北京知因智慧科技有限公司 Project deployment method and device, electronic equipment and storage medium
WO2023165471A1 (en) * 2022-03-01 2023-09-07 苏州浪潮智能科技有限公司 Cloud platform application deployment method and apparatus, electronic device, and storage medium
CN115357258A (en) * 2022-10-24 2022-11-18 北京闪马智建科技有限公司 Application deployment method and device, storage medium and electronic device
CN116737344A (en) * 2023-08-10 2023-09-12 中国电子投资控股有限公司 Multi-container cluster scheduling method and scheduling service system
CN116737344B (en) * 2023-08-10 2023-11-07 中国电子投资控股有限公司 Multi-container cluster scheduling method and scheduling service system

Also Published As

Publication number Publication date
CN110413288B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN110413288A (en) Using dispositions method, device, server and storage medium
US8356274B2 (en) System and methods to create a multi-tenancy software as a service application
CN104541246B (en) System and method for providing a service management engine for use in a cloud computing environment
US7900214B2 (en) System and method for adaptable provisioning of generic application content
CN103077024B (en) A kind of device and method supporting the on-demand customization of SaaS application flow and operation
US20100070553A1 (en) Dynamic service invocation and service adaptation in bpel soa process
US7290045B2 (en) Method and apparatus for managing a storage area network including a self-contained storage system
US10996997B2 (en) API-based service command invocation
WO2005083562A1 (en) System and method for building mixed mode execution environment for component applications
US20060235928A1 (en) System and method for creating a mapping document for binding messages between an application and an associated backend server
US20170364844A1 (en) Automated-application-release-management subsystem that supports insertion of advice-based crosscutting functionality into pipelines
CN106648682B (en) A kind of dynamic data general framework of embedded system exploitation
EP2815346A1 (en) Coordination of processes in cloud computing environments
US8387039B2 (en) System and method for customized provisioning of application content
US7937711B2 (en) Method and apparatus for providing a consolidated namespace to client applications in multi-tenant common information model (CIM) environments
US9122559B2 (en) Extensible dependency management framework and method
US20080229274A1 (en) Automating Construction of a Data-Source Interface For Component Applications
US8667083B2 (en) Simplifying provisioning of asynchronous interaction with enterprise suites having synchronous integration points
CN111367685A (en) Interface calling method and device, computer equipment and storage medium
CN115437647A (en) Multi-frame-adaptive micro-service deployment method, device, terminal and storage medium
US10824511B2 (en) Data migration for a shared database
CN111581578B (en) Interface request processing method and device
Rolland et al. A framework for encapsulating best business practices for electricity supply industry into generic patterns
CN117707968A (en) Simulation test method and device, nonvolatile storage medium and computer equipment
EP1560114A1 (en) Computer system and method for customized provisioning of application content

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