Gateway service request processing method and device, and cloud native gateway system management method and device

By implementing automatic routing and processing of gateway service requests in Kubernetes, the problem of high availability of resources and services is solved, and the stability of request processing is improved.

WO2024193085A1PCT designated stage expired Publication Date: 2024-09-26JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD

Patent Information

Application Number
PCT/CN2023/134349
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-22
Filing Date
2023-11-27
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Existing resources and services in Kubernetes cannot guarantee high availability, resulting in insufficient stability in request processing.

Method used

Through the gateway service request processing method, the target gateway cluster, gateway and service information are determined based on the preset mapping relationship and the configuration information in the pending gateway service request, and the target container group is determined based on the running status of the container group, and the request is sent to Target container group for processing.

Benefits of technology

It realizes automatic routing and processing of gateway service requests, improves the stability of request processing, and ensures the high availability of resources and services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023134349_26092024_PF_FP
    Figure CN2023134349_26092024_PF_FP
Patent Text Reader

Abstract

The present disclosure provides a gateway service processing method and device, and a cloud native gateway system management method and device, capable of being applied to the technical fields of networks and cloud native. The gateway service request processing method comprises: in response to receiving a gateway service request to be processed, according to a preset mapping relationship and gateway service configuration information to be processed in said gateway service request, determining target gateway cluster information corresponding to a target gateway cluster, target gateway information corresponding to a target gateway, and target service information corresponding to a target service; according to the target gateway cluster information, the target gateway information, and the target service information, determining the operating state of at least one container group corresponding to the target service; according to the operating state of the at least one container group corresponding to the target service, determining a target container group among the at least one container group; and sending said gateway service request to the target container group, such that the target container group processes said gateway service request.
Need to check novelty before this filing date? Find Prior Art

Description

Processing of gateway service requests, management method and device of cloud native gateway system

[0001] This application claims priority to Chinese patent application No. 202310288631.7 filed on March 22, 2023, the contents of which are incorporated herein by reference. Technical Field

[0002] The present disclosure relates to the fields of network technology and cloud native technology, and more specifically, to a method for processing service requests, a management method and device for a cloud native gateway system, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0003] An API (Application Programming Interface) gateway is a unified entry point at the system boundary that provides external access to internal API services. Kubernetes can include a collection of API resources defined under different gateways.

[0004] For example, the Ingress API resource collection based on the Ingress gateway definition and the Gateway API resource collection based on the Gateway gateway definition.

[0005] In the process of implementing the concepts disclosed herein, the inventors discovered that there are at least the following problems in the related art: the high availability of resources and services in Kubernetes cannot be guaranteed.

[0006] Summary of the Invention

[0007] In view of this, the present disclosure provides a method for processing a service request, a method and device for managing a cloud native gateway system, an electronic device, a computer-readable storage medium, and a computer program product.

[0008] According to one aspect of the present disclosure, a method for processing a gateway service request is provided, comprising:

[0009] In response to receiving the pending gateway service request, determining the target gateway cluster information corresponding to the target gateway cluster, the target gateway information corresponding to the target gateway, and the target service information corresponding to the target service according to the preset mapping relationship and the pending gateway service configuration information in the pending gateway service request;

[0010] Determine the operating status of at least one container group corresponding to the target service based on the target gateway cluster information, the target gateway information, and the target service information;

[0011] Determining a target container group from the at least one container group corresponding to the target service according to the respective running states of the at least one container group; and

[0012] The pending gateway service request is sent to the target container group so that the target container group processes the pending gateway service request.

[0013] According to an embodiment of the present disclosure, in response to receiving a pending gateway service request, determining the target gateway cluster information corresponding to the target gateway cluster, the target gateway information corresponding to the target gateway, and the target service information corresponding to the target service according to the preset mapping relationship and the pending gateway service configuration information in the pending gateway service request includes:

[0014] Determine the target virtual Internet Protocol address information based on the gateway service configuration information to be processed;

[0015] Determine the target gateway cluster information corresponding to the target gateway cluster according to the first preset mapping relationship and the above-mentioned target virtual Internet Protocol address information;

[0016] Determine the gateway address information corresponding to the target gateway and the service port information corresponding to the target service based on the target gateway cluster information;

[0017] Determine the target gateway information according to the second preset mapping relationship and the gateway address information; and

[0018] The target service information is determined according to the third preset mapping relationship and the service port information.

[0019] According to an embodiment of the present disclosure, the target gateway cluster includes at least one gateway, each of the at least one gateway corresponds to at least one service, each of the at least one gateway corresponds to gateway address information, and each of the at least one service corresponds to service port information.

[0020] According to an embodiment of the present disclosure, determining the gateway address information corresponding to the target gateway and the service port information corresponding to the target service based on the target gateway cluster information includes:

[0021] According to the above target gateway cluster information, determine the network segment range of the above target gateway cluster

[0022] For each of the at least one gateway, determine the gateway address information corresponding to the gateway according to the network segment range of the target gateway cluster; and

[0023] For each of the at least one service corresponding to the gateway, the service port information of the service corresponding to the gateway is determined according to the gateway address information corresponding to the gateway.

[0024] According to an embodiment of the present disclosure, in response to receiving the pending service request, determining the target virtual Internet Protocol address information according to the pending gateway service configuration information includes:

[0025] In response to receiving the pending gateway service request, parsing the pending gateway service configuration information to obtain domain name information corresponding to the pending gateway service request; and

[0026] The target virtual network address information is determined based on the domain name information.

[0027] According to an embodiment of the present disclosure, the first preset mapping relationship includes at least one second key-value relationship, and the second key-value relationship includes second key information and second value information. The at least one second key-value relationship is constructed in the following manner:

[0028] For each second key-value relationship in the at least one second key-value relationship, in response to receiving a gateway creation instruction, obtaining a gateway identifier, gateway configuration information, and a gateway cluster identifier;

[0029] According to the above gateway cluster identifier, determine the virtual network address information corresponding to the above gateway cluster identifier;

[0030] Determine the gateway address information corresponding to the gateway identifier according to the target routing protocol and the virtual network address information;

[0031] Determine the virtual gateway address information as the second key information;

[0032] Determine the gateway configuration information as the second value information; and

[0033] The second key-value relationship is constructed based on the second key information and the second value information.

[0034] According to an embodiment of the present disclosure, when the target routing protocol is a border gateway protocol, determining the gateway address information corresponding to the gateway identifier based on the target routing protocol and the virtual network address information includes:

[0035] According to the virtual Internet Protocol address information, a first resource pool is configured, wherein the first resource pool includes at least one first candidate address information;

[0036] Determining target address information from the at least one first candidate address information according to the first resource pool; and

[0037] According to the border gateway protocol, the target address information is published via any two front-end proxies, so as to determine the target address information as the gateway address information.

[0038] According to an embodiment of the present disclosure, when the target routing protocol is an equal-cost multi-path routing protocol, determining the gateway address information corresponding to the gateway identifier based on the target routing protocol and the virtual network address information includes:

[0039] According to the virtual Internet Protocol address information, configuring a second resource pool, wherein the second resource pool includes at least one second candidate address information;

[0040] Determining target address information from the at least one second candidate address information according to the second resource pool;

[0041] According to the equal-cost multi-path routing protocol, configure equal-cost routing information corresponding to the target address information; and

[0042] The above-mentioned equivalent routing information is determined as the above-mentioned gateway address information.

[0043] According to an embodiment of the present disclosure, the second preset mapping relationship includes at least one third key-value relationship, and the third key-value relationship includes third key information and third value information. The at least one third key-value relationship is constructed in the following manner:

[0044] For each third key-value relationship in the at least one third key-value relationship, in response to receiving a service creation instruction, obtaining a service identifier, service configuration information, and a gateway identifier;

[0045] According to the above gateway identifier, determine the gateway address information corresponding to the above gateway identifier;

[0046] Determine the service port information corresponding to the service identifier based on the gateway address information;

[0047] Determine the service port information as the third key information;

[0048] Determine the service configuration information as the third value information; and

[0049] The third key-value relationship is constructed based on the third key information and the third value information.

[0050] According to an embodiment of the present disclosure, the target service information includes container group address information corresponding to each of the at least one container groups.

[0051] According to an embodiment of the present disclosure, determining the respective running status of at least one container group corresponding to the target service based on the target gateway cluster information, the target gateway information, and the target service information includes:

[0052] For each container group address information in the at least one container group address information, establishing a detection network connection with the container group according to the container group address information;

[0053] When a heartbeat detection packet sent by the container group is received within a predetermined period, determining that the running state of the container group is a normal running state; and

[0054] If no heartbeat detection packet sent by the container group is received within the predetermined period, it is determined that the running state of the container group is in an abnormal running state.

[0055] According to an embodiment of the present disclosure, determining the target container group from the at least one container group corresponding to the target service according to the respective running states of the at least one container group includes:

[0056] In response to the operating status of the container group being a normal operating state, the container group is determined as the target container group.

[0057] According to an embodiment of the present disclosure, sending the pending gateway service request to the target container group includes:

[0058] Determine the target container group address information corresponding to the target container group;

[0059] Establishing an actual network connection with the target container group according to the target container group address information; and

