CN107635002A - A kind of access method and device of containerization application - Google Patents

A kind of access method and device of containerization application Download PDF

Info

Publication number
CN107635002A
CN107635002A CN201710859310.2A CN201710859310A CN107635002A CN 107635002 A CN107635002 A CN 107635002A CN 201710859310 A CN201710859310 A CN 201710859310A CN 107635002 A CN107635002 A CN 107635002A
Authority
CN
China
Prior art keywords
container
log
message
configuration file
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710859310.2A
Other languages
Chinese (zh)
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.)
Inspur Software Co Ltd
Original Assignee
Inspur Software 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 Inspur Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN201710859310.2A priority Critical patent/CN107635002A/en
Publication of CN107635002A publication Critical patent/CN107635002A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a kind of access method of containerization application and device, this method to include:Container cluster is built, wherein, the container cluster includes at least one node;Container corresponding to operation on each described node in the container cluster;Often pass through a detection cycle set in advance, it is determined that log-on message corresponding to each described container of operation;Load balancing instrument corresponding to each container is determined, and determines the configuration file corresponding with the type of the load balancing instrument;The log-on message is added in the configuration file;Smoothly start the load balancing instrument, the configuration file after operation addition, to access container corresponding to the configuration file.This programme can reduce the manual intervention during container access application system, improve Consumer's Experience.

Description

A kind of access method and device of containerization application
Technical field
The present invention relates to field of computer technology, the more particularly to a kind of access method and device of containerization application.
Background technology
With the raising of container popularity, the containerization of the Internet, applications has become main flow, increasing application Container proposes higher requirement to software architecture.
At present, mainly will letter corresponding to the container using manual type when thering is container to need to access new application system Breath is added in the configuration file in new application system, then runs the configuration file, so that the container accesses new application System.
In the process, information of container is increased automatically due to being unable to the access of automatic sensing new opplication, new in access , it is necessary to which manual intervention, adds amount of user effort during application system, cause Consumer's Experience poor.
The content of the invention
The embodiments of the invention provide the access method and device of a kind of containerization application, Consumer's Experience can be improved.
In a first aspect, the embodiments of the invention provide a kind of access method of containerization application, including:
Container cluster is built, wherein, the container cluster includes at least one node;
Container corresponding to operation on each described node in the container cluster;
Often pass through a detection cycle set in advance, it is determined that log-on message corresponding to each described container of operation;
Load balancing instrument corresponding to each container is determined, and is determined relative with the type of the load balancing instrument The configuration file answered;
The log-on message is added in the configuration file;
Smoothly start the load balancing instrument, the configuration file after operation addition, to access the configuration file Corresponding container.
Preferably,
It is described often to pass through a detection cycle set in advance, it is determined that registration letter corresponding to each described container of operation Breath, and the log-on message is added in the configuration file, including:
The each container for determining that current detection cycle detection goes out respectively corresponding to current registration information;
The current registration information is distinguished into corresponding target with each container that a upper detection cycle detects to note Volume information is contrasted, and determines whether each current registration information and each target registered information are incomplete same;
If it is, determine to update log-on message, and the more new registration by described in from each current registration information Information is added in the configuration file.
Preferably,
Often pass through a detection cycle set in advance described, it is determined that being registered corresponding to each described container of operation After information, further comprise:
The each log-on message determined is backed up, and the log-on message after backup is stored;
It is described that the log-on message is added in the configuration file, including:
From the backup post-registration information of storage, pending log-on message is selected;
The pending log-on message is added in the configuration file.
Preferably,
Further comprise:Top-level domain corresponding to the container cluster is set, and according to the top-level domain of setting, is Second level domain corresponding to the node setting of each in the container cluster;
It is described smoothly to start the load balancing instrument, the configuration file after operation addition, to access the configuration Container corresponding to file, including:
Receive the target top-level domain of outside input;
According to the target top-level domain received, the load balancing instrument corresponding to smooth startup;
Using the load balancing instrument, node to be visited is determined, and determines second-level domain corresponding to the node to be visited Name;
According to the second level domain determined, container corresponding to the node to be visited is accessed.
Preferably,
The log-on message includes:It is any one or more in IP address, port and application context.
Second aspect, the embodiments of the invention provide a kind of access mechanism of containerization application, including:Container operation is single Member, log-on message determining unit and access unit;Wherein,
The container running unit, for building container cluster, wherein, the container cluster includes at least one node, And container corresponding to operation on each described node in the container cluster;
The log-on message determining unit, for often passing through a detection cycle set in advance, it is determined that operation is each Log-on message corresponding to the individual container;
The access unit, for determining load balancing instrument corresponding to each container, and determine and the load The corresponding configuration file of the type of balanced instrument;The log-on message is added in the configuration file;It is smooth to start institute State load balancing instrument, the configuration file after operation addition, to access container corresponding to the configuration file.
Preferably,
The log-on message determining unit, for determining that each container that current detection cycle detection goes out corresponds to respectively Current registration information;The current registration information and each container that a upper detection cycle detects is corresponding respectively Target registered information is contrasted, and determines whether each current registration information and each target registered information are incomplete It is identical;If it is, trigger the access unit;
The access unit, for determining to update log-on message from each current registration information, and by described in Renewal log-on message is added in the configuration file.
Preferably,
The log-on message determining unit, each log-on message for being further used for determining are backed up, and Log-on message after backup is stored;
The access unit, for from the backup post-registration information of storage, selecting pending log-on message, and will The pending log-on message is added in the configuration file.
Preferably,
Further comprise:Setting unit;Wherein,
The setting unit, for setting top-level domain corresponding to the container cluster, and according to the one-level of setting Domain name, it is second level domain corresponding to the node of each in the container cluster is set;
The access unit, for receiving the target top-level domain of outside input;According to the target one-level received Domain name, the load balancing instrument corresponding to smooth startup;Using the load balancing instrument, node to be visited is determined, and really Second level domain corresponding to the fixed node to be visited;According to the second level domain determined, the node pair to be visited is accessed The container answered.
Preferably,
The log-on message includes:It is any one or more in IP address, port and application context.
The embodiments of the invention provide the access method and device of a kind of containerization application, by building including at least one The container cluster of node, and container corresponding to operation on each node.Then a default detection cycle is often passed through, really Surely the log-on message of each container run, and the log-on message determined is added to the load balancing work on each container upper strata In configuration file corresponding to tool, then smooth starting load equilibrium instrument, runs the configuration file after addition, with corresponding to access Container.Due to every log-on message Jing Guo one default detection cycle, the then each container of automatic detection, and it is automatically added to pair In the configuration file answered, and, so as to the manual intervention during reducing, it need not be reduced using manual type increase information of container The workload of user, so as to improving Consumer's Experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of the access method for containerization application that one embodiment of the invention provides;
Fig. 2 is a kind of flow chart of the access method for containerization application that another embodiment of the present invention provides;
Fig. 3 is a kind of structural representation of the access mechanism for containerization application that one embodiment of the invention provides;
Fig. 4 is a kind of structural representation of the access mechanism for containerization application that another embodiment of the present invention provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of containerization application access method, this method can include with Lower step:
Step 101:Container cluster is built, wherein, the container cluster includes at least one node;
Step 102:Container corresponding to operation on each described node in the container cluster;
Step 103:Often pass through a detection cycle set in advance, it is determined that being noted corresponding to each described container of operation Volume information;
Step 104:Load balancing instrument corresponding to each container is determined, and is determined and the load balancing instrument The corresponding configuration file of type;
Step 105:The log-on message is added in the configuration file;
Step 106:Smoothly start the load balancing instrument, the configuration file after operation addition, with described in access Container corresponding to configuration file.
In above-described embodiment, by building the container cluster including at least one node, and run on each node Corresponding container.Then a default detection cycle is often passed through, it is determined that the log-on message of each container of operation, and will determine The log-on message gone out is added in configuration file corresponding to the load balancing instrument on each container upper strata, then smooth starting load Balanced instrument, the configuration file after operation addition, to access corresponding container.Pass through a default detection cycle due to every, The then log-on message of each container of automatic detection, and be automatically added in corresponding configuration file, and manual type need not be used Increase information of container, so as to the manual intervention during reducing, reduce the workload of user, so as to improve user's body Test.
In one embodiment of the invention, the embodiment of step 103 and step 105, it can include:
The each container for determining that current detection cycle detection goes out respectively corresponding to current registration information;
The current registration information is distinguished into corresponding target with each container that a upper detection cycle detects to note Volume information is contrasted, and determines whether each current registration information and each target registered information are incomplete same;
If it is, determine to update log-on message, and the more new registration by described in from each current registration information Information is added in the configuration file.
Herein, using the log-on message of the container on each node of configuration management tool Confd periodic detections, if working as The log-on message that preceding detection cycle detects and the log-on message that a upper detection cycle detects are different, illustrate log-on message There are increase or renewal, be then added for these increased or renewal log-on messages.Thus be advantageous to increase in time The log-on message for adding or updating is added in configuration file, consequently facilitating automatically accessing new application system.
In one embodiment of the invention, after step 103, it may further include:
The each log-on message determined is backed up, and the log-on message after backup is stored;
The embodiment of step 105, it can include:
From the backup post-registration information of storage, pending log-on message is selected;
The pending log-on message is added in the configuration file.
Herein, the log-on message of container instance can be registered by service discovery tool, including:IP address, port and should With context etc., wherein, service discovery tool supports ETCD, Consul, Zookeeper etc..In order to ensure service discovery just Chang Gongneng, service discovery can be deployed to cluster mode, under cluster mode, the backup of each log-on message can be achieved and deposit Store up, the synchronization of log-on message can be carried out between each service discovery example automatically., can when adding log-on message to configuration file It is any from more parts of log-on messages of backup to choose portion, the log-on message selected then is added to corresponding configuration file In.Thus, even if the log-on message of container damages corresponding to some node, can also be continued by the log-on message of backup to Log-on message is added in configuration file, so as to ensure to automatically update the efficiency of configuration file, further improves Consumer's Experience.Separately Outside, when adding log-on message into configuration file, it is contemplated that the type of load balancing instrument, so that the registration letter of addition Breath can directly be supported balanced instrument and use, so as to further increase the automatic efficiency for accessing container.
In one embodiment of the invention, this method may further include:One-level domain corresponding to the container cluster is set Name, and be second level domain corresponding to the node of each in the container cluster is set according to the top-level domain of setting;
The embodiment of step 105, it can include:
Receive the target top-level domain of outside input;
According to the target top-level domain received, the load balancing instrument corresponding to smooth startup;
Using the load balancing instrument, node to be visited is determined, and determines second-level domain corresponding to the node to be visited Name;
According to the second level domain determined, container corresponding to the node to be visited is accessed.
Herein, top-level domain is set to map in name server, corresponding container cluster, for example, the one-level domain set Entitled app.access, and second level domain is used for distinguishing different system applications, such as A.app.access corresponds to application system A, B.app.access correspond to application system B.When user logs in, top-level domain only need to be inputted, then system is according to one received Level domain name, it is determined that corresponding container cluster, and smoothly start the load balancing instrument of the container cluster, run load balancing instrument Which container corresponding configuration file, then specifically access according to the policy selection of load balancing instrument, that is, determines specific The second level domain corresponding to node corresponding to container is accessed, then the container according to corresponding to second level domain accesses the node.Thus, Unified access path is provided the user by way of domain name, is easy to user to access each container, is used so as to further improve Experience at family.Also, under normal circumstances, it can be entered herein with Web application container examples by domain name access to each container Row explanation, if some container instance of Web applications is abnormal, it is real that normal Web application containers still can be accessed by domain name Example.Under the pattern of new service discovery, if one of service discovery is abnormal, in the Web applications newly accessed, still Domain name access to the application newly accessed can be passed through.
As shown in Fig. 2 the embodiments of the invention provide a kind of containerization application access method, this method can include with Lower step:
Step 201:Container cluster is built, wherein, the container cluster includes at least one node, and in the sets of containers Container corresponding to operation on each described node in group.
For example, building Docker Swarm container cluster environment, Web is run on Swarm Manager nodes The container of application, it is possible to specify Swarm Manager will be operated in specifically using the strategy decision of itself per a container instance Node nodes on.After treating that container starts, it can also verify whether Web applications are normal by way of IP and port.
Step 202:Often pass through a detection cycle set in advance, it is determined that being noted corresponding to each described container of operation Volume information, and each container for determining that current detection cycle detection goes out respectively corresponding to current registration information.
Herein, the information of Web application container examples can be registered by service discovery tool, including:IP, port and should With context, wherein, application context can be used to distinguish different Web applications.The instrument of service discovery can support ETCD, Consul and Zookeeper etc..In addition, in order to ensure the normal function of service discovery, service discovery can also be deployed to collect Group's pattern, under cluster mode, can carry out the synchronization of the information content automatically between each service discovery example.
Step 203:Load balancing instrument corresponding to each container is determined, and is determined and the load balancing instrument The corresponding configuration file of type.
Step 204:The current registration information and each container that a upper detection cycle detects is corresponding respectively Target registered information contrasted.
Step 205:Determine whether each current registration information and each target registered information are incomplete same; If it is, determining to update log-on message from each current registration information, and the renewal log-on message is added Into the configuration file.
Herein, using configuration management tool Confd according to the information registered in service discovery, each section of periodic detection The log-on message of container on point, if current detection cycle detection to the registration that detects of log-on message and a upper detection cycle Information is different, illustrates that log-on message has increase or renewal, then adds these increased or renewal log-on messages Into configuration file.
Step 206:The target top-level domain of outside input is received, according to the target top-level domain received, smoothly The load balancing instrument corresponding to startup, and the load balancing instrument is utilized, node to be visited is determined, and treated described in determination Second level domain corresponding to accessed node.
Step 207, according to the second level domain determined, container corresponding to the node to be visited is accessed.
Herein, top-level domain is set to map in name server in advance, corresponding container cluster, for example, set one Level domain name is app.access, and second level domain is used for distinguishing different system applications, such as the corresponding applications of A.app.access System A, B.app.access correspond to application system B.When user logs in, top-level domain only need to be inputted, then system is according to receiving Top-level domain, it is determined that corresponding container cluster, and smoothly start the load balancing instrument of the container cluster, run load balancing Configuration file corresponding to instrument, which container is specifically then accessed according to the policy selection of load balancing instrument, that is, determined The second level domain corresponding to container corresponding to node is specifically accessed, then the container according to corresponding to second level domain accesses the node. Wherein, load balancing instrument supports Nginx and Haproxy, and every kind of instrument both provides the algorithm of different load balancing, system The selection of algorithms of different can be carried out according to the different demands of actual environment.
As shown in figure 3, the embodiments of the invention provide a kind of access mechanism of containerization application, including:Container operation is single Member 301, log-on message determining unit 302 and access unit 303;Wherein,
The container running unit 301, for building container cluster, wherein, the container cluster includes at least one section Point, and container corresponding to operation on each described node in the container cluster;
The log-on message determining unit 302, for often passing through a detection cycle set in advance, it is determined that operation is every Log-on message corresponding to one container;
The access unit 303, for determining load balancing instrument corresponding to each container, and determine to bear with described Carry the corresponding configuration file of the type of balanced instrument;The log-on message is added in the configuration file;It is smooth to start The load balancing instrument, the configuration file after operation addition, to access container corresponding to the configuration file.
In one embodiment of the invention, the log-on message determining unit 302, for determining that current detection cycle detection goes out Each container respectively corresponding to current registration information;The current registration information and a upper detection cycle are detected Corresponding target registered information is contrasted each container respectively, determine each current registration information with it is each described Whether target registered information is incomplete same;If it is, trigger the access unit 303;
The access unit 303, for determining to update log-on message from each current registration information, and by institute Renewal log-on message is stated to be added in the configuration file.
In one embodiment of the invention, the log-on message determining unit 302, it is further used for each institute that will be determined State log-on message to be backed up, and the log-on message after backup is stored;
The access unit 303, for from the backup post-registration information of storage, selecting pending log-on message, And the pending log-on message is added in the configuration file.
As shown in figure 4, in one embodiment of the invention, the device may further include:Setting unit 401;Wherein,
The setting unit 401, for setting top-level domain corresponding to the container cluster, and according to described the one of setting Level domain name, it is second level domain corresponding to the node of each in the container cluster is set;
The access unit 303, for receiving the target top-level domain of outside input;According to the target one received Level domain name, the load balancing instrument corresponding to smooth startup;Using the load balancing instrument, node to be visited is determined, and Determine second level domain corresponding to the node to be visited;According to the second level domain determined, the node to be visited is accessed Corresponding container.
In one embodiment of the invention, the log-on message includes:It is any in IP address, port and application context It is one or more.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, including execute instruction, when the processor of storage control is held During the row execute instruction, the storage control performs the method that any of the above-described embodiment of the present invention provides.
The embodiment of the present invention additionally provides a kind of storage control, including:Processor, memory and bus;The storage Device is used to store execute instruction, and the processor is connected with the memory by the bus, when the storage control is transported During row, the execute instruction of memory storage described in the computing device, so that the storage control performs the present invention The method that any of the above-described embodiment provides.
In summary, the more than present invention each embodiment at least has the advantages that:
1st, in embodiments of the present invention, by building the container cluster including at least one node, and in each node Container corresponding to upper operation.Then a default detection cycle is often passed through, it is determined that the log-on message of each container of operation, and The log-on message determined is added in configuration file corresponding to the load balancing instrument on each container upper strata, then smoothly opened Dynamic load equilibrium instrument, the configuration file after operation addition, to access corresponding container.Pass through a default detection due to every The log-on message in cycle, the then each container of automatic detection, and be automatically added in corresponding configuration file, and need not be using artificial Mode increases information of container, so as to the manual intervention during reducing, reduces the workload of user, so as to improve user Experience.
2nd, in embodiments of the present invention, the current registration information that current detection cycle detection is arrived, and a upper detection are determined The log-on message that cycle detection is arrived, it is determined that whether the two is incomplete same, if it is, determine to update log-on message, and will Renewal log-on message is added in corresponding configuration file, is thus advantageous to increase in time or the log-on message of renewal is added to In configuration file, consequently facilitating automatically accessing new application system.
3rd, in embodiments of the present invention, each log-on message is backed up, can be from backup when generating configuration file It is any in more parts of log-on messages to choose portion, then the log-on message selected is added in corresponding configuration file.Thus, Even if the log-on message of container damages corresponding to some node, can also be continued by the log-on message of backup to configuration file Middle addition log-on message, so as to ensure to automatically generate the efficiency of configuration file, further improve Consumer's Experience.In addition, to When putting addition log-on message in file, it is contemplated that the type of load balancing instrument, so that the log-on message of addition can be straight Connect and be supported balanced instrument use, so as to further increase the automatic efficiency for accessing container.
4th, in embodiments of the present invention, by receiving the target top-level domain of outside input, smooth starting load equilibrium work Tool, and second level domain corresponding to node to be visited is determined using load balancing instrument, then visited according to the second level domain determined Ask corresponding container.Thus, unified access path is provided the user by way of domain name, is easy to user to access each appearance Device, so as to further improve Consumer's Experience.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation makes a distinction with another entity or operation, and not necessarily require or imply and exist between these entities or operation Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, article or equipment including a series of elements not only include those key elements, But also the other element including being not expressly set out, or also include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, the key element limited by sentence " including one ", is not arranged Except other identical factor in the process including the key element, method, article or equipment being also present.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in computer-readable storage medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, is merely to illustrate the skill of the present invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention, Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

  1. A kind of 1. access method of containerization application, it is characterised in that including:
    Container cluster is built, wherein, the container cluster includes at least one node;
    Container corresponding to operation on each described node in the container cluster;
    Often pass through a detection cycle set in advance, it is determined that log-on message corresponding to each described container of operation;
    Load balancing instrument corresponding to each container is determined, and is determined corresponding with the type of the load balancing instrument Configuration file;
    The log-on message is added in the configuration file;
    Smoothly start the load balancing instrument, the configuration file after operation addition is corresponding to access the configuration file Container.
  2. 2. according to the method for claim 1, it is characterised in that
    It is described often to pass through a detection cycle set in advance, it is determined that log-on message corresponding to each described container of operation, And the log-on message is added in the configuration file, including:
    The each container for determining that current detection cycle detection goes out respectively corresponding to current registration information;
    The current registration information is distinguished into corresponding target registered with each container that a upper detection cycle detects to believe Breath is contrasted, and determines whether each current registration information and each target registered information are incomplete same;
    If it is, determine to update log-on message from each current registration information, and by the renewal log-on message It is added in the configuration file.
  3. 3. according to the method for claim 1, it is characterised in that
    Often pass through a detection cycle set in advance described, it is determined that log-on message corresponding to each described container of operation Afterwards, further comprise:
    The each log-on message determined is backed up, and the log-on message after backup is stored;
    It is described that the log-on message is added in the configuration file, including:
    From the backup post-registration information of storage, pending log-on message is selected;
    The pending log-on message is added in the configuration file.
  4. 4. according to the method for claim 1, it is characterised in that
    Further comprise:Top-level domain corresponding to the container cluster is set, and is described according to the top-level domain of setting Second level domain corresponding to the node setting of each in container cluster;
    It is described smoothly to start the load balancing instrument, the configuration file after operation addition, to access the configuration file Corresponding container, including:
    Receive the target top-level domain of outside input;
    According to the target top-level domain received, the load balancing instrument corresponding to smooth startup;
    Using the load balancing instrument, node to be visited is determined, and determines second level domain corresponding to the node to be visited;
    According to the second level domain determined, container corresponding to the node to be visited is accessed.
  5. 5. method according to any one of claims 1 to 4, it is characterised in that
    The log-on message includes:It is any one or more in IP address, port and application context.
  6. A kind of 6. access mechanism of containerization application, it is characterised in that including:Container running unit, log-on message determining unit And access unit;Wherein,
    The container running unit, for building container cluster, wherein, the container cluster includes at least one node, and Container corresponding to operation on each described node in the container cluster;
    The log-on message determining unit, for often passing through a detection cycle set in advance, it is determined that each institute of operation State log-on message corresponding to container;
    The access unit, for determining load balancing instrument corresponding to each container, and determine and the load balancing The corresponding configuration file of the type of instrument;The log-on message is added in the configuration file;Smoothly start described negative Carry balanced instrument, the configuration file after operation addition, to access container corresponding to the configuration file.
  7. 7. device according to claim 6, it is characterised in that
    The log-on message determining unit, for determining that each container that current detection cycle detection goes out distinguishes corresponding work as Preceding log-on message;The current registration information is distinguished into corresponding target with each container that a upper detection cycle detects Log-on message is contrasted, and determines each current registration information and each whether incomplete phase of target registered information Together;If it is, trigger the access unit;
    The access unit, for determining to update log-on message from each current registration information, and by the renewal Log-on message is added in the configuration file.
  8. 8. device according to claim 6, it is characterised in that
    The log-on message determining unit, each log-on message for being further used for determining are backed up, and will be standby Log-on message after part is stored;
    The access unit, for from the backup post-registration information of storage, selecting pending log-on message, and by described in Pending log-on message is added in the configuration file.
  9. 9. device according to claim 6, it is characterised in that
    Further comprise:Setting unit;Wherein,
    The setting unit, for setting top-level domain corresponding to the container cluster, and according to the top-level domain of setting, For second level domain corresponding to the node setting of each in the container cluster;
    The access unit, for receiving the target top-level domain of outside input;According to the target top-level domain received, The load balancing instrument corresponding to smooth startup;Using the load balancing instrument, node to be visited is determined, and described in determination Second level domain corresponding to node to be visited;According to the second level domain determined, access and hold corresponding to the node to be visited Device.
  10. 10. according to any described device in claim 6 to 9, it is characterised in that
    The log-on message includes:It is any one or more in IP address, port and application context.
