CN107465765A - A kind of intelligent use gateway realization method based on container cloud - Google Patents

A kind of intelligent use gateway realization method based on container cloud Download PDF

Info

Publication number
CN107465765A
CN107465765A CN201710858053.0A CN201710858053A CN107465765A CN 107465765 A CN107465765 A CN 107465765A CN 201710858053 A CN201710858053 A CN 201710858053A CN 107465765 A CN107465765 A CN 107465765A
Authority
CN
China
Prior art keywords
etcd
policyselector
taskexecutor
server
docker
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
CN201710858053.0A
Other languages
Chinese (zh)
Other versions
CN107465765B (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.)
Shenzhen Chaoyue Electronics Co.,Ltd.
Original Assignee
Shenzhen Aok Polytron Technologies Inc
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 Shenzhen Aok Polytron Technologies Inc filed Critical Shenzhen Aok Polytron Technologies Inc
Priority to CN201710858053.0A priority Critical patent/CN107465765B/en
Publication of CN107465765A publication Critical patent/CN107465765A/en
Application granted granted Critical
Publication of CN107465765B publication Critical patent/CN107465765B/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
    • 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/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of intelligent use gateway realization method based on container cloud, including Distributed Storage and high-availability cluster (etcd), dns server (skyDNS), configuration maker (confd), label getter (tagCollector), strategy selector (policySelector), task performer (taskExecutor), application gateway cluster can expand according to scale dynamic, each port can multiplex, and IP resource utilizations are greatly improved;The load balancing and dynamic adaptation of outlet can be realized by customized dispatching algorithm, improves cloud platform overall usability and performance.

Description

A kind of intelligent use gateway realization method based on container cloud
Technical field
The present invention relates to gateway technique field, more particularly to a kind of intelligent use gateway realization side of mouth based on container cloud Method.
Background technology
With the popularization of network, cloud computing and container technique, cloud application is presented the growth of explosion type, public network IP resource it is short Lack and increasingly show, although IPv6 technologies have occurred for many years, being limited to hardware and limitation of the technology, data center still uses mostly at present Public network IP v4 schemes, application and the man-to-man binding in port are realized by NAT.Although existing scheme can improve IP utilization rates, Port still be present and can not be multiplexed, complex management, availability are low etc.,
For application at present, an outer net IP port can only point to an intranet server, and overwhelming majority application needs logical 80,443 ports of http or https standards are crossed, as that can not be multiplexed, the wasting of resources can be produced, utilization rate is low, in addition, whole Individual data export centrally through a gateway, as gateway without intelligent trouble recover, automatic load balancing mechanism, then to service provide Produce considerable influence to produce, gateway availability issue:And NAT needs to do and map by hand, for keeper, not only maintenance workers Work amount is huge, while it is possible error to be also present.Especially in container platform, container IP address can more increase dimension with needing to change Protect workload.
The content of the invention
It is an object of the invention to overcome the above-mentioned problems in the prior art, there is provided the present invention provide it is a kind of efficiently, Simply, the intelligent use gateway of High Availabitity, solves the outer net outlet problem of cloud service.
To realize above-mentioned technical purpose and the technique effect, the present invention is to be achieved through the following technical solutions:
A kind of intelligent use gateway realization method based on container cloud, including Distributed Storage and high-availability cluster (etcd), dns server (skyDNS), configuration maker (confd), label getter (tagCollector), policy selection Device (policySelector), task performer (taskExecutor), the intelligent use gateway realization method are as follows:
1)The service such as etcd, confd, tagCollector, taskExecutor, skyDNS are being disposed at least on a server Service is affixed one's name on unexpected network server in office;
2)Into etcd /the new outer net IP the Resources lists of etcd/docker/publicIP additions.
3)The NAMESERVER of domain name is changed to cloud platform outer net dns address in domain name setting;
4)Each server judges whether oneself is etcd leader, if it is, starting by obtaining etcd states TagCollector, in the metadata information by regular pull containers cloud platform, obtain all containers labels data taglist.json;
5)TaskExecutor parses taglist.json, and with being contrasted (before in/etc/docker/allocator Distributor), if it find that be newly-increased domain name, to policySelector acquisition request outer nets address of service, PolicySelector configures according to strategy, an IP address in return/etcd/docker/publicIP;
6)TaskExecutor calls the confd for returning to IP places main frame, and the configuration that nginx is regenerated by main frame template is gone forward side by side The reload of row example, after success by etcd /etc/docker/allocator is updated, in final updating skyDNS The sensing of domain name and IP;
7)TaskExecutor periodically by cloud platform etcd /etc/docker/allocator is scanned, to protect The resource recorded in card allocator is consistent with reality, and by calling the performance API on nginx, carries out performance statistics.
Preferably, policySelector methods, the load-balancing method selected when being service routing, the load balancing Method passes through every server load condition of network measure (system load/TCP collection), preferential distribution to load Minimum main frame.
Preferably, the policySelector methods, selected when being service routing based on weight method, it is described to be based on Weight method is to be distributed by the weight setting in specified IP address by hand, and weight represents that numeral is bigger with 1-100 numerals It is bigger to represent weight.
Preferably, the policySelector methods, what is selected when being service routing is main based on close master scheduling method, parent Dispatching method is that identical rhizosphere name is preferentially dispatched to identical server.
Preferably, the policySelector methods, selected when being service routing based on stamp methods, based on label Method is that user directly specifies on the main frame being dispatched to where specific IP in the label.
The beneficial effects of the invention are as follows:
Application gateway cluster can expand according to scale dynamic, and each port can multiplex, and the use of IP resources is greatly improved Rate;The load balancing and dynamic adaptation of outlet can be realized by customized dispatching algorithm, improves cloud platform overall usability With performance.
Certainly, any product for implementing the present invention it is not absolutely required to reach all the above advantage simultaneously.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, used required for being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is present system architecture design block diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained all other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Referring to shown in Fig. 1, the present embodiment is a kind of intelligent use gateway realization method based on container cloud, including Distributed Storage and high-availability cluster (etcd), dns server (skyDNS), configuration maker (confd), label obtain Device (tagCollector), strategy selector (policySelector), task performer (taskExecutor), the intelligence Energy application gateway implementation method is as follows:
1)The service such as etcd, confd, tagCollector, taskExecutor, skyDNS are being disposed at least on a server Service is affixed one's name on unexpected network server in office;
2)Into etcd /the new outer net IP the Resources lists of etcd/docker/publicIP additions.
3)The NAMESERVER of domain name is changed to cloud platform outer net dns address in domain name setting;
4)Each server judges whether oneself is etcd leader, if it is, starting by obtaining etcd states TagCollector, in the metadata information by regular pull containers cloud platform, obtain all containers labels data taglist.json;
5)TaskExecutor parses taglist.json, and with being contrasted (before in/etc/docker/allocator Distributor), if it find that be newly-increased domain name, to policySelector acquisition request outer nets address of service, PolicySelector configures according to strategy, an IP address in return/etcd/docker/publicIP;
6)TaskExecutor calls the confd for returning to IP places main frame, and the configuration that nginx is regenerated by main frame template is gone forward side by side The reload of row example, after success by etcd /etc/docker/allocator is updated, in final updating skyDNS The sensing of domain name and IP;
7)TaskExecutor periodically by cloud platform etcd /etc/docker/allocator is scanned, to protect The resource recorded in card allocator is consistent with reality, and by calling the performance API on nginx, carries out performance statistics.
It is foregoing, policySelector methods, the load-balancing method selected when being service routing, the load balancing side Method is by every server load condition of network measure (system load/TCP collection), and preferential distribution to load is most Low main frame.
It is foregoing, the policySelector methods, selected when being service routing based on weight method, it is described based on power Weighing method is to be distributed by the weight setting in specified IP address by hand, and weight is represented with 1-100 numerals, numeral bigger generation Table weight is bigger.
It is foregoing, the policySelector methods, selected when being service routing based on close master scheduling method, close homophony Degree method is that identical rhizosphere name is preferentially dispatched to identical server.
It is foregoing, the policySelector methods, selected when being service routing based on stamp methods, based on label side Method is that user directly specifies on the main frame being dispatched to where specific IP in the label.
In the description of this specification, the description of reference term " one embodiment ", " example ", " specific example " etc. means At least one implementation of the present invention is contained in reference to specific features, structure, material or the feature that the embodiment or example describe In example or example.In this manual, identical embodiment or example are not necessarily referring to the schematic representation of above-mentioned term. Moreover, specific features, structure, material or the feature of description can close in any one or more embodiments or example Suitable mode combines.
Present invention disclosed above preferred embodiment is only intended to help and illustrates the present invention.Preferred embodiment is not detailed All details are described, it is only described embodiment also not limit the invention.Obviously, according to the content of this specification, It can make many modifications and variations.This specification is chosen and specifically describes these embodiments, is to preferably explain the present invention Principle and practical application so that skilled artisan can be best understood by and utilize the present invention.The present invention is only Limited by claims and its four corner and equivalent.

Claims (5)

1. a kind of intelligent use gateway realization method based on container cloud, including Distributed Storage and high-availability cluster (etcd), dns server (skyDNS), configuration maker (confd), label getter (tagCollector), policy selection Device (policySelector), task performer (taskExecutor), it is characterised in that:
The service such as etcd, confd, tagCollector, taskExecutor, skyDNS clothes are being disposed at least on a server Business is affixed one's name on unexpected network server in office;
Into etcd /the new outer net IP the Resources lists of etcd/docker/publicIP additions;
The NAMESERVER of domain name is changed to cloud platform outer net dns address in domain name setting;
Each server judges whether oneself is etcd leader, if it is, starting by obtaining etcd states TagCollector, in the metadata information by regular pull containers cloud platform, obtain all containers labels data taglist.json;
TaskExecutor parses taglist.json, and with being contrasted (point before in/etc/docker/allocator Orchestration), if it find that being newly-increased domain name, to policySelector acquisition request outer nets address of service, policySelector Configured according to strategy, an IP address in return/etcd/docker/publicIP;
TaskExecutor calls the confd for returning to IP places main frame, and nginx configuration and progress are regenerated by main frame template The reload of example, after success by etcd /etc/docker/allocator is updated, domain in final updating skyDNS Name and IP sensing;
TaskExecutor periodically by cloud platform etcd /etc/docker/allocator is scanned, to ensure The resource recorded in allocator is consistent with reality, and by calling the performance API on nginx, carries out performance statistics.
A kind of 2. intelligent use gateway realization method based on container cloud according to claim 1:It is described PolicySelector methods, the load-balancing method selected when being service routing, the load-balancing method are surveyed by network Every server load condition (system load/TCP collection) is measured, preferential distribution is to loading minimum main frame.
A kind of 3. intelligent use gateway realization method based on container cloud according to claim any one of 1-2:It is described PolicySelector methods, selected when being service routing based on weight method, it is described based on weight method to pass through craft The weight setting in IP address is specified to distribute, weight is represented with 1-100 numerals, and numeral is bigger, and to represent weight bigger.
A kind of 4. intelligent use gateway realization method based on container cloud according to claim any one of 1-2:It is described PolicySelector methods, selected when being service routing based on close master scheduling method, close master scheduling method is identical root Domain name priority scheduling is to identical server.
A kind of 5. intelligent use gateway realization method based on container cloud according to claim any one of 1-2:It is described PolicySelector methods, selected when being service routing based on stamp methods, based on stamp methods be user in the label Directly specify on the main frame being dispatched to where specific IP.
CN201710858053.0A 2017-09-21 2017-09-21 Intelligent application gateway implementation method based on container cloud Active CN107465765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710858053.0A CN107465765B (en) 2017-09-21 2017-09-21 Intelligent application gateway implementation method based on container cloud

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710858053.0A CN107465765B (en) 2017-09-21 2017-09-21 Intelligent application gateway implementation method based on container cloud

Publications (2)

Publication Number Publication Date
CN107465765A true CN107465765A (en) 2017-12-12
CN107465765B CN107465765B (en) 2020-07-14

Family

ID=60552849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710858053.0A Active CN107465765B (en) 2017-09-21 2017-09-21 Intelligent application gateway implementation method based on container cloud

Country Status (1)