[0060] Based on the actual network connection, the to-be-processed service request is sent to the target container group.

[0061] According to another aspect of the present disclosure, a method for managing a cloud native gateway system is provided, including:

[0062] Processing a target gateway service request using a gateway service request processing method to obtain a processing result, wherein the target gateway service request includes target gateway service configuration information, and the target gateway service configuration information is associated with a cloud native gateway system; and

[0063] Based on the above processing results, the above cloud native gateway system is managed.

[0064] According to another aspect of the present disclosure, a device for processing a gateway service request is provided, comprising:

[0065] A first determining module is configured to, in response to receiving a pending gateway service request, determine target gateway cluster information corresponding to a target gateway cluster, target gateway information corresponding to a target gateway, and target service information corresponding to a target service based on a preset mapping relationship and the pending gateway service configuration information in the pending gateway service request;

[0066] A second determining module is configured to determine the respective operating status of at least one container group corresponding to the target service based on the target gateway cluster information, the target gateway information, and the target service information;

[0067] a third determining module, configured to determine a target container group from the at least one container group corresponding to the target service according to the respective running states of the at least one container group; and

[0068] The sending module is configured to send the pending gateway service request to the target container group so that the target container group processes the pending gateway service request.

[0069] According to another aspect of the present disclosure, a management device for a cloud native gateway system is provided, including:

[0070] a processing module, configured to process a target gateway service request using a gateway service request processing device to obtain a processing result, wherein the target gateway service request includes target gateway service configuration information, and the target gateway service configuration information is associated with a cloud native gateway system; and

[0071] The management module is used to manage the cloud native gateway system according to the above processing results.

[0072] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0073] one or more processors;

[0074] a memory for storing one or more instructions,

[0075] When the one or more instructions are executed by the one or more processors, the one or more processors implement the method described in the present disclosure.

[0076] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which executable instructions are stored. When the executable instructions are executed by a processor, the processor implements the method described in the present disclosure.

[0077] According to another aspect of the present disclosure, a computer program product is provided. The computer program product includes computer-executable instructions. When the computer-executable instructions are executed, they are used to implement the method described in the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0079] FIG1 schematically illustrates a system architecture to which a method for processing a gateway service request and a method for managing a cloud-native gateway system according to an embodiment of the present disclosure may be applied;

[0080] FIG2 schematically shows a flow chart of a method for processing a gateway service request according to an embodiment of the present disclosure;

[0081] 3 schematically illustrates an example schematic diagram of determining target gateway cluster information corresponding to a target gateway cluster, target gateway information corresponding to a target gateway, and target service information corresponding to a target service based on a preset mapping relationship and the pending gateway service configuration information in the pending service request according to an embodiment of the present disclosure;

[0082] FIG4 schematically shows an example diagram of constructing a second key-value relationship according to an embodiment of the present disclosure;

[0083] FIG5A schematically shows an example diagram of determining gateway address information corresponding to a gateway identifier according to a target routing protocol and virtual network address information according to an embodiment of the present disclosure;

[0084] 5B schematically shows an example schematic diagram of determining gateway address information corresponding to a gateway identifier according to a target routing protocol and virtual network address information according to another embodiment of the present disclosure;

[0085] FIG6 schematically shows an example schematic diagram of constructing a third key-value relationship according to an embodiment of the present disclosure;

[0086] FIG7 schematically shows an example diagram of determining the respective running states of at least one container group corresponding to a target service according to target gateway cluster information, target gateway information, and target service information according to an embodiment of the present disclosure;

[0087] FIG8 schematically shows an example diagram of a method for processing a gateway service request according to an embodiment of the present disclosure;

[0088] FIG9 schematically shows an example diagram of a method for managing a cloud-native gateway system according to an embodiment of the present disclosure;

[0089] FIG10 schematically shows a block diagram of a device for processing a service request according to an embodiment of the present disclosure;

[0090] FIG11 schematically shows an example schematic diagram of a management device of a cloud native gateway system according to an embodiment of the present disclosure; and

[0091] Figure 12 schematically shows a block diagram of an electronic device suitable for implementing a method for processing gateway service requests and a method for managing a cloud-native gateway system according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0092] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0093] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0094] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0095] When expressions such as “at least one of A, B, and C, etc.” are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (e.g., “a system having at least one of A, B, and C” should include but is not limited to systems having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, and C, etc.). When expressions such as “at least one of A, B, or C, etc.” are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (e.g., “a system having at least one of A, B, or C” should include but is not limited to systems having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, and C, etc.).

[0096] In the embodiments of the present disclosure, the collection, updating, analysis, processing, use, transmission, provision, disclosure, and storage of the data involved (for example, including but not limited to user personal information) all comply with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures are taken with respect to user personal information to prevent unauthorized access to user personal information data and to maintain the security of user personal information, network security, and national security.

[0097] In the embodiments of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.

[0098] For example, after collecting the gateway service configuration information to be processed, the user information can be desensitized using methods including de-identification or anonymization to protect the security of user information.

[0099] The API gateway can receive client requests, forward the requests to the corresponding backend system services according to predetermined strategies and routes, and process the results returned by the backend servers.

[0100] The resources in the Ingress API resource collection and the gateway API resource collection can be used together to model various networking use cases. The gateway API resource collection can include at least one of the following: gatewayclass resources, gateway resources, HTTPRoute resources, TCPRoute resources, and Service resources. The gateway API can achieve configuration decoupling by separating resource objects, facilitating resource management by different roles.

[0101] However, because the Ingress gateway definition contains relatively few attributes, features such as host domain name, path, and port number, as well as header rewriting, hosts rewriting, and weighting, require additional annotations in the Ingress gateway definition, resulting in a poor user experience. Furthermore, the current gateway definition only provides specifications and lacks a gatewayController that actually handles routing rule issuance.

[0102] In summary, in the process of implementing the concepts disclosed herein, the inventors discovered that there are at least the following problems in the related art: the high availability of resources and services in Kubernetes cannot be guaranteed.

[0103] In order to at least partially solve the technical problems existing in the relevant technologies, the present disclosure provides a method for processing a gateway service request, a management method and device for a cloud native gateway system, which can be applied to the fields of network technology and cloud native technology. The method for processing a gateway service request includes: in response to receiving a pending gateway service request, determining the target gateway cluster information corresponding to the target gateway cluster, the target gateway information corresponding to the target gateway, and the target service information corresponding to the target service according to a preset mapping relationship and the pending gateway service configuration information in the pending gateway service request; determining the respective operating states of at least one container group corresponding to the target service according to the target gateway cluster information, the target gateway information, and the target service information; determining the target container group in at least one container group according to the respective operating states of at least one container group corresponding to the target service; sending the pending gateway service request to the target container group so that the target container group processes the pending gateway service request.

[0104] It should be noted that the method for processing gateway service requests, the method for managing a cloud-native gateway system, and the device provided in the embodiments of the present disclosure can be used in the fields of network technology and cloud-native technology, for example, in the field of container technology. The method for processing gateway service requests, the method for managing a cloud-native gateway system, and the device provided in the embodiments of the present disclosure can also be used in any field other than the fields of network technology and cloud-native technology, for example, in the field of information processing technology. The application fields of the method for processing gateway service requests, the method for managing a cloud-native gateway system, and the device provided in the embodiments of the present disclosure are not limited.

[0105] Figure 1 schematically illustrates a system architecture to which a method for processing gateway service requests and a method for managing a cloud-native gateway system according to an embodiment of the present disclosure can be applied. It should be noted that Figure 1 is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, and does not imply that the embodiments of the present disclosure cannot be applied to other devices, systems, environments, or scenarios.

[0106] As shown in FIG1 , the system architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0107] The user may use at least one of the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0108] The first terminal device 101 , the second terminal device 102 , and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0109] The server 105 may be a server that provides various services, such as a background management server (for example only) that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process received user requests and other data, and feed back processing results (e.g., web pages, information, or data obtained or generated according to user requests) to the terminal devices.

[0110] It should be noted that the method for processing gateway service requests and the method for managing cloud native gateway systems provided in the embodiments of the present disclosure can generally be executed by the server 105. Accordingly, the device for processing gateway service requests and the method for managing cloud native gateway systems provided in the embodiments of the present disclosure can generally be set in the server 105. The method for processing gateway service requests and the method for managing cloud native gateway systems provided in the embodiments of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the device for processing gateway service requests and the method for managing cloud native gateway systems provided in the embodiments of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.

[0111] Alternatively, the method for processing a gateway service request and the method for managing a cloud-native gateway system provided in the embodiments of the present disclosure may also be executed by the first terminal device 101, the second terminal device 102, or the third terminal device 103, or may also be executed by other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103. Accordingly, the apparatus for processing a gateway service request and the apparatus for managing a cloud-native gateway system provided in the embodiments of the present disclosure may also be provided in the first terminal device 101, the second terminal device 102, or the third terminal device 103, or in other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103.

[0112] It should be understood that the number of terminal devices, networks, and servers in Figure 1 is merely illustrative and any number of terminal devices, networks, and servers may be provided as required.

[0113] It should be noted that the sequence numbers of the operations in the following method are only used to indicate the operation for the purpose of description, and should not be regarded as indicating the order in which the operations should be performed. Unless explicitly stated, the method does not need to be performed in the order shown.