CN201710859310.2A 2017-09-21 2017-09-21 A kind of access method and device of containerization application Pending CN107635002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710859310.2A CN107635002A (en) 2017-09-21 2017-09-21 A kind of access method and device of containerization application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710859310.2A CN107635002A (en) 2017-09-21 2017-09-21 A kind of access method and device of containerization application

Publications (1)

Publication Number Publication Date
CN107635002A true CN107635002A (en) 2018-01-26

Family

ID=61102075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710859310.2A Pending CN107635002A (en) 2017-09-21 2017-09-21 A kind of access method and device of containerization application

Country Status (1)

Country Link
CN (1) CN107635002A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494589A (en) * 2018-03-14 2018-09-04 北京思特奇信息技术股份有限公司 A kind of management method and system of distribution Nginx servers
CN109343963A (en) * 2018-10-30 2019-02-15 杭州数梦工场科技有限公司 A kind of the application access method, apparatus and relevant device of container cluster

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986608A (en) * 2014-05-29 2014-08-13 浪潮电子信息产业股份有限公司 J2EE application virtualization management method based on Itanium Linux application containers
CN105577779A (en) * 2015-12-21 2016-05-11 用友网络科技股份有限公司 Method and system for containerized deployment of large enterprise private cloud
CN105681217A (en) * 2016-04-27 2016-06-15 深圳市中润四方信息技术有限公司 Dynamic load balancing method and system for container cluster
CN105979009A (en) * 2016-07-06 2016-09-28 乾云众创(北京)信息科技研究院有限公司 Method for automatically balancing increased load of cloud application container
CN106789287A (en) * 2016-12-28 2017-05-31 华为技术有限公司 Front end load balanced device, back-end server and register method
CN106790595A (en) * 2016-12-29 2017-05-31 上海理想信息产业(集团)有限公司 A kind of Docker containers active load balancer and method
CN107105061A (en) * 2017-05-31 2017-08-29 北京中电普华信息技术有限公司 A kind of service registry method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986608A (en) * 2014-05-29 2014-08-13 浪潮电子信息产业股份有限公司 J2EE application virtualization management method based on Itanium Linux application containers
CN105577779A (en) * 2015-12-21 2016-05-11 用友网络科技股份有限公司 Method and system for containerized deployment of large enterprise private cloud
CN105681217A (en) * 2016-04-27 2016-06-15 深圳市中润四方信息技术有限公司 Dynamic load balancing method and system for container cluster
CN105979009A (en) * 2016-07-06 2016-09-28 乾云众创(北京)信息科技研究院有限公司 Method for automatically balancing increased load of cloud application container
CN106789287A (en) * 2016-12-28 2017-05-31 华为技术有限公司 Front end load balanced device, back-end server and register method
CN106790595A (en) * 2016-12-29 2017-05-31 上海理想信息产业(集团)有限公司 A kind of Docker containers active load balancer and method
CN107105061A (en) * 2017-05-31 2017-08-29 北京中电普华信息技术有限公司 A kind of service registry method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
遥望星空: "服务发现:Zookeeper vs etcd vs consul", 《博客园》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494589A (en) * 2018-03-14 2018-09-04 北京思特奇信息技术股份有限公司 A kind of management method and system of distribution Nginx servers
CN108494589B (en) * 2018-03-14 2021-05-14 北京思特奇信息技术股份有限公司 Management method and system of distributed Nginx server
CN109343963A (en) * 2018-10-30 2019-02-15 杭州数梦工场科技有限公司 A kind of the application access method, apparatus and relevant device of container cluster