Country Link
CN (1) CN107465765B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107409029A (en) * 2015-02-27 2017-11-28 高通股份有限公司 Quick enhanced component carrier activation
CN108551488A (en) * 2018-05-03 2018-09-18 山东汇贸电子口岸有限公司 Distributed container cluster load balancing method based on domestic CPU and OS
CN109842559A (en) * 2018-12-28 2019-06-04 中兴通讯股份有限公司 A kind of network communication method and system
CN110471683A (en) * 2019-08-06 2019-11-19 上海浦东发展银行股份有限公司信用卡中心 A kind of bluish-green dissemination method of container cloud application based on intelligent DNS
CN110881007A (en) * 2018-09-05 2020-03-13 北京京东尚科信息技术有限公司 Container cluster network access method and device
CN111163074A (en) * 2019-12-25 2020-05-15 腾讯云计算(北京)有限责任公司 Gateway service control method and device
CN111800458A (en) * 2020-05-22 2020-10-20 浙商银行股份有限公司 Dynamic load balancing method and system for Kubernetes container cloud platform
CN111935312A (en) * 2020-09-21 2020-11-13 深圳蜂巢互联(南京)科技研究院有限公司 Industrial Internet container cloud platform and flow access control method thereof
CN112486564A (en) * 2020-12-09 2021-03-12 浪潮云信息技术股份公司 Confd dynamic update configuration-based method and system
CN112905114A (en) * 2021-02-10 2021-06-04 山东英信计算机技术有限公司 Performance adjusting method, system and medium for distributed storage
CN113783712A (en) * 2020-06-09 2021-12-10 中兴通讯股份有限公司 Default gateway management method, gateway manager, server and storage medium
CN113992681A (en) * 2021-09-18 2022-01-28 上海金仕达软件科技有限公司 Method for ensuring strong consistency of data in distributed system
CN115001904A (en) * 2022-05-30 2022-09-02 紫光建筑云科技(重庆)有限公司 High-availability NAT gateway design method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897946A (en) * 2016-04-08 2016-08-24 北京搜狐新媒体信息技术有限公司 Obtaining method and system of access address
CN106126347A (en) * 2016-08-17 2016-11-16 浪潮电子信息产业股份有限公司 Method for effectively realizing host cluster resource scheduling under cloud platform
CN106302771A (en) * 2016-08-23 2017-01-04 浪潮电子信息产业股份有限公司 Domain name configuration method of application created based on Docker container

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897946A (en) * 2016-04-08 2016-08-24 北京搜狐新媒体信息技术有限公司 Obtaining method and system of access address
CN106126347A (en) * 2016-08-17 2016-11-16 浪潮电子信息产业股份有限公司 Method for effectively realizing host cluster resource scheduling under cloud platform
CN106302771A (en) * 2016-08-23 2017-01-04 浪潮电子信息产业股份有限公司 Domain name configuration method of application created based on Docker container

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107409029A (en) * 2015-02-27 2017-11-28 高通股份有限公司 Quick enhanced component carrier activation
CN107409029B (en) * 2015-02-27 2020-12-25 高通股份有限公司 Method of wireless communication, apparatus for wireless communication, and computer-readable medium
CN108551488A (en) * 2018-05-03 2018-09-18 山东汇贸电子口岸有限公司 Distributed container cluster load balancing method based on domestic CPU and OS
CN110881007A (en) * 2018-09-05 2020-03-13 北京京东尚科信息技术有限公司 Container cluster network access method and device
CN110881007B (en) * 2018-09-05 2023-03-07 北京京东尚科信息技术有限公司 Container cluster network access method and device
CN109842559A (en) * 2018-12-28 2019-06-04 中兴通讯股份有限公司 A kind of network communication method and system
CN110471683A (en) * 2019-08-06 2019-11-19 上海浦东发展银行股份有限公司信用卡中心 A kind of bluish-green dissemination method of container cloud application based on intelligent DNS
CN110471683B (en) * 2019-08-06 2023-11-24 上海浦东发展银行股份有限公司信用卡中心 Intelligent DNS-based container cloud application blue-green publishing method
CN111163074A (en) * 2019-12-25 2020-05-15 腾讯云计算(北京)有限责任公司 Gateway service control method and device
CN111800458A (en) * 2020-05-22 2020-10-20 浙商银行股份有限公司 Dynamic load balancing method and system for Kubernetes container cloud platform
CN111800458B (en) * 2020-05-22 2021-04-23 浙商银行股份有限公司 Dynamic load balancing method and system for Kubernetes container cloud platform
CN113783712A (en) * 2020-06-09 2021-12-10 中兴通讯股份有限公司 Default gateway management method, gateway manager, server and storage medium
CN111935312A (en) * 2020-09-21 2020-11-13 深圳蜂巢互联(南京)科技研究院有限公司 Industrial Internet container cloud platform and flow access control method thereof
CN111935312B (en) * 2020-09-21 2021-02-02 深圳蜂巢互联(南京)科技研究院有限公司 Industrial Internet container cloud platform and flow access control method thereof
CN112486564A (en) * 2020-12-09 2021-03-12 浪潮云信息技术股份公司 Confd dynamic update configuration-based method and system
CN112905114A (en) * 2021-02-10 2021-06-04 山东英信计算机技术有限公司 Performance adjusting method, system and medium for distributed storage
CN112905114B (en) * 2021-02-10 2022-09-20 山东英信计算机技术有限公司 Performance adjusting method, system and medium for distributed storage
CN113992681A (en) * 2021-09-18 2022-01-28 上海金仕达软件科技有限公司 Method for ensuring strong consistency of data in distributed system
CN115001904A (en) * 2022-05-30 2022-09-02 紫光建筑云科技(重庆)有限公司 High-availability NAT gateway design method

