CN108282507A - The method, apparatus and electronic equipment using publication are carried out in CaaS environment - Google Patents
The method, apparatus and electronic equipment using publication are carried out in CaaS environment Download PDFInfo
- Publication number
- CN108282507A CN108282507A CN201710011109.9A CN201710011109A CN108282507A CN 108282507 A CN108282507 A CN 108282507A CN 201710011109 A CN201710011109 A CN 201710011109A CN 108282507 A CN108282507 A CN 108282507A
- Authority
- CN
- China
- Prior art keywords
- container
- application
- publication
- node
- caas
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- 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
-
- 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/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- 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/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1029—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
-
- 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/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
Abstract
The application provides a kind of method carried out in CaaS environment using publication, including:The new opplication example of application to be released is created in the container run on node in the container cluster and is started;The routing weights of the first container and second container;The former application example of the application to be released operates in the first container, and the new opplication example operates in the second container;Confirmation operation is issued for the application execution to be released.The method carried out in CaaS environment using publication, realizes in CaaS environment by way of weight the route handoff between different vessels, realizes the publication of application on this basis, realizes simple and convenient;And the route handoff capableing of between the deployment and startup and container of connected applications realizes the application publication more automated, and more comprehensively, applicable scene is more.
Description
Technical field
This application involves technical field of virtualization, and in particular to a method of it is carried out in CaaS environment using publication.
The application is related to a kind of device and a kind of electronic equipment carried out in CaaS environment using publication simultaneously.
Background technology
CaaS (Communications as a Service, communication i.e. service) is by the ability of conventional telecommunications such as message, language
Sound, video, meeting, communication protocols be packaged on an equal basis API or SDK by internet open to the outside world, be supplied to third party enterprise or
Person developer uses, and telecommunication capability is really externally provided as service.Container service is as a kind of high performance Container Management
Service, support is disposed by Docker containers on one group of Cloud Server or layout application, and the user of cloud computing platform is no longer
It needs installation, O&M, extend the cluster management infrastructure of oneself, but can directly pass through the console figure of cloud computing platform
Shape interface or API carry out container operation and life cycle management.For example, the container service of Ali's cloud incorporates SLB
The clouds products such as (Server Load Balancing, load balancing), VPC (Virtual Private Cloud, proprietary network),
Abundant one-stop function is provided for cloud application deployment with O&M scenarios to support.
One important issue of container service is how to issue application, and common publishing policy has bluish-green publication, gray scale hair
Cloth) and ABTest, wherein significantly bluish-green publication, bluish-green publication is a kind of smooth published method, in issuing process
User can not aware services restart, be to realize new and old edition and by way of depositing, that is, flowed in publication under normal conditions
Cheng Zhong, new version and legacy version are mutually hot standby, and (the new of application is realized in non-zero i.e. 100) by way of switching routing weights
Version and legacy version reach the standard grade or it is offline, bluish-green publication can ensure the stabilization of total system, when initial
It was found that, adjustment problem, to ensure its disturbance degree.
Currently, the bluish-green publishing policy under the scene based on IaaS, it will usually in a manual fashion by load equalizer
The switching of weight is carried out to realize bluish-green publication, or realizes the bluish-green publication of automation by way of abstract API.But
Under the scene of CaaS, bluish-green publication is encountered by very big challenge, because after containerization application, can face in container cluster
It is scalable hold, the scene of unsuccessfully migration etc., under common CaaS scenes by way of switching routing weights and carrying out using publication
It cannot be satisfied the complex scene under CaaS.It is carried out in CaaS environment using the side issued in conclusion it is necessary to provide a kind of
Method is to solve the above problems.
Invention content
The application provides a kind of method for carrying out applying publication in CaaS environment, cannot be satisfied with solving the prior art
The problem of complex scene under CaaS.
The application is related to a kind of device and a kind of electronic equipment carried out in CaaS environment using publication simultaneously.
The application provides a kind of method carried out in CaaS environment using publication, including:
The new opplication example of application to be released is created in the container run on node in the container cluster and is started;
The routing weights for switching the first container and second container by presetting load balancing module on the node;It is described to wait for
The former application example of publication application operates in the first container, and the new opplication example operates in the second container;
Confirmation operation is issued for the application execution to be released.
Optionally, the second container is located on the node in the container cluster where the first container.
Optionally, the new opplication example of application to be released is created in the container run on node in container cluster
And after starting step executes, and described switch the first container and second container by presetting load balancing module on the node
Before routing weights step executes, following step is executed:
For each node for running the second container in the container cluster, following operation is executed:
It is transported on pre-set service discovery Module registers present node by preset proxy module on present node
The status information of the capable second container.
Optionally, the routing weights are included at least in the status information.
Optionally, the routing for switching the first container and second container by presetting load balancing module on the node
Weight is realized in the following way:
For each node where the first container and the second container, following step is executed:
The load balancing module is according to the first container listened in the service discovery module on present node
With the status information of the second container, switch the routing weights of the first container and the second container.
Optionally, the routing weights of the first container before the handover are 100, the routing of the second container before the handover
Weight is 0;Also, the routing weights of the first container after handover are 0, the routing weights of the second container after handover
It is 100.
Optionally, described to issue confirmation operation step for the application execution to be released, including:
Delete the former application example of the application to be released.
Optionally, the former application example corresponds to the legacy version of the application to be released, and the new opplication example corresponds to institute
State the new version of application to be released.
Optionally, the method carried out in CaaS environment using publication, including:
Pre-set cluster load balance module receive the load requests that user sends and according to default routing rule into
Walking along the street by the load requests by being distributed to the load balancing module in the container cluster in respective nodes.
Optionally, the pre-set cluster load balance module receives the load requests of user's transmission and according to default
Routing rule is route, and the load requests are distributed to the load balancing module in the container cluster in respective nodes
After step executes, following step is executed:
The load balancing module receives the load requests that the cluster load balance module is sent, and according to pre-
The routing iinformation that the service discovery module being first arranged listens to carries out container addressing, and the load requests received are routed to
Corresponding container is handled.
Optionally, all load balancing modules being arranged on node in the container cluster monitor the same service discovery
The routing iinformation stored in module;Correspondingly, the load balancing mould being arranged on any one node in the container cluster
Block can load on the application example run in all node upper containers in the container cluster.
The application also provides a kind of device carried out in CaaS environment using publication, including:
New opplication example creates start unit, is created in the container for being run on node in container cluster to be released
The new opplication example of application simultaneously starts;
Routing weights switch unit, for switching the first container and second by presetting load balancing module on the node
The routing weights of container;The former application example of the application to be released operates in the first container, the new opplication example
It operates in the second container;
Confirmation operation execution unit is issued, for issuing confirmation operation for the application execution to be released.
Optionally, the device carried out in CaaS environment using publication, including:
First routing unit, for receiving the load requests that user sends by pre-set cluster load balance module
And route according to default routing rule, the load requests are distributed in the container cluster negative in respective nodes
Carry balance module.
Optionally, the device carried out in CaaS environment using publication, including:
Secondary route unit, for receiving the institute that the cluster load balance module is sent by the load balancing module
Load requests are stated, and container addressing is carried out according to the routing iinformation listened in pre-set service discovery module, will be received
To the load requests route to corresponding container and handled.
In addition the application provides a kind of electronic equipment, including:
Memory and processor;
For the memory for storing computer executable instructions, the processor is executable for executing the computer
Instruction:
The new opplication example of application to be released is created in the container run on node in the container cluster and is started;
The routing weights for switching the first container and second container by presetting load balancing module on the node;It is described to wait for
The former application example of publication application operates in the first container, and the new opplication example operates in the second container;
Confirmation operation is issued for the application execution to be released.
Compared with prior art, the application has the following advantages:
The method provided by the present application carried out in CaaS environment using publication, including:In the container cluster on node
The new opplication example of application to be released is created in the container of operation and is started;It is cut by presetting load balancing module on the node
Change the routing weights of the first container and second container;The former application example of the application to be released operates in the first container
Interior, the new opplication example operates in the second container;Confirmation operation is issued for the application execution to be released.
The method carried out in CaaS environment using publication provided by the present application, based on node in container cluster
The container of operation creates the new opplication example of application to be released, and is creating the new opplication reality for starting newly create after the completion
Example, the first container and operation for the former application example for running the application to be released on node in container cluster are described new
The second container of application example realizes that the routing between the first container and the second container is cut by way of weight
It changes, and publication confirmation is carried out to the application to be released after route handoff, realize the publication of the application to be released.It is described
The method using publication is carried out in CaaS environment, and the routing between different vessels is realized by way of weight in CaaS environment
The publication of application is realized in switching on this basis, is realized simple and convenient;And it is capable of the deployment and startup of connected applications, and
Route handoff between container realizes the application publication more automated, and more comprehensively, applicable scene is more.
Description of the drawings
Attached drawing 1 is a kind of process flow carrying out the embodiment of the method using publication in CaaS environment provided by the present application
Figure;
Attached drawing 2 is the schematic diagram of the first container cluster provided by the present application;
Attached drawing 3 is the schematic diagram of second of container cluster provided by the present application;
Attached drawing 4 is the schematic diagram of the third container cluster provided by the present application;
Attached drawing 5 is a kind of schematic diagram carrying out the device embodiment using publication in CaaS environment provided by the present application;
Attached drawing 6 is the schematic diagram of a kind of electronic equipment embodiment provided by the present application.
Specific implementation mode
Many details are elaborated in the following description in order to fully understand the application.But the application can be with
Much implement different from other modes described here, those skilled in the art can be without prejudice to the application intension the case where
Under do similar popularization, therefore the application is not limited by following public specific implementation.
The application provides a kind of method carried out in CaaS environment using publication, and the application also provides one kind in CaaS rings
The device and a kind of electronic equipment using publication are carried out in border.Below in conjunction with the attached drawing of embodiment provided by the present application
It is described in detail one by one, and each step of method is illustrated.
It is provided by the present application it is a kind of carried out in CaaS environment using publication embodiment of the method it is as follows:
With reference to attached drawing 1, it illustrates a kind of method implementations carried out in CaaS environment using publication provided by the present application
The process chart of example, with reference to attached drawing 2, it illustrates the schematic diagrames of the first container cluster provided by the present application;With reference to attached drawing
3, it illustrates the schematic diagrames of second of container cluster provided by the present application;With reference to attached drawing 4, it illustrates provided by the present application the
The schematic diagram of three kinds of container clusters.In addition, the method implementation carried out in CaaS environment using publication provided by the present application
Relationship between each step of example please 1 determines with reference to the accompanying drawings.
Step S101 creates the new opplication example of application to be released simultaneously in the container run on node in the container cluster
Start.
The embodiment of the present application illustrates the application publication realized in CaaS environment by taking currently used bluish-green publication as an example,
The bluish-green smallest dimension disposed in CaaS environment of issuing is container, and the smallest dimension issued is application, briefly, bluish-green
Publication is the update operation of an application level, you can carry out an application switching between two versions, such as one
The legacy version of application is constant, and new version is disposed, by operating the routing of legacy version and new version application, to realize that this is answered
With the switching between two versions, and finally legacy version is offline, new version is reached the standard grade.Also, the indigo plant realized in CaaS environment
Green publication, the minimum unit distributed in CaaS environment is mirror image, and mirror image can start in different software environments, is not necessarily to
Bottom software environment is relied on, so as to the various software environments of compatibility.
Container cluster described in the embodiment of the present application, refer in CaaS environment by an at least virtual robot arm at cluster,
Node of the virtual machine as operation container in the container cluster, the application operation to be released are transported on the virtual machine
In capable container.For example, including as shown in Fig. 2, in the container cluster shown VM1 (virtual machine 1, i.e. node 1) and VM2
(virtual machine 2, i.e. node 2) is separately operable example 1 and example 2, VM2 using A in 2 containers (Docker containers) on VM1
On container (Docker containers) in operation using A example 3.
In the specific implementation, the load balancing of node is based on pre-set cluster load balance in the container cluster
Module realizes that the load balancing module is used to loading to the load requests that user sends into the void in the container cluster
On quasi- machine, also, it is arranged and starts load balancing module on each virtual machine in the container cluster, by the collection
Group's load balancing module receives the load requests that user sends and is route according to default routing rule, by the load requests
It is distributed to the load balancing module in respective nodes in the container cluster.In addition, arbitrary in the container cluster
The load balancing of one intra-node, the node upper container rank realized by the load balancing module being arranged thereon,
The load requests that the cluster load balance module is sent are received by the load balancing module, and according to pre-setting
The routing iinformation that listens to of service discovery module carry out container addressing, the load requests received are routed into corresponding appearance
Device is handled.For example, as shown in Fig. 2, by received load requests 1 and being born by SLB (cluster load balance module)
It is (negative to carry the HAProxy that request 2 is respectively sent on the HAProxy in container cluster on VM1 (load balancing module) and VM2
Carry balance module);The HAProxy being arranged on VM1 monitors routing iinformation in Discovery Server (service discovery module), and
It is addressed according to the routing iinformation listened to, the corresponding container that load requests 1 route on VM1 is handled;Similar,
The HAProxy being arranged on VM2 monitors routing iinformation in Discovery Server (service discovery module), and according to listening to
Routing iinformation is addressed, the corresponding container that load requests 2 route on VM2 is handled.
Further, all load balancing modules being arranged on node in the container cluster monitor the same service hair
The routing iinformation stored in existing module;Correspondingly, the load balancing being arranged on any one node in the container cluster
Module can load on the application example run in all node upper containers in the container cluster.For example, such as 2 institute of attached drawing
Show, the HAProxy on the HAProxy and VM2 on VM1 monitors the routing iinformation of Discovery Server, the routing listened to
Include the routing iinformation of VM1 and VM2 upper containers in information, therefore, the HAProxy on VM1 can load to fortune in VM1 upper containers
On the capable example 1 and example 2 using A, additionally it is possible to it loads on the example 3 using A run in VM2 upper containers, it is similar,
HAProxy on VM2 can equally load to the example 1, example 2 and example 3 using A run in VM1 and VM2 upper containers
On.
The new opplication of the application to be released is created in the container that this step is run on node in the container cluster
Example, and start the new opplication example of the application to be released newly created.In the specific implementation, in the container cluster
It, can also be in the original of the application to be released when creating the new opplication example of the application to be released in the container run on node
The new opplication example of the application to be released is created on node where application example, i.e.,:Running the former application example
The new opplication example is created in container (second container) on node where the first container, is based on this, the second container
On the node where the first container in the container cluster.For example, as shown in Fig. 3, container on VM1 (the
One container) in operation have example 1 (former application example 1) and example 2 (former application example 2) using A, then the container on VM1
The new example 1 (new opplication example 1) using A is created in (second container);Operation has application in container (the first container) on VM2
The example 3 (former application example 3) of A then creates (the new opplication reality of new example 2 using A in the container on VM2 (second container)
Example 2) and new example 3 (new opplication example 3);And start the new example 1 created in the container on VM1 and new example 2, Yi Ji
The new example 3 created in container on VM2.
In for the publication of the version of application to be released or newer scene, the original application example corresponds to described pending
The legacy version of cloth application, the new opplication example correspond to the new version of the application to be released.For example, as shown in Fig. 3, application
The example 1 of A, example 2 and example 3 it is corresponding be to apply current 2.0 versions of A, using the new example 1 of A, new example 2 and new example 3
Corresponding is to apply A i.e. by newer 2.1 version or 3.0 versions.
In addition, in the specific implementation, after the execution of this step, i.e., the appearance that is run on node in the container cluster
After creating the new opplication example of the application to be released in device and starting, following step can also be performed:
For each node for running the second container in the container cluster, following operation is executed:By working as
Preset proxy module is run on pre-set service discovery Module registers present node on front nodal point described second is held
The status information of device.It should be noted that including at least the routing weights in the status information;In addition, the state letter
Can also include other routing iinformations in addition to the routing weights in breath, the version information of the application to be released is described
The service discovery address of the first container and the second container.For example, as shown in Fig. 3, the Agent (proxy module) on VM1
The status information of the container using the new examples of A 1 newly created is run on Discovery Server registration VM1;On VM2
Agent (proxy module) run on Discovery Server registration VM2 newly create using the new examples 2 of A and new example 3
The status information of container.
Step S102, the routing for switching the first container and second container by presetting load balancing module on the node are weighed
Weight.
The application to be released is created in the container that above-mentioned steps S101 is run on node in the container cluster
New opplication example, and start the new opplication example newly created, this step is on the basis of above-mentioned steps S101, by described
The routing weights of load balancing module switching the first container and second container are preset on node, wherein the application to be released
Former application example operates in the first container, and the new opplication example operates in the second container.
In the specific implementation, it for each node where the first container and the second container, executes following
Step:The load balancing module is according to the first container and institute listened in the service discovery module on present node
The status information for stating second container switches the routing weights of the first container and the second container.In bluish-green publication scene
In, routing weights value non-zero i.e. 100, therefore, the routing weights of the first container before the handover are 100, and the second container exists
Routing weights before switching are 0;Also, the routing weights of the first container after handover are 0, and the second container is switching
Routing weights afterwards are 100.
For example, as shown in Fig. 3, showing the routing weights before switching:On VM1, the example of A is applied in operation
1 and the routing weights of container (the first container) of example 2 be 100, operation using the new example 1 of A container (second container)
Routing weights are 0;On VM2, operation is 100 using the routing weights of the container (the first container) of the example 3 of A, and A is applied in operation
New example 2 and new example 3 container (second container) routing weights be 0.
As shown in Fig. 4, the routing weights after switching are shown:On VM1, the example 1 and reality of A is applied in operation
The routing weights of the container (the first container) of example 2 are switched to 0 from 100 respectively, and container (the second appearance of the new example 1 of A is applied in operation
Device) routing weights be switched to 100 from 0;On VM2, the routing weights of the container (the first container) of the example 3 of A are applied in operation
It is switched to 0 from 100, operation is using the routing weights of the new example 2 of A and the container (second container) of new example 3 respectively from 0 switching
It is 100.
Step S103 issues confirmation operation for the application execution to be released.
Above-mentioned steps S102 is answered by be released described in the preset load balancing module switchover operation on the node
The routing weights of the first container of former application example and the second container for running the new opplication example, on this basis,
This step issues confirmation operation by being directed to the application execution to be released, to realize the legacy version of the application to be released
The new version of the completely offline and described application to be released is reached the standard grade completely.It in the specific implementation, can be described pending by deleting
The former application example of cloth application realizes the new edition of the application to be released to destroy the legacy version of the application to be released
This reaches the standard grade completely.
In practical applications, a variety of concrete implementation modes may be used, realize the publication confirmation operation, such as
The application to be released carries out publication verification, if publication is verified, issues the new version of the application to be released.Realize institute
State the various forms of variations of publication confirmation operation, all only changes of specific implementation, all without departing from the core of the application,
Therefore all within the protection domain of the application.
In conclusion the method carried out in CaaS environment using publication provided by the present application, is based on container cluster
When the container run on interior joint creates the new opplication example of application to be released, and described in starting after the completion of creating and newly creating
New opplication example, for the first container and fortune of the former application example for running the application to be released on node in container cluster
The second container of the row new opplication example, is realized by way of weight between the first container and the second container
Route handoff, and publication confirmation is carried out to the application to be released after route handoff, realize the publication of the application to be released.
The method carried out in CaaS environment using publication is realized by way of weight in CaaS environment between different vessels
Route handoff, realize the publication of application on this basis, realize simple and convenient;And it is capable of the deployment of connected applications and opens
Route handoff between dynamic and container realizes the application publication more automated, and more comprehensively, applicable scene is more.
It is provided by the present application it is a kind of carried out in CaaS environment using publication device embodiment it is as follows:
In the above-described embodiment, a kind of method for carrying out applying publication in CaaS environment is provided, is corresponded
, present invention also provides a kind of to carry out, using the device of publication, illustrating below in conjunction with the accompanying drawings in CaaS environment.
With reference to attached drawing 5, it illustrates a kind of device implementations carried out in CaaS environment using publication provided by the present application
The schematic diagram of example.
Since device embodiment is corresponded with the embodiment of the method for above-mentioned offer, the content for reading the present embodiment please refers to
The corresponding explanation of above method embodiment.Device embodiment described below is only schematical.
The application provides a kind of device carried out in CaaS environment using publication, including:
New opplication example creates start unit 501, creates and waits in the container for being run on node in container cluster
It issues the new opplication example of application and starts;
Routing weights switch unit 502, for by the node preset load balancing module switch the first container and
The routing weights of second container;The former application example of the application to be released operates in the first container, the new opplication
Example operates in the second container;
Confirmation operation execution unit 503 is issued, for issuing confirmation operation for the application execution to be released.
Optionally, the second container is located on the node in the container cluster where the first container.
Optionally, for each node for running the second container in the container cluster, running state information
Registering unit;The status information registering unit, for by preset proxy module on present node to pre-set clothes
The status information of the second container run on business discovery module registration present node.
Optionally, the routing weights are included at least in the status information.
Optionally, the routing weights switch unit 502 is specifically used for being directed to the first container and the second container
Each node at place runs routing weights switching subelement;The routing weights switching subelement, for by working as prosthomere
The load balancing module is according to the first container listened in the service discovery module and the second container on point
Status information, switch the routing weights of the first container and the second container.
Optionally, the routing weights of the first container before the handover are 100, the routing of the second container before the handover
Weight is 0;Also, the routing weights of the first container after handover are 0, the routing weights of the second container after handover
It is 100.
Optionally, the publication confirmation operation execution unit 503, including:
Former application example deletes subelement, the former application example for deleting the application to be released.
Optionally, the former application example corresponds to the legacy version of the application to be released, and the new opplication example corresponds to institute
State the new version of application to be released.
Optionally, the device carried out in CaaS environment using publication, including:
First routing unit, for receiving the load requests that user sends by pre-set cluster load balance module
And route according to default routing rule, the load requests are distributed in the container cluster negative in respective nodes
Carry balance module.
Optionally, the device carried out in CaaS environment using publication, including:
Secondary route unit, for receiving the institute that the cluster load balance module is sent by the load balancing module
Load requests are stated, and container addressing is carried out according to the routing iinformation listened in pre-set service discovery module, will be received
To the load requests route to corresponding container and handled.
Optionally, all load balancing modules being arranged on node in the container cluster monitor the same service discovery
The routing iinformation stored in module;Correspondingly, the load balancing mould being arranged on any one node in the container cluster
Block can load on the application example run in all node upper containers in the container cluster.
A kind of electronic equipment embodiment provided by the present application is as follows:
In the above-described embodiment, a kind of method carried out in CaaS environment using publication is provided, in addition, the application
A kind of electronic equipment in CaaS environment apply the method for publication for realizing described is additionally provided, below in conjunction with the accompanying drawings
It illustrates.
With reference to attached drawing 6, it illustrates the schematic diagrames of a kind of electronic equipment provided in this embodiment.
The electronic equipment provided by the present application is carried out in CaaS environment for realizing provided by the present application using publication
Method, being carried out in CaaS environment for the present embodiment and above-mentioned offer is corresponding using the embodiment of the method for publication, reads this
The content of embodiment please refers to the corresponding explanation that the embodiment of the method using publication is carried out in CaaS environment of above-mentioned offer.Under
The embodiment for stating description is only schematical.
The application provides a kind of electronic equipment, including:
Memory 601 and processor 602;
The memory 601 is for storing computer executable instructions, and the processor 602 is for executing the computer
Executable instruction:
The new opplication example of application to be released is created in the container run on node in the container cluster and is started;
The routing weights for switching the first container and second container by presetting load balancing module on the node;It is described to wait for
The former application example of publication application operates in the first container, and the new opplication example operates in the second container;
Confirmation operation is issued for the application execution to be released.
Optionally, the second container is located on the node in the container cluster where the first container.
Optionally, the new opplication example of application to be released is created in the container run on node in container cluster
And after enabled instruction executes, and described switch the first container and second container by presetting load balancing module on the node
Before routing weights instruction execution, the processor 602 is additionally operable to execute following computer executable instructions:
For each node for running the second container in the container cluster, following operation is executed:
It is transported on pre-set service discovery Module registers present node by preset proxy module on present node
The status information of the capable second container.
Optionally, the routing weights are included at least in the status information.
Optionally, the routing for switching the first container and second container by presetting load balancing module on the node
Weight is realized in the following way:
For each node where the first container and the second container, the executable finger of following computers is executed
It enables:
The load balancing module is according to the first container listened in the service discovery module on present node
With the status information of the second container, switch the routing weights of the first container and the second container.
Optionally, the routing weights of the first container before the handover are 100, the routing of the second container before the handover
Weight is 0;Also, the routing weights of the first container after handover are 0, the routing weights of the second container after handover
It is 100.
Optionally, described for the application execution publication confirmation operation instruction to be released, including:
Delete the former application example of the application to be released.
Optionally, the former application example corresponds to the legacy version of the application to be released, and the new opplication example corresponds to institute
State the new version of application to be released.
Optionally, the processor 602 is additionally operable to execute following computer executable instructions:
The load requests of user's transmission are received based on pre-set cluster load balance module and are advised according to default routing
It is then route, the load requests is distributed to the load balancing module in the container cluster in respective nodes.
Optionally, the pre-set cluster load balance module receives the load requests of user's transmission and according to default
Routing rule is route, and the load requests are distributed to the load balancing module in the container cluster in respective nodes
After instruction execution, the processor 602 is additionally operable to execute following computer executable instructions:
The load requests that the cluster load balance module is sent are received based on the load balancing module, and according to
Container addressing, the load requests road that will be received are carried out in the routing iinformation that pre-set service discovery module listens to
By being handled to corresponding container.
Optionally, all load balancing modules being arranged on node in the container cluster monitor the same service discovery
The routing iinformation stored in module;Correspondingly, the load balancing mould being arranged on any one node in the container cluster
Block can load on the application example run in all node upper containers in the container cluster.
Although the present invention is disclosed as above with preferred embodiment, it is not for limiting the present invention, any this field skill
Art personnel without departing from the spirit and scope of the present invention, can make possible variation and modification, therefore the guarantor of the present invention
Shield range should be subject to the range that the claims in the present invention are defined.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus
Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include non-temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
Claims (15)
1. a kind of method carried out in CaaS environment using publication, which is characterized in that including:
The new opplication example of application to be released is created in the container run on node in the container cluster and is started;
The routing weights for switching the first container and second container by presetting load balancing module on the node;It is described to be released
The former application example of application operates in the first container, and the new opplication example operates in the second container;
Confirmation operation is issued for the application execution to be released.
2. the method according to claim 1 carried out in CaaS environment using publication, which is characterized in that described second holds
Device is located on the node in the container cluster where the first container.
3. the method according to claim 2 carried out in CaaS environment using publication, which is characterized in that described in container
Cluster creates the new opplication example of application to be released in the container run on interior joint and after starting step executes, and described logical
It crosses on the node before presetting the routing weights step execution of load balancing module switching the first container and second container, under execution
State step:
For each node for running the second container in the container cluster, following operation is executed:
It is run on pre-set service discovery Module registers present node by preset proxy module on present node
The status information of the second container.
4. the method according to claim 3 carried out in CaaS environment using publication, which is characterized in that the state letter
The routing weights are included at least in breath.
5. the method according to claim 4 carried out in CaaS environment using publication, which is characterized in that described to pass through institute
The routing weights for presetting load balancing module switching the first container and second container on node are stated, are realized in the following way:
For each node where the first container and the second container, following step is executed:
The load balancing module is according to the first container and institute listened in the service discovery module on present node
The status information for stating second container switches the routing weights of the first container and the second container.
6. the method according to claim 5 carried out in CaaS environment using publication, which is characterized in that described first holds
The routing weights of device before the handover are 100, and the routing weights of the second container before the handover are 0;
Also, the routing weights of the first container after handover are 0, and the routing weights of the second container after handover are
100。
7. the method according to claim 1 carried out in CaaS environment using publication, which is characterized in that described to be directed to institute
Application execution publication confirmation operation step to be released is stated, including:
Delete the former application example of the application to be released.
8. the method according to claim 1 carried out in CaaS environment using publication, which is characterized in that the former application
Example corresponds to the legacy version of the application to be released, and the new opplication example corresponds to the new version of the application to be released.
9. the method according to claim 1 carried out in CaaS environment using publication, which is characterized in that including:
Pre-set cluster load balance module receives the load requests that user sends and according to default routing rule into walking along the street
By the load requests are distributed to the load balancing module in the container cluster in respective nodes.
10. the method according to claim 9 carried out in CaaS environment using publication, which is characterized in that described advance
The cluster load balance module of setting receives the load requests that user sends and is route according to default routing rule, will be described
After load requests are distributed to the execution of the load balancing module step in the container cluster in respective nodes, following steps are executed
Suddenly:
The load balancing module receives the load requests that the cluster load balance module is sent, and is set according in advance
The routing iinformation that the service discovery module set listens to carries out container addressing, and the load requests received are routed to accordingly
Container is handled.
11. the method according to claim 10 carried out in CaaS environment using publication, which is characterized in that the container
Cluster monitors the routing iinformation stored in the same service discovery module when all load balancing modules being arranged on interior joint;
Correspondingly, the load balancing module being arranged on any one node in the container cluster can load to the container
On the application example run in all node upper containers in cluster.
12. a kind of device carried out in CaaS environment using publication, which is characterized in that including:
New opplication example creates start unit, and application to be released is created in the container for being run on node in container cluster
New opplication example and start;
Routing weights switch unit, for switching the first container and second container by presetting load balancing module on the node
Routing weights;The former application example of the application to be released operates in the first container, the new opplication example operation
In the second container;
Confirmation operation execution unit is issued, for issuing confirmation operation for the application execution to be released.
13. the device according to claim 12 carried out in CaaS environment using publication, which is characterized in that including:
First routing unit, for receiving the load requests and root that user sends by pre-set cluster load balance module
It is route according to default routing rule, it is equal that the load requests are distributed to the load in the container cluster in respective nodes
Weigh module.
14. the device according to claim 13 carried out in CaaS environment using publication, which is characterized in that including:
Secondary route unit, for receiving the described negative of the cluster load balance module transmission by the load balancing module
Request is carried, and container addressing is carried out according to the routing iinformation listened in pre-set service discovery module, by what is received
The load requests route to corresponding container and are handled.
15. a kind of electronic equipment, which is characterized in that including:
Memory and processor;
The memory is for storing computer executable instructions, and for executing, the computer is executable to be referred to the processor
It enables:
The new opplication example of application to be released is created in the container run on node in the container cluster and is started;
The routing weights for switching the first container and second container by presetting load balancing module on the node;It is described to be released
The former application example of application operates in the first container, and the new opplication example operates in the second container;
Confirmation operation is issued for the application execution to be released.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710011109.9A CN108282507B (en) | 2017-01-06 | 2017-01-06 | Method and device for application release in CaaS environment and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710011109.9A CN108282507B (en) | 2017-01-06 | 2017-01-06 | Method and device for application release in CaaS environment and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108282507A true CN108282507A (en) | 2018-07-13 |
CN108282507B CN108282507B (en) | 2021-02-02 |
Family
ID=62801044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710011109.9A Active CN108282507B (en) | 2017-01-06 | 2017-01-06 | Method and device for application release in CaaS environment and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108282507B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109725920A (en) * | 2018-12-29 | 2019-05-07 | 咪咕文化科技有限公司 | A kind of update method of Service Instance, device and storage medium |
CN110162382A (en) * | 2019-04-09 | 2019-08-23 | 平安科技(深圳)有限公司 | Gray scale dissemination method, device, computer equipment and storage medium based on container |
CN110244964A (en) * | 2019-05-28 | 2019-09-17 | 阿里巴巴集团控股有限公司 | It is a kind of based on O&M application O&M method, O&M method, device and equipment |
CN110471683A (en) * | 2019-08-06 | 2019-11-19 | 上海浦东发展银行股份有限公司***中心 | A kind of bluish-green dissemination method of container cloud application based on intelligent DNS |
CN111841019A (en) * | 2020-06-23 | 2020-10-30 | 腾讯科技(成都)有限公司 | Game application security verification method, device, equipment and storage medium |
CN112532508A (en) * | 2019-09-18 | 2021-03-19 | 华为技术有限公司 | Video communication method and video communication device |
CN112889247A (en) * | 2018-10-18 | 2021-06-01 | 华为技术有限公司 | VNF service instantiation method and device |
CN114866790A (en) * | 2022-03-25 | 2022-08-05 | 上海哔哩哔哩科技有限公司 | Live streaming scheduling method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101123587A (en) * | 2007-09-13 | 2008-02-13 | 杭州华三通信技术有限公司 | Traffic control method and device for switch service flow |
CN103095600A (en) * | 2013-02-07 | 2013-05-08 | 杭州华三通信技术有限公司 | Loading balancing method based on Trill network and routing device |
US8690578B1 (en) * | 2013-01-03 | 2014-04-08 | Mark E. Nusbaum | Mobile computing weight, diet, nutrition, and exercise tracking system with enhanced feedback and data acquisition functionality |
CN104811459A (en) * | 2014-01-23 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Processing method, processing device and system for message services and message service system |
CN105103105A (en) * | 2012-12-28 | 2015-11-25 | 脸谱公司 | Social cover feed interface |
CN105700908A (en) * | 2014-12-16 | 2016-06-22 | 佳能株式会社 | Management system and control method for management system |
-
2017
- 2017-01-06 CN CN201710011109.9A patent/CN108282507B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101123587A (en) * | 2007-09-13 | 2008-02-13 | 杭州华三通信技术有限公司 | Traffic control method and device for switch service flow |
CN105103105A (en) * | 2012-12-28 | 2015-11-25 | 脸谱公司 | Social cover feed interface |
US8690578B1 (en) * | 2013-01-03 | 2014-04-08 | Mark E. Nusbaum | Mobile computing weight, diet, nutrition, and exercise tracking system with enhanced feedback and data acquisition functionality |
CN103095600A (en) * | 2013-02-07 | 2013-05-08 | 杭州华三通信技术有限公司 | Loading balancing method based on Trill network and routing device |
CN104811459A (en) * | 2014-01-23 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Processing method, processing device and system for message services and message service system |
CN105700908A (en) * | 2014-12-16 | 2016-06-22 | 佳能株式会社 | Management system and control method for management system |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112889247A (en) * | 2018-10-18 | 2021-06-01 | 华为技术有限公司 | VNF service instantiation method and device |
CN112889247B (en) * | 2018-10-18 | 2022-05-31 | 华为技术有限公司 | VNF service instantiation method and device |
CN109725920A (en) * | 2018-12-29 | 2019-05-07 | 咪咕文化科技有限公司 | A kind of update method of Service Instance, device and storage medium |
CN110162382A (en) * | 2019-04-09 | 2019-08-23 | 平安科技(深圳)有限公司 | Gray scale dissemination method, device, computer equipment and storage medium based on container |
CN110162382B (en) * | 2019-04-09 | 2023-12-15 | 平安科技(深圳)有限公司 | Container-based gray level publishing method, device, computer equipment and storage medium |
CN110244964B (en) * | 2019-05-28 | 2023-04-28 | 创新先进技术有限公司 | Operation and maintenance method, device and equipment based on operation and maintenance application |
CN110244964A (en) * | 2019-05-28 | 2019-09-17 | 阿里巴巴集团控股有限公司 | It is a kind of based on O&M application O&M method, O&M method, device and equipment |
CN110471683A (en) * | 2019-08-06 | 2019-11-19 | 上海浦东发展银行股份有限公司***中心 | A kind of bluish-green dissemination method of container cloud application based on intelligent DNS |
CN110471683B (en) * | 2019-08-06 | 2023-11-24 | 上海浦东发展银行股份有限公司***中心 | Intelligent DNS-based container cloud application blue-green publishing method |
CN112532508A (en) * | 2019-09-18 | 2021-03-19 | 华为技术有限公司 | Video communication method and video communication device |
CN111841019A (en) * | 2020-06-23 | 2020-10-30 | 腾讯科技(成都)有限公司 | Game application security verification method, device, equipment and storage medium |
CN114866790A (en) * | 2022-03-25 | 2022-08-05 | 上海哔哩哔哩科技有限公司 | Live streaming scheduling method and device |
CN114866790B (en) * | 2022-03-25 | 2024-02-27 | 上海哔哩哔哩科技有限公司 | Live stream scheduling method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108282507B (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108282507A (en) | The method, apparatus and electronic equipment using publication are carried out in CaaS environment | |
US9596302B2 (en) | Migrating applications between networks | |
KR101746202B1 (en) | Method and apparatus for network function virtualization | |
US10079818B2 (en) | Providing domain-joined remote applications in a cloud environment | |
US9712599B2 (en) | Application peak load processing | |
US11928514B2 (en) | Systems and methods providing serverless DNS integration | |
JP2019519180A (en) | Method, apparatus and system for deploying virtualized network functions using network edge computing | |
CN108667925A (en) | A kind of method and system of WEB application seamless access distributed system | |
RU2653292C2 (en) | Service migration across cluster boundaries | |
US20130227232A1 (en) | Partition aware quality of service feature | |
WO2018156505A1 (en) | Virtual dedicated network and rule table generation method and apparatus, and routing method | |
CN113596110A (en) | Heterogeneous cloud-oriented cloud native micro-service platform | |
CN113301116A (en) | Cross-network communication method, device, system and equipment for microservice application | |
US11831495B2 (en) | Hierarchical cloud computing resource configuration techniques | |
CN109960579B (en) | Method and device for adjusting service container | |
WO2023279869A1 (en) | Continuous liveness and integrity of applications during migration | |
WO2021201920A1 (en) | Network-based media processing (nbmp) workflow management through 5g framework for live uplink streaming (flus) control | |
US11182218B2 (en) | Method and apparatus for orchestrating cross-FaaS provider functions declaratively | |
CN104468759A (en) | Method and device for achieving application migration in PaaS platform | |
US11210347B2 (en) | Object search with pagination and non-duplicates support | |
JP6591045B2 (en) | Method and network service apparatus for migrating network service | |
US10824476B1 (en) | Multi-homed computing instance processes | |
US20230418681A1 (en) | Intelligent layer derived deployment of containers | |
CN114430379B (en) | Method, apparatus and computer readable medium for discovering network resources | |
US20240134526A1 (en) | Virtual container storage interface controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |