CN108243055A - A kind of container cloud is found and Accreditation System and method automatically - Google Patents

A kind of container cloud is found and Accreditation System and method automatically Download PDF

Info

Publication number
CN108243055A
CN108243055A CN201611229887.7A CN201611229887A CN108243055A CN 108243055 A CN108243055 A CN 108243055A CN 201611229887 A CN201611229887 A CN 201611229887A CN 108243055 A CN108243055 A CN 108243055A
Authority
CN
China
Prior art keywords
container
information
destroyed
application
increasing device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611229887.7A
Other languages
Chinese (zh)
Other versions
CN108243055B (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang 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 China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201611229887.7A priority Critical patent/CN108243055B/en
Publication of CN108243055A publication Critical patent/CN108243055A/en
Application granted granted Critical
Publication of CN108243055B publication Critical patent/CN108243055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1029Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1031Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests

Abstract

It is found and Accreditation System and method automatically the embodiment of the invention discloses a kind of container cloud.System includes:Load equalizer for receiving network request, and calls corresponding container according to network request from container resource pool;For obtaining the state change information of container resource pool, the information of container of new volume increasing device and/or container to be destroyed is obtained according to state change information for information of container collection module;Service register module, for being configured information of container to load equalizer.The embodiment of the present invention is by building the automatic framework found with registration, when occurring container variation in container resource pool, the state change information of automatic collection vessel resource pool, and the information of container of new volume increasing device and/or container to be destroyed is configured to load equalizer automatically, achieve the purpose that find automatically, register automatically, compared with prior art, the demand of the quick dynamic change of the Internet, applications is adapted to, improves O&M the degree of automation.

Description

A kind of container cloud is found and Accreditation System and method automatically
Technical field
The present embodiments relate to fields of communication technology, and in particular to a kind of container cloud is found and Accreditation System and side automatically Method.
Background technology
Cloud computing is a kind of emerging distributed computing platform, it by internet for remote user provide on demand it is low into The telescopic computing resource of sheet, high reliability, scale and service.Cloud platform management, virtual technology, task scheduling, QoS guarantee, Research emphasis and difficult point that automatic registration management etc. has become cloud computing are protected and serviced to security and privacy.Wherein, it applies The registration of service can directly affect the service expansion capability of cloud platform and the timely ability of discovery of application service.
Current traditional application model such as Fig. 1 based on cloud service on the market.Entire application environment system is broadly divided into four Layer, client layer 110, hard load balancing 120, application layer 130 and infrastructure layer 140.Wherein, the carrying of infrastructure layer 140 should Basic medium and network demand;Application layer 130 is the application program of operation;Hard load layer 120 generally comprise F5, Array, Radware is mainly responsible for the functions such as registration and the load balancing of application service;The client layer 110 of top layer mainly includes common User 112 is to the access of application and operation maintenance personnel 111 to operation and maintenance of entire environment etc..
During the embodiment of the present invention is realized, inventor has found to can see in entire application system environment, should All it is in static configuration to hardware load with the log-on message of service, it, can not be automatically right whenever application server increase Application service and needs operation maintenance personnel to carry out application service information configuration in hard load manually into the registration of row information, and works as When application server is reduced, also need operation maintenance personnel and carry out the configuration that application service is exited in hard load manually.This for General application system is feasible and simply and easily, but will become complex for internet hot spots application and be difficult to tie up Shield.Since the characteristics of internet hot spots are applied is application access amount in the short time in explosive growth, and the fluctuation of visit capacity Property it is big, regularity is small.It is manually abnormal numerous and diverse to the mechanism of application service registration that such application characteristic, which has been doomed operation maintenance personnel, And the rhythm of application access fluctuation can not be kept up with completely, while the paralysis that will at will face entire application system.
Invention content
One purpose of the embodiment of the present invention is to solve the prior art not meeting the rhythm of application access fluctuation, and then The problem of entire application system may be caused to paralyse.
The embodiment of the present invention proposes a kind of container cloud discovery and Accreditation System automatically, including:Load equalizer, container letter Cease collection module and service register module;
The load equalizer for receiving network request, and is called according to the network request from container resource pool Corresponding container;
The information of container collection module, for obtaining the state change information of the container resource pool, according to the shape State change information obtains the information of container of new volume increasing device and/or container to be destroyed;
The service register module, for being configured the information of container of new volume increasing device and/or container to be destroyed to described negative Carry balanced device.
Optionally, the system also includes:First checks module;
Described first checks module, is arranged between the information of container collection module and the service register module, uses The information of container received in basis obtains the health examination path URL applied in new volume increasing device, and according to health examination path URL carries out health examination to the application, if the application is sent out the information of container of the new volume increasing device by health examination It send to the service register module;
Correspondingly, the information of container collection module is additionally operable to the information of container of new volume increasing device being sent to described first Check module.
Optionally, the system also includes:Second checks module;
Described second checks module, is arranged between the information of container collection module and the service register module, uses In the quantity N that container to be destroyed is obtained according to the information of container received;The quantity M of container of the comparison under an inactive state With the quantity N of container to be destroyed, and corresponding preset strategy is selected to send out the information of container of container to be destroyed according to comparing result It send to the service register module;
Correspondingly, the information of container collection module is additionally operable to obtain the session control sessionID that all containers preserve Active state, and the number of containers M in an inactive state is obtained according to the active state of sessionID, and will be in non- The information of container of the container of active state and container to be destroyed is sent to described second and checks module.
The embodiment of the present invention proposes a kind of container cloud based on above system discovery and register method automatically, including:
Obtain the state change information of container resource pool;
The information of container of new volume increasing device and/or the information of container of container to be destroyed are obtained according to the state change information;
The information of container of new volume increasing device and/or container to be destroyed is configured to load equalizer.
Optionally, it is configured by the information of container of new volume increasing device to before the load equalizer, the method further includes:
The health examination path URL applied in new volume increasing device is obtained according to the information of container;
Health examination is carried out to the application in the new volume increasing device according to health examination path URL;
Correspondingly, the information of container by new volume increasing device is configured to the load equalizer and includes:
When application in the new volume increasing device passes through health examination, the information of container of the new volume increasing device is configured to institute State load equalizer.
Optionally, it is described that the new volume increasing device progress health examination is included according to health examination path URL:
Searched from pre-established database according to the id information carried in information of container obtain applied in new volume increasing device it is strong Health checks path URL;
Using curl methods, judge whether the application access is normal according to the URL, if so, confirming the application Pass through health examination;
Wherein, there is the correspondence between id information and URL in the pre-established database.
Optionally, it is described to use curl methods, judge whether the application access normally includes according to the URL:
Accession page order is generated according to the URL;
First step is performed, the first step includes:Call the order of the application execution accession page in new volume increasing device;
If detection knows that described apply normally starts within default transit time, confirm that the application is normal;
If detection knows that described apply fails in the default transit time content start, second step is performed, it is described Second step includes:When preset interval time reaches, order described in the application execution is called again;If it is again started up losing It loses, then records the number for starting failure, and repeat the first step;If detection knows that the application starts time of failure Number, which is more than or equal to, presets maximum allowable number, then restarts the application, repeats second step, and records time restarted Number;
If detection knows that the number that the application is restarted restarts number more than or equal to default maximum and the application is equal Start failure, then confirm that the application access is abnormal.
Optionally, it is configured by the information of container of container to be destroyed to before the load equalizer, the method is also wrapped It includes:
Obtain the active state for the session control sessionID that all containers preserve;
Number of containers M in an inactive state is obtained according to the active state of sessionID;
The quantity M of container and the quantity N of to be destroyed container of the comparison under an inactive state;
Correspondingly, the information of container by container to be destroyed is configured to the load equalizer and includes:
Select corresponding preset strategy that the information of container of container to be destroyed is sent to service registration mould according to comparing result Block.
Optionally, it is described corresponding preset strategy to be selected to be sent to the information of container of container to be destroyed according to comparing result Service register module includes:
If M is known in comparison>The information of container of N number of container to be destroyed is then sent to the service register module by N;
Alternatively,
If M≤N is known in comparison, the information of container of M containers to be destroyed is sent to the service register module;
It is migrated by the sessionID in remaining N-M containers to be destroyed into the container resource pool except to be destroyed After container except container, the information of container of remaining N-M containers to be destroyed is sent to the service register module.
Optionally, the sessionID by remaining N-M containers to be destroyed is migrated in addition to container to be destroyed Container include:
Container in the container resource pool in addition to container to be destroyed is denoted as transportable container;
Third step is performed, the third step includes:Compare the quantity of SessionID in transportable container, and according to Comparing result selects the minimum containers of sessionID from transportable container;
Four steps is performed, the four steps includes:By first of the first container M+1 in N-M containers to be destroyed A SessionID is synchronized to the container selected;
The third step and the four steps are repeated, until the last one SessionID of the container M+1 It synchronizes until finishing;
The container in N-M containers to be destroyed in addition to the container M+1 is repeated successively the third step and The four steps is until the last one SessionID in N-M containers to be destroyed of container is synchronized and finished.
As shown from the above technical solution, a kind of container cloud that the embodiment of the present invention proposes is found and Accreditation System and side automatically Method is by building the automatic framework found with registration, when occurring container variation in container resource pool, automatic collection vessel resource The state change information in pond, and the information of container of new volume increasing device and/or container to be destroyed is configured to load equalizer automatically, it reaches To the automatic purpose for finding, registering automatically, compared with prior art, the demand of the quick dynamic change of the Internet, applications is adapted to, Improve O&M the degree of automation.
Description of the drawings
The features and advantages of the present invention can be more clearly understood by reference to attached drawing, attached drawing is schematically without that should manage It solves to carry out any restrictions to the present invention, in the accompanying drawings:
Fig. 1 shows the structure diagram of traditional application model based on cloud service in the prior art;
Find the structural representation with Accreditation System automatically Fig. 2 shows a kind of container cloud that one embodiment of the invention provides Figure;
Fig. 3 shows that a kind of container cloud that another embodiment of the present invention provides finds the structural representation with Accreditation System automatically Figure;
Fig. 4 shows that a kind of container cloud that one embodiment of the invention provides finds to illustrate with the flow of register method automatically Figure;
Fig. 5 shows that a kind of container cloud that another embodiment of the present invention provides finds to illustrate with the flow of register method automatically Figure;
Fig. 6 shows that a kind of container cloud that further embodiment of this invention provides finds to illustrate with the flow of register method automatically Figure.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Find the structural representation with Accreditation System automatically Fig. 2 shows a kind of container cloud that one embodiment of the invention provides Figure, referring to Fig. 2, which includes:Load equalizer 210, information of container collection module 230 and service register module 220 are wherein;
Service register module 220 connects the load equalizer 210 and the information of container collection module 230 respectively;
The load equalizer 210, for passing through reception network request, and according to the network request from container resource pool It is middle to call corresponding container;
It should be noted that load equalizer 210 after network request is received, can be distributed to network request one clothes Available application services device in business device cluster gets on, that is, calls cell therefor, by managing the web data flow entered and increasing Add the hardware device of effective network bandwidth, reach so that web visitor obtains best networking experience.
The information of container collection module 230, for obtaining the state change information of the container resource pool, according to described State change information obtains the information of container of new volume increasing device and/or container to be destroyed;
The service register module 220, for being configured the information of container of new volume increasing device and/or container to be destroyed to described Load equalizer 210.
It should be noted that when container newly-increased and/or to be destroyed occurs in container resource pool, information of container collection module 230 by the state change information of monitor collection vessel resource pool, and state change information is analyzed newly-increased to obtain The information of container of container and/or container to be destroyed, and pass through service register module 220 by analyze obtain information of container be configured to In load equalizer 210, so that load equalizer 210 increases information of container and/or is deleted from management list or platform Except information of container.
It is understandable to be, the identification information of application and newly-increased/destruction instruction of user are carried in state change information, into And new volume increasing device and container to be destroyed can be distinguished.
As it can be seen that the present embodiment is by building the automatic framework found with registration, when occurring container variation in container resource pool When, the state change information of automatic collection vessel resource pool, and automatically by new volume increasing device and/or the information of container of container to be destroyed Configuration achievees the purpose that find automatically, register automatically, compared with prior art, adapt to the Internet, applications to load equalizer The demand of quick dynamic change, improves O&M the degree of automation.
Fig. 3 shows that a kind of container cloud that another embodiment of the present invention provides finds the structural representation with Accreditation System automatically Figure, referring to Fig. 3, which includes:Load equalizer 310, first checks that module 320, second checks module 330, service registration Module 340 and information of container collection module 360, wherein;
Load equalizer 310 and service register module 340 respectively with the load equalizer 210 in Fig. 2 corresponding embodiments and Service register module 220 is corresponding, and operation principle is identical, therefore, not reinflated explanation, identical content please refer to Fig. 2 pairs herein Answer the relevant statements in embodiment.
The difference lies in the first inspection module 320 and second checks that module 330 is all provided with to embodiment corresponding with Fig. 2 It puts between the information of container collection module 350 and the service register module 340.
After information of container collection module 350 gets information of container, the information of container of new volume increasing device will be sent to first It checks module 320, the health examination path URL applied in new volume increasing device is obtained according to information of container by the first inspection module 320, And health examination is carried out to the application according to health examination path URL, if the application described will be answered by health examination The service register module 340 is sent to corresponding information of container;If not over health examination, container letter is not sent Breath.
If information collection module 350 analyzes the information of container for knowing that information of container is container to be destroyed, by information of container The second inspection module 330 is sent to, obtains the number of container to be destroyed according to the information of container received by the second inspection module 330 Measure N;The quantity M of container and the quantity N of to be destroyed container of the comparison under an inactive state, and according to comparing result selection pair The information of container of container to be destroyed is sent to the service register module by the preset strategy answered;
Correspondingly, on the basis of the information of container collection module 230 in the corresponding embodiments of Fig. 2, in the present embodiment Information of container collection module 360 is additionally operable to obtain the active state for the session control sessionID that all containers preserve, and according to The active state of sessionID obtains the number of containers M in an inactive state, and by the container in an inactive state and treats The information of container for destroying container is sent to the second inspection module.
As it can be seen that the present embodiment is to newly-increased information of container by carrying out health examination, therefrom to filter out abnormal container Information avoids the corresponding container of the abnormal information of container caused by abnormal information of container is configured to load equalizer can not Caused by called, startup either can not realize its function the problems such as the system failure, collapse;In addition, the present embodiment also passes through Conversate to the container letter of container to be destroyed inspection, to perform the operation for destroying information of container after sessionID fails, keeps away Exempt from the situation that user is directly kicked out of application server.
Fig. 4 shows that a kind of container cloud that one embodiment of the invention provides finds to illustrate with the flow of register method automatically Figure, referring to Fig. 4, based on the system shown in above-described embodiment, this method includes:
410th, the state change information of container resource pool is obtained;
420th, the state change information is analyzed, obtains the information of container of new volume increasing device and/or container to be destroyed Information of container;
430th, the information of container of new volume increasing device and/or container to be destroyed is configured to the load equalizer.
As it can be seen that framework of the present embodiment based on automatic discovery with registration, when occurring container variation in container resource pool, from The state change information of dynamic collection vessel resource pool, and the information of container of new volume increasing device and/or container to be destroyed is configured automatically To load equalizer, achieve the purpose that find automatically, register automatically, compared with prior art, it is quick to adapt to the Internet, applications The demand of dynamic change improves O&M the degree of automation.
Fig. 5 shows that a kind of container cloud that another embodiment of the present invention provides finds to illustrate with the flow of register method automatically Figure, referring to Fig. 5, this method includes:
510th, the state change information of collection vessel resource pool;
520th, state change information is analyzed, the corresponding IP of host and port information port of container application is obtained, when newly-increased During container, then step 530 is performed;When destroying container, then step 560 is performed;
530th, the health examination path URL applied in new volume increasing device is obtained according to the information of container;
540th, health examination is carried out to the application in the new volume increasing device according to health examination path URL;
Know that application in the new volume increasing device by health examination, performs step 590, task is complete if the 550, checking Into;If using not over health examination, then it is assumed that terminate;
560th, the user conversation control sessionID of container application is obtained;
570th, judge whether sessionID fails, if so, performing step 590, task is completed;
580th, if it is not, then waiting for preset time, and judge whether sessionID fails again when preset time reaches; Waiting, judgment step are repeated, until sessionID fails;
590th, information of container is configured to load equalizer.
As it can be seen that the present embodiment is to newly-increased information of container by carrying out health examination, therefrom to filter out abnormal container Information avoids the corresponding container of the abnormal information of container caused by abnormal information of container is configured to load equalizer can not Caused by called, startup either can not realize its function the problems such as the system failure, collapse;In addition, the present embodiment pass through it is right The container letter of container to be destroyed conversates inspection, to perform the operation for destroying information of container after sessionID fails, avoids User is directly kicked out of the situation of application server.
Fig. 6 shows that a kind of container cloud that further embodiment of this invention provides finds to illustrate with the flow of register method automatically Figure, referring to Fig. 6, this method includes following four step:
610th, information of container is collected;
The state change information of the container resource pool of monitor acquisition is obtained, state change information is analyzed, is obtained The information of container of new volume increasing device and/or container to be destroyed;
620th, health examination;
Its Integral Thought is:It is searched from pre-established database according to the id information carried in information of container and obtains new increase-volume The health examination path URL applied in device;Using curl methods, judge whether the application access is normal according to the URL, if It is then to confirm that the application passes through health examination;Wherein, there be pair between id information and URL in the pre-established database It should be related to.
Specifically include following steps:
621st, health examination is carried out to the application in container;
622nd, judge whether health examination passes through, if so, performing step 641;If it is not, then perform step 623;
Step 621 and step 622 are specially:
Accession page order is generated according to the URL;First step is performed, the first step includes:Call new increase-volume Device performs the order of accession page;If detection knows that the new volume increasing device normally starts within default transit time, institute is confirmed It states using normally, passes through health examination, perform step 641;
If detection knows that described apply fails in the default transit time content start, then second step is performed, institute Second step is stated to include:When preset interval time reaches, order described in the application execution is called again;If it is again started up losing It loses, then records the number for starting failure, and repeat first step;It is big that if detection knows that the application starts the number to fail In or equal to preset maximum allowable number, then the application is restarted, repeat second step, and record the number restarted, Perform step 623.
623rd, judge to restart frequency n using restarting number and whether be more than or equal to default maximum, and if the application Start failure, then confirm that the application access is abnormal, the step of termination to load equalizer dispensing containers information;If it is not, then Perform step 624.
624th, the application is restarted, to perform above-mentioned steps 621 and step 622.
It should be noted that judge that whether normal the specific of strategy of application access performs step above by curl methods Including:Obtain the health examination path of application;curl http:// [health examination path] (uses http protocol);Transition is set Time gracePeriodSeconds parameter, Parameter units are the second, after the normally startup within parameter value values is applied not Carry out health examination;Interval time intervalSeconds parameter is set, and Parameter units are the second, when application health inspection for the first time After looking into unsuccessfully, the time interval of health examination next time is how many second;Maximum allowable time timeoutSeconds ginsengs are set Number, Parameter units are the second, when health examination does not receive return value more than how many second, then it is assumed that this time health examination failure; Maximum allowable number maxConsecutiveFailures parameters are set, and Parameter units are secondary, and the number of continuous health examination surpasses After crossing the value values of the parameter and failing, then the application container is restarted;Setting maximum restarts number maxRestarts parameters, Parameter units are secondary, represent that health examination fails after restarting how many times, then terminates the application container, and confirm healthy inspection It looks into and does not pass through, task termination.
630th, session information inspection;
Its Integral Thought is:Obtain the active state for the session control sessionID that all containers preserve;According to The active state of sessionID obtains the number of containers M in an inactive state;Container of the comparison under an inactive state The quantity N of quantity M and container to be destroyed;Corresponding preset strategy is selected by the information of container of container to be destroyed according to comparing result It is sent to service register module.
Specifically include following steps:
631st, the sessionID applied on container is checked, obtains the quantity M of the container under an inactive state With the quantity N of container to be destroyed;
632nd, judge whether to meet destruction condition, if so, performing step 641;If it is not, then repeat step 631;
If M is known in comparison>The information of container of N number of container to be destroyed is then sent to the service register module by N;
Alternatively,
If M≤N is known in comparison, the information of container of M containers to be destroyed is sent to the service register module;It is inciting somebody to action SessionID in remaining N-M containers to be destroyed migrates the appearance into the container resource pool in addition to container to be destroyed After device, the information of container of remaining N-M containers to be destroyed is sent to the service register module.
The rule of migration includes:
Container in the container resource pool in addition to container to be destroyed is denoted as transportable container;
Third step is performed, the third step includes:Compare the quantity of SessionID in transportable container, and according to Comparing result selects the minimum containers of sessionID from transportable container;
Four steps is performed, the four steps includes:By first of the first container M+1 in N-M containers to be destroyed A SessionID is synchronized to the container selected;
The third step and the four steps are repeated, until the last one SessionID of the container M+1 It synchronizes until finishing;
The container in N-M containers to be destroyed in addition to the container M+1 is repeated successively the third step and The four steps is until the last one SessionID in N-M containers to be destroyed of container is synchronized and finished.
The rule of migration can be regarded as:
First, first container to be destroyed in N-M containers to be destroyed is migrated, specifically included:
S1, first SessionID of the first container M+1 in N-M containers to be destroyed is synchronized to what is selected Container selects the container that SessionID is minimum in transportable container again;
S2, second SessionID of the first container M+1 in N-M containers to be destroyed is synchronized to newest selection The container gone out selects the container that SessionID is minimum in transportable container again;
S3, step S1 and S2 are repeated, until the last one SessionID of container M+1, which is synchronized, to be finished;
Then, it is migrated, is specifically included according to second container M+2 of sequence pair:
S4, first SessionID of the first container M+2 in N-M containers to be destroyed is synchronized to newest selection The container gone out selects the container that SessionID is minimum in transportable container again;
S5, the 2nd SessionID of the first container M+2 in N-M containers to be destroyed is synchronized to newest select Container, select the container that SessionID is minimum in transportable container again;
S6, step S4 and S5 are repeated, until the last one SessionID of container M+2, which is synchronized, to be finished;
Then, the migration step according to first container M+1 and second container M+2, successively to container M+3 to M+ (N- M it) is migrated, until the last one SessionID in N-M containers to be destroyed of container, which is synchronized, to be finished.
640th, service registration;
641st, information on services (information of container) is registered;
Information on services loading on load equalizer is laid equal stress on and carries load equalizer so that load equalizer can be timely Obtain the relevant information of application service.
As it can be seen that the present embodiment carries out information on services registration to load balancing in time by above-mentioned steps, can find in time It services and shares the load pressure entirely applied, simultaneously because without manually registering, improve O&M the degree of automation The operating pressure of operation maintenance personnel is alleviated simultaneously.
For method embodiment, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but ability Field technique personnel should know that embodiment of the present invention is not limited by described sequence of movement, because according to the present invention Embodiment, certain steps may be used other sequences or are carried out at the same time.Secondly, those skilled in the art should also know, Embodiment described in this description belongs to preferred embodiment, involved action embodiment party not necessarily of the present invention Necessary to formula.
The all parts embodiment of the present invention can be with hardware realization or to be transported on one or more processor Capable software module is realized or is realized with combination thereof.In the present apparatus, PC is by realizing internet to equipment or device The step of remote control, accurately control device or device each operate.The present invention is also implemented as performing here The some or all equipment or program of device of described method are (for example, computer program and computer program production Product).The program of the present invention, which is achieved, may be stored on the computer-readable medium, and the file or document tool that program generates Having can be statistical, generates data report and cpk reports etc., and batch testing can be carried out to power amplifier and is counted.On it should be noted that Stating embodiment, the present invention will be described rather than limits the invention, and those skilled in the art are not departing from Replacement embodiment can be designed in the case of attached the scope of the claims.It in the claims, should not will be between bracket Any reference mark be configured to limitations on claims.Word "comprising" does not exclude the presence of member not listed in the claims Part or step.Word "a" or "an" before element does not exclude the presence of multiple such elements.The present invention can borrow Help the hardware for including several different elements and realized by means of properly programmed computer.If listing equipment for drying Unit claim in, several in these devices can be embodied by same hardware branch.Word first, Second and the use of third etc. do not indicate that any sequence.These words can be construed to title.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used To modify to the technical solution recorded in foregoing embodiments or carry out equivalent replacement to which part technical characteristic; And these modification or replace, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of container cloud is found automatically and Accreditation System, which is characterized in that including:Load equalizer, information of container collect mould Block and service register module;
The load equalizer for receiving network request, and calls correspondence according to the network request from container resource pool Container;
The information of container collection module for obtaining the state change information of the container resource pool, becomes according to the state Change the information of container of the new volume increasing device of acquisition of information and/or container to be destroyed;
The service register module, it is equal to the load for being configured the information of container of new volume increasing device and/or container to be destroyed Weighing apparatus.
2. system according to claim 1, which is characterized in that the system also includes:First checks module;
Described first checks module, is arranged between the information of container collection module and the service register module, for root Obtain the health examination path URL applied in new volume increasing device according to the information of container that receives, and according to URL pairs of health examination path The application carries out health examination, if the information of container of the new volume increasing device is sent to by the application by health examination The service register module;
Correspondingly, the information of container collection module is additionally operable to the information of container of new volume increasing device being sent to first inspection Module.
3. system according to claim 1, which is characterized in that the system also includes:Second checks module;
Described second checks module, is arranged between the information of container collection module and the service register module, for root The quantity N of container to be destroyed is obtained according to the information of container received;It compares the quantity M of the container under an inactive state and treats The quantity N of container is destroyed, and corresponding preset strategy is selected to be sent to the information of container of container to be destroyed according to comparing result The service register module;
Correspondingly, the information of container collection module is additionally operable to obtain the work for the session control sessionID that all containers preserve Jump state, and the number of containers M in an inactive state is obtained, and will be in inactive according to the active state of sessionID The information of container of the container of state and container to be destroyed is sent to described second and checks module.
4. a kind of container cloud based on any one of the claims 1-3 systems is found automatically and register method, feature It is, including:
Obtain the state change information of container resource pool;
The information of container of new volume increasing device and/or the information of container of container to be destroyed are obtained according to the state change information;
The information of container of new volume increasing device and/or container to be destroyed is configured to load equalizer.
5. it according to the method described in claim 4, it is characterized in that, is configured by the information of container of new volume increasing device to the load Before balanced device, the method further includes:
The health examination path URL applied in new volume increasing device is obtained according to the information of container;
Health examination is carried out to the application in the new volume increasing device according to health examination path URL;
Correspondingly, the information of container by new volume increasing device is configured to the load equalizer and includes:
When application in the new volume increasing device passes through health examination, the information of container of the new volume increasing device is configured to described negative Carry balanced device.
6. according to the method described in claim 5, it is characterized in that, it is described according to health examination path URL to the new increase-volume Device carries out health examination and includes:
The health inspection for obtaining and being applied in new volume increasing device is searched from pre-established database according to the id information carried in information of container Look into path URL;
Using curl methods, judge whether the application access is normal according to the URL, if so, confirming that the application passes through Health examination;
Wherein, there is the correspondence between id information and URL in the pre-established database.
7. according to the method described in claim 6, it is characterized in that, described use curl methods, according to judging the URL Whether application access normally includes:
Accession page order is generated according to the URL;
First step is performed, the first step includes:Call the order of the application execution accession page in new volume increasing device;
If detection knows that described apply normally starts within default transit time, confirm that the application is normal;
If detection knows that described apply fails in the default transit time content start, second step is performed, described second Step includes:When preset interval time reaches, order described in the application execution is called again;If being again started up failure, Record starts the number of failure, and repeats the first step;It is big that if detection knows that the application starts the number to fail In or equal to preset maximum allowable number, then the application is restarted, repeat second step, and record the number restarted;
If detection knows that the number that the application is restarted restarts number more than or equal to default maximum and the application starts Failure then confirms that the application access is abnormal.
8. it according to the method described in claim 4, it is characterized in that, is configured by the information of container of container to be destroyed to described negative Before carrying balanced device, the method further includes:
Obtain the active state for the session control sessionID that all containers preserve;
Number of containers M in an inactive state is obtained according to the active state of sessionID;
The quantity M of container and the quantity N of to be destroyed container of the comparison under an inactive state;
Correspondingly, the information of container by container to be destroyed is configured to the load equalizer and includes:
Select corresponding preset strategy that the information of container of container to be destroyed is sent to service register module according to comparing result.
9. according to the method described in claim 8, it is characterized in that, described select corresponding preset strategy will according to comparing result The information of container of container to be destroyed is sent to service register module and includes:
If M is known in comparison>The information of container of N number of container to be destroyed is then sent to the service register module by N;
If M≤N is known in comparison, the information of container of M containers to be destroyed is sent to the service register module;It will be left N-M containers to be destroyed in sessionID migrate the container into the container resource pool in addition to container to be destroyed after, The information of container of remaining N-M containers to be destroyed is sent to the service register module.
10. according to the method described in claim 9, it is characterized in that, described will be in remaining N-M containers to be destroyed SessionID, which is migrated to the container in addition to container to be destroyed, to be included:
Container in the container resource pool in addition to container to be destroyed is denoted as transportable container;
Third step is performed, the third step includes:The quantity of SessionID in transportable container is compared, and according to comparison As a result the minimum containers of sessionID are selected from transportable container;
Four steps is performed, the four steps includes:By first of the first container M+1 in N-M containers to be destroyed SessionID is synchronized to the container selected;
The third step and the four steps are repeated, until the last one SessionID of the container M+1 is synchronized Until finishing;
The third step and described is repeated to the container in N-M containers to be destroyed in addition to the container M+1 successively Four steps is until the last one SessionID in N-M containers to be destroyed of container is synchronized and finished.
CN201611229887.7A 2016-12-27 2016-12-27 Container cloud automatic discovery and registration system and method Active CN108243055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611229887.7A CN108243055B (en) 2016-12-27 2016-12-27 Container cloud automatic discovery and registration system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611229887.7A CN108243055B (en) 2016-12-27 2016-12-27 Container cloud automatic discovery and registration system and method

Publications (2)

Publication Number Publication Date
CN108243055A true CN108243055A (en) 2018-07-03
CN108243055B CN108243055B (en) 2021-07-27

Family

ID=62701673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611229887.7A Active CN108243055B (en) 2016-12-27 2016-12-27 Container cloud automatic discovery and registration system and method

Country Status (1)

Country Link
CN (1) CN108243055B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918116A (en) * 2019-03-12 2019-06-21 中国工商银行股份有限公司 O&M object support method and system
CN110445861A (en) * 2019-08-07 2019-11-12 上海浦东发展银行股份有限公司信用卡中心 A kind of container cloud platform service registration discovery method based on F5 adapter
CN110535717A (en) * 2019-08-16 2019-12-03 济南浪潮数据技术有限公司 A kind of container detection method and device
CN111414203A (en) * 2020-03-14 2020-07-14 北京数巫大数据研究院有限公司 Intelligent data ET L task operating system
CN112749050A (en) * 2019-10-29 2021-05-04 中国移动通信集团浙江有限公司 Micro-service-framework-based safety circuit breaking method and device and computing equipment
CN112911008A (en) * 2021-02-04 2021-06-04 中国工商银行股份有限公司 Cloud computing container online and offline method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120331113A1 (en) * 2011-06-27 2012-12-27 Microsoft Corporation Resource management for cloud computing platforms
CN104950757A (en) * 2015-06-12 2015-09-30 北京奇虎科技有限公司 Container monitoring method and system
CN105515864A (en) * 2015-12-11 2016-04-20 深圳市中润四方信息技术有限公司 Container resource adaptive adjustment method and container resource adaptive adjustment system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120331113A1 (en) * 2011-06-27 2012-12-27 Microsoft Corporation Resource management for cloud computing platforms
CN104950757A (en) * 2015-06-12 2015-09-30 北京奇虎科技有限公司 Container monitoring method and system
CN105515864A (en) * 2015-12-11 2016-04-20 深圳市中润四方信息技术有限公司 Container resource adaptive adjustment method and container resource adaptive adjustment system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918116A (en) * 2019-03-12 2019-06-21 中国工商银行股份有限公司 O&M object support method and system
CN110445861A (en) * 2019-08-07 2019-11-12 上海浦东发展银行股份有限公司信用卡中心 A kind of container cloud platform service registration discovery method based on F5 adapter
CN110445861B (en) * 2019-08-07 2021-10-22 上海浦东发展银行股份有限公司信用卡中心 Container cloud platform service registration discovery method based on F5 adapter
CN110535717A (en) * 2019-08-16 2019-12-03 济南浪潮数据技术有限公司 A kind of container detection method and device
CN110535717B (en) * 2019-08-16 2021-10-15 济南浪潮数据技术有限公司 Container detection method and device
CN112749050A (en) * 2019-10-29 2021-05-04 中国移动通信集团浙江有限公司 Micro-service-framework-based safety circuit breaking method and device and computing equipment
CN112749050B (en) * 2019-10-29 2023-04-07 中国移动通信集团浙江有限公司 Micro-service-framework-based safety circuit breaking method and device and computing equipment
CN111414203A (en) * 2020-03-14 2020-07-14 北京数巫大数据研究院有限公司 Intelligent data ET L task operating system
CN112911008A (en) * 2021-02-04 2021-06-04 中国工商银行股份有限公司 Cloud computing container online and offline method and device

Also Published As

Publication number Publication date
CN108243055B (en) 2021-07-27

Similar Documents

Publication Publication Date Title
CN108243055A (en) A kind of container cloud is found and Accreditation System and method automatically
CN105245373B (en) A kind of container cloud platform system is built and operation method
US9532225B2 (en) Secure pairing of end user devices with instruments
US8862928B2 (en) Techniques for achieving high availability with multi-tenant storage when a partial fault occurs or when more than two complete faults occur
US11405259B2 (en) Cloud service transaction capsulation
CN104636678B (en) The method and system of management and control is carried out under a kind of cloud computing environment to terminal device
US11190431B2 (en) Prioritized client-server communications based on server health
RU2628496C2 (en) Method and device of partial updates
CN104410674B (en) A kind of WEB session synchronization methods of single-node login system
CN106034137A (en) Intelligent scheduling method for distributed system, and distributed service system
CN106936623A (en) The management method of distributed cache system and cache cluster
CN107070752B (en) Testing method and testing system for long connection capacity
US10305974B2 (en) Ranking system
WO2014194704A1 (en) A grouping processing method and system
WO2017206678A1 (en) Information acquisition method and device
CN109684155A (en) Monitor configuration method, device, equipment and readable storage medium storing program for executing
US8060592B1 (en) Selectively updating network devices by a network management application
US20230239293A1 (en) Probe-based risk analysis for multi-factor authentication
Dadashi Gavaber et al. BADEP: bandwidth and delay efficient application placement in fog‐based IoT systems
CN109947844B (en) Medical data management system based on medical block chain
CN103731287A (en) Method for selecting server to take over fault server
CN107666401B (en) Configuration information acquisition method and terminal
CN103731289A (en) Method for automatic expansion of network server
CN108039956A (en) Using monitoring method, system and computer-readable recording medium
CN107276857A (en) A kind of method and device for monitoring flow

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