CN110532075A - Method and device for realizing stateful load - Google Patents
Method and device for realizing stateful load Download PDFInfo
- Publication number
- CN110532075A CN110532075A CN201910735507.4A CN201910735507A CN110532075A CN 110532075 A CN110532075 A CN 110532075A CN 201910735507 A CN201910735507 A CN 201910735507A CN 110532075 A CN110532075 A CN 110532075A
- Authority
- CN
- China
- Prior art keywords
- information
- load
- stateful
- stateful load
- creation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000012545 processing Methods 0.000 claims abstract description 30
- 230000008569 process Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012795 verification Methods 0.000 claims description 9
- 238000005538 encapsulation Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 5
- 230000005055 memory storage Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 3
- 230000010365 information processing Effects 0.000 description 2
- 239000000523 sample Substances 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004083 survival effect Effects 0.000 description 1
- 230000032258 transport Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
- G06F9/4856—Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a method for realizing a stateful load, which comprises the following steps: acquiring the creation information of the stateful load input by a user according to the provided information input template; wherein, the creating information comprises configuration information of a state load and a mirror image identifier; processing the creation information, and generating a creation request with a state load according to the processed creation information; the format of the processed creation information is a data format specified by a container management platform Kubernetes; the creation request includes creation information of the stateful load; sending the creation request to the container management platform Kubernets to control the container management platform Kubernets to download the stateful load mirror image corresponding to the mirror image identifier from a mirror image library according to the creation request, and creating and operating stateful load based on the configuration information and the stateful load mirror image; the mirror image library comprises a plurality of pre-uploaded stateful load mirror images provided with mirror image identifiers.
Description
Technical field
The present invention relates to stateful load technology field, in particular to a kind of the implementation method and device of stateful load.
Background technique
Under the current Internet application background that a hundred flowers blossom, nearly all application all uses database etc. stateful negative
It carries.So more and more ordinary users also start with the demand for realizing stateful load.
Due to realizing application based on container, compared to application is realized based on creation virtual machine before, having and occupy money
The advantages such as source is few and starting is quicker.So realizing now for stateful load, it is real to be mainly all based on container
It is existing.User can be realized by the Container Management platform Kubernetes based on application container engine Docker to be based on container
Stateful load.
It is stateful to realize but by the Container Management platform Kubernetes based on application container engine Docker
Load has certain requirement to the professional standards of user.For the ordinary user of not relevant professional knowledge, and do not know
Road how configuration information, what information configured, the stateful load for meeting oneself demand is just able to achieve.So existing mode
It is not well positioned to meet the demand that ordinary user realizes stateful load.
Summary of the invention
Based on above-mentioned the deficiencies in the prior art, the present invention provides the implementation method and device of a kind of stateful load, with
The existing mode for realizing stateful load is solved, can not meet asking for the needs of ordinary user realizes stateful load well
Topic.
To achieve the goals above, the present invention provides following technical schemes:
First aspect present invention provides a kind of implementation method of stateful load, comprising:
Obtain information input template of the user according to offer, the creation information of the stateful load of input;Wherein, the wound
Build the configuration information and image banner that information includes stateful load;
The creation information is handled, and is asked according to the creation that creation information described after processing generates stateful load
It asks;Wherein, the format for the creation information that treated is data format as defined in Container Management platform Kubernetes;It is described
Request to create includes the creation information of the stateful load;
The request to create is sent to the Container Management platform Kubernetes, to control the Container Management platform
Kubernetes downloads the corresponding stateful load mirror image of the image banner according to the request to create from mirror site, and
Based on the configuration information and the stateful load mirror image, creates and run stateful load;
Wherein, the mirror site include it is multiple upload in advance, be provided with the stateful load mirror image of image banner.
Optionally, in the methods described above, information input template of the user according to offer, the stateful load of input are obtained
Creation information, comprising:
Creation information input interface is shown to user by user interface;Wherein, the creation information input interface includes
The information input template;
Obtain the creation information of stateful load of the user by the creation information input interface input;Wherein, described
Creation information includes the configuration information and information of container of stateful load, and the configuration information includes the basic of state load
Information and information on services, the information of container include the image banner of state load.
Optionally, in the methods described above, the creation information is handled, and according to creation information described after processing
Generate the request to create of stateful load, comprising:
Whether legal verify each of creation information of stateful load creation information;
If it is all legal to verify out each of creation information of stateful load creation information, there is shape for described
The creation information of state load, is packaged processing according to data format as defined in the Container Management platform Kubernetes, and
Creation information based on the stateful load after encapsulation process generates request to create.
Optionally, in the methods described above, the Container Management platform Kubernetes is according to the request to create, from mirror
As downloading the corresponding stateful load mirror image of the image banner in library, and based on the configuration information and described stateful negative
Mirror image is carried, the mode of stateful load is created and run, comprising:
The Container Management platform Kubernetes is by application container engine Docker, according to the request to create, from
Download the corresponding stateful load mirror image of the image banner in mirror site Harbor, and based on the configuration information and described
Stateful load mirror image creates and runs stateful load container.
Second aspect of the present invention provides a kind of realization device of stateful load, comprising:
Acquiring unit, for obtaining user according to the information input template of offer, the creation of the stateful load of input is believed
Breath;Wherein, the creation information includes the configuration information and image banner of stateful load;
Processing unit has shape for handling the creation information, and according to creation information described after processing generation
The request to create of state load;Wherein, the format for the creation information that treated is Container Management platform Kubernetes regulation
Data format;The request to create includes the creation information of the stateful load;
Transmission unit, for the request to create to be sent to the Container Management platform Kubernetes, to control
Container Management platform Kubernetes is stated according to the request to create, downloads that the image banner is corresponding shape from mirror site
State loads mirror image, and is based on the configuration information and the stateful load mirror image, creates and runs stateful load;
Wherein, the mirror site include it is multiple upload in advance, be provided with the stateful load mirror image of image banner.
Optionally, in above-mentioned device, the acquiring unit, comprising:
Display unit, for showing creation information input interface to user by user interface;Wherein, the creation information
Input interface includes the information input template;
Subelement is obtained, for obtaining the creation of stateful load of the user by the creation information input interface input
Information;Wherein, the creation information includes the configuration information and information of container of stateful load, and the configuration information includes
The essential information and information on services of state load, the information of container include the image banner of state load.
Optionally, in above-mentioned device, the processing unit, comprising:
Verification unit, whether each of creation information for verifying the stateful load creates information legal;
Subelement is handled, for verifying out each of the creation information of the stateful load in the verification unit
When creation information is all legal, the creation information of the stateful load is advised according to the Container Management platform Kubernetes
Fixed data format is packaged processing, and generates creation based on the creation information of the stateful load after encapsulation process and ask
It asks.
Third aspect present invention provides a kind of cloud data center management platform, comprising: memory and processor, in which:
The memory is for storing computer program;
The processor is used to execute the computer program of the memory storage, and when the meter stored in the memory
Calculation machine program is performed, and the processor is used to execute the method as described in any one of claims 1 to 3.
Fourth aspect present invention provides a kind of computer-readable medium, which is characterized in that is stored thereon with computer journey
Sequence, wherein when the computer program is executed by processor, for realizing the side as described in any one of claims 1 to 3
Method.
The implementation method and device of a kind of stateful load provided by the invention provide information for user and transmit template, with
The creation information of stateful load is inputted for user.Wherein, it is described creation information include stateful load configuration information and
Image banner.Then, the creation information processing of the stateful load for the user's input that will acquire is Container Management platform
After data format as defined in Kubernetes, further according to treated, the creation information of stateful load generates request to create, hair
Container Management platform Kubernetes is given, so that Container Management platform Kubernetes is according to request to create, from mirror image
Download the corresponding stateful load mirror image of the image banner in library, and the configuration information based on user's input and stateful negative
Mirror image is carried, creates and runs stateful load.To provide one kind simply and easily for common user, realize stateful negative
The mode of load meets demand of the ordinary user to stateful load is realized well.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the structural schematic diagram that cloud data center provided in an embodiment of the present invention manages platform;
Fig. 2 is a kind of flow diagram of the implementation method of stateful load provided in an embodiment of the present invention;
Fig. 3 be another embodiment of the present invention provides a kind of stateful load implementation method flow diagram;
Fig. 4 be another embodiment of the present invention provides a kind of stateful load implementation method flow diagram;
Fig. 5 be another embodiment of the present invention provides a kind of stateful load realization device structural schematic diagram;
Fig. 6 be another embodiment of the present invention provides a kind of stateful load realization device structural schematic diagram;
Fig. 7 be another embodiment of the present invention provides a kind of stateful load realization device structural schematic diagram;
Fig. 8 be another embodiment of the present invention provides a kind of cloud data center manage platform structural schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In this application, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion,
So that the process, method, article or equipment for including a series of elements not only includes those elements, but also including not having
The other element being expressly recited, or further include for elements inherent to such a process, method, article, or device.Do not having
There is the element limited in the case where more limiting by sentence "including a ...", it is not excluded that in the mistake including the element
There is also other identical elements in journey, method, article or equipment.
Present invention implementation provides a kind of implementation method of state load, to solve the existing side for realizing stateful load
Formula can not meet the problem of the needs of ordinary user realizes stateful load well.
Firstly the need of explanation, the implementation method of state load provided by the present invention can pass through cloud data center
Manage platform (InCloud Manager, ICM) Lai Shixian.ICM platform can dock virtual platform, container platform etc..Specifically
, as shown in Figure 1, ICM platform includes line module 101 and data processing module 102.Line module 101 is used for user
User interface is provided, the interaction between user is realized by user interface.Data processing module 102 is used to handle data, with
And docked with third-party platform, to respond the operation of user.
Based on above-mentioned ICM platform, the embodiment of the invention provides a kind of implementation methods of state load, as shown in Fig. 2,
Include:
S201, information input template of the user according to offer, the creation information of the stateful load of input are obtained.
Wherein, creation information includes the configuration information and image banner of stateful load.
Since the know-how in the creation of stateful load of most user is not high, so for major part
User when creating stateful load, can exist do not know need to configure what creation information, each creation information format and
The problems such as specifically how configuring creation information.So the embodiment of the present invention is provided when user creates stateful load for user
Unified information input template, user only need to input the creation letter of stateful load according to provided information input template
Breath, so that it may realize the creation of stateful load.By information input template, so that ordinary user can also be according to oneself need
It asks, correctly inputs the creation information of stateful load, to create corresponding stateful load.Avoid the creation of input error
Information lacks necessary creation information etc., to cause correctly be created that stateful load.
Optionally, information output template can be the case template for having filled in all creation information.User's control
Case template, corresponding input meet the creation information of the stateful load of oneself demand.Certainly this is that one of which can
The template form of choosing, information input template can also be supplied to user using other forms, to facilitate user correctly to input wound
Build information.For example, information input template is also possible to the form similar to table, user mentions according to each field on table
Show or title, inserts the creation information of each stateful load accordingly.
It should be noted that the creation information of stateful load includes configuration information and image banner.Wherein, of the invention
Stateful load in embodiment is to be realized based on stateful load mirror image, so image banner is must not in creation information
The creation information that can lack.And in configuration information then include necessary information and nonessential information.Necessary information is that user must
It must need to input, and nonessential information user can carry out selective input according to their own needs.
Specifically, ICM platform provides information input template by line module for user, and it is defeated according to information to obtain user
Enter template, inputs the creation information of stateful load.Wherein, the input mode for creating information includes that user oneself keys in creation letter
Breath and user are from multiple information options of offer, selection creation information.Information is created for part, is needed for user
The multiple information options provided are selected for user.For example, for image banner, since certain customers may not know mirror image
The concrete form of mark, or do not know with which image banner.So can by all image banners alternatively,
It is selected for user.
Optionally, in another embodiment of the present invention, as shown in figure 3, one of concrete implementation side of step S201
Formula, comprising:
S301, creation information input interface is shown to user by user interface.
Wherein, information input interface includes information input template.
Specifically, the line module of ICM platform creates information input interface by show on a user interface, to allow user
The creation information of stateful load is inputted on creation information input interface.Wherein, it creates on information input interface and shows letter
Cease input template.
S302, the creation information for obtaining stateful load of the user by creation information input interface input.
Wherein, creation information includes the configuration information and information of container of stateful load, and configuration information includes stateful
The essential information and information on services of load, the information of container include the image banner of state load.
Specifically, the essential information of stateful load may include: the title of stateful load, resource domains, virtual data
Center, user, number of copies, more new strategy, description etc..Information on services corresponding to stateful load includes: the title of service,
Session compatibility, port etc..The corresponding information of container of stateful load in addition to include state load image banner, can be with
Include: the title of container, CPU minimum value, CPU maximum value, memory minimum value, memory maximum value, port, privileged mode, order,
Parameter, environmental variance, survival probe, ready probe etc..
S202, creation information is handled, and generates the creation of stateful load according to creation information described after processing
Request.
Wherein, the format for creation information that treated is data format as defined in Container Management platform Kubernetes.Wound
Build the creation information that request includes stateful load.
It should be noted that the realization of stateful load is realized based on container technique in present invention implementation.So
The present invention needs to realize stateful load by Container Management platform Kubernetes.Kubernetes (k8s) is Google's public affairs
One of department's exploitation is for managing container in the cloud platform that a large amount of isomery hosts form and realizing opening for automation container operation
Source platform.Container Management platform Kubernetes can support different container engines, and creation, the deployment of Lai Shixian container are adjusted
Extended between degree and node cluster etc..
So in embodiments of the present invention, user is before creating stateful load by ICM platform, in addition to needing to pacify
Fill ICM platform, it is also necessary to which deployment container manages platform Kubernetes and cell therefor engine.
Specifically, ICM line module get user input creation information after, be sent to data processing mould
Block, data processing module carry out a series of processing to the creation information received, so that the format of creation information meets container
Manage platform Kubernetes, it is specified that the stateful load of creation information data format.So that Container Management platform
Kubernetes can create information according to treated, create stateful load.
Optionally, in another embodiment of the present invention, as shown in figure 4, a kind of embodiment of step S202, comprising:
Whether each of S401, creation information of the stateful load of verification create information legal.
Although user be according to information input template, the creation information of the stateful load of input, but can not be complete
The format or specific value for guaranteeing the creation information of user's input are satisfactory, and are completely legal.Because when
When illegal in the presence of creation information, will lead to can not create stateful load.So receiving the stateful negative of user's input
After the creation information of load, need to verify each of creation information of stateful load creation information, if meet to the wound
Build the regulation of information.If creation information meets corresponding regulation, assert that creation information is legal.
It should be noted that being executed after each creation information that execution step S401 verifies out user's input is legal
Step S402.It, will not if executing step S401 to verify out in the creation information of user's input there are illegal creation information
Legal creation information feeds back to user by user interface, so that user modifies creation information.
S402, the data format according to as defined in Container Management platform Kubernetes are packaged processing, and based on encapsulation
The creation information for stateful load that treated generates request to create.
Specifically, the creation information after the data processing module of ICM is legal to verification, according to Container Management platform
Data format as defined in Kubernetes is packaged processing, and raw based on the creation information of the stateful load after encapsulation process
After request to create, step S203 is executed.
S203, request to create is sent to Container Management platform Kubernetes, to control Container Management platform
Kubernetes downloads the corresponding stateful load mirror image of image banner according to request to create from mirror site, and based on configuration
Information and stateful load mirror image, create and run stateful load.
Wherein, mirror site include it is multiple upload in advance, be provided with the stateful load mirror image of image banner.
That is, in embodiments of the present invention, having developed multiple and different stateful load mirror images in advance, then
Stateful load mirror image is uploaded in mirror site, and carries out configuring unique mark for each stateful load.User's root
Corresponding image banner is selected according to the demand of oneself, finally to download the corresponding stateful load mirror of image banner from mirror site
Picture, creation meet the stateful load of user demand.
Specifically, Container Management platform Kubernetes includes according in request to create after receiving request to create
Image banner downloads stateful load mirror image corresponding to image banner from mirror site, and according to the configuration in request to create
The stateful load mirror image of information and downloading, creates stateful load, to finally realize stateful load.
Optionally, in another embodiment of the present invention, platform Kubernetes is managed according to request to create, under in mirror site
The corresponding stateful load mirror image of image banner is carried, and is based on configuration information and the stateful load mirror image, creates and transports
The mode of the stateful load of row, specifically:
Container Management platform Kubernetes is by application container engine Docker, according to request to create, from mirror site
The corresponding stateful load mirror image of image banner is downloaded in Harbor, and is based on configuration information and stateful load mirror image, wound
It builds and runs stateful load container.
That is, Container Management platform Kubernetes is based on application container engine in the embodiment of the present invention
Docker, to realize stateful load.Application container engine Docker can be simply interpreted as Container Management platform
A component of Kubernetes.Certainly, Container Management platform Kubernetes is realized based on application container engine Docker
Outside stateful load, it is also possible to realize stateful load based on other application container engine, such as application container engine
Rocket。
Therefore, in embodiments of the present invention, it is also necessary to preparatory application deployment container engine Docker.Also, the present invention is real
The mirror site in example is applied, mirror site Harbor is used, the stateful load mirror image uploaded with management of being more convenient for.So
The stateful load developed in advance is specifically to upload in mirror site Harbor.
Specifically, application container engine Docker is called after Container Management platform Kubernetes receives request to create,
According to the image banner in request to create, from mirror site Harbor, stateful load mirror corresponding with the image banner is downloaded
Picture, and it is based on configuration information and stateful load mirror image, it creates and runs stateful load container, to realize stateful negative
It carries.
A kind of implementation method of stateful load provided in an embodiment of the present invention provides information for user and transmits template, with
The creation information of stateful load is inputted for user.Wherein, it is described creation information include stateful load configuration information and
Image banner.Then, the creation information processing of the stateful load for the user's input that will acquire is Container Management platform
After data format as defined in Kubernetes, further according to treated, the creation information of stateful load generates request to create, hair
Container Management platform Kubernetes is given, so that Container Management platform Kubernetes passes through application container engine
Docker downloads the corresponding stateful load mirror image of the image banner, and base according to request to create from mirror site Harbor
In the configuration information and stateful load mirror image of user's input, creates and run stateful load.To be common user
It provides one kind simply and easily, realizes the mode of stateful load, it is stateful negative to realizing to meet ordinary user well
The demand of load.
In the embodiment of the present invention, a kind of realization device of stateful load, as shown in Figure 5, comprising:
Acquiring unit 501, for obtaining user according to the information input template of offer, the creation of the stateful load of input
Information.
Wherein, the creation information includes the configuration information and image banner of stateful load.
It should be noted that the specific work process of acquiring unit 501 can be accordingly with reference in above method embodiment
Step S201, details are not described herein again.
Processing unit 502 has for handling the creation information, and according to creation information described after processing generation
The request to create of state load.
Wherein, the format for the creation information that treated is data lattice as defined in Container Management platform Kubernetes
Formula.The request to create includes the creation information of the stateful load.
It should be noted that the specific work process of processing unit 502 can be accordingly with reference in above method embodiment
Step S202, details are not described herein again.
Transmission unit 503, for the request to create to be sent to the Container Management platform Kubernetes, with control
The Container Management platform Kubernetes downloads that the image banner is corresponding to be had according to the request to create from mirror site
State load mirror image, and it is based on the configuration information and the stateful load mirror image, it creates and runs stateful load.
Wherein, the mirror site include it is multiple upload in advance, be provided with the stateful load mirror image of image banner.
It should be noted that the specific work process of transmission unit 503 can be accordingly with reference in above method embodiment
Step S203, details are not described herein again.
Optionally, in another embodiment of the present invention, as shown in fig. 6, acquiring unit, comprising:
Display unit 601, for showing creation information input interface to user by user interface.
Wherein, the creation information input interface includes the information input template.
It should be noted that the specific work process of display unit 601 can be accordingly with reference in above method embodiment
Step S301, details are not described herein again.
Subelement 602 is obtained, for obtaining stateful load of the user by the creation information input interface input
Create information.
Wherein, the creation information includes the configuration information and information of container of stateful load, the configuration information packet
The essential information and information on services of stateful load are included, the information of container includes the image banner of state load.
It should be noted that the specific work process for obtaining subelement 602 can be accordingly with reference in above method embodiment
Step S302, details are not described herein again.
Optionally, in another embodiment of the present invention, as shown in fig. 7, processing unit, comprising:
Whether verification unit 701, each of creation information for verifying stateful load creation information close
Method.
It should be noted that the specific work process of verification unit 701 can be accordingly with reference in above method embodiment
Step S401, details are not described herein again.
Subelement 702 is handled, for every in the creation information that the verification unit verifies out the stateful load
When one creation information is all legal, by the creation information of the stateful load, according to the Container Management platform
Data format as defined in Kubernetes is packaged processing, and is believed based on the creation of the stateful load after encapsulation process
Breath generates request to create.
It should be noted that the specific work process of processing subelement 702 can be accordingly with reference in above method embodiment
Step S402, details are not described herein again.
A kind of realization device of stateful load provided by the invention provides information by display unit for user and transmits mould
Plate, so that user inputs the creation information of stateful load.Wherein, the creation information includes the configuration information of stateful load
And image banner.Then, processing unit will acquire at the creation information of the stateful load for user's input that unit is got
Reason is the creation information of stateful load further according to treated after data format as defined in Container Management platform Kubernetes
Request to create is generated, and Container Management platform Kubernetes is sent to by transmission unit, so that Container Management platform
Kubernetes downloads the corresponding stateful load mirror image of the image banner according to request to create from mirror site, and is based on
The configuration information and stateful load mirror image of user's input, create and run stateful load.To be mentioned for common user
It has supplied one kind simply and easily, has realized the mode of stateful load, met ordinary user well to the stateful load of realization
Demand.
Another embodiment of the present invention provides a kind of cloud data centers to manage platform, as shown in Figure 8, comprising: memory 801
With processor 802, in which:
Memory 801 is for storing computer program.
Processor 802 is used to execute the computer program of the storage of memory 801, and when the calculating stored in memory 801
Machine program is performed, and processor 802 is used to execute the implementation method of the stateful load in any one above-mentioned embodiment.
Another embodiment of the present invention provides a kind of computer-readable mediums, which is characterized in that is stored thereon with computer journey
Sequence, wherein when the computer program is executed by processor, for realizing the stateful load in any one above-mentioned embodiment
Implementation method.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (9)
1. a kind of implementation method of stateful load characterized by comprising
Obtain information input template of the user according to offer, the creation information of the stateful load of input;Wherein, the creation letter
Breath includes the configuration information and image banner of state load;
The creation information is handled, and generates the request to create of stateful load according to creation information described after processing;
Wherein, the format for the creation information that treated is data format as defined in Container Management platform Kubernetes;The wound
Build the creation information that request includes the stateful load;
The request to create is sent to the Container Management platform Kubernetes, to control the Container Management platform
Kubernetes downloads the corresponding stateful load mirror image of the image banner according to the request to create from mirror site, and
Based on the configuration information and the stateful load mirror image, creates and run stateful load;
Wherein, the mirror site include it is multiple upload in advance, be provided with the stateful load mirror image of image banner.
2. user is obtained according to the information input template of offer the method according to claim 1, wherein described,
The creation information of the stateful load of input, comprising:
Creation information input interface is shown to user by user interface;Wherein, the creation information input interface includes described
Information input template;
Obtain the creation information of stateful load of the user by the creation information input interface input;Wherein, the creation
Information includes the configuration information and information of container of stateful load, and the configuration information includes the essential information of state load
And information on services, the information of container include the image banner of state load.
3. the method according to claim 1, wherein described handle the creation information, and according to place
The creation information generates the request to create of stateful load after reason, comprising:
Whether legal verify each of creation information of stateful load creation information;
It, will be described stateful negative if it is all legal to verify out each of creation information of stateful load creation information
The creation information of load is packaged processing according to data format as defined in the Container Management platform Kubernetes, and is based on
The creation information of the stateful load after encapsulation process generates request to create.
4. the method according to claim 1, wherein the Container Management platform Kubernetes is according to the wound
Build request, download the corresponding stateful load mirror image of the image banner from mirror site, and based on the configuration information and
The stateful load mirror image, creates and runs the mode of stateful load, comprising:
The Container Management platform Kubernetes is by application container engine Docker, according to the request to create, from mirror image
It downloads the corresponding stateful load mirror image of the image banner in the Harbor of library, and based on the configuration information and described has shape
State loads mirror image, creates and runs stateful load container.
5. a kind of realization device of stateful load characterized by comprising
Acquiring unit, for obtaining user according to the information input template of offer, the creation information of the stateful load of input;Its
In, the creation information includes the configuration information and image banner of stateful load;
Processing unit generates stateful bear for handling the creation information, and according to creation information described after processing
The request to create of load;Wherein, the format for the creation information that treated is number as defined in Container Management platform Kubernetes
According to format;The request to create includes the creation information of the stateful load;
Transmission unit, for the request to create to be sent to the Container Management platform Kubernetes, to control the appearance
Device manages platform Kubernetes according to the request to create, and it is corresponding stateful negative that the image banner is downloaded from mirror site
Mirror image is carried, and is based on the configuration information and the stateful load mirror image, creates and runs stateful load;
Wherein, the mirror site include it is multiple upload in advance, be provided with the stateful load mirror image of image banner.
6. device according to claim 5, which is characterized in that the acquiring unit, comprising:
Display unit, for showing creation information input interface to user by user interface;Wherein, the creation information input
Interface includes the information input template;
Subelement is obtained, the creation for obtaining stateful load of the user by the creation information input interface input is believed
Breath;Wherein, the creation information includes the configuration information and information of container of stateful load, and the configuration information includes shape
The essential information and information on services, the information of container of state load include the image banner of state load.
7. device according to claim 5, which is characterized in that the processing unit, comprising:
Verification unit, whether each of creation information for verifying the stateful load creates information legal;
Handle subelement, the creation of each of creation information for verifying out the stateful load in the verification unit
When information is all legal, by the creation information of the stateful load, according to as defined in the Container Management platform Kubernetes
Data format is packaged processing, and generates request to create based on the creation information of the stateful load after encapsulation process.
8. a kind of cloud data center manages platform characterized by comprising memory and processor, in which:
The memory is for storing computer program;
The processor is used to execute the computer program of the memory storage, and when the computer stored in the memory
Program is performed, and the processor is used to execute the method as described in any one of claims 1 to 3.
9. a kind of computer-readable medium, which is characterized in that be stored thereon with computer program, wherein the computer program
When being executed by processor, for realizing the method as described in any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910735507.4A CN110532075A (en) | 2019-08-09 | 2019-08-09 | Method and device for realizing stateful load |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910735507.4A CN110532075A (en) | 2019-08-09 | 2019-08-09 | Method and device for realizing stateful load |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110532075A true CN110532075A (en) | 2019-12-03 |
Family
ID=68662242
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910735507.4A Pending CN110532075A (en) | 2019-08-09 | 2019-08-09 | Method and device for realizing stateful load |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110532075A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111427664A (en) * | 2020-03-25 | 2020-07-17 | 杭州电子科技大学 | Container-based protocol analysis method, device, system and storage medium |
CN111506388A (en) * | 2020-03-23 | 2020-08-07 | 聚好看科技股份有限公司 | Container performance detection method, container management platform and computer storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106888254A (en) * | 2017-01-20 | 2017-06-23 | 华南理工大学 | A kind of exchange method between container cloud framework based on Kubernetes and its each module |
CN107819802A (en) * | 2016-09-13 | 2018-03-20 | 华为软件技术有限公司 | A kind of mirror image acquisition methods, node device and server in node cluster |
CN108429787A (en) * | 2018-01-30 | 2018-08-21 | 中经社控股有限公司 | Container dispositions method and device, computer storage media, terminal |
US20180375787A1 (en) * | 2017-06-23 | 2018-12-27 | Red Hat, Inc. | Providing high availability for a thin-provisioned container cluster |
-
2019
- 2019-08-09 CN CN201910735507.4A patent/CN110532075A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107819802A (en) * | 2016-09-13 | 2018-03-20 | 华为软件技术有限公司 | A kind of mirror image acquisition methods, node device and server in node cluster |
CN106888254A (en) * | 2017-01-20 | 2017-06-23 | 华南理工大学 | A kind of exchange method between container cloud framework based on Kubernetes and its each module |
US20180375787A1 (en) * | 2017-06-23 | 2018-12-27 | Red Hat, Inc. | Providing high availability for a thin-provisioned container cluster |
CN108429787A (en) * | 2018-01-30 | 2018-08-21 | 中经社控股有限公司 | Container dispositions method and device, computer storage media, terminal |
Non-Patent Citations (1)
Title |
---|
无: "KubeSphere文档 v1.0", 《HTTPS://V1-0.DOCS.KUBESPHERE.IO/DOCS/ZH-CN/》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111506388A (en) * | 2020-03-23 | 2020-08-07 | 聚好看科技股份有限公司 | Container performance detection method, container management platform and computer storage medium |
CN111427664A (en) * | 2020-03-25 | 2020-07-17 | 杭州电子科技大学 | Container-based protocol analysis method, device, system and storage medium |
CN111427664B (en) * | 2020-03-25 | 2024-04-12 | 杭州电子科技大学 | Container-based protocol analysis method, device, system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11301287B2 (en) | Pattern-based orchestration of cloud provisioning tasks at runtime | |
CN105979009B (en) | A kind of increase load automatic balancing method for cloud application container | |
WO2019237586A1 (en) | Method and apparatus for managing scheduled tasks, computer device and storage medium | |
CN104144073B (en) | Master-slave device environment deployment method and master-slave device environment deployment system | |
JP6549787B2 (en) | Method and apparatus for deploying network services | |
CN103823700B (en) | The application software updating method and device of client | |
CN103841134B (en) | Based on API transmission, the method for receive information, apparatus and system | |
CN102752137B (en) | The apparatus and method of virtual machine network parameter are initiatively set | |
Sandobalin et al. | An infrastructure modelling tool for cloud provisioning | |
CN108369535A (en) | According to polymerization, declaratively configuration data configures cloud | |
JP2004040433A (en) | Network buildup system and buildup method | |
CN106878385A (en) | Private clound dispositions method and device | |
CN110532075A (en) | Method and device for realizing stateful load | |
CN110463163A (en) | For providing the on-demand method and system for waking up access to conversation server | |
CN108139936A (en) | The methods, devices and systems of access to the serial port from the virtual machine in the virtual application of deployment are provided | |
US11902103B2 (en) | Method and apparatus for creating a custom service | |
JP2006134245A (en) | Automatic installation system and program of printer driver | |
CN107241254A (en) | A kind of network access device, network system and network-building method | |
CN107196983A (en) | A kind of resource distribution method and device | |
CN109120444A (en) | cloud resource management method, processor and storage medium | |
CN106209958B (en) | Cloud service system and method thereof | |
CN115827008A (en) | Cloud native big data component management system based on cloud native platform Kubernets | |
CN115248692A (en) | Device and method for supporting cloud deployment of multiple deep learning framework models | |
CN109600380A (en) | Data transmission method and device | |
CN109104292A (en) | Update deployment processing method, relevant device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191203 |
|
RJ01 | Rejection of invention patent application after publication |