[0114] FIG2 schematically shows a flow chart of a method for processing a gateway service request according to an embodiment of the present disclosure.

[0115] As shown in FIG. 2 , the gateway service request processing method 200 includes operations S210 to S240 .

[0116] In operation S210, in response to receiving a pending gateway service request, target gateway cluster information corresponding to the target gateway cluster, target gateway information corresponding to the target gateway, and target service information corresponding to the target service are determined based on a preset mapping relationship and the pending gateway service configuration information in the pending gateway service request.

[0117] In operation S220 , the operating status of each of at least one container group corresponding to the target service is determined according to the target gateway cluster information, the target gateway information, and the target service information.

[0118] In operation S230 , a target container group is determined from the at least one container group according to the respective running states of the at least one container group corresponding to the target service.

[0119] In operation S240 , the pending gateway service request is sent to the target container group, so that the target container group processes the pending gateway service request.

[0120] According to an embodiment of the present disclosure, the method for processing gateway service requests can be implemented based on the container orchestration engine Kubernetes. In Kubernetes, multiple containers can be created, each of which runs an application instance, and the application instances can be managed and accessed through built-in strategies. For example, a gateway proxy can be used to expose services within Kubernetes to the outside of the cluster or forward requests from outside the cluster to the inside of the cluster for access by clients outside the cluster.

[0121] According to embodiments of the present disclosure, methods for implementing interaction between Kubernetes and clients may include at least one of the following: an Ingress and Ingress Controller-based approach, or a Gateway and Gateway Controller-based approach. Ingress and Gateway may refer to routing rules customized by the client. Ingress Controller and Gateway Controller may be provided by software vendors and may dynamically perceive changes in routing rules within the cluster through interaction with Kubernetes.

[0122] According to an embodiment of the present disclosure, the code for generating a pending gateway service request can be pre-written into a target script. In response to detecting a gateway service processing operation initiated by a target user using a target terminal, the target terminal can run the target script, generate a pending gateway service request message and send the message to the server so that the server can process the pending gateway service request message.

[0123] According to an embodiment of the present disclosure, the preset mapping relationship may include at least one of the following: a preset mapping relationship between virtual Internet Protocol address (VIP) information and gateway cluster information, a preset mapping relationship between gateway address information and gateway information, and a preset mapping relationship between service port information and service information.

[0124] According to embodiments of the present disclosure, gateway cluster information can be used to describe different gateway clusters. The gateway cluster information can include at least one of a gateway cluster identifier and a gateway cluster name. For example, based on a preset mapping relationship between virtual Internet Protocol address information and gateway cluster information, virtual Internet Protocol address information that matches the service configuration information to be processed can be determined. In this case, the gateway cluster information corresponding to the virtual Internet Protocol address information can be determined as the target gateway cluster information.

[0125] According to an embodiment of the present disclosure, a gateway cluster may include at least one gateway. The at least one gateway may each correspond to gateway address information. For example, the gateway may refer to an API gateway (i.e., an Application Programming Interface gateway). The gateway may include at least one of the following: a Spring Cloud Gateway gateway and an Nginx gateway. The gateway may route based on a request received from a client so as to forward the request to a corresponding backend service. In addition, the gateway may route based on data received from a backend service so as to forward the data to a corresponding client.

[0126] According to embodiments of the present disclosure, gateway information can be used to describe different gateways. The gateway information can include at least one of a gateway identifier and a gateway name. For example, based on a preset mapping relationship between gateway address information and gateway information, gateway address information matching the service configuration information to be processed can be determined. In this case, the gateway information corresponding to the gateway address information can be determined as the target gateway information.

[0127] According to an embodiment of the present disclosure, each of the at least one gateway may correspond to at least one service. Each of the at least one services may correspond to service port information. The service information may be used to describe different services. The service information may include at least one of a service identifier and a service name. For example, based on a preset mapping relationship between the service port information and the service information, service port information matching the service configuration information to be processed may be determined. In this case, the service information corresponding to the service port information may be determined as the target service information.

[0128] According to an embodiment of the present disclosure, each of at least one service may correspond to at least one container group (i.e., pod). A container group may represent the smallest deployable computing unit created and managed in a container cluster. Each of the at least one container group may include at least one container. At least one container group may each correspond to container group address information. After obtaining the target gateway cluster information, target gateway information, and target service information, the operating status of each of the at least one container groups corresponding to the target service may be determined based on the container group address information of each of the at least one container groups. The operating status may be used to indicate whether the container group is operating normally.

[0129] According to an embodiment of the present disclosure, after obtaining the operating status of at least one container group corresponding to a target service, a target container group can be determined from the at least one container group based on the operating status of the at least one container group. For example, a container group whose operating status indicates normal operation can be determined as the target container group.

[0130] According to an embodiment of the present disclosure, after the target container group is determined, the pending gateway service request can be sent to the target container group according to the container group address information corresponding to the target container group, so that the target container group processes the pending gateway service request and returns a processing result message.

[0131] According to an embodiment of the present disclosure, since the target container group is determined based on the respective operating status of at least one container group corresponding to the target service, and the operating status is determined based on the target gateway cluster information, the target gateway information, and the target service information, it is possible to determine the target container group whose operating status is normal operation. On this basis, by sending the pending gateway service request to the target container group, automatic routing of the gateway service request is achieved, and by utilizing the target container group to process the pending gateway service request, automatic processing of the gateway service request is achieved, thereby at least partially overcoming the technical problem in the related art that the high availability of resources and services in Kubernetes cannot be guaranteed, improving the stability of request processing, and thus ensuring the high availability of resources and services.

[0132] The method 200 for processing a gateway service request according to an embodiment of the present disclosure will be further described below with reference to FIG. 3 , FIG. 4 , FIG. 5A, FIG. 5B, FIG. 6 , FIG. 7 and FIG. 8 .

[0133] According to an embodiment of the present disclosure, the gateway service request processing method 200 can be implemented based on a gatewayController. The gatewayController can monitor gateway update events, assign a virtual Internet Protocol address to the gateway, and store the gateway monitoring content in a distributed registration service center (such as ETCD). In addition, the gatewayController can monitor the domain name, path, request parameter rewrite, backend, and weight on the httproute, and store the httproute monitoring content in the distributed registration service center.

[0134] According to the embodiments of the present disclosure, based on the native semantics of the gateway v1beta version, the k8s-gateway standard is expanded and supplemented to form the code logic of the gatewayController, thereby implementing gateway control plane services. Data plane services are implemented by dynamically adding and removing open source gateway listening ports using a front-end proxy. Furthermore, the gatewayController and front-end proxy collaborate to schedule VIPs, thus forming a complete cloud-native seven-layer gateway service. This will be explained below based on specific embodiments.

[0135] According to an embodiment of the present disclosure, operation S210 may include the following operations.

[0136] Determine the target virtual Internet Protocol address information based on the gateway service configuration information to be processed. Determine the target gateway cluster information corresponding to the target gateway cluster based on the first preset mapping relationship and the target virtual Internet Protocol address information. Determine the gateway address information corresponding to the target gateway and the service port information corresponding to the target service based on the target gateway cluster information. Determine the target gateway information based on the second preset mapping relationship and the gateway address information. Determine the target service information based on the third preset mapping relationship and the service port information.

[0137] According to an embodiment of the present disclosure, a gateway cluster, a gateway, and a service may belong to a custom resource (Custom Resource Definition, CRD). After obtaining the pending gateway service configuration information, the pending gateway service configuration information may be processed to obtain a processing result. Based on the processing result, the target virtual network address information is determined. The target virtual network address information may be used to indicate a target gateway cluster. The processing method of the pending service configuration information may be configured according to actual business needs and is not limited here. For example, the pending service configuration information may be parsed to obtain the domain name information corresponding to the pending service request. On this basis, the target virtual network address information is determined based on the domain name information.

[0138] According to an embodiment of the present disclosure, a first preset mapping relationship can be used to characterize a preset mapping relationship between virtual Internet Protocol address information and gateway cluster information. The first preset mapping relationship may include at least one first key-value relationship. A first key-value relationship may be created based on the virtual Internet Protocol address information and the gateway cluster information. The first key-value relationship may include a one-to-one correspondence between the virtual Internet Protocol address information and the gateway cluster information. The gateway cluster can be characterized using gatewayclass. Gatewayclass may refer to a group of gateways with common configuration and behavior. Gateway clusters can be used to describe the definition of different gateway services by k8s operation and maintenance, so as to selectively authorize gateway clusters that meet business scenarios to business operation and maintenance.

[0139] According to an embodiment of the present disclosure, a second preset mapping relationship can be used to characterize a preset mapping relationship between gateway address information and gateway information. The gateway can be represented by gateway. Gateway can refer to a point that can convert traffic to services within the cluster. Gateway can be used to describe the business operation and maintenance definition of the scope of use of the gateway, for example, which namespace can be used by the business. In addition, the gateway has a VIP and a listening port, and the business operation and maintenance can authorize business users that meet the scope of use through the gateway.