Also Published As

Publication number Publication date
CN107465765B (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN107465765A (en) A kind of intelligent use gateway realization method based on container cloud
US11805073B2 (en) Controlling placement of workloads of an application within an application environment
US10250508B2 (en) Load balancing method and system
CN104468688B (en) Method and apparatus for network virtualization
CN104365067B (en) System and method for recombinating the grouping distributed across cluster
CN110249596A (en) The learning skill of the classification and priority ranking based on QOS for SAAS application
EP4170496A1 (en) Scalable control plane for telemetry data collection within a distributed computing system
CN103560967B (en) The virtual data center mapping method of a kind of business demand perception
US20120226799A1 (en) Capabilities Based Routing of Virtual Data Center Service Request
CN109154896A (en) System and method for service chaining load balance
CN108259216A (en) Network service is applied and the virtualization network function of client's consciousness is placed
US20120226789A1 (en) Hiearchical Advertisement of Data Center Capabilities and Resources
CN104850450A (en) Load balancing method and system facing mixed cloud application
CN104954252B (en) Flow control in high-performance, expansible and data center's switching fabric without call drop
CN104521198A (en) System and method for virtual ethernet interface binding
CN108667777A (en) A kind of service chaining generation method and network function composer NFVO
CN104270421A (en) Multi-user cloud platform task scheduling method supporting bandwidth guarantee
CN106933648A (en) For the method and system of multi-tenant container resource management
CN108702316A (en) A kind of resource allocation methods and device of VNF
CN105404549B (en) Scheduling virtual machine system based on yarn framework
CN107147734A (en) A kind of network traffics thread-level dynamic load balancing method and system based on two level forwarding
CN104298539B (en) Scheduling virtual machine and dispatching method again based on network aware
CN106209433A (en) Towards the application system energy-efficient deployment device of framework under a kind of cloud environment
CN106445611A (en) Big data node system and automatic deploying method
Hu et al. v-bundle: Flexible group resource offerings in clouds

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
TR01 Transfer of patent right

Effective date of registration: 20210519

Address after: 1403a, building B, innovation building, 198 Daxin Road, majialong community, Nantou street, Nanshan District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen xiaoxiliu Technology Co.,Ltd.

Address before: 518000 East, 7th floor, Yizhe building, Yuquan Road, Nanshan District, Shenzhen City, Guangdong Province (office only)

Patentee before: SHENZHEN SVI TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220125

Address after: No. 202, block B, Huafeng Baoan Zhigu science and Technology Innovation Park, No. 4, Yintian Road, Yantian community, Xixiang street, Bao'an District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Chaoyue Electronics Co.,Ltd.

Address before: 1403a, building B, innovation building, 198 Daxin Road, majialong community, Nantou street, Nanshan District, Shenzhen, Guangdong 518000

Patentee before: Shenzhen xiaoxiliu Technology Co.,Ltd.

TR01 Transfer of patent right