Similar Documents

Publication Publication Date Title
US11080252B1 (en) Proxy hash table
US20180337860A1 (en) Fast adjusting load balancer
CN109787830A (en) Gray scale distribution control method, device, system, electronic equipment and storage medium
US20100153674A1 (en) Apparatus and method for managing process migration
US10241813B2 (en) Method and apparatus for patching
CN106656932A (en) Business processing method and device
US20200028942A1 (en) Managing network sockets
CN104113576A (en) Method and device for updating client
US11443032B2 (en) Stack pivot exploit detection and mitigation
US20150341221A1 (en) Customizing Network Configuration of Virtual Machines Using Subnet Mapping Rules
CN105245550A (en) Domain name hijacking judgment method and device
CN107635002A (en) A kind of access method and device of containerization application
JP6282217B2 (en) Anti-malware system and anti-malware method
CN101123493B (en) Secure inspection method and secure policy server for network access control application system
CN107463441A (en) A kind of number of threads control method and equipment
CN106021566A (en) Method, device and system for improving concurrent processing capacity of single database
CN106230623A (en) A kind of VIM site selection method and device
WO2023155587A1 (en) Information updating method, micro-service system, and computer-readable storage medium
US20090328229A1 (en) System, method and computer program product for performing a data protection operation
US8560572B2 (en) System for lightweight objects
US20190213268A1 (en) Dynamic subtree pinning in storage systems
US8090997B2 (en) Run-time fault resolution from development-time fault and fault resolution path identification
KR101650287B1 (en) File access control system based on volume guid and method thereof
US20110209141A1 (en) Managing a user proxy configuration in a daemon that frequently loads and unloads and is used by multiple users simultaneously
JP5478372B2 (en) Guest OS control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180126