CN109343963B - Application access method and device for container cluster and related equipment - Google Patents

Application access method and device for container cluster and related equipment Download PDF

Info

Publication number
CN109343963B
CN109343963B CN201811278496.3A CN201811278496A CN109343963B CN 109343963 B CN109343963 B CN 109343963B CN 201811278496 A CN201811278496 A CN 201811278496A CN 109343963 B CN109343963 B CN 109343963B
Authority
CN
China
Prior art keywords
application
target container
load balancing
request
application access
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.)
Active
Application number
CN201811278496.3A
Other languages
Chinese (zh)
Other versions
CN109343963A (en
Inventor
王鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dt Dream Technology Co Ltd
Original Assignee
Hangzhou Dt Dream Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Dt Dream Technology Co Ltd filed Critical Hangzhou Dt Dream Technology Co Ltd
Priority to CN201811278496.3A priority Critical patent/CN109343963B/en
Publication of CN109343963A publication Critical patent/CN109343963A/en
Application granted granted Critical
Publication of CN109343963B publication Critical patent/CN109343963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Abstract

The application discloses an application access method of a container cluster, which comprises the steps that a container cluster management platform establishes a load balancing application according to a received application establishment request; sending the application creation request to a predetermined number of target container nodes so that each target container node creates an application instance according to the application creation request; wherein the load balancing application corresponds to each target container node; when an application access request is received, forwarding the application access request to a load balancing application so that the load balancing application issues the application access request to each target container node to realize application access; the method can reduce the number of times of network address conversion when the application is accessed, further improve the efficiency of the application access and effectively reduce the network pressure of the system. The application also discloses an application access device, a system, a container cluster management platform and a computer readable storage medium of the container cluster, which have the beneficial effects.

Description

Application access method and device for container cluster and related equipment
Technical Field
The present application relates to the field of container technologies, and in particular, to an application access method for a container cluster, and further, to an application access apparatus, a system, a container cluster management platform, and a computer-readable storage medium for a container cluster.
Background
In order to ensure high availability of the container application, the cloud computing system generally uses a multi-instance operation mode, that is, a plurality of container applications of the same service are operated in a cluster, and a single access entrance is provided for the user through an external load balancer.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an application access system of a container cluster in the prior art, in general, a container network uses namespace isolation to ensure resource isolation and security thereof, a container technology uses a port mapping manner to map a service port to the same namespace as a host, at this time, a port access container application mapped in the same namespace of the host needs to enter the namespace of the container through one network conversion, and therefore a load balancer loads traffic to a back-end cluster node and then enters the container application through network address conversion to realize application access.
However, with the increase of the container application and the container application instance, the network address translation table entries of the host machine are also increased, so that the traffic forwarding performance is reduced, one common application access may be subjected to multiple network address translations, the application access efficiency is reduced, and the corresponding traffic distribution increases the network pressure to a certain extent; meanwhile, the information and state of the container application instance can be changed due to insufficient host machine resources, container application migration, application instance modification and other conditions, and an external load balancer cannot sense and process in time; in addition, because an external load balancer needs to be supported by a cloud computing system, different cloud computing systems have different implementations of external load balancing, and thus the adaptability and the universality are poor.
Therefore, it is an urgent need to solve the problem of how to reduce the number of network address translations when accessing applications, further improve the efficiency of accessing applications, and effectively reduce the network pressure of the system.
Disclosure of Invention
The application access method can reduce the number of times of network address conversion during application access, further improve the application access efficiency and effectively reduce the network pressure of a system; another object of the present application is to provide an application access device, a system, a container cluster management platform and a computer-readable storage medium for a container cluster, which also have the above advantages.
In order to solve the above technical problem, the present application provides an application access method for a container cluster, where the application access method includes:
the container cluster management platform creates a load balancing application according to the received application creation request;
sending the application creation request to a preset number of target container nodes so that each target container node creates an application instance according to the application creation request; wherein the load balancing application corresponds to each of the target container nodes;
when an application access request is received, forwarding the application access request to the load balancing application, so that the load balancing application issues the application access request to each target container node to realize application access.
Preferably, the issuing the application creation request to a predetermined number of target container nodes to enable each target container node to create an application instance according to the application creation request includes:
splitting the application creation request to obtain the predetermined number of sub-application creation requests;
analyzing each sub-application creation request to obtain the IP address of each target container node;
and issuing each sub-application creation request to a corresponding target container node according to each IP address so that each target container node creates the application instance according to the sub-application creation request.
Preferably, the issuing, by the load balancing application, the application access request to each target container node to implement application access includes:
splitting the application access request to obtain the predetermined number of sub-application access requests;
analyzing each sub-application access request to obtain the IP address of each target container node;
and issuing each sub-application access request to a corresponding target container node according to each IP address to realize application access.
Preferably, the application access method further includes:
when an application deleting request is received, deleting the load balancing application according to the application deleting request;
and sending the application deletion request to each target container node so as to enable each target container node to delete the application instance.
Preferably, the application access method further includes:
the load balancing application acquires the instance state of the application instance in each target container node at regular time;
and when the instance state is changed, updating the configuration of the instance according to the changed instance state.
Preferably, the application access method further includes:
the load balancing application carries out quantity statistics on the target capacity nodes at regular time;
and when the number of the target container nodes is increased or decreased, updating the configuration of the target container nodes according to the increased or decreased target container nodes.
In order to solve the above technical problem, the present application provides an application access apparatus for a container cluster, where the application access apparatus includes:
the load balancing application creation module is used for creating a load balancing application according to the received application creation request;
an application instance creating module, configured to send the application creation request to a predetermined number of target container nodes, so that each target container node creates an application instance according to the application creation request; wherein the load balancing application corresponds to each of the target container nodes;
and the application access module is used for forwarding the application access request to the load balancing application when the application access request is received, so that the load balancing application issues the application access request to each target container node to realize application access.
In order to solve the above technical problem, the present application provides a container cluster management platform, which includes:
a memory for storing a computer program;
a processor for implementing the steps of the application access method of any one of the above container clusters when executing the computer program.
In order to solve the above technical problem, the present application provides an application access system for a container cluster, where the application access system includes:
the container cluster management platform is used for creating the load balancing application according to the received application creation request; sending the application creation request to a preset number of target container nodes so that each target container node creates an application instance according to the application creation request; wherein the load balancing application corresponds to each of the target container nodes; when an application access request is received, forwarding the application access request to the load balancing application, so that the load balancing application issues the application access request to each target container node to realize application access;
the load balancing application is used for issuing the application access request sent by the container cluster management platform to each target container node to realize application access;
each target container node is used for creating an application instance according to an application creation request issued by the container cluster management platform; and receiving an application access request issued by the load balancing application to realize application access.
To solve the above technical problem, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the application access method for any one of the container clusters.
The application access method of the container cluster comprises the steps that a container cluster management platform creates a load balancing application according to a received application creation request; sending the application creation request to a preset number of target container nodes so that each target container node creates an application instance according to the application creation request; wherein the load balancing application corresponds to each of the target container nodes; when an application access request is received, forwarding the application access request to the load balancing application, so that the load balancing application issues the application access request to each target container node to realize application access.
Therefore, according to the application access method of the container cluster, the container cluster management platform creates an application according to an application creation request, and simultaneously creates a load balancer, the load balancer serves as a container application, namely the load balancing application and the container application which needs to be created by a user are in the same network environment, and in the network environment, one load balancing application corresponds to one container application.
The application access device, the system, the container cluster management platform and the computer-readable storage medium for the container cluster have the beneficial effects, and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram of an application access system of a container cluster in the prior art;
fig. 2 is a schematic flowchart of an application access method for a container cluster provided in the present application;
fig. 3 is a schematic flowchart of an application creation request issuing method provided in the present application;
fig. 4 is a schematic flowchart of an application access request issuing method provided in the present application;
fig. 5 is a schematic structural diagram of an application access device for a container cluster provided in the present application;
fig. 6 is a schematic structural diagram of a container cluster management platform provided in the present application;
fig. 7 is a schematic structural diagram of an application access system of a container cluster provided in the present application.
Detailed Description
The core of the application is to provide an application access method of a container cluster, which can reduce the number of times of network address conversion when application access is carried out, further improve the application access efficiency and effectively reduce the network pressure of a system; another core of the present application is to provide an application access device, a system, a container cluster management platform, and a computer-readable storage medium for a container cluster, which also have the above advantages.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, when a container application in a cloud computing system needs to be accessed, an application access request needs to be loaded to a back-end cluster node through an external load balancer and then enters the container application through network address conversion to realize application access. However, as the container application and the container application instance increase, the network address translation table entry of the host is also increased, which reduces the performance of traffic forwarding, and a common application access may undergo multiple network address translations, thereby not only reducing the application access efficiency, but also increasing the network pressure to a certain extent by the corresponding traffic distribution. In order to solve the above problems, the present application provides an application access method for a container cluster, which can reduce the number of times of network address translation during application access, further improve the application access efficiency, and effectively reduce the network pressure of the system.
Referring to fig. 2, fig. 2 is a schematic flowchart of an application access method for a container cluster provided in the present application, where the application access method may include:
s101: the container cluster management platform creates a load balancing application according to the received application creation request;
specifically, when a container application needs to be created in a container cluster, an application creation request can be sent to a container cluster management platform through a host; further, the container cluster management platform can create a load balancing application in the container cluster according to the application creation request, so that the load balancing application can realize the issuing of the subsequent application access request, and the application access can be realized.
S102: sending the application creation request to a preset number of target container nodes so that each target container node creates an application instance according to the application creation request; wherein the load balancing application corresponds to each of the target container nodes;
specifically, the container cluster management platform may issue the received application creation request to a predetermined number of target container nodes, where the target container nodes are container nodes that need to create a container application in the container cluster; further, the target container node may create an application instance according to the received application creation request, thereby completing the creation of the container application.
For the specific values of the predetermined number, the present application is not particularly limited, and one target container node may be used to create one application instance, but the application instances belong to the same container application, so that the number of the target container nodes can be known according to the number of the application instances in the container application that needs to be created.
In addition, it should be noted that the load balancing application and each target container node correspond to each other, that is, one load balancing application corresponds to all target container nodes for creating application instances, and the application instances belong to one container application, so that one load balancing application corresponds to one container application.
It should be further noted that, regarding the creation of the load balancing application in S101 and the creation of the container application in S102, the execution order of the two is not sequential, the creation of the container application may be executed first, then the creation of the load balancing application is executed, or the two may be executed simultaneously, which is not specifically limited in this application.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating an application creation request issuing method provided in the present application, and preferably, the issuing the application creation request to a predetermined number of target container nodes so that each target container node creates an application instance according to the application creation request may include:
s201: splitting the application creation request to obtain a predetermined number of sub-application creation requests;
s202: analyzing each sub-application creation request to obtain the IP address of each target container node;
s203: and issuing each sub-application creation request to the corresponding target container node according to each IP address so that each target container node creates an application instance according to the sub-application creation request.
Specifically, when creating a container application, it may need to complete the creation of each application instance in the container application through multiple target container nodes, so when issuing an application creation request, splitting the application creation request may be performed first to obtain a predetermined number of sub-application creation requests, that is, corresponding to the predetermined number of target container nodes; furthermore, each sub-application creation request can be analyzed to obtain the IP address of the corresponding target container node needing to create the application instance; therefore, each sub-application creation request can be issued to the corresponding target container node according to the IP address, so that the target container node completes the creation of the application instance, and the creation of the container application is further realized.
S103: when an application access request is received, forwarding the application access request to the load balancing application, so that the load balancing application issues the application access request to each target container node to realize application access.
Specifically, when application access is needed, a user can also send an application access request to the container cluster management platform through the host, and the container cluster management platform can forward the application access request to the load balancing application, perform load balancing processing on the application by the load balancing application, and directly issue the application access request to each target container node, so that application access is achieved. Because the load balancing application and each target container node are in the same network environment, the issuing process of the application access request does not need network address conversion, and the application access can be directly carried out, thereby effectively improving the application access efficiency.
Further, referring to fig. 4, fig. 4 is a schematic flow chart of an application access request issuing method provided in the present application, and preferably, the issuing, by the load balancing application, the application access request to each target container node to implement application access may include:
s301: splitting the application access request to obtain a predetermined number of sub-application access requests;
s302: analyzing each sub-application access request to obtain the IP address of each target container node;
s303: and issuing each sub-application access request to the corresponding target container node according to each IP address to realize application access.
Specifically, when accessing the created container application, splitting the application access request to obtain a predetermined number of sub-application access requests, that is, corresponding to the predetermined number of target container nodes; furthermore, each sub-application access request can be analyzed to obtain the corresponding IP address of the target container node to be accessed; therefore, each sub-application access request can be issued to each corresponding target container node according to the IP address, and application access is achieved.
It should be noted that the issuing process of the application access request corresponds to an access process of the container application, that is, the access to the entire container application is realized. Of course, the technical solution can also achieve access to a certain application instance or certain application instances of the container application, that is, access to a certain target container node or certain target container nodes, at this time, when the application access request is split, a corresponding number of sub-application access requests, which correspond to the target container nodes to be accessed, can be obtained.
In addition, it should be noted that the creating process of the container application in S101 and S102 does not need to be executed in each access process of the container application, and the two steps are to illustrate that the corresponding load balancing application is created while the container application is created, so as to ensure that the load balancing application and the container application are in the same network environment, and to avoid the conversion process of the network address. However, the access to the container application that has been created may be performed by directly using S103.
According to the application access method of the container cluster, the container cluster management platform creates an application according to an application creation request, and meanwhile creates a load balancer, the load balancer serves as a container application, namely the load balancing application and the container application which needs to be created by a user are in the same network environment, and in the network environment, one load balancing application corresponds to one container application.
On the basis of the above-described embodiments,
as a preferred embodiment, the application access method may further include: when an application deleting request is received, deleting the load balancing application according to the application deleting request; and sending the application deletion request to each target container node so as to enable each target container node to delete the application instance.
Specifically, when the created container application needs to be deleted, the user can also send an application deletion request to the container cluster management platform through the host, the container cluster management platform deletes the load balancing application corresponding to the container application to be deleted according to the application deletion request, and sends the application deletion request to each target container node to delete the application instance created by the user, so that the deletion of the container application is completed. The container application needing to be deleted is the container application which does not need to be used any more.
Of course, as for the specific issuing manner of the application deletion request, reference may be made to the issuing manner of the application creation request and the application access request, which is not described herein again.
As a preferred embodiment, the application access method may further include: the load balancing application regularly acquires the instance state of the application instance in each target container node; and when the instance state is changed, updating the configuration of the instance according to the changed instance state.
Specifically, the load balancing application may also obtain instance states of application instances in each target container node at regular time, such as addition, deletion, modification, and the like, and if the instance state is changed, the configuration of the load balancing application may be updated according to the changed instance state, so as to ensure that subsequently obtained application access requests may be correspondingly sent to corresponding target container nodes.
Preferably, the application access method may further include: the load balancing application carries out quantity statistics on the target capacity nodes at regular time; and when the number of the target container nodes is increased or decreased, updating the configuration of the target container nodes according to the increased or decreased target container nodes.
Further, the load balancing application can also count the number of the target container nodes at regular time, and when the number of the target container nodes is increased or deleted, it indicates that the application instances of the container application are also increased or deleted, so that the configuration of the load balancing application can be further updated according to the increased or decreased target container nodes, and the correspondence between the application access requests and the target container nodes can also be ensured.
It should be noted that, the specific time value of the timing may be preset by the user according to actual needs, which is not limited in the present application.
To solve the above problem, please refer to fig. 5, fig. 5 is a schematic structural diagram of an application access apparatus for a container cluster according to the present application, where the application access apparatus may include:
a load balancing application creation module 1, configured to create a load balancing application according to a received application creation request;
the application instance creating module 2 is used for sending the application creating request to a predetermined number of target container nodes so that each target container node creates an application instance according to the application creating request; wherein the load balancing application corresponds to each target container node;
and the application access module 3 is configured to forward the application access request to the load balancing application when the application access request is received, so that the load balancing application issues the application access request to each target container node to implement application access.
As a preferred embodiment, the application instance creating module 2 may include:
the splitting submodule is used for splitting the application establishing request to obtain a preset number of sub-application establishing requests;
the analysis submodule is used for analyzing each sub-application creation request to obtain the IP address of each target container node;
and the issuing sub-module is used for issuing each sub-application creation request to the corresponding target container node according to each IP address so that each target container node creates an application instance according to the sub-application creation request.
As a preferred embodiment, the application access device may further include:
the application deleting module is used for deleting the load balancing application according to the application deleting request when the application deleting request is received; and sending the application deletion request to each target container node so as to enable each target container node to delete the application instance.
For the introduction of the apparatus provided in the present application, please refer to the above method embodiments, which are not described herein again.
To solve the above problem, please refer to fig. 6, fig. 6 is a schematic structural diagram of a container cluster management platform provided in the present application, where the container cluster management platform may include:
a memory 11 for storing a computer program;
a processor 12 for implementing the following steps when executing the computer program:
creating a load balancing application according to the received application creation request; sending the application creation request to a predetermined number of target container nodes so that each target container node creates an application instance according to the application creation request; wherein the load balancing application corresponds to each target container node; when the application access request is received, the application access request is forwarded to the load balancing application, so that the load balancing application issues the application access request to each target container node to achieve application access.
For the introduction of the device provided in the present application, please refer to the above method embodiment, which is not described herein again.
To solve the above problem, please refer to fig. 7, fig. 7 is a schematic structural diagram of an application access system of a container cluster according to the present application, where the application access system may include:
a container cluster management platform 10 for creating a load balancing application 20 according to the received application creation request; issuing the application creation request to a predetermined number of target container nodes 30, so that each target container node 30 creates an application instance according to the application creation request; wherein the load balancing application 20 corresponds to each target container node 30; when receiving the application access request, forwarding the application access request to the load balancing application 20, so that the load balancing application 20 issues the application access request to each target container node 30 to implement application access;
the load balancing application 20 is configured to issue an application access request sent by the container cluster management platform 10 to each target container node 30 to implement application access;
each target container node 30 is configured to create an application instance according to an application creation request issued by the container cluster management platform 10; and receives an application access request issued by the load balancing application 20 to implement application access.
It should be noted that the application access system of the container cluster provided in fig. 7 is only listed by taking the creation and access of one container application as an example, when there are a plurality of container applications, a plurality of load balancing applications 20 will be correspondingly created, and each load balancing application 20 corresponds to a plurality of target container nodes 30.
As a preferred embodiment, the load balancing application 20 may be specifically configured to split the application access request to obtain a predetermined number of sub-application access requests; analyzing each sub-application access request to obtain the IP address of each target container node; and issuing each sub-application access request to the corresponding target container node 30 according to each IP address to realize application access.
As a preferred embodiment, the load balancing application 20 may also be configured to periodically obtain the instance status of the application instance in each target container node 30; and when the instance state is changed, updating the configuration of the instance according to the changed instance state.
As a preferred embodiment, the load balancing application 20 may be further configured to count the number of the target capacity nodes 30 at regular time; when the number of target container nodes 30 increases or decreases, the configuration thereof is updated based on the increased or decreased target container nodes 30.
For the introduction of the system provided by the present application, please refer to the above method embodiment, which is not described herein again.
To solve the above problem, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program when executed by a processor can implement the following steps:
creating a load balancing application according to the received application creation request; sending the application creation request to a predetermined number of target container nodes so that each target container node creates an application instance according to the application creation request; wherein the load balancing application corresponds to each target container node; when the application access request is received, the application access request is forwarded to the load balancing application, so that the load balancing application issues the application access request to each target container node to achieve application access.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided in the present application, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The application access method, device, system, container cluster management platform and computer readable storage medium for the container cluster provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and these improvements and modifications also fall into the elements of the protection scope of the claims of the present application.

Claims (10)

1. An application access method for a container cluster, comprising:
the container cluster management platform creates a load balancing application according to the received application creation request;
sending the application creation request to a preset number of target container nodes so that each target container node creates an application instance according to the application creation request; wherein the load balancing application corresponds to each of the target container nodes; the load balancing application and each target container node are arranged in the same network environment;
when an application access request is received, forwarding the application access request to the load balancing application, so that the load balancing application issues the application access request to each target container node to realize application access.
2. The application access method of claim 1, wherein the issuing the application creation request to a predetermined number of target container nodes to cause each of the target container nodes to create an application instance according to the application creation request comprises:
splitting the application creation request to obtain the predetermined number of sub-application creation requests;
analyzing each sub-application creation request to obtain the IP address of each target container node;
and issuing each sub-application creation request to a corresponding target container node according to each IP address so that each target container node creates the application instance according to the sub-application creation request.
3. The application access method of claim 1, wherein the load balancing application issuing the application access request to each of the target container nodes to implement application access, comprises:
splitting the application access request to obtain the predetermined number of sub-application access requests;
analyzing each sub-application access request to obtain the IP address of each target container node;
and issuing each sub-application access request to a corresponding target container node according to each IP address to realize application access.
4. The application access method of claim 1, further comprising:
when an application deleting request is received, deleting the load balancing application according to the application deleting request;
and sending the application deletion request to each target container node so as to enable each target container node to delete the application instance.
5. The application access method of claim 1, further comprising:
the load balancing application acquires the instance state of the application instance in each target container node at regular time;
and when the instance state is changed, updating the configuration of the instance according to the changed instance state.
6. The application access method of claim 1, further comprising:
the load balancing application carries out quantity statistics on the target container nodes at regular time;
and when the number of the target container nodes is increased or decreased, updating the configuration of the target container nodes according to the increased or decreased target container nodes.
7. An application access device for a container cluster, comprising:
the load balancing application creation module is used for creating a load balancing application according to the received application creation request;
an application instance creating module, configured to send the application creation request to a predetermined number of target container nodes, so that each target container node creates an application instance according to the application creation request; wherein the load balancing application corresponds to each of the target container nodes; the load balancing application and each target container node are arranged in the same network environment;
and the application access module is used for forwarding the application access request to the load balancing application when the application access request is received, so that the load balancing application issues the application access request to each target container node to realize application access.
8. A container cluster management platform, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the application access method of a container cluster according to any of claims 1 to 6 when executing said computer program.
9. An application access system for a container cluster, comprising:
the container cluster management platform is used for creating the load balancing application according to the received application creation request; sending the application creation request to a preset number of target container nodes so that each target container node creates an application instance according to the application creation request; wherein the load balancing application corresponds to each of the target container nodes; the load balancing application and each target container node are arranged in the same network environment; when an application access request is received, forwarding the application access request to the load balancing application, so that the load balancing application issues the application access request to each target container node to realize application access;
the load balancing application is used for issuing the application access request sent by the container cluster management platform to each target container node to realize application access;
each target container node is used for creating an application instance according to an application creation request issued by the container cluster management platform; and receiving an application access request issued by the load balancing application to realize application access.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the application access method of a container cluster according to any one of claims 1 to 6.
CN201811278496.3A 2018-10-30 2018-10-30 Application access method and device for container cluster and related equipment Active CN109343963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811278496.3A CN109343963B (en) 2018-10-30 2018-10-30 Application access method and device for container cluster and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811278496.3A CN109343963B (en) 2018-10-30 2018-10-30 Application access method and device for container cluster and related equipment

Publications (2)

Publication Number Publication Date
CN109343963A CN109343963A (en) 2019-02-15
CN109343963B true CN109343963B (en) 2021-12-07

Family

ID=65313028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811278496.3A Active CN109343963B (en) 2018-10-30 2018-10-30 Application access method and device for container cluster and related equipment

Country Status (1)

Country Link
CN (1) CN109343963B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110333930A (en) * 2019-04-29 2019-10-15 中国联合网络通信集团有限公司 Digital Platform system
CN110266761B (en) * 2019-05-17 2022-04-19 平安科技(深圳)有限公司 Load balancing application creation method and device, computer equipment and storage medium
CN110289982B (en) * 2019-05-17 2022-08-23 平安科技(深圳)有限公司 Container application capacity expansion method and device, computer equipment and storage medium
CN110286996B (en) * 2019-05-17 2023-08-18 平安科技(深圳)有限公司 Container instance IP switching method, device, computer equipment and storage medium
CN110262873B (en) * 2019-05-17 2023-07-28 平安科技(深圳)有限公司 Configuration modification method and device for container application, computer equipment and storage medium
CN110275776A (en) * 2019-05-17 2019-09-24 平安科技(深圳)有限公司 Capacity reduction method, device, computer equipment and the storage medium of container application
CN110224860B (en) * 2019-05-17 2023-05-26 平安科技(深圳)有限公司 Load balancing application creation method and device, computer equipment and storage medium
CN110427194A (en) * 2019-06-18 2019-11-08 平安科技(深圳)有限公司 Container application delet method, device, computer equipment and storage medium
CN110365742B (en) * 2019-06-18 2022-09-27 平安科技(深圳)有限公司 Multi-active load balancing application creation method and device, computer equipment and storage medium
CN112532674B (en) * 2019-09-19 2023-07-28 贵州白山云科技股份有限公司 Creation method, device and medium of network edge computing system
CN111131492A (en) * 2019-12-31 2020-05-08 中国联合网络通信集团有限公司 Node access method and system
CN111585805B (en) * 2020-04-30 2023-04-18 中国平安财产保险股份有限公司 Smooth release upgrading method and device, computer system and readable storage medium
CN112995273B (en) * 2021-01-28 2022-03-04 腾讯科技(深圳)有限公司 Network call-through scheme generation method and device, computer equipment and storage medium
CN112995303B (en) * 2021-02-08 2023-04-07 中国工商银行股份有限公司 Cross-cluster scheduling method and device
CN113032105B (en) * 2021-04-20 2023-11-17 金蝶软件(中国)有限公司 Kubernetes cluster access control method, system and related equipment
CN113326100B (en) * 2021-06-29 2024-04-09 深信服科技股份有限公司 Cluster management method, device, equipment and computer storage medium
CN113572838B (en) * 2021-07-22 2023-04-07 北京金山云网络技术有限公司 Network access method, device, equipment and medium based on Kubernetes
CN115022317B (en) * 2022-05-27 2024-03-08 亚信科技(中国)有限公司 Cloud platform-based application management method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790595A (en) * 2016-12-29 2017-05-31 上海理想信息产业(集团)有限公司 A kind of Docker containers active load balancer and method
CN107666525A (en) * 2017-09-08 2018-02-06 北京京东尚科信息技术有限公司 The method and apparatus of cluster container IP distribution
CN108111470A (en) * 2016-11-25 2018-06-01 华为技术有限公司 Communication means and relevant apparatus between the dispositions method of container, service

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9729615B2 (en) * 2013-11-18 2017-08-08 Nuwafin Holdings Ltd System and method for collaborative designing, development, deployment, execution, monitoring and maintenance of enterprise applications
CN104714791B (en) * 2013-12-17 2018-05-04 北京掌中经纬技术有限公司 A kind of method and apparatus that Web applications are split and reset
CN107256178B (en) * 2017-04-27 2019-12-17 北京数人科技有限公司 Container management platform
CN107590001B (en) * 2017-09-08 2020-12-22 北京京东尚科信息技术有限公司 Load balancing method and device, storage medium and electronic equipment
CN107635002A (en) * 2017-09-21 2018-01-26 浪潮软件股份有限公司 A kind of access method and device of containerization application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111470A (en) * 2016-11-25 2018-06-01 华为技术有限公司 Communication means and relevant apparatus between the dispositions method of container, service
CN106790595A (en) * 2016-12-29 2017-05-31 上海理想信息产业(集团)有限公司 A kind of Docker containers active load balancer and method
CN107666525A (en) * 2017-09-08 2018-02-06 北京京东尚科信息技术有限公司 The method and apparatus of cluster container IP distribution

Also Published As

Publication number Publication date
CN109343963A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN109343963B (en) Application access method and device for container cluster and related equipment
US11340803B2 (en) Method for configuring resources, electronic device and computer program product
CN107241281B (en) Data processing method and device
US10146848B2 (en) Systems and methods for autonomous, scalable, and distributed database management
KR102376713B1 (en) Composite partition functions
US20190196875A1 (en) Method, system and computer program product for processing computing task
US9836516B2 (en) Parallel scanners for log based replication
CN110795029B (en) Cloud hard disk management method, device, server and medium
CN107729570B (en) Data migration method and device for server
CN104077239A (en) IP hard disk, and memory system and data operation method thereof
CN104461698A (en) Dynamic virtual disk mounting method, virtual disk management device and distributed storage system
CN110727738B (en) Global routing system based on data fragmentation, electronic equipment and storage medium
CN105516086A (en) Service processing method and apparatus
CN104144202A (en) Hadoop distributed file system access method, system and device
CN111124299A (en) Data storage management method, device, equipment, system and storage medium
US20200272526A1 (en) Methods and systems for automated scaling of computing clusters
CN111225003B (en) NFS node configuration method and device
CN106911741B (en) Method for balancing virtual network management file downloading load and network management server
CN102970349B (en) A kind of memory load equalization methods of DHT network
CN110706148A (en) Face image processing method, device, equipment and storage medium
CN108595574B (en) Database cluster connection method, device, equipment and storage medium
CN115314468B (en) IP address allocation method and system for container cloud platform
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
CN114726657A (en) Method and device for interrupt management and data receiving and sending management and intelligent network card

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