[0140] According to an embodiment of the present disclosure, a third preset mapping relationship can be used to represent the preset mapping relationship between service port information and service information. A route can be represented using an httproute. An httproute can refer to how traffic received through a gateway is mapped to a service. An httproute can be used to describe matching rules for business users for business services. For example, a domain name, path, and backend can be bound to a gateway to expose the service externally.

[0141] According to the embodiments of the present disclosure, since the target gateway cluster information is determined based on the first preset mapping relationship and the target virtual Internet Protocol address information, the target gateway information is determined based on the second preset mapping relationship and the gateway address information, and the target service information is determined based on the third preset mapping relationship and the service port information, it is achieved that the target gateway cluster information, target gateway information and target service information are automatically determined according to the gateway service configuration information to be processed, thereby improving the efficiency of information processing, and thereby improving the efficiency of processing gateway service requests.

[0142] Figure 3 schematically shows an example schematic diagram of determining the target gateway cluster information corresponding to the target gateway cluster, the target gateway information corresponding to the target gateway, and the target service information corresponding to the target service based on the preset mapping relationship and the pending gateway service configuration information in the pending gateway service request according to an embodiment of the present disclosure.

[0143] As shown in Figure 3, in 300, the information determination method of an embodiment of the present disclosure is exemplified by taking as an example at least one gateway cluster including a gateway cluster 304_1 and a gateway cluster 304_2, at least one gateway corresponding to the gateway cluster 304_1 including a gateway 304_11 and a gateway 304_12, at least one service corresponding to the gateway 304_11 including a service 304_111, at least one service corresponding to the gateway 304_12 including a service 304_121 and a service 304_122, at least one gateway corresponding to the gateway cluster 304_21 including a gateway 304_22 and a gateway 304_22, at least one service corresponding to the gateway 304_21 including a service 304_211, a service 304_212 and a service 304_213, and at least one service corresponding to the gateway 304_22 including a service 304_221.

[0144] In response to receiving the pending gateway service request 301, target virtual Internet Protocol address information 302 may be determined based on the pending gateway service configuration information 301_1 in the pending gateway service request 301. Target gateway cluster information corresponding to gateway cluster 304_2 may be determined based on the target virtual Internet Protocol address information 302 and the first preset mapping relationship. Gateway address information 305 and service port information 307 may be determined based on the target gateway cluster information corresponding to gateway cluster 304_2. Target gateway information corresponding to gateway 304_21 may be determined based on the gateway address information 305 and the second preset mapping relationship 306. Target service information corresponding to service 304_212 may be determined based on the service port information 307 and the third preset mapping relationship 308.

[0145] According to an embodiment of the present disclosure, determining target virtual Internet Protocol address information according to the to-be-processed gateway service configuration information may include the following operations.

[0146] In response to receiving the pending gateway service request, the pending gateway service configuration information is parsed to obtain domain name information corresponding to the pending gateway service request, and target virtual network address information is determined based on the domain name information.

[0147] According to an embodiment of the present disclosure, domain name information may refer to the name of a computer or computer group on the Internet, which is composed of a string of names separated by dots. Domain name information may be used to identify the electronic location of a computer during data transmission.

[0148] According to an embodiment of the present disclosure, after obtaining the domain name information, domain name resolution processing can be further performed on the domain name information to map the domain name information into an IP address and obtain the target virtual network address information. The domain name resolution processing method can be configured according to actual business needs and is not limited here. For example, the domain name resolution processing method can include at least one of the following: recursive resolution and iterative resolution. Recursive resolution can refer to completing the name and address conversion in one go. Iterative resolution can refer to requesting a single server each time.

[0149] According to an embodiment of the present disclosure, at least one second key-value relationship may be constructed in the following manner.

[0150] For each second key-value relationship in the at least one second key-value relationship, in response to receiving a gateway creation instruction, obtain a gateway identifier, gateway configuration information, and a gateway cluster identifier. Determine virtual network address information corresponding to the gateway cluster identifier based on the gateway cluster identifier. Determine gateway address information corresponding to the gateway identifier based on the target routing protocol and the virtual network address information. Determine the gateway address information as the second key information. Determine the gateway configuration information as the second value information. Construct a second key-value relationship based on the second key information and the second value information.

[0151] According to an embodiment of the present disclosure, the second preset mapping relationship may include at least one second key-value relationship. The second key-value relationship may include second key information and second value information.

[0152] According to an embodiment of the present disclosure, a Kubernetes cluster can obtain the newly created gateway configuration information when monitoring the existence of a newly created gateway, and generate a gateway creation instruction based on the information. The gateway configuration information can include at least one of the following: a gateway identifier and a gateway cluster identifier.

[0153] According to an embodiment of the present disclosure, the code for generating a gateway creation instruction can be pre-written into a first script. In response to detecting a gateway creation operation initiated by a target user using a target terminal, the target terminal can run the first script, generate a gateway creation instruction message and send the message to the server, so that the server can create a gateway according to the message.

[0154] According to embodiments of the present disclosure, a target routing protocol can be used to convert between private IP addresses and public IP addresses to enable access to the Internet. A private IP address can refer to an address used within a local area network (LAN). A public IP address can refer to an address that can be directly accessed on the Internet.

[0155] According to the embodiments of the present disclosure, the target routing protocol can be configured according to actual business needs and is not limited here. For example, the target routing protocol can include at least one of the following: an all-in mode routing protocol, an equal cost multi-path routing protocol (ECMP), a border gateway routing protocol (BGP), and an open shortest path first routing protocol (OSPF).

[0156] According to an embodiment of the present disclosure, gateway address information corresponding to a gateway identifier can be determined based on a target routing protocol and virtual network address information. After obtaining the virtual network address information and the gateway address information, a second key-value relationship can be created based on the gateway address information and the gateway configuration information. The second key-value relationship can include a one-to-one correspondence between the gateway address information and the gateway configuration information.

[0157] According to an embodiment of the present disclosure, in this case, determining the target gateway information based on the second preset mapping relationship and the gateway address information may include: determining at least one first similarity based on the gateway address information and the second key information corresponding to each of the at least one second key-value relationships; determining the target second key information based on the at least one first similarity; determining the target second value information corresponding to the target second value information based on the target second key information; and determining the target gateway information based on the gateway configuration information corresponding to the target second value information.

[0158] According to an embodiment of the present disclosure, since the second preset mapping relationship may include at least one second key-value relationship, and the second key-value relationship is determined in response to receiving a gateway creation instruction, the second key-value relationship may include a one-to-one correspondence between gateway address information and gateway configuration information, which is conducive to the subsequent use of the second preset mapping relationship to automatically determine the target gateway information, thereby improving the efficiency of determining the target gateway information, and further improving the efficiency of processing gateway service requests.

[0159] FIG4 schematically shows an example diagram of constructing a second key-value relationship according to an embodiment of the present disclosure.

[0160] As shown in FIG. 4 , in 400 , in response to receiving a gateway creation instruction 401 , gateway configuration information 401_1 , a gateway cluster identifier 401_2 , and a gateway identifier 401_3 may be acquired.

[0161] The virtual network address information 402 corresponding to the gateway cluster identifier 401_2 can be determined based on the gateway cluster identifier 401_2. After obtaining the virtual network address information 402, the gateway address information 404 corresponding to the gateway identifier 401_3 can be determined based on the target routing protocol 403 and the virtual network address information 402.

[0162] After obtaining the gateway address information 404, the gateway address information 404 may be determined as the second key information 405. The gateway configuration information 401_1 may be determined as the second value information 406. Based on the second key information 405 and the second value information 406, a second key-value relationship 407 may be constructed.

[0163] According to an embodiment of the present disclosure, when the target routing protocol is the Border Gateway Protocol, determining the gateway address information corresponding to the gateway identifier according to the target routing protocol and the virtual network address information may include the following operations.

[0164] A first resource pool is configured based on the virtual Internet Protocol address information, wherein the first resource pool includes at least one first candidate address information. Target address information is determined from the at least one first candidate address information based on the first resource pool. The target address information is published via any two front-end proxies according to the Border Gateway Protocol, so that the target address information is determined as gateway address information.

[0165] According to embodiments of the present disclosure, the Border Gateway Protocol may refer to a dynamic routing protocol used to exchange routing information between different autonomous systems (ASs) or within the same AS. For example, when two autonomous systems need to exchange routing information, each autonomous system may designate a node running the Border Gateway Protocol, and the node may represent the autonomous system in exchanging routing information with the other autonomous system.

[0166] According to embodiments of the present disclosure, a node running a border gateway protocol may include at least one of a host and a router. For example, in the case of a router, after receiving routing information from an upstream neighbor, the router can flush the optimal route learned from the dynamic routing protocol to the driver to guide traffic forwarding. Furthermore, the router can advertise the optimal route learned from the dynamic routing protocol to its neighbors.

[0167] According to an embodiment of the present disclosure, the first resource pool may include at least one first candidate address information. The first candidate address information may refer to a VIP address. The at least one first candidate address information may be managed and scheduled by a gatewayController. The first resource pool may include at least one of the following: a first dynamic resource pool (i.e., Dynamic Pool) and a first static resource pool (i.e., Static Pool).

