CN109194513A - A kind of method of API gateway Intellisense cluster - Google Patents
A kind of method of API gateway Intellisense cluster Download PDFInfo
- Publication number
- CN109194513A CN109194513A CN201811051229.2A CN201811051229A CN109194513A CN 109194513 A CN109194513 A CN 109194513A CN 201811051229 A CN201811051229 A CN 201811051229A CN 109194513 A CN109194513 A CN 109194513A
- Authority
- CN
- China
- Prior art keywords
- api gateway
- node
- cluster
- information
- intellisense
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
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 methods of API gateway Intellisense cluster, and contain step: A.API gateway deployment is online, scan node;B.API gateway completes scanning, lists all available API gateway nodes;C. judge whether available API gateway number of nodes is greater than 0, if so, entering step E, otherwise, enter step D;D.API gateway is with the start-up operation of single-unit dot pattern;E.API gateway is communicated with any node in list, obtains the information of host node;F.API gateway is communicated with host node, notifies host node, the nodal information of G. host node verification step F that nodal information is added in clustered node, and notifies all node updates information in cluster own node information;H. all nodes complete information update, this API gateway is started to work in a manner of clustered node.Method of the invention, which can be realized, becomes more intelligent in deployment for API gateway cluster, reduces the enforcement difficulty of DevOps, alleviates manual work's cost and do not allow error-prone.
Description
Technical field
The present invention relates to the distributed system technical field of computer software, in particular to a kind of API gateway Intellisense
The method of cluster.
Background technique
With deepening continuously for mobile Internet, more and more companies and enterprise gradually start Internet, and
Customer-oriented service and business are also moved on line.In business on developing these lines, with the continuous increasing of customer quantity
More, the framework of business platform is also constantly changing evolution.It is gradually converted into micro services framework from the monomer applications framework of early stage,
Cluster and the distributed technology for also becoming standard configuration.
During constructing the basic platform of micro services framework, API gateway is one of essential core component.
API gateway provides unified interface for one group of micro services, so that client is not necessarily to know all details inside micro services.
Since API gateway is the unified entrance of end-user access, if the rear end micro services quantity that it is connected is excessive,
The I/O handling capacity of API gateway itself will become bottleneck.Common solution is to carry out cluster to API gateway.But it is right
API gateway carries out cluster, configures and remarkable, it usually needs do a large amount of manual working, and be also easy to malfunction.
Summary of the invention
It is insufficient in above-mentioned background technique the purpose of the present invention is overcoming, a kind of side of API gateway Intellisense cluster is provided
Method, this method are suitable for the system using cluster and/or Distributed Design, and API gateway cluster may make to become in deployment
It is more intelligent, the enforcement difficulty of DevOps is reduced, manual work's cost is alleviated, and is not allowed error-prone.And it is demonstrate,proved through practice
It is bright, implement that significant ground economic benefit can be generated in large-scale data center environment.
In order to reach above-mentioned technical effect, the present invention takes following technical scheme:
A kind of method of API gateway Intellisense cluster, comprising the following steps:
A. API gateway is deployed in server node, and by API gateway using specified port scan local area network or
Specified network segment checks whether that similar API gateway is online;
All IP address that B.API gateway includes according to local area network or network segment form an address list, successively scan institute
The address in address list is stated, and lists all available API gateway nodes and forms an enabled node list;
C. judge whether the quantity of available API gateway node is greater than 0, if so, entering step E, otherwise, enter step
D;
D.API gateway is with the start-up operation of single-unit dot pattern;
E.API gateway is communicated with any node in the enabled node list, requests and obtain the information of host node;
F.API gateway is communicated with host node and own node information is notified host node;
Nodal information is added in clustered node, and notifies the institute in cluster by the G. nodal information of host node verification step F
There is node updates information;
H. when all nodes complete information update, then this API gateway is started to work in a manner of clustered node.
Further, the server node in the step A is the virtual cloud host or physical services of cloud service provider
The virtual server of the physical server or data center of device or data center.
Further, API gateway is deployed in server node in the step A specifically: be packaged into API gateway
Container mirror image and being put into container environment is run.
Further, designated port or when specified network segment are by configuration file or start-up parameter in the step A
Mode is realized.
Further, acknowledgement mechanism is specifically used when address in the step B in the list of API gateway scan address, i.e.,
API gateway node issues specific request data package to the IP address provided and specified port in scanning, if it exists equally
API gateway node, scanned API gateway node then returns to the response data packet of agreement.
Further, the host node in the step E can be specified by configuration file or defaults first online API net
Artis is host node.
Further, when host node confirms nodal information in the step G by way of functional verification, i.e., host node is sent out
It send the function of test data packet verifying new node whether normal, and clustered node is added in the nodal information of normally functioning node
All node updates information in middle notice cluster.
Compared with prior art, the present invention have it is below the utility model has the advantages that
The method of API gateway Intellisense cluster through the invention is, it can be achieved that API gateway cluster is become in deployment
It is more intelligent, the enforcement difficulty of DevOps is reduced, manual work's cost is alleviated, and is not allowed error-prone.It is counting on a large scale
Significant ground economic benefit can be generated according to implementation in center environment.
Detailed description of the invention
Fig. 1 is the flow diagram of the method for API gateway Intellisense cluster of the invention.
Specific embodiment
Below with reference to the embodiment of the present invention, the invention will be further elaborated.
Embodiment:
As shown in Figure 1, a kind of flow diagram of the method for API gateway Intellisense cluster, this method can be applied to
In micro services framework, it can be applied to the data centers such as Distributed Computing Platform, cloud computing platform, this method mainly includes following
Step:
Step 101, API gateway disposes online, scan node.
Refer to API gateway software deployment into server node specifically, API gateway deployment is online, server node
The virtual cloud host that can be cloud service provider, is also possible to physical server, can also be the physics or void of data center
Quasi- server.
In the present embodiment, online API gateway deployment is specially by API gateway Software package into container mirror image, and is put into appearance
It is run in device environment.
Wherein, scan node specifically refers to API gateway software and uses specified port scan local area network or specified network segment,
Check whether that similar API gateway software is online.Designated port or specified network segment can then pass through configuration file or starting
The mode of parameter is realized.
Step 102, API gateway completes scanning, lists all available API gateway nodes.
API gateway completes the scanning of local area network or specified network segment, and listing all available the formation of API gateway nodes one can
Use node listing.
Specifically, scanning process is all IP address for including according to network segment, an address list is formed, is successively scanned.
In the present embodiment, the scanning of each address is to use acknowledgement mechanism, i.e. API gateway node to the IP address provided and refers to
Fixed port issues specific request data package, and if there is same API gateway node, which will return to prior agreement
Response data packet.Such as in the present embodiment specifically: API gateway node is in scanning to the IP address provided and specified end
Mouth issues GWN-Y data packet, and same API gateway node, scanned API gateway node can then return to N-Y data if it exists
Packet.
Step 103, judge whether available API gateway number of nodes is greater than 0.
Whether can be greater than 0 with API gateway number of nodes in the list that judgment step 102 obtains.If it is not, indicating without available
API gateway node, namely just online API gateway node is unique node, turns to step 104;If so, turning to step
105。
Step 104, API gateway is with the start-up operation of single-unit dot pattern.
API gateway determines the presence of no similar gateway, and internal logic is switched to single node operating mode, externally provides
Service.
Step 105, API gateway is communicated with any node in list, obtains the information of host node.
Specially API gateway selects an effective node from the enabled node list that step 102 obtains at random, with
Communication, request and obtain the information of API gateway host node.
Specifically, can default first online API gateway node is that host node also specifies main section by configuration file
Point.
Step 106, API gateway is communicated with host node, and own node information is notified host node.
Step 107, nodal information is added in clustered node, and notifies to collect by the nodal information of host node verification step 106
All node updates information in group.
Host node continues to communicate with API gateway, the nodal information of verification step 106, and information is added in clustered node, and
Notify all node updates information in cluster.
Specifically, host node can be by way of functional verification when confirming new node information, i.e., host node sends test
Data packet, whether the function of verifying new node is normal, and the information of normally functioning new node is added in clustered node, and is led to
Know all node updates information in cluster.
Step 108, all nodes complete information update, this API gateway is started to work in a manner of clustered node.
All API gateway nodes complete the update of cluster information, and notify host node, and host node is receiving all nodes
Update complete signal after, notify new API gateway node, then new API gateway is started to work in a manner of clustered node.
From the foregoing, it will be observed that the method for API gateway Intellisense cluster of the invention, may make API gateway cluster in deployment
Become more intelligent, reduce the enforcement difficulty of DevOps, alleviate manual work's cost, and does not allow error-prone.Practice card
It is bright, implement that significant ground economic benefit can be generated in large-scale data center environment.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses
Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from
In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.
Claims (7)
1. a kind of method of API gateway Intellisense cluster, which comprises the following steps:
A. API gateway is deployed in server node, and using specified port scan local area network or is specified by API gateway
Network segment, check whether that similar API gateway is online;
All IP address that B.API gateway includes according to local area network or network segment form an address list, successively scan describedly
Address in the list of location, and list all available API gateway nodes and form an enabled node list;
C. judge whether the quantity of available API gateway node is greater than 0, if so, entering step E, otherwise, enter step D;
D.API gateway is with the start-up operation of single-unit dot pattern;
E.API gateway is communicated with any node in the enabled node list, requests and obtain the information of host node;
F.API gateway is communicated with host node and own node information is notified host node;
Nodal information is added in clustered node, and notifies all sections in cluster by the G. nodal information of host node verification step F
Point more new information;
H. all nodes complete information update and API gateway is started to work in a manner of clustered node.
2. a kind of method of API gateway Intellisense cluster according to claim 1, which is characterized in that in the step A
Server node be cloud service provider virtual cloud host or physical server or the physical server or number of data center
According to the virtual server at center.
3. a kind of method of API gateway Intellisense cluster according to claim 1, which is characterized in that in the step A
API gateway is deployed in server node specifically: API gateway is packaged into container mirror image and is put into container environment and is transported
Row.
4. a kind of method of API gateway Intellisense cluster according to claim 1, which is characterized in that in the step A
It when designated port or specified network segment is realized by way of configuration file or start-up parameter.
5. a kind of method of API gateway Intellisense cluster according to claim 1, which is characterized in that in the step B
Acknowledgement mechanism is specifically used when address in the list of API gateway scan address, i.e., API gateway node is in scanning to the IP provided
Address and specified port issue specific request data package, if it exists same API gateway node, scanned API gateway
Node then returns to the response data packet of agreement.
6. a kind of method of API gateway Intellisense cluster according to claim 1, which is characterized in that in the step E
Host node can be specified by configuration file or to default first online API gateway node be host node.
7. according to claim 1 to a kind of method of any API gateway Intellisense cluster in 6, which is characterized in that institute
It states when host node confirms nodal information in step G by way of functional verification, i.e., it is new to send the verifying of test data packet for host node
Whether the function of node is normal, and the nodal information of normally functioning node is added in clustered node and notifies owning in cluster
Node updates information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811051229.2A CN109194513A (en) | 2018-09-10 | 2018-09-10 | A kind of method of API gateway Intellisense cluster |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811051229.2A CN109194513A (en) | 2018-09-10 | 2018-09-10 | A kind of method of API gateway Intellisense cluster |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109194513A true CN109194513A (en) | 2019-01-11 |
Family
ID=64915852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811051229.2A Pending CN109194513A (en) | 2018-09-10 | 2018-09-10 | A kind of method of API gateway Intellisense cluster |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109194513A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111163173A (en) * | 2019-12-31 | 2020-05-15 | 迈普通信技术股份有限公司 | Cluster configuration method and device, server and readable storage medium |
CN111343005A (en) * | 2020-02-11 | 2020-06-26 | 杭州涂鸦信息技术有限公司 | Method and system for quickly taking local automatic configuration into effect |
CN115633051A (en) * | 2022-10-11 | 2023-01-20 | 四川启睿克科技有限公司 | Edge computing node self-cooperation management method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105450686A (en) * | 2014-08-19 | 2016-03-30 | Tcl集团股份有限公司 | Method and device for establishing server cluster |
CN106559332A (en) * | 2016-11-03 | 2017-04-05 | Tcl集团股份有限公司 | A kind of method and system of fast assembling full-mesh server cluster |
CN107087032A (en) * | 2017-05-11 | 2017-08-22 | 腾讯科技(深圳)有限公司 | Realize the method and apparatus that cluster is set up |
-
2018
- 2018-09-10 CN CN201811051229.2A patent/CN109194513A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105450686A (en) * | 2014-08-19 | 2016-03-30 | Tcl集团股份有限公司 | Method and device for establishing server cluster |
CN106559332A (en) * | 2016-11-03 | 2017-04-05 | Tcl集团股份有限公司 | A kind of method and system of fast assembling full-mesh server cluster |
CN107087032A (en) * | 2017-05-11 | 2017-08-22 | 腾讯科技(深圳)有限公司 | Realize the method and apparatus that cluster is set up |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111163173A (en) * | 2019-12-31 | 2020-05-15 | 迈普通信技术股份有限公司 | Cluster configuration method and device, server and readable storage medium |
CN111163173B (en) * | 2019-12-31 | 2022-06-21 | 迈普通信技术股份有限公司 | Cluster configuration method and device, server and readable storage medium |
CN111343005A (en) * | 2020-02-11 | 2020-06-26 | 杭州涂鸦信息技术有限公司 | Method and system for quickly taking local automatic configuration into effect |
CN111343005B (en) * | 2020-02-11 | 2024-01-30 | 杭州涂鸦信息技术有限公司 | Method and system for quickly effecting local automation configuration |
CN115633051A (en) * | 2022-10-11 | 2023-01-20 | 四川启睿克科技有限公司 | Edge computing node self-cooperation management method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108540536B (en) | Block chain-based network mass service processing method, equipment and storage medium | |
WO2018024059A1 (en) | Method and device for service deployment in virtualized network | |
CN106067858B (en) | Communication means, apparatus and system between container | |
CN1186907C (en) | User's computer on-net virtual connection connected by multiple physical connections | |
CN109189856A (en) | Distributed data base service management, device, server and storage medium | |
CN102124449B (en) | Method and system for low-overhead data transfer | |
CN110401696A (en) | A kind of method, communication agent, host and the storage medium of decentralization processing | |
CN109194513A (en) | A kind of method of API gateway Intellisense cluster | |
EP3380937A1 (en) | Techniques for analytics-driven hybrid concurrency control in clouds | |
CN109496415A (en) | A kind of virtual machine access distal end acceleration equipment method and system | |
CN106301829A (en) | A kind of method and apparatus of Network dilatation | |
WO2015021905A1 (en) | Software updating method, system, and device | |
CN101171821A (en) | System, network device, method, and computer program product for active load balancing using clustered nodes as authoritative domain name servers | |
CN106856438B (en) | Network service instantiation method, device and NFV system | |
CN111416723B (en) | Equipment management method and related equipment | |
CN105681426B (en) | Heterogeneous system | |
CN106101171B (en) | Server connection method and device | |
CN103780686A (en) | Method and system for customizing application approval procedure in cloud organization | |
CN104601680A (en) | Resource management method and device | |
CN104391664A (en) | Self-service print system for realizing cross-segment communication between printer and print server | |
CN106302322A (en) | A kind of virtual-machine data flow management method and system | |
CN104768188A (en) | Flow control method and device | |
CN108886486A (en) | Virtualize network function intercommunication | |
EP4191907A1 (en) | Vnf instantiation method and apparatus | |
CN109005433A (en) | A kind of video cloud service platform architecture and implementation method |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200110 Address after: 610000 Chengdu City, Sichuan Province, China (Sichuan) Free Trade Pilot Area, No. 199 Tianfu Fourth Street, Chengdu High-tech Zone, 33 floors Applicant after: Panovasic Co., Ltd. Address before: 621000 Mianyang province high tech Zone, East Hing Road, No. 35 cotton Applicant before: Sichuan Changhong Electrical Appliance Co., Ltd. |
|
TA01 | Transfer of patent application right | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |
|
RJ01 | Rejection of invention patent application after publication |