CN107248986A - A kind of service tray method - Google Patents
A kind of service tray method Download PDFInfo
- Publication number
- CN107248986A CN107248986A CN201710426333.4A CN201710426333A CN107248986A CN 107248986 A CN107248986 A CN 107248986A CN 201710426333 A CN201710426333 A CN 201710426333A CN 107248986 A CN107248986 A CN 107248986A
- Authority
- CN
- China
- Prior art keywords
- service
- user
- request
- docker
- program bag
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/133—Protocols for remote procedure calls [RPC]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention provides a kind of service tray method, including:Obtain the corresponding service image program bag of service and service parameter of user;Call remote interface to service image program bag and service parameter and be sent to docker container servos;According to service parameter, the service image program bag in docker container servos is started by docker containers cluster.The present invention provides a set of integrity service custody scheme, mirror image builds, services key deployment, service cluster management, the issue of service gray scale and start and stop automatically, by docker containers servo, docker containers cluster and remote interface etc., realize that one-stop service trustship is managed.Service dynamic publishing is realized, each link is automatically performed, without too many manual intervention, reduces repetitive process to save cost.And service energy rapid deployment, service routine, dependence, configuration information are packaged with by Docker containers, the service so encapsulated possesses high portability.
Description
Technical field
The present invention relates to network communication technology field, in particular to a kind of service tray method.
Background technology
Spring Cloud are a cloud application developing instruments realized based on Spring Boot, and it is the cloud based on JVM
Application and development provides a kind of simple development scheme.Micro services framework be by a complete application since data storage it is vertical
Multiple different services are split into, each service can be disposed independently, independent maintenance, independently extension, be passed through between service and service
Interface is called mutually.
Docker is the application container an increased income engine, and user is opened by above-mentioned Spring Cloud and micro services framework
Hair application, and prepare a hardware machine after, by Docker by the application of exploitation and rely on bag be packaged in one it is transplantable
In container, then it is published on the hardware machine, the hardware machine is configured to this using corresponding server.
Active user wants the application that oneself exploitation is implemented in operation, it is necessary to possess a hardware machine to be configured to service
Device, the cost that user oneself develops and practiced is very high.If user not can be used for the hardware machine for being configured to server,
It then can not externally implement the application of its exploitation.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of service tray method, to solve prior art
Problems with:If user wants the application that oneself exploitation is implemented in operation, it is necessary to possess a hardware machine to be configured to server,
The cost that user oneself develops and practiced is very high.If user not can be used for the hardware machine for being configured to server,
The application of its exploitation can not externally be implemented.
In a first aspect, the embodiments of the invention provide a kind of service tray method, methods described includes:
Obtain the corresponding service image program bag of service and service parameter of user;
Call remote interface that the service image program bag and the service parameter are sent into docker container servos;
According to the service parameter, the service in the docker containers servo is started by docker containers cluster
Image program bag.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the first of above-mentioned first aspect, its
In, the corresponding service image program bag of service of the acquisition user, including:
The first trustship request that the terminal of the user is sent is received, the first trustship request carries the corresponding clothes of service
Business image program bag;Or,
The second trustship request that the terminal of the user is sent is received, the second trustship request carries the source generation of service
Code;The corresponding mirror image data of the service is built according to the source code of the service, obtains servicing image program bag.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of second of above-mentioned first aspect, its
In, it is described according to the service parameter, the service in the docker containers servo is started by docker containers cluster
Image program bag, including:
Docker container clusters are selected by the remote interface;
The service parameter is sent to the docker containers cluster of selection;
According to the service parameter, the service image program bag in the docker containers servo is downloaded to described
Docker container clusters;
The service image program bag is started by docker containers cluster operation.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the third of above-mentioned first aspect, its
In, before the service image program bag and service parameter for obtaining user, in addition to:
Docker containers servo and docker container clusters are created, remote interface is issued.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the 4th of above-mentioned first aspect kind, its
In, methods described also includes:
The service upgrade request that the terminal of the user is sent is received, the service upgrade request carries the service correspondence
Upgrade service image program bag and upgrade service parameter;
According to the upgrade service image program bag and the upgrade service parameter, start the clothes after edition upgrading
Business.
With reference to the 4th kind of possible implementation of first aspect, the embodiments of the invention provide the of above-mentioned first aspect
Five kinds of possible implementations, wherein, methods described also includes:
The service access request that the terminal of the user is sent is received, the service access request carries the use of the user
Family information and the service identifiers of the service;
Whether determine in the user profile comprising gray scale mark;
If it is, according to the service identifiers, the service access request to be transmitted to the clothes before edition upgrading
It is engaged in corresponding docker containers cluster;
If it is not, then the service access request to be transmitted to the service after edition upgrading according to the service identifiers
Docker container clusters.
With reference to the 5th kind of possible implementation of first aspect, the embodiments of the invention provide the of above-mentioned first aspect
Six kinds of possible implementations, wherein, before the service access request that the terminal for receiving the user is sent, in addition to:
The logging request that the terminal of the user is sent is received, the logging request carries user account and user cipher;
When according to the user cipher to the user account certification by after, issued according to the corresponding gray scale of the service
Rule, it is determined whether it is gray scale user to set the user;
If it is, adding gray scale mark in the user profile of the user.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the 7th of above-mentioned first aspect kind, its
In, methods described also includes:
The service administration request that the terminal of the user is sent is received, the service administration request carries the clothes of the service
Business mark;
According to the service identifiers, the corresponding service detail information of the service is obtained, the service detail information includes
Status information, configuration information and the version information of the service;
Send terminal of the service detail information to the user.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the 8th of above-mentioned first aspect kind, its
In, methods described also includes:
The request out of service that the terminal of the user is sent is received, the request out of service carries the clothes of the service
Business mark;
According to the service identifiers, the service is stopped by corresponding docker containers cluster.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the 9th of above-mentioned first aspect kind, its
In, methods described also includes:
The deletion service request that the terminal of the user is sent is received, the deletion service request carries the clothes of the service
Business mark;
According to the service identifiers, the service is deleted by corresponding docker containers cluster.
In method provided in an embodiment of the present invention, the corresponding service image program bag of service and service ginseng of user is obtained
Number;Call remote interface to service image program bag and service parameter and be sent to docker container servos;According to service parameter, lead to
The service image program bag crossed in docker containers cluster startup docker container servos.The present invention provides a set of integrity service support
Pipe scheme, mirror image builds, services key deployment, service cluster management, the issue of service gray scale and start and stop automatically, is held by docker
Device servo, docker containers cluster and remote interface etc., realize that one-stop service trustship is managed.Service dynamic publishing is realized, often
Individual link is all automatically performed, without too many manual intervention, reduces repetitive process to save cost.And service energy rapid deployment, lead to
Docker containers are crossed to be packaged with service routine, dependence, configuration information, the service so encapsulated possess it is high can
Transplantability.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be attached to what is used required in embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore is not construed as pair
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows a kind of flow chart for service tray method that the embodiment of the present invention 1 is provided;
Fig. 2 shows a kind of signaling interaction diagram for service tray method that the embodiment of the present invention 1 is provided;
Fig. 3 shows a kind of module diagram for service tray that the embodiment of the present invention 1 is provided;
Fig. 4 shows a kind of structural representation for service tray device that the embodiment of the present invention 2 is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
Middle accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
It is a part of embodiment of the invention, rather than whole embodiments.The present invention being generally described and illustrated herein in the accompanying drawings is real
Applying the component of example can be arranged and be designed with a variety of configurations.Therefore, it is of the invention to what is provided in the accompanying drawings below
The detailed description of embodiment is not intended to limit the scope of claimed invention, but is merely representative of the selected reality of the present invention
Apply example.Based on embodiments of the invention, the institute that those skilled in the art are obtained on the premise of creative work is not made
There is other embodiment, belong to the scope of protection of the invention.
Want the application that oneself exploitation is implemented in operation in view of active user, it is necessary to possess a hardware machine to be configured to
Server, the cost that user oneself develops and practiced is very high.If user not can be used for the hardware for being configured to server
Machine, then can not externally implement the application of its exploitation.Based on this, the embodiments of the invention provide a kind of service tray method, under
Face is described by embodiment.
Embodiment 1
The embodiments of the invention provide a kind of service tray method.
Before service tray is carried out by method provided in an embodiment of the present invention, Entrust Server creates docker first
Container servo and docker container clusters, and issue remote interface.And use is installed in the terminal of user in the embodiment of the present invention
In the APP (Application, application program) of service tray, user is entered by being provided with the terminal of the APP with Entrust Server
Row communication, realizes the quick trustship deployment of service, and the visualization interface that can be provided by the APP checks the service of trustship
Running status, configuration information and version information etc..
In embodiments of the present invention, the APP stated for service tray can not also be installed in the terminal of user, but it is logical
Crossing the terminal access of user is used to the webpage of service tray realize the communication between Entrust Server.
Referring to Fig. 1, this method specifically includes following steps:
Step 101:Obtain the corresponding service image program bag of service and service parameter of user.
In embodiments of the present invention, Entrust Server is mainly by docker containers cluster, control platform service and platform service three
Partial service module is constituted.When user needs to carry out trustship to oneself exploitation service, user passes through clothes of the terminal according to exploitation
The source code of business builds mirror image data, obtains servicing image program bag.Then serviced, passed through by the terminal logs in control platform of user
The service of control platform sends the first trustship and asked to Entrust Server, and the first trustship request carries the corresponding service image program bag of service
And service parameter.The first trustship request that the terminal that Entrust Server receives user is sent.
In embodiments of the present invention, user can not also send service image program bag to Entrust Server, but directly
The second trustship for sending the source code and service parameter of the service of carrying is asked to Entrust Server.Entrust Server receives user's
The second trustship request that terminal is sent, the source code for the service for asking to carry according to the second trustship, which is built, services corresponding mirror image number
According to, obtain service image program bag.Above-mentioned Entrust Server builds the mirror image data of service according to dockerfile automatically.
Above-mentioned service parameter includes service profile information and version information etc..
Step 102:Call remote interface to service image program bag and service parameter and be sent to docker container servos.
Receive after service mirror image data bag and service parameter, mirror image journey will be serviced by controlling platform service call remote interface
Sequence bag and service parameter are published in docker container servos.
Step 103:According to service parameter, the service mirror image in docker container servos is started by docker containers cluster
Program bag.
Docker container clusters are selected by remote interface.When selecting docker container clusters, from all of establishment
The minimum preset number docker containers of selection load, are realized between all docker containers of establishment in docker containers
Load balancing.The preset number docker containers of selection are defined as the corresponding docker containers cluster of this service tray.
The service parameter received is sent to the docker container clusters of selection.According to the service parameter, by docker container servos
On service image program bag be downloaded to docker container clusters.It is in docker containers in download service image program bag
Download service image program bag and Docker containers are loaded on the leader nodes of cluster.Then transported by docker containers cluster
Row starts service image program bag.
The embodiment of the present invention provides a set of distributed system components developing instrument by Entrust Server, by by micro services
The deep development of framework, the integration environment and Docker clusters is combined, and constitutes a set of distributed system components developing instrument,
The developing instrument be used to meeting user quickly develop, the demand of rapid deployment and service management.Entrust Server builds docker
Container servo, creates docker container cluster environment, and issue remote interface (remote api), Entrust Server startup file
After upload service, platform service and control platform service, user is serviced by terminal logs in control platform, and now terminal shows service tray page
Face, the service tray page includes file and uploads interface, parameter input frame and issue button.User uploads interface by file and selected
Micro- application package of terminal local is selected, service parameter, rearmost point percussion cloth button are filled in parameter input frame.Wherein, use
Micro- application package of family selection can be the service image program bag being mirrored into the source code of service, can also directly be clothes
The source code of business.The terminal of user is detected after the issue order of user's submission, and interface captures user selection is uploaded from file
Micro- application package, obtains the service parameter of user's input from parameter input frame, sends service tray and asks to trusteeship service
Device, and carry above-mentioned micro- application package and service parameter in service tray request.Entrust Server receives terminal hair
After the service tray request sent, whether be the source code that services, if it is, basis first if detecting micro- application package first
Source code builds mirror image automatically, obtains servicing image program bag.Entrust Server is obtained and after storage service image program bag, is adjusted
Service image program bag is published in docker container servos with remote interface, finally calls remote interface to specify docker to hold
Device cluster starts the service image program bag.
Through the above way by after service tray to Entrust Server, user may optimize upgrading to service, when
When user needs to carry out edition upgrading to service, user sends service upgrade by terminal and asked to Entrust Server, the service
Upgrade request carries the corresponding upgrade service image program bag of service and upgrade service parameter.Wherein, upgrade service image program
The corresponding service image program bag of the service for redaction is wrapped, upgrade service parameter is the corresponding configuration of the service of redaction
Information and version information etc..
The above-mentioned service upgrade request that the terminal that Entrust Server receives user is sent, asks to carry according to the service upgrade
Upgrade service image program bag and upgrade service parameter, according to above-mentioned steps 102 and 103 operation start edition upgrading after
Service.I.e. Entrust Server calls remote interface that upgrade service image program bag is published into docker container servos, by remote
Journey interface selects docker container clusters, and upgrade service parameter is sent to the docker container clusters of selection.According to upgrading clothes
Business parameter, the upgrade service image program bag in docker container servos is downloaded to the docker container clusters of selection.Then
Upgrade service image program bag is started by the docker containers cluster operation of selection, the trustship of the service of redaction is realized.
In order to realize the smooth upgrade of service, reduce service user and be lost in, the embodiment of the present invention provides the liter of gray scale issue
Level mode, that is, allow a part of user to continue to be started to use the service of redaction with the service of legacy version, a part of user, if used
The certain customers of the service of redaction are to the service of redaction without what opposing views, the then progressively service of expansion redaction
Number of users, until service that all users are moved to redaction comes above.The upgrading mode of gray scale issue can be protected
The stabilization of card service total system, the problem of initial stage issued in gray scale can find redaction in time, and to produced problem
It is adjusted.
After the upgrading mode issued based on above-mentioned gray scale, the redaction for starting service in embodiments of the present invention, trustship clothes
The service of redaction is defined as formal service by business device, and the service of legacy version is defined as into gray scale service, legacy version will be used
User be defined as gray scale user, and the request for accessing legacy version is defined as gray scale request.When User logs in Entrust Server
When, Entrust Server receives the logging request that the terminal of user is sent, and the logging request carries user account and user cipher, when
According to user cipher to user account certification by rear, according to the corresponding gray scale issue rules of service, it is determined whether set the use
Family is gray scale user.Above-mentioned gray scale issue rules are the use of preset percentage in all users for accessed in preset duration the service
Family is set to gray scale user.Preset percentage can be 30% or 50% etc., and the preset percentage becomes big as time went on,
Such as redaction issue first month, the preset percentage is 70%, and the second month preset percentage is 50% etc..
If determining to set the user to be gray scale user according to corresponding gray scale issue rules are serviced, in the user of the user
Gray scale mark is added in information.Gray scale mark can be 0 or 1 grade identifier.The user is arranged to after gray scale user, the use
The request of the access of terminal transmission at the family service is gray scale request, and the service is accessed during user's subsequent access service
Legacy version.If determining to be not provided with the user according to corresponding gray scale issue rules are serviced for gray scale user, not in the user
User profile in addition gray scale mark, the redaction of the service is accessed during user's subsequent access service.
When user accesses the service, user sends service access request to Entrust Server by terminal, and the service is visited
Ask that request carries the user profile of user and the service identifiers of service.The service that the terminal that Entrust Server receives user is sent is visited
Request is asked, whether is determined in the user profile that the service access request is carried comprising gray scale mark.If it is, determining the user
For gray scale user, and determine that the service access request is gray scale request, according to service identifiers, the service access request is transmitted to
The corresponding docker containers cluster of service before edition upgrading.If it is not, then determining that the user is regular user, marked according to service
Know the docker container clusters that service access request is transmitted to the service after edition upgrading.
The embodiment of the present invention, the embodiment of the present invention is based on Spring Cloud cloud distribution service frameworks, depth optimization gateway
Service, front end request is forwarded to specific micro- application service address by Gateway service routings, realizes that background service gray scale updates
Issuing function, and realize that user shunts, allow the use gray scale of gray scale user's unaware to issue application, should after being updated available for detection
Stability, detects that reliable and stable latter key is switched to formal environments, allows all users to use.Pass through above-mentioned gray scale publisher
Formula isolates gray scale user asks with gray scale, realizes the smooth upgrade of service.By the micro services framework of depth optimization, make service each
From independence, and isolate gray scale environment, the service access request of the terminal transmission of user, the use carried according to service access request
Whether comprising gray scale mark in the information of family, by routing forwarding to different backstages, by the shunting of account, different user is allowed to enter
Varying environment, and realize gray scale environment and formal environments and deposit, data interchange, allow user's unaware to use, realize that gray scale takes
Business smooth upgrade is serviced into formal.
In embodiments of the present invention, Entrust Server also provides configuration information, version information and the fortune of real time inspection service
The service of the relevant informations such as row state.User can send service administration request to Entrust Server, the service pipe by terminal
Reason request carries the service identifiers of service.Entrust Server receives the service administration request that the terminal of user is sent, according to service
Mark, obtains the corresponding service detail information of service, and the service detail information includes status information, configuration information and the version of service
This information etc., sends the terminal of the service detail information to user.
Entrust Server also provides the user pause and deletes the SMF of service.User can be sent out by terminal
Request out of service is sent, the request out of service carries the service identifiers of service, the terminal that Entrust Server receives user is sent
Request out of service, according to service identifiers, the service is stopped by corresponding docker containers cluster.User can also pass through
Terminal, which is sent, deletes service request to Entrust Server, and the deletion service request carries the service identifiers of service.Entrust Server
The deletion service request that the terminal of user is sent is received, according to service identifiers, being deleted by corresponding docker containers cluster should
Service.
The embodiment of the present invention is realized carries out life cycle management to the micro services of User Exploitation, and in service tray process
In can realize comprehensive grasp to service operation environment.It is quick certainly from the source code of service by building continuous integrating environment
It is dynamic to build mirror image, service rapid deployment is realized to by the optimization of Docker container depths, and serviced with visual interface
Configuration, promotion and demotion and start and stop, realize that closed-loop is managed from the closing for being generated to service of service, and can be with real time inspection service
Details, the state for whether starting, running, the configuration information and version information etc. of service.From source code to version management to
Service arrangement, start and stop closed loop management, devise the web page of close friend, and shielding complexity realizes details, realize minute level service management
Ability.
Service tray mode provided in an embodiment of the present invention includes service cluster environment, is managed using Swarm instruments
Docker container clusters, a single fictitious host computer is become by a group Docker hosts, even if Swarm goes wrong,
Node in Docker container clusters can also be run as usual, after Swarm resumes operation again, and it can collect reconstruction cluster letter
Breath, makes the service in cluster more reliable and more stable.
For the ease of understanding scheme provided in an embodiment of the present invention, it is briefly described below in conjunction with the accompanying drawings.Such as Fig. 2 institutes
Show, Entrust Server can be subdivided into the service of control platform, file server, Docker containers cluster, private data warehouse, configuration clothes
Business and discovery service, user service upload service image program bag to file server by controlling platform, and file server, which is returned, to be received
Control platform service is given to notice.Platform service is controlled, Docker container clusters are selected by remote interface, and will service image program bag hair
Give the Docker container clusters of selection.Docker containers cluster is stored in image program bag is serviced in private data warehouse.
Then Docker containers cluster is specified to create service object by controlling platform service, and to configuration service reading service parameter,
Docker containers cluster starts service image program bag according to service parameter, and is registered in discovery service, and most rear line is returned
Return service tray completion notice.Fig. 3 show the module diagram of service tray.
In embodiments of the present invention, the corresponding service image program bag of service and service parameter of user is obtained;Call remote
Journey interface will service image program bag and service parameter is sent to docker container servos;According to service parameter, pass through docker
Container cluster starts the service image program bag in docker container servos.The present invention provides a set of integrity service custody scheme,
Mirror image builds automatically, service key deployment, service cluster management, the issue of service gray scale and start and stop, by docker containers servo,
Docker containers cluster and remote interface etc., realize that one-stop service trustship is managed.Realize service dynamic publishing, each link
It is automatically performed, without too many manual intervention, reduces repetitive process to save cost.And service energy rapid deployment, pass through Docker
Service routine, dependence, configuration information are packaged with by container, and the service so encapsulated possesses high portability.
Embodiment 2
Referring to Fig. 4, the embodiments of the invention provide a kind of service tray device, the device is used to perform above-described embodiment 1
The service tray method provided, the device includes:
Acquisition module 20, the corresponding service image program bag of service and service parameter for obtaining user;
Sending module 21, for calling, remote interface will service image program bag and service parameter is sent to docker containers
Servo;
Starting module 22, for according to service parameter, being started by docker containers cluster in docker container servos
Service image program bag.
Above-mentioned acquisition module 20, for receiving the first trustship request that the terminal of user is sent, the first trustship request is carried
The corresponding service image program bag of service;Or, for receiving the second trustship request that the terminal of user is sent, the second trustship please
Seek the source code for carrying and servicing;Built according to the source code of service and service corresponding mirror image data, obtain servicing image program bag.
Above-mentioned starting module 22, including:
Selecting unit, for selecting docker container clusters by remote interface;
Transmitting element, the docker container clusters for service parameter to be sent to selection;
Download unit, for according to service parameter, the service image program bag in docker container servos to be downloaded to
Docker container clusters;
Running unit, for starting service image program bag by the operation of docker containers cluster.
In embodiments of the present invention, the device also includes:
Creation module, for creating docker containers servo and docker container clusters, issues remote interface.
Upgraded module, for receiving the service upgrade request that the terminal of user is sent, service upgrade request carries service pair
The upgrade service image program bag and upgrade service parameter answered;According to upgrade service image program bag and upgrade service parameter, open
Service after dynamic edition upgrading.
Access modules, for receiving the service access request that the terminal of user is sent, service access request carries user's
User profile and the service identifiers of service;Whether determine in user profile comprising gray scale mark;If it is, being marked according to service
Know, service access request is transmitted to the corresponding docker containers cluster of the service before edition upgrading;If it is not, then according to service
Service access request is transmitted to the docker container clusters of the service after edition upgrading by mark.
Gray scale user's setup module, for receiving the logging request that the terminal of user is sent, logging request carries user's account
Number and user cipher;When according to user cipher to user account certification by after, according to corresponding gray scale issue rules are serviced, really
It is fixed whether to set user to be gray scale user;If it is, adding gray scale mark in the user profile of user.
Service management module, for receiving the service administration request that the terminal of user is sent, service administration request carries clothes
The service identifiers of business;According to service identifiers, the corresponding service of service is obtained, service includes the status information of service, configuration information
And version information;Send terminal of the service to user.
Module out of service, for receiving the request out of service that the terminal of user is sent, request out of service carries clothes
The service identifiers of business;According to service identifiers, stop servicing by corresponding docker containers cluster.
Removing module is serviced, for receiving the deletion service request that the terminal of user is sent, service request is deleted and carries clothes
The service identifiers of business;According to service identifiers, deleted and serviced by corresponding docker containers cluster.
In embodiments of the present invention, the corresponding service image program bag of service and service parameter of user is obtained;Call remote
Journey interface will service image program bag and service parameter is sent to docker container servos;According to service parameter, pass through docker
Container cluster starts the service image program bag in docker container servos.The present invention provides a set of integrity service custody scheme,
Mirror image builds automatically, service key deployment, service cluster management, the issue of service gray scale and start and stop, by docker containers servo,
Docker containers cluster and remote interface etc., realize that one-stop service trustship is managed.Realize service dynamic publishing, each link
It is automatically performed, without too many manual intervention, reduces repetitive process to save cost.And service energy rapid deployment, pass through Docker
Service routine, dependence, configuration information are packaged with by container, and the service so encapsulated possesses high portability.
The service tray device that the embodiment of the present invention is provided for the specific hardware in equipment or can be installed on equipment
On software or firmware etc..The technique effect of the device that the embodiment of the present invention is provided, its realization principle and generation and foregoing side
Method embodiment is identical, to briefly describe, and device embodiment part does not refer to part, refers in corresponding in preceding method embodiment
Hold.It is apparent to those skilled in the art that, for convenience and simplicity of description, system described above, device
With the specific work process of unit, the corresponding process in above method embodiment is may be referred to, be will not be repeated here.
, can be by others side in embodiment provided by the present invention, it should be understood that disclosed apparatus and method
Formula is realized.Device embodiment described above is only schematical, for example, the division of the unit, only one kind are patrolled
Collect function to divide, there can be other dividing mode when actually realizing, in another example, multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some communication interfaces
Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in the embodiment that the present invention is provided can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it further need not be defined and explained in subsequent accompanying drawing, in addition, term " the
One ", " second ", " the 3rd " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Finally it should be noted that:Embodiment described above, is only the embodiment of the present invention, to illustrate the present invention
Technical scheme, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, it will be understood by those within the art that:Any one skilled in the art
The invention discloses technical scope in, it can still modify to the technical scheme described in previous embodiment or can be light
Change is readily conceivable that, or equivalent substitution is carried out to which part technical characteristic;And these modifications, change or replacement, do not make
The essence of appropriate technical solution departs from the spirit and scope of technical scheme of the embodiment of the present invention.The protection in the present invention should all be covered
Within the scope of.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of service tray method, it is characterised in that methods described includes:
Obtain the corresponding service image program bag of service and service parameter of user;
Call remote interface that the service image program bag and the service parameter are sent into docker container servos;
According to the service parameter, the service mirror image in the docker containers servo is started by docker containers cluster
Program bag.
2. according to the method described in claim 1, it is characterised in that the corresponding service image program of service for obtaining user
Bag, including:
The first trustship request that the terminal of the user is sent is received, the first trustship request carries the corresponding service mirror of service
As program bag;Or,
The second trustship request that the terminal of the user is sent is received, the second trustship request carries the source code of service;Root
The corresponding mirror image data of the service is built according to the source code of the service, obtains servicing image program bag.
3. according to the method described in claim 1, it is characterised in that described according to the service parameter, pass through docker containers
Cluster starts the service image program bag in the docker containers servo, including:
Docker container clusters are selected by the remote interface;
The service parameter is sent to the docker containers cluster of selection;
According to the service parameter, the service image program bag in the docker containers servo is downloaded to described
Docker container clusters;
The service image program bag is started by docker containers cluster operation.
4. according to the method described in claim 1, it is characterised in that the service image program bag for obtaining user and service ginseng
Before number, in addition to:
Docker containers servo and docker container clusters are created, remote interface is issued.
5. according to the method described in claim 1, it is characterised in that methods described also includes:
The service upgrade request that the terminal of the user is sent is received, the service upgrade request carries the corresponding liter of the service
Level service image program bag and upgrade service parameter;
According to the upgrade service image program bag and the upgrade service parameter, start the service after edition upgrading.
6. method according to claim 5, it is characterised in that methods described also includes:
The service access request that the terminal of the user is sent is received, the service access request carries user's letter of the user
Breath and the service identifiers of the service;
Whether determine in the user profile comprising gray scale mark;
If it is, according to the service identifiers, the service access request to be transmitted to the service pair before edition upgrading
The docker container clusters answered;
If it is not, then the service access request to be transmitted to the service after edition upgrading according to the service identifiers
Docker container clusters.
7. method according to claim 6, it is characterised in that the service access that the terminal of the reception user is sent
Before request, in addition to:
The logging request that the terminal of the user is sent is received, the logging request carries user account and user cipher;
When according to the user cipher to the user account certification by after, advised according to the service corresponding gray scale issue
Then, it is determined whether it is gray scale user to set the user;
If it is, adding gray scale mark in the user profile of the user.
8. according to the method described in claim 1, it is characterised in that methods described also includes:
The service administration request that the terminal of the user is sent is received, the service administration request carries the service mark of the service
Know;
According to the service identifiers, the corresponding service detail information of the service is obtained, the service detail information includes described
Status information, configuration information and the version information of service;
Send terminal of the service detail information to the user.
9. according to the method described in claim 1, it is characterised in that methods described also includes:
The request out of service that the terminal of the user is sent is received, the request out of service carries the service mark of the service
Know;
According to the service identifiers, the service is stopped by corresponding docker containers cluster.
10. according to the method described in claim 1, it is characterised in that methods described also includes:
The deletion service request that the terminal of the user is sent is received, the deletion service request carries the service mark of the service
Know;
According to the service identifiers, the service is deleted by corresponding docker containers cluster.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710426333.4A CN107248986A (en) | 2017-06-08 | 2017-06-08 | A kind of service tray method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710426333.4A CN107248986A (en) | 2017-06-08 | 2017-06-08 | A kind of service tray method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107248986A true CN107248986A (en) | 2017-10-13 |
Family
ID=60018978
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710426333.4A Pending CN107248986A (en) | 2017-06-08 | 2017-06-08 | A kind of service tray method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107248986A (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107645508A (en) * | 2017-10-16 | 2018-01-30 | 深圳市买买提乐购金融服务有限公司 | A kind of data handling system, method, client and server |
CN108563461A (en) * | 2018-03-20 | 2018-09-21 | 聚好看科技股份有限公司 | A kind of method, apparatus and system for extracting configuration file from mirror image |
CN108574601A (en) * | 2018-03-27 | 2018-09-25 | 无锡华云数据技术服务有限公司 | A kind of gray scale dissemination method and system |
CN109634657A (en) * | 2018-12-14 | 2019-04-16 | 武汉烽火信息集成技术有限公司 | A kind of micro services are packaged dispositions method and system |
CN109840740A (en) * | 2017-11-24 | 2019-06-04 | 广东亿迅科技有限公司 | Mobile application mandatory system and method |
CN109857577A (en) * | 2019-01-28 | 2019-06-07 | 北京三快在线科技有限公司 | Access control method, device, medium and electronic equipment |
CN110058863A (en) * | 2019-03-16 | 2019-07-26 | 平安城市建设科技(深圳)有限公司 | Construction method, device, equipment and the storage medium of Docker container |
CN110674043A (en) * | 2019-09-24 | 2020-01-10 | 聚好看科技股份有限公司 | Application debugging processing method and server |
CN110851143A (en) * | 2018-08-21 | 2020-02-28 | 阿里巴巴集团控股有限公司 | Source code deployment method, device, equipment and storage medium |
CN110874227A (en) * | 2018-08-29 | 2020-03-10 | 京东数字科技控股有限公司 | Shunting method and system for realizing gray scale release of API gateway and electronic equipment |
CN111324361A (en) * | 2018-12-14 | 2020-06-23 | ***通信集团北京有限公司 | Application upgrading method and device |
CN111625247A (en) * | 2020-05-21 | 2020-09-04 | 慧众行知科技(北京)有限公司 | Automatic service deployment method and system |
CN111654531A (en) * | 2020-05-22 | 2020-09-11 | 国云科技股份有限公司 | Container-based mirror image update publishing method and device |
CN111984274A (en) * | 2020-07-03 | 2020-11-24 | 新浪网技术(中国)有限公司 | Method and device for one-key automatic deployment of ETCD (electronic toll collection) cluster |
WO2020253347A1 (en) * | 2019-06-17 | 2020-12-24 | 深圳前海微众银行股份有限公司 | Container cluster management method, device and system |
CN112258162A (en) * | 2020-11-04 | 2021-01-22 | 广西电网有限责任公司 | One-stop information application system |
CN112558930A (en) * | 2020-12-09 | 2021-03-26 | 中国科学院电子学研究所苏州研究院 | Software generation system and method for container service |
CN113568684A (en) * | 2021-09-23 | 2021-10-29 | 中国电子科技集团公司第十五研究所 | Application hosting method, device and equipment and big data system |
CN113921130A (en) * | 2021-09-07 | 2022-01-11 | 医惠科技有限公司 | Cloud-native-based smart medical cloud ecological service method, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105468362A (en) * | 2015-11-17 | 2016-04-06 | 广州杰赛科技股份有限公司 | Application deployment method and cloud computing system |
CN105867955A (en) * | 2015-09-18 | 2016-08-17 | 乐视云计算有限公司 | Deployment system and deployment method of application program |
CN106101176A (en) * | 2016-05-27 | 2016-11-09 | 成都索贝数码科技股份有限公司 | The media cloud that melts of a kind of integration produces delivery system and method |
CN106649083A (en) * | 2016-09-05 | 2017-05-10 | 中国农业银行股份有限公司 | Application grey scale release method and equipment and application visit method and equipment |
CN106790595A (en) * | 2016-12-29 | 2017-05-31 | 上海理想信息产业(集团)有限公司 | A kind of Docker containers active load balancer and method |
-
2017
- 2017-06-08 CN CN201710426333.4A patent/CN107248986A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105867955A (en) * | 2015-09-18 | 2016-08-17 | 乐视云计算有限公司 | Deployment system and deployment method of application program |
CN105468362A (en) * | 2015-11-17 | 2016-04-06 | 广州杰赛科技股份有限公司 | Application deployment method and cloud computing system |
CN106101176A (en) * | 2016-05-27 | 2016-11-09 | 成都索贝数码科技股份有限公司 | The media cloud that melts of a kind of integration produces delivery system and method |
CN106649083A (en) * | 2016-09-05 | 2017-05-10 | 中国农业银行股份有限公司 | Application grey scale release method and equipment and application visit method and equipment |
CN106790595A (en) * | 2016-12-29 | 2017-05-31 | 上海理想信息产业(集团)有限公司 | A kind of Docker containers active load balancer and method |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107645508A (en) * | 2017-10-16 | 2018-01-30 | 深圳市买买提乐购金融服务有限公司 | A kind of data handling system, method, client and server |
CN109840740A (en) * | 2017-11-24 | 2019-06-04 | 广东亿迅科技有限公司 | Mobile application mandatory system and method |
CN108563461A (en) * | 2018-03-20 | 2018-09-21 | 聚好看科技股份有限公司 | A kind of method, apparatus and system for extracting configuration file from mirror image |
CN108574601A (en) * | 2018-03-27 | 2018-09-25 | 无锡华云数据技术服务有限公司 | A kind of gray scale dissemination method and system |
CN110851143B (en) * | 2018-08-21 | 2024-04-05 | 阿里巴巴集团控股有限公司 | Source code deployment method, device, equipment and storage medium |
CN110851143A (en) * | 2018-08-21 | 2020-02-28 | 阿里巴巴集团控股有限公司 | Source code deployment method, device, equipment and storage medium |
CN110874227A (en) * | 2018-08-29 | 2020-03-10 | 京东数字科技控股有限公司 | Shunting method and system for realizing gray scale release of API gateway and electronic equipment |
CN109634657A (en) * | 2018-12-14 | 2019-04-16 | 武汉烽火信息集成技术有限公司 | A kind of micro services are packaged dispositions method and system |
CN111324361A (en) * | 2018-12-14 | 2020-06-23 | ***通信集团北京有限公司 | Application upgrading method and device |
CN109857577A (en) * | 2019-01-28 | 2019-06-07 | 北京三快在线科技有限公司 | Access control method, device, medium and electronic equipment |
CN110058863A (en) * | 2019-03-16 | 2019-07-26 | 平安城市建设科技(深圳)有限公司 | Construction method, device, equipment and the storage medium of Docker container |
WO2020253347A1 (en) * | 2019-06-17 | 2020-12-24 | 深圳前海微众银行股份有限公司 | Container cluster management method, device and system |
CN110674043A (en) * | 2019-09-24 | 2020-01-10 | 聚好看科技股份有限公司 | Application debugging processing method and server |
CN111625247A (en) * | 2020-05-21 | 2020-09-04 | 慧众行知科技(北京)有限公司 | Automatic service deployment method and system |
CN111654531A (en) * | 2020-05-22 | 2020-09-11 | 国云科技股份有限公司 | Container-based mirror image update publishing method and device |
CN111654531B (en) * | 2020-05-22 | 2023-05-05 | 国云科技股份有限公司 | Mirror image update release method and device based on container |
CN111984274A (en) * | 2020-07-03 | 2020-11-24 | 新浪网技术(中国)有限公司 | Method and device for one-key automatic deployment of ETCD (electronic toll collection) cluster |
CN112258162A (en) * | 2020-11-04 | 2021-01-22 | 广西电网有限责任公司 | One-stop information application system |
CN112558930A (en) * | 2020-12-09 | 2021-03-26 | 中国科学院电子学研究所苏州研究院 | Software generation system and method for container service |
CN113921130A (en) * | 2021-09-07 | 2022-01-11 | 医惠科技有限公司 | Cloud-native-based smart medical cloud ecological service method, equipment and storage medium |
CN113568684A (en) * | 2021-09-23 | 2021-10-29 | 中国电子科技集团公司第十五研究所 | Application hosting method, device and equipment and big data system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107248986A (en) | A kind of service tray method | |
CN106293820B (en) | Exploitation test O&M integral system | |
US9904442B2 (en) | Updating assets rendered in a virtual world environment based on detected user interactions in another world | |
CN105074702B (en) | The Database Systems of single tenant and multi-tenant environment are provided | |
CN106775924B (en) | Virtual machine starts method and apparatus | |
CN105324750B (en) | Develop environmental system, exploitation environmental device and exploitation environment providing method | |
CN109032760A (en) | Method and apparatus for application deployment | |
US20180101371A1 (en) | Deployment manager | |
CN108282527B (en) | Generate the distributed system and method for Service Instance | |
CN116166280A (en) | Block chain open platform and issuing method of block chain application | |
CN108027720A (en) | Visual content is developed | |
CN108241799B (en) | Cross-system access method, system, device and computer readable storage medium | |
CN110019125A (en) | The method and apparatus of data base administration | |
CN110515628A (en) | Using dispositions method and device | |
CN108920653A (en) | A kind of page generation method, device, server and storage medium | |
CN113064600B (en) | Method and device for deploying application | |
JP2021503118A (en) | Systems and methods for integrating cloud applications into cloud service broker platforms using the automatic universal connector package | |
CN107592338A (en) | More new system, method and the relevant device of a kind of dynamic base | |
CN109254914A (en) | Software development kit test method, system, computer installation and readable storage medium storing program for executing | |
CN111343037A (en) | Flow monitoring method and device for cloud platform load according to application, and computer equipment | |
CN108366110A (en) | A kind of website data interactive system and method | |
CN108462745B (en) | Novel cloud platform resource management and delivery method and device | |
CN107911443A (en) | A kind of session information processing method, device, server and readable storage medium storing program for executing | |
CN106888264A (en) | A kind of method for interchanging data and device | |
CN110109706A (en) | The system and method for component inventory and compliance are realized in platform |
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: 20171013 |
|
RJ01 | Rejection of invention patent application after publication |