[0168] According to an embodiment of the present disclosure, after receiving the gateway creation instruction, the corresponding first resource pool can be configured for the terminal according to the virtual Internet Protocol address information. After the first resource pool is determined, the target address information can be determined from at least one first candidate address information, and the target address information can be returned to the gateway. In addition, the publishing task of the gateway address information corresponding to the gateway can be notified to any two front-end agents (i.e., agents), and the target address information can be published to the switch based on the border gateway protocol via the any two front-end agents, and the target address information can be bound to the local loopback interface. The nodes of any two front-end agents can be set according to actual business needs, and are not limited here. It is only necessary to ensure that there are an even number of nodes. For example, it can be the 2nth node and the 2n+1th node.

[0169] According to an embodiment of the present disclosure, the front-end proxy can be deployed in the same container as the open source gateway (such as Apisix), and multi-copy deployment can be performed through k8s's statefulset. The network mode selects the host mode, and other containers can be excluded through k8s taints and anti-affinity to achieve exclusive nodes. Multi-copy deployment can refer to the selection of the master through the k8s lease, that is, only the master node is responsible for monitoring events and reading and writing distributed registration service centers. The front-end proxy can reload the listening port into the open source gateway, so that the front-end proxy can realize the dynamic addition and deletion of the open source gateway listening port.

[0170] According to an embodiment of the present disclosure, the gatewayController can cooperate with the front-end agent to complete the scheduling of VIP. For example, the PodIP and PodName can be mapped to the environment variables of the container through the k8s downwardAPI. The front-end agent can intercept the serial number from the PodName and report its own heartbeat and serial number to the gatewayController. The gatewayController can perform bit operations on the VIP to obtain the decimal sum of the 4-segment IP, and then perform a modulo remainder operation on the number of Apisix nodes to obtain the corresponding node. The gatewayController can write the VIP into the distributed registration service center directory of the corresponding node to complete the scheduling of the VIP.

[0171] According to the embodiments of the present disclosure, since the target address information is determined from at least one first candidate address information based on the first resource pool, the target address information is automatically determined, thereby shortening the VIP address scheduling time, improving the processing efficiency of VIP address scheduling, and further improving the efficiency of gateway address information determination. Furthermore, since the gateway address information is determined based on the Border Gateway Protocol via the release of the target address information by any two front-end proxies, optimization is achieved for operations and maintenance and business users.

[0172] FIG5A schematically shows an example diagram of determining gateway address information corresponding to a gateway identifier according to a target routing protocol and virtual network address information according to an embodiment of the present disclosure.

[0173] As shown in Figure 5A, in 500A, a first resource pool 502 can be configured based on virtual Internet Protocol address information 501. The first resource pool 502 can include at least one piece of first candidate address information. The at least one piece of first candidate address information can include first candidate address information 502_1, first candidate address information 502_2, ..., first candidate address information 502_p, ..., and first candidate address information 502_P. P can be an integer greater than or equal to 1, where p∈{1, 2, ..., (P-1), P}.

[0174] Target address information 503 may be determined from first candidate address information 502_1, first candidate address information 502_2, ..., first candidate address information 502_p, ..., first candidate address information 502_P. Target address information 503 is published via front-end proxy 505_1 and front-end proxy 505_2 according to border gateway protocol 504, so as to be determined as gateway address information 506.

[0175] According to an embodiment of the present disclosure, when the target routing protocol is an equal-cost multi-path routing protocol, determining the gateway address information corresponding to the gateway identifier according to the target routing protocol and the virtual network address information may include the following operations.

[0176] A second resource pool is configured based on the virtual Internet Protocol address information, wherein the second resource pool includes at least one second candidate address information. Target address information is determined from the at least one second candidate address information based on the second resource pool. Equal-cost routing information corresponding to the target address information is configured based on an equal-cost multipath routing protocol. The equal-cost routing information is determined as the gateway address information.

[0177] According to embodiments of the present disclosure, an equal-cost multi-path routing protocol can refer to a network environment that uses multiple links simultaneously, i.e., a network environment where multiple different links reach the same destination address. The path selection method of the equal-cost multi-path routing protocol can be configured based on actual business needs and is not limited herein. For example, the path selection method may include at least one of the following: a hash-based path selection method, a round-robin-based path selection method, and a path weight-based path selection method.

[0178] According to an embodiment of the present disclosure, the second resource pool may include at least one second candidate address information. The second candidate address information may refer to a VIP address. The at least one second candidate address information may be managed and scheduled by a gatewayController. The second resource pool may include at least one of the following: a second dynamic resource pool (i.e., Dynamic Pool) and a second static resource pool (i.e., Static Pool).

[0179] According to an embodiment of the present disclosure, the VIP network segment can be equally routed to all nodes of apisix by configuring equal-cost routing on the switch. After receiving the gateway creation instruction, a corresponding second resource pool can be configured for the terminal based on the virtual Internet Protocol address information. After the second resource pool is determined, the target address information can be determined from at least one second candidate address information, and the equal-cost routing information corresponding to the target address information can be configured via the equal-cost multipath routing protocol, and the equal-cost routing information is returned to the gateway.

[0180] According to the embodiments of the present disclosure, when the target routing protocol is an ALL-IN mode routing protocol, all the APISIX node IP addresses reported by the front-end agent can be returned to the gateway, and the service user can select one or more IP gateway address information. The specific implementation in this case is relatively simple.

[0181] According to the embodiments of the present disclosure, since the target address information is determined from at least one second candidate address information based on the second resource pool, the target address information is automatically determined, thereby shortening the VIP address scheduling time, improving the processing efficiency of VIP address scheduling, and further improving the efficiency of gateway address information determination. Furthermore, since the gateway address information is determined based on an equal-cost multipath routing protocol by configuring equal-cost routing information corresponding to the target address information, it is more user-friendly and improves the user experience.

[0182] FIG5B schematically shows an example diagram of determining gateway address information corresponding to a gateway identifier according to a target routing protocol and virtual network address information according to another embodiment of the present disclosure.

[0183] As shown in FIG5B , in 500B, a second resource pool 508 may be configured based on virtual Internet Protocol address information 507. Second resource pool 508 may include at least one piece of second candidate address information. The at least one piece of second candidate address information may include second candidate address information 508_1, second candidate address information 508_2, ..., second candidate address information 508_q, ..., and second candidate address information 508_Q. Q may be an integer greater than or equal to 1, where q∈{1, 2, ..., (Q-1), Q}.

[0184] Destination address information 509 can be determined from second candidate address information 508_1, second candidate address information 508_2, ..., second candidate address information 508_q, ..., and second candidate address information 508_Q. Equal-cost routing information 511 corresponding to destination address information 509 is configured according to equal-cost multi-path routing protocol 510. Equal-cost routing information 511 is determined as gateway address information 512.

[0185] According to an embodiment of the present disclosure, determining the gateway address information corresponding to the target gateway and the service port information corresponding to the target service according to the target gateway cluster information may include the following operations.

[0186] Determine the network segment range of the target gateway cluster based on the target gateway cluster information. For each of the at least one gateway, determine the gateway address information corresponding to the gateway based on the network segment range of the target gateway cluster. For each of the at least one service corresponding to the gateway, determine the service port information of the service corresponding to the gateway based on the gateway address information corresponding to the gateway.

[0187] According to an embodiment of the present disclosure, a target gateway cluster may include at least one gateway. Each of the at least one gateway may correspond to at least one service. Each of the at least one gateway may correspond to gateway address information. Each of the at least one services may correspond to service port information.

[0188] According to an embodiment of the present disclosure, after obtaining the target gateway cluster information, the network segment range of the target gateway cluster can be determined based on the target gateway cluster information. The network segment range can be represented by WXYZ. W, X, Y, Z∈[0, 255]. For example, the network segment range can be set to W∈[0, 10], X∈[0, 10], ∈[0, 10], Z∈[0, 255], that is, the network segment range can include Internet Protocol addresses in the range of 0.0.0.0 to 10.10.10.255. After obtaining the network segment range of the target gateway cluster, the gateway address information corresponding to the gateway can be determined for each gateway in at least one gateway.

[0189] According to an embodiment of the present disclosure, at least one third key-value relationship may be constructed in the following manner.

[0190] For each of the at least one third key-value relationships, in response to receiving a service creation instruction, a service identifier, service configuration information, and a gateway identifier are obtained. Based on the gateway identifier, gateway address information corresponding to the gateway identifier is determined. Based on the gateway address information, service port information corresponding to the service identifier is determined. The service port information is determined as the third key information. The service configuration information is determined as the third value information. A third key-value relationship is constructed based on the third key information and the third value information.

[0191] According to an embodiment of the present disclosure, the third preset mapping relationship may include at least one third key-value relationship. The third key-value relationship may include third key information and third value information.

[0192] According to an embodiment of the present disclosure, a Kubernetes cluster can obtain the newly created service configuration information when monitoring the existence of a newly created service and generate a service creation instruction based on it. The service configuration information may include at least one of the following: container address, service domain name, service port, and service annotation information.

[0193] According to an embodiment of the present disclosure, the code for generating a service creation instruction can be pre-written into a second script. In response to detecting a service creation operation initiated by a target user using a target terminal, the target terminal can run the second script, generate a service creation instruction message and send the message to the server so that the server can create a service based on the message.

[0194] According to an embodiment of the present disclosure, gateway address information corresponding to the gateway identifier can be determined based on the gateway identifier. Service port information corresponding to the service identifier can be determined based on the gateway address information. After obtaining the service port information, a third key-value relationship can be created based on the service port information and the service configuration information. The third key-value relationship can include a one-to-one correspondence between the service port information and the service configuration information.

[0195] According to an embodiment of the present disclosure, in this case, determining the target service information based on the third preset mapping relationship and the service port information may include: determining at least one second similarity based on the service port information and the third key information corresponding to each of the at least one third key-value relationships; determining the target third key information based on the at least one second similarity; determining the target third value information corresponding to the target third value information based on the target third key information; and determining the target service information based on the service configuration information corresponding to the target third value information.

[0196] According to an embodiment of the present disclosure, since the third preset mapping relationship may include at least one third key-value relationship, the third key-value relationship is determined in response to receiving a service creation instruction, and thus the third key-value relationship may include a one-to-one correspondence between service port information and service configuration information, which is conducive to the subsequent use of the third preset mapping relationship to automatically determine the target service information, thereby improving the efficiency of determining the target service information, and further improving the efficiency of processing service requests.

[0197] FIG6 schematically shows an example diagram of constructing a third key-value relationship according to an embodiment of the present disclosure.

[0198] As shown in FIG. 6 , in step 600 , in response to receiving a service creation instruction 601 , gateway service configuration information 601_1 , a gateway identifier 601_2 , and a service identifier 601_3 may be acquired.

[0199] According to the gateway identifier 601_2, the gateway address information 602 corresponding to the gateway identifier 601_2 can be determined. According to the gateway address information 602, the service port information 603 corresponding to the service identifier 601_3 can be determined.

[0200] The service port information 603 may be determined as the third key information 604. The gateway service configuration information 6011 may be determined as the third value information 605. According to the third key information 604 and the third value information 605, a third key-value relationship 606 may be constructed.

[0201] According to an embodiment of the present disclosure, operation S220 may include the following operations.

[0202] For each container group address information in the at least one container group address information, a detection network connection is established with the container group based on the container group address information. If a heartbeat detection packet from the container group is received within a predetermined period, the container group is determined to be in a normal operating state. If no heartbeat detection packet from the container group is received within the predetermined period, the container group is determined to be in an abnormal operating state.

[0203] According to an embodiment of the present disclosure, the target service information may include container group address information corresponding to each of the at least one container groups.

[0204] According to embodiments of the present disclosure, a probing network connection can be used to represent a short connection between a gateway controller and a container group. A short connection refers to a connection established only when data is needed during data transmission and disconnected after the data is sent. This means that each connection only transmits one service. After establishing a probing network connection, heartbeat probe packets can be sent to the container group based on the probing network connection.

[0205] According to embodiments of the present disclosure, a heartbeat detection packet may refer to a custom command word that periodically notifies a gateway controller and a container group of their respective status. Heartbeat detection packets may be sent at predetermined intervals. The predetermined interval can be set based on actual business needs and is not limited here. The predetermined interval may be a pre-set detection time interval, for example, a 30-minute interval.

[0206] According to an embodiment of the present disclosure, operation S230 may include the following operations.

[0207] In response to the running status of the container group being a normal running state, the container group is determined as a target container group.

[0208] According to embodiments of the present disclosure, an abnormal operating state can be determined when no heartbeat detection packets are received from a container group within a predetermined period. A normal operating state can be determined when a heartbeat detection packet is received from a container group within a predetermined period. A container group in a normal operating state can be determined as a target container group.

[0209] FIG7 schematically shows an example schematic diagram of determining the respective running status of at least one container group corresponding to a target service according to target gateway cluster information, target gateway information, and target service information according to an embodiment of the present disclosure.

[0210] As shown in Figure 7, in 700, for each container group address information 701 in at least one container group address information, a detection network connection 702 may be established with the container group according to the container group address information 701. After the detection network connection 702 is established, operation S710 may be performed.

[0211] In operation S710, is a heartbeat detection packet sent by the container group received within a predetermined period of time?

[0212] If so, it can be determined that the running status of the container group belongs to the normal running status 703.

[0213] If not, it can be determined that the running state of the container group is in an abnormal running state 704.

[0214] According to an embodiment of the present disclosure, operation S240 may include the following operations.

[0215] Determine the target container group address information corresponding to the target container group. Establish an actual network connection with the target container group based on the target container group address information. Send the pending service request to the target container group based on the actual network connection.

[0216] According to embodiments of the present disclosure, an actual network connection can be established with the target container group based on the target container group address information. The actual network connection can be used to represent a persistent connection between the gateway controller and the target container group. A persistent connection can refer to a connection that can continuously send multiple data packets. After the actual network connection is established, the pending gateway service request can be sent to the target container group via the actual network connection based on the application layer protocol.

[0217] According to an embodiment of the present disclosure, the application layer protocol may include at least one of the following: a full-duplex communication protocol based on the Transmission Control Protocol (WebSocket), a Hypertext Transfer Protocol (HTTP), and a Message Queuing Telemetry Transport (MQTT).

[0218] FIG8 schematically shows an example diagram of a method for processing a gateway service request according to an embodiment of the present disclosure.

[0219] As shown in FIG8 , operations S801 to S814 schematically illustrate a method for processing a gateway service request.

[0220] In operation S801, k8s operation and maintenance can create a gateway cluster.

[0221] In operation S802, the k8s operation and maintenance can point the gateway cluster identifier to the system component.

[0222] In operation S803, the k8s operation and maintenance can authorize the gateway cluster to the business operation and maintenance.

[0223] In operation S804 , the business operation and maintenance may create a gateway.

[0224] In operation S805, the business operation and maintenance can point the gateway identifier to the gateway cluster of k8s operation and maintenance.

[0225] In operation S806, the gateway cluster operated and maintained by k8s can allocate gateway address information to the gateway.

[0226] In operation S807, the k8s operation and maintenance can send the gateway address information to the business operation and maintenance.

[0227] In operation S808 , the service operation and maintenance may receive gateway address information.

[0228] In operation S809 , the business operation and maintenance may authorize the gateway to the business user.

[0229] In operation S810 , a business user may create a service.

[0230] In operation S811 , the service user may point the service identifier to the gateway.

[0231] In operation S812, the service operation and maintenance gateway may allocate service port information for the service.

[0232] In operation S813 , the service operation and maintenance may send the service port information to the service user.

[0233] In operation S814 , the service user may receive service port information.

[0234] The above are only exemplary embodiments, but are not limited thereto. Other gateway service request processing methods known in the art may also be included, as long as they can improve the stability of request processing and ensure high availability of resources and services.

[0235] FIG9 schematically shows a flowchart of a method for managing a cloud-native gateway system according to an embodiment of the present disclosure.

[0236] As shown in FIG9 , the cloud-native gateway system management method 900 includes operations S910 to S920 .

[0237] In operation S910, a target gateway service request is processed using a gateway service request processing method to obtain a processing result, wherein the target gateway service request includes target gateway service configuration information, and the target gateway service configuration information is associated with a cloud native gateway system.

[0238] In operation S920 , the cloud native gateway system is managed according to the processing result.

[0239] FIG10 schematically shows a block diagram of a device for processing a gateway service request according to an embodiment of the present disclosure.

[0240] As shown in FIG. 10 , the service request processing apparatus 1000 may include a first determining module 1010 , a second determining module 1020 , a third determining module 1030 and a sending module 1040 .

[0241] The first determination module 1010 is used to determine, in response to receiving a pending service request, the target gateway cluster information corresponding to the target gateway cluster, the target gateway information corresponding to the target gateway, and the target service information corresponding to the target service according to a preset mapping relationship and the pending service configuration information in the pending service request.

[0242] The second determining module 1020 is configured to determine the respective running status of at least one container group corresponding to the target service according to the target gateway cluster information, the target gateway information, and the target service information.

[0243] The third determining module 1030 is configured to determine a target container group from the at least one container group according to the respective running states of the at least one container group corresponding to the target service.

[0244] The sending module 1040 is configured to send the pending service request to the target container group so that the target container group can process the pending service request.

[0245] According to an embodiment of the present disclosure, the first determining module 1010 may include a first determining submodule, a second determining submodule, a third determining submodule, a fourth determining submodule, and a fifth determining submodule.

[0246] The first determining submodule is configured to determine target virtual Internet Protocol address information according to the service configuration information to be processed.

[0247] The second determining submodule is configured to determine target gateway cluster information corresponding to the target gateway cluster according to the first preset mapping relationship and the target virtual Internet Protocol address information.

[0248] The third determining submodule is configured to determine, based on the target gateway cluster information, gateway address information corresponding to the target gateway and service port information corresponding to the target service.

[0249] The fourth determining submodule is configured to determine target gateway information according to the second preset mapping relationship and the gateway address information.

[0250] The fifth determining submodule is configured to determine target service information according to the third preset mapping relationship and the service port information.

[0251] According to an embodiment of the present disclosure, the target gateway cluster includes at least one gateway, each of the at least one gateway corresponds to at least one service, each of the at least one gateway corresponds to gateway address information, and each of the at least one service corresponds to service port information.

[0252] According to an embodiment of the present disclosure, the third determining submodule may include a first determining unit, a second determining unit, and a third determining unit.

[0253] The first determining unit is configured to determine a network segment range of a target gateway cluster according to the target gateway cluster information.

[0254] The second determining unit is configured to determine, for each gateway of the at least one gateway, gateway address information corresponding to the gateway according to a network segment range of the target gateway cluster.

[0255] The third determining unit is configured to determine, for each of the at least one service corresponding to the gateway, service port information of the service corresponding to the gateway according to the gateway address information corresponding to the gateway.

[0256] According to an embodiment of the present disclosure, the first determining submodule may include a processing unit and a fourth determining unit.

[0257] The processing unit is configured to, in response to receiving a service request to be processed, parse the service configuration information to be processed and obtain domain name information corresponding to the service request to be processed.

[0258] The fourth determining unit is configured to determine target virtual network address information according to the domain name information.

[0259] According to an embodiment of the present disclosure, the second preset mapping relationship includes at least one second key-value relationship, the second key-value relationship includes second key information and second value information, and the at least one second key-value relationship can be constructed in the following manner.

[0260] For each second key-value relationship in the at least one second key-value relationship, in response to receiving a gateway creation instruction, obtain a gateway identifier, gateway configuration information, and a gateway cluster identifier. Determine virtual network address information corresponding to the gateway cluster identifier based on the gateway cluster identifier. Determine gateway address information corresponding to the gateway identifier based on the target routing protocol and the virtual network address information. Determine the gateway address information as the second key information. Determine the gateway configuration information as the second value information. Construct a second key-value relationship based on the second key information and the second value information.

[0261] According to an embodiment of the present disclosure, when the target routing protocol is the Border Gateway Protocol, determining the gateway address information corresponding to the gateway identifier according to the target routing protocol and the virtual network address information may include:

[0262] A first resource pool is configured based on the virtual Internet Protocol address information, wherein the first resource pool includes at least one first candidate address information. Target address information is determined from the at least one first candidate address information based on the first resource pool. The target address information is published via any two front-end proxies according to the Border Gateway Protocol, so that the target address information is determined as gateway address information.

[0263] According to an embodiment of the present disclosure, when the target routing protocol is an equal-cost multi-path routing protocol, determining the gateway address information corresponding to the gateway identifier according to the target routing protocol and the virtual network address information may include:

[0264] A second resource pool is configured based on the virtual Internet Protocol address information, wherein the second resource pool includes at least one second candidate address information. Target address information is determined from the at least one second candidate address information based on the second resource pool. Equal-cost routing information corresponding to the target address information is configured based on an equal-cost multipath routing protocol. The equal-cost routing information is determined as the gateway address information.

[0265] According to an embodiment of the present disclosure, the third preset mapping relationship includes at least one third key-value relationship, the third key-value relationship includes third key information and third value information, and the at least one third key-value relationship can be constructed in the following manner.

[0266] For each of the at least one third key-value relationships, in response to receiving a service creation instruction, a service identifier, service configuration information, and a gateway identifier are obtained. Based on the gateway identifier, gateway address information corresponding to the gateway identifier is determined. Based on the gateway address information, service port information corresponding to the service identifier is determined. The service port information is determined as the third key information. The service configuration information is determined as the third value information. A third key-value relationship is constructed based on the third key information and the third value information.

[0267] According to an embodiment of the present disclosure, the target service information includes container group address information corresponding to at least one container group.

[0268] According to an embodiment of the present disclosure, the second determining module 1020 may include a first establishing submodule, a sixth determining submodule, and a seventh determining submodule.

[0269] The first establishing submodule is configured to establish a detection network connection with the container group according to the container group address information for each container group address information in the at least one container group address information.

[0270] The sixth determining submodule is configured to determine that the running state of the container group is a normal running state when a heartbeat detection packet sent by the container group is received within a predetermined time period.

[0271] The seventh determining submodule is configured to determine that the running state of the container group is an abnormal running state if no heartbeat detection packet sent by the container group is received within a predetermined period of time.

[0272] According to an embodiment of the present disclosure, the third determining module 1030 may include an eighth determining submodule.

[0273] The eighth determining submodule is configured to determine the container group as a target container group in response to the container group's operating state being in a normal operating state.

[0274] According to an embodiment of the present disclosure, the sending module 1040 may include a ninth determining submodule, a second establishing submodule, and a sending submodule.

[0275] The ninth determining submodule is configured to determine target container group address information corresponding to the target container group.

[0276] The second establishing submodule is configured to establish an actual network connection with the target container group according to the target container group address information.

[0277] The sending submodule is used to send the pending service request to the target container group based on the actual network connection.

[0278] FIG11 schematically shows a block diagram of a device for processing a gateway service request according to an embodiment of the present disclosure.

[0279] As shown in FIG11 , the management device 1100 of the cloud-native gateway system may include a processing module 1110 and a management module 1120 .

[0280] The processing module 1110 is used to use the gateway service request processing device to process the target gateway service request and obtain a processing result, wherein the target gateway service request includes target gateway service configuration information, and the target gateway service configuration information is associated with the cloud native gateway system.

[0281] The management module 1120 is used to manage the cloud native gateway system based on the processing results.

[0282] According to the modules, submodules, units, and subunits of the embodiments of the present invention, any multiple or at least part of the functions of any multiple thereof can be implemented in one module. According to the modules, submodules, units, and subunits of the embodiments of the present invention, any one or more thereof can be split into multiple modules for implementation. According to the modules, submodules, units, and subunits of the embodiments of the present invention, any one or more thereof can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware of any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware, and firmware or in an appropriate combination of any of them. Alternatively, according to the modules, submodules, units, and subunits of the embodiments of the present invention, one or more thereof can be at least partially implemented as a computer program module, which can perform the corresponding function when the computer program module is run.

[0283] For example, any multiple of the first determination module 1010, the second determination module 1020, the third determination module 1030, and the sending module 1040 can be combined into one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first determination module 1010, the second determination module 1020, the third determination module 1030, and the sending module 1040 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware in any other reasonable manner of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware, and firmware, or in an appropriate combination of any of them. Alternatively, at least one of the first determination module 1010 , the second determination module 1020 , the third determination module 1030 and the sending module 1040 may be at least partially implemented as a computer program module, which may perform corresponding functions when executed.

[0284] It should be noted that the processing device part of the gateway service request in the embodiment of the present disclosure corresponds to the processing method part of the gateway service request in the embodiment of the present disclosure. The description of the processing device part of the gateway service request specifically refers to the processing method part of the gateway service request, which will not be repeated here.

[0285] For example, any number of the processing modules 1110 and the management modules 1120 can be combined into one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functionality of one or more of these modules / units / sub-units can be combined with at least part of the functionality of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the processing modules 1110 and the management modules 1120 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented in hardware or firmware by any other reasonable means of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, at least one of the processing modules 1110 and the management modules 1120 can be at least partially implemented as a computer program module, which can perform the corresponding functions when the computer program module is executed.

[0286] It should be noted that the management device part of the cloud native gateway system in the embodiment of the present disclosure corresponds to the management method part of the cloud native gateway system in the embodiment of the present disclosure. The description of the management device part of the cloud native gateway system specifically refers to the management method part of the cloud native gateway system, which will not be repeated here.

[0287] Figure 12 schematically illustrates a block diagram of an electronic device suitable for implementing a method for processing gateway service requests and a method for managing a cloud-native gateway system according to an embodiment of the present disclosure. The electronic device shown in Figure 12 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0288] As shown in Figure 12, the computer electronic device 1200 according to an embodiment of the present disclosure includes a processor 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage part 1209 into a random access memory (RAM) 1203. The processor 1201 may, for example, include a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1201 may also include onboard memory for caching purposes. The processor 1201 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0289] Various programs and data required for the operation of the electronic device 1200 are stored in the RAM 1203. The processor 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. The processor 1201 performs various operations of the method flow according to the embodiment of the present disclosure by executing the programs in the ROM 1202 and / or the RAM 1203. It should be noted that the programs may also be stored in one or more memories other than the ROM 1202 and the RAM 1203. The processor 1201 may also perform various operations of the method flow according to the embodiment of the present disclosure by executing the programs stored in the one or more memories.

[0290] According to an embodiment of the present disclosure, electronic device 1200 may further include an input / output (I / O) interface 1205, which is also connected to bus 1204. Electronic device 1200 may further include one or more of the following components connected to I / O interface 1205: an input section 1206 including a keyboard, mouse, etc.; an output section 1207 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and speakers; a storage section 1208 including a hard disk; and a communication section 1209 including a network interface card such as a LAN card or a modem. Communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to I / O interface 1205 as needed. Removable media 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in drive 1210 as needed, so that computer programs read from the removable media can be installed into storage section 1208 as needed.

[0291] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1209, and / or installed from the removable medium 1211. When the computer program is executed by the processor 1201, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.

[0292] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when executed, implements the method according to the embodiments of the present disclosure.

[0293] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0294] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 1202 and / or the RAM 1203 described above and / or one or more memories other than the ROM 1202 and the RAM 1203 .

[0295] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the gateway service request processing method and cloud-native gateway system management method provided by the embodiment of the present disclosure.

[0296] When the computer program is executed by the processor 1201, the above functions defined in the system / device of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0297] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 1209, and / or installed from the removable medium 1211. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0298] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).

[0299] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, program segment, or portion of code, which contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the boxes may occur in an order different from that marked in the accompanying drawings. For example, two boxes shown in succession may actually be executed substantially in parallel, or they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, as well as the combination of boxes in the block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or may be implemented using a combination of dedicated hardware and computer instructions. It will be understood by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or coupled in various ways, even if such combinations or couplings are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or coupled in various ways, and all such combinations and / or couplings fall within the scope of the present disclosure.

[0300] The embodiments of the present disclosure are described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for processing a gateway service request, comprising: In response to receiving a pending gateway service request, determining target gateway cluster information corresponding to the target gateway cluster, target gateway information corresponding to the target gateway, and target service information corresponding to the target service according to a preset mapping relationship and the pending gateway service configuration information in the pending gateway service request; Determine, according to the target gateway cluster information, the target gateway information, and the target service information, a respective running state of at least one container group corresponding to the target service; Determine a target container group in the at least one container group corresponding to the target service according to the respective running states of the at least one container group; as well as The to-be-processed gateway service request is sent to the target container group, so that the target container group processes the to-be-processed gateway service request.

2. The method according to claim 1, wherein: In response to receiving the pending gateway service request, determining the target gateway cluster information corresponding to the target gateway cluster, the target gateway information corresponding to the target gateway, and the target service information corresponding to the target service according to the preset mapping relationship and the pending gateway service configuration information in the pending gateway service request includes: Determining target virtual Internet Protocol address information according to the to-be-processed gateway service configuration information; Determine the target gateway cluster information corresponding to the target gateway cluster according to the first preset mapping relationship and the target virtual Internet Protocol address information; Determine, according to the target gateway cluster information, the gateway address information corresponding to the target gateway and the service port information corresponding to the target service; Determining the target gateway information according to the second preset mapping relationship and the gateway address information; and The target service information is determined according to a third preset mapping relationship and the service port information.

3. The method according to claim 2, wherein: The target gateway cluster includes at least one gateway, each of the at least one gateway corresponds to at least one service, each of the at least one gateway corresponds to gateway address information, and each of the at least one service corresponds to service port information; The determining, according to the target gateway cluster information, the gateway address information corresponding to the target gateway and the service port information corresponding to the target service comprises: Determine the network segment range of the target gateway cluster according to the target gateway cluster information; For each gateway of the at least one gateway, Determining the gateway address information corresponding to the gateway according to the network segment range of the target gateway cluster; and For each of the at least one service corresponding to the gateway, The service port information of the service corresponding to the gateway is determined according to the gateway address information corresponding to the gateway.

4. The method according to claim 2, wherein: In response to receiving the to-be-processed gateway service request, determining target virtual Internet Protocol address information according to the to-be-processed gateway service configuration information includes: In response to receiving the pending gateway service request, parsing the pending gateway service configuration information to obtain domain name information corresponding to the pending gateway service request; and The target virtual network address information is determined according to the domain name information.

5. The method according to claim 2, wherein: The second preset mapping relationship includes at least one second key-value relationship, the second key-value relationship includes second key information and second value information, and the at least one second key-value relationship is constructed in the following manner: For each second key-value relationship in the at least one second key-value relationship, In response to receiving the gateway creation instruction, obtaining a gateway identifier, gateway configuration information, and a gateway cluster identifier; According to the gateway cluster identifier, determining virtual network address information corresponding to the gateway cluster identifier; Determine the gateway address information corresponding to the gateway identifier according to the target routing protocol and the virtual network address information; Determining the gateway address information as the second key information; Determine the gateway configuration information as the second value information; as well as The second key-value relationship is constructed according to the second key information and the second value information.

6. The method according to claim 5, wherein: In the case where the target routing protocol is the Border Gateway Protocol, The determining, according to the target routing protocol and the virtual network address information, the gateway address information corresponding to the gateway identifier comprises: According to the virtual Internet Protocol address information, configuring a first resource pool, wherein the first resource pool includes at least one first candidate address information; determining target address information from the at least one first candidate address information according to the first resource pool; and According to the border gateway protocol, the target address information is published via any two front-end proxies, so as to determine the target address information as the gateway address information.

7. The method according to claim 5, wherein: In the case where the target routing protocol is an equal-cost multi-path routing protocol, The determining, according to the target routing protocol and the virtual network address information, the gateway address information corresponding to the gateway identifier comprises: According to the virtual Internet Protocol address information, configuring a second resource pool, wherein the second resource pool includes at least one second candidate address information; determining target address information in the at least one second candidate address information according to the second resource pool; According to the equal-cost multi-path routing protocol, configuring equal-cost routing information corresponding to the target address information; and The equal-cost routing information is determined as the gateway address information.

8. The method according to claim 2, wherein: The third preset mapping relationship includes at least one third key-value relationship, the third key-value relationship includes third key information and third value information, and the at least one third key-value relationship is constructed in the following manner: For each third key-value relationship in the at least one third key-value relationship, In response to receiving the service creation instruction, obtaining a service identifier, service configuration information, and a gateway identifier; According to the gateway identifier, determining the gateway address information corresponding to the gateway identifier; Determine the service port information corresponding to the service identifier according to the gateway address information; Determining the service port information as the third key information; Determine the service configuration information as the third value information; as well as The third key-value relationship is constructed according to the third key information and the third value information.

9. The method according to any one of claims 1 to 8, wherein: The target service information includes container group address information corresponding to each of the at least one container group; The determining, according to the target gateway cluster information, the target gateway information, and the target service information, the respective running states of at least one container group corresponding to the target service comprises: For each container group address information in the at least one container group address information, Establishing a detection network connection with the container group according to the container group address information; In the case where a heartbeat detection packet sent by the container group is received within a predetermined period of time, determining that the running state of the container group is a normal running state; and When no heartbeat detection packet sent by the container group is received within the predetermined period of time, it is determined that the running state of the container group is in an abnormal running state.

10. The method according to claim 9, wherein: The determining the target container group in the at least one container group corresponding to the target service according to the respective running states of the at least one container group comprises: In response to the running state of the container group being a normal running state, the container group is determined as the target container group.

11. The method according to any one of claims 1 to 8, wherein: The sending the to-be-processed gateway service request to the target container group comprises: Determine target container group address information corresponding to the target container group; Establishing an actual network connection with the target container group according to the target container group address information; and Based on the actual network connection, the pending gateway service request is sent to the The target container group.

12. A method for managing a cloud native gateway system, comprising: Using the method described in any one of claims 1 to 11, processing a target gateway service request to obtain a processing result, wherein the target gateway service request includes target gateway service configuration information, and the target gateway service configuration information is associated with a cloud native gateway system; and The cloud native gateway system is managed according to the processing result.

13. A gateway service request processing device, comprising: A first determination module is used to determine, in response to receiving a pending gateway service request, target gateway cluster information corresponding to the target gateway cluster, target gateway information corresponding to the target gateway, and target service information corresponding to the target service according to a preset mapping relationship and the pending gateway service configuration information in the pending gateway service request; A second determination module is used to determine the respective running status of at least one container group corresponding to the target service according to the target gateway cluster information, the target gateway information and the target service information; A third determining module, configured to determine a target container group in the at least one container group corresponding to the target service according to a respective running state of the at least one container group. as well as The sending module is used to send the to-be-processed gateway service request to the target container group, so that the target container group processes the to-be-processed gateway service request.

14. A management device for a cloud native gateway system, comprising: A processing module, configured to process a target gateway service request using the apparatus of claim 13 to obtain a processing result, wherein the target gateway service request includes target gateway service configuration information, and the target gateway service configuration information is associated with a cloud native gateway system; and A management module is used to manage the cloud native gateway system according to the processing result.

15. An electronic device, comprising: one or more processors; A memory for storing one or more instructions, Wherein, when the one or more instructions are executed by the one or more processors, The one or more processors are caused to implement the method of any one of claims 1 to 11 or claim 12.

16. A computer-readable storage medium having executable instructions stored thereon, wherein when the executable instructions are executed by a processor, the processor is enabled to implement the method of any one of claims 1 to 11 or claim 12.

17. A computer program product, comprising computer executable instructions, which are used to implement the method of any one of claims 1 to 11 or claim 12 when executed.

Citation Information

Patent Citations

  • System, method and apparatus for providing container services

    CN109582441A

  • Load balancing method, system and device

    CN113783922A

  • Service access method and device, electronic equipment and storage medium

    CN114398176A

  • Implementation method and device of multi-cluster architecture and multi-cluster architecture system

    CN114884956A

  • Method and device for accessing k8s container environment based on transport layer routing

    CN115242882A

Cited By

  • Request processing method and device and electronic equipment

    CN119728770A

  • Method, device and equipment for detecting node state in k8s cluster and medium

    CN120675991A

  • Cross-bus cluster service calling method and device, equipment and storage medium

    CN120915850A

  • Microservice unified access and global governance method based on gateway identifier injection

    CN122475937A