Access request processing method, device, equipment, system and storage medium
By introducing a soft load server cluster into the access request processing system of the Red Hat Cloud Platform, the domain name information in the access request header is processed to make it consistent with the virtual domain name address of the multi-application cloud platform, which solves the domain name contention problem and alleviates the problem. Transform workloads and support cross-namespace management and heterogeneous system deployment.
Patent Information
- Application Number
- CN202211241605.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-11
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-10-11
AI Technical Summary
Due to domain name restrictions, Red Hat Cloud Platform has domain name contention issues when deploying multiple applications. The existing technology requires re-applying for multiple domain names and modifying the existing request address code, resulting in a heavy workload.
Introduce a soft load server cluster into the access request processing system to avoid domain name contention by receiving and processing the domain name information in the access request header to make it consistent with the virtual domain name addresses defined for different namespaces in the multi-application cloud platform. , and reduce code modifications.
It solves the domain name contention problem without modifying the code and re-applying for the domain name, reducing the workload of system modification, and supports cross-namespace management and heterogeneous system deployment.
Smart Images

Figure CN115529292B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing technology, and in particular, to an access request processing method, apparatus, device, system and storage medium. Background Art
[0002] Red Hat Cloud, also known as OpenShift Container Platform (OCP for short), is a mature commercial cloud platform provided by Red Hat. It has the capabilities of application containerization release and rapid expansion and contraction. Currently, it mainly provides engine technology for large-scale telecommunications, streaming video, games, banking and other applications.
[0003] However, due to the domain name restrictions of Red Hat Cloud, all applications deployed on the multi-application cloud platform on Red Hat Cloud must share a namespace to manage containerized resources. That is, all applications need to share the same set of domain names to implement page access or interface response, resulting in domain name contention when the cloud platform deploys applications.
[0004] In the prior art, the problem of domain name contention is solved by reapplying for multiple sets of domain names for all applications in the multi-application cloud platform and re-modifying the existing codes involving the request addresses, which leads to a large workload of modification in the prior art. Summary of the invention
[0005] Embodiments of the present application provide an access request processing method, apparatus, device, system and storage medium to solve the problem of large transformation workload in the prior art.
[0006] In a first aspect, an embodiment of the present application provides an access request processing method, which is applied to a target soft load server in a soft load server cluster, wherein the soft load server cluster is located in an access request processing system, and the access request processing system also includes a hard load server cluster. The method includes:
[0007] receiving an initial access request sent by the hard load server cluster, wherein the initial access request includes context root information and domain name information;
[0008] Determining, based on the context root information, a custom domain name address of a target application that the user requests to access;
[0009] According to the custom domain name address, the domain name information is modified to obtain a target access request;
[0010] Determine a target entry server in an entry server cluster of a multi-application cloud platform that matches the context root information;
[0011] The target access request is forwarded to the target entry server, so that the target entry server distributes the target access request to the target container in the containerized application cluster of the multi-application cloud platform according to the context root information and the custom domain name address.
[0012] In a second aspect, an embodiment of the present application provides an access request processing device, a target soft load server integrated in a soft load server cluster, the soft load server cluster is located in an access request processing system, the access request processing system also includes a hard load server cluster, the device includes:
[0013] A communication module, configured to receive an initial access request sent by the hard load server cluster, wherein the initial access request includes context root information and domain name information;
[0014] A processing module is used to determine the custom domain name address of the target application that the user requests to access based on the context root information; modify the domain name information based on the custom domain name address to obtain a target access request; and determine a target entry server in the entry server cluster of the multi-application cloud platform that matches the context root information;
[0015] The communication module is also used to forward the target access request to the target entry server, so that the target entry server distributes the target access request to the target container in the containerized application cluster of the multi-application cloud platform according to the context root information and the custom domain name address.
[0016] In a third aspect, an embodiment of the present application provides a target soft load server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the access request processing method as described in the first aspect above is implemented.
[0017] In a fourth aspect, this embodiment provides an access request processing system, including: a hard load server cluster and a soft load server cluster, wherein the soft load server cluster includes the target soft load server as described in the third aspect above.
[0018] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the access request processing method as described in the first aspect above.
[0019] The access request processing method, device, equipment, system and storage medium provided in the embodiment of the present application receive the initial access request sent by the hard load server cluster through the target soft load server in the soft load server cluster, the initial access request includes context root information and domain name information, and determines the custom domain name address of the target application requested by the user according to the context root information, and changes the domain name information according to the custom domain name address to obtain the target access request, determines the target entry server in the entry server cluster of the multi-application cloud platform that matches the context root information, and forwards the target access request to the target entry server, so that the target entry server distributes the target access request to the target container in the containerized application cluster of the multi-application cloud platform according to the context root information and the custom domain name address. By setting the domain name information in the headers of all received access request messages based on the soft load server cluster, so that it is consistent with the virtual domain name address defined for different namespaces in the multi-application cloud platform, there is no need to apply for multiple sets of domain names and perform large-scale code transformation, which not only solves the problem of domain name contention, but also reduces the workload of system transformation.
[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 A schematic diagram of the structure of an access request processing system provided in Example 1 of the present application;
[0023] Figure 2 A flowchart of a method for processing an access request provided in Example 1 of the present application;
[0024] Figure 3 A schematic diagram of a forwarding path of an access request provided in Example 1 of the present application;
[0025] Figure 4 A schematic diagram of the structure of an access request processing device provided in Embodiment 2 of the present application;
[0026] Figure 5 A schematic diagram of the structure of a target soft load server provided in Example 3 of the present application. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0028] It should be noted that the terms "target", "original", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0029] Assume that platform A is a large web platform developed based on OCP, which is composed of 20 applications. The development team is composed of different functional groups, and these applications belong to different systems. These applications share the same domain name to achieve page access or interface response. After the application is on the cloud, if a namespace is shared to manage containerized resources, it will lead to problems such as no control of permissions, cloud resource contention, unclear system boundaries, and chaotic management. Therefore, in order to facilitate the orderly coordination of organizational structure and application deployment, in the existing technology, platform A applies for different namespaces and cloud resources according to the system dimension. However, the domain name restriction of OCP causes all applications under platform A to re-apply for multiple sets of domain names, and the existing codes involving request addresses need to be completely overturned and modified to solve the host contention problem. Therefore, there are problems of large workload and high cost of transformation.
[0030] Based on the technical problems existing in the prior art, an embodiment of the present application provides an access request processing system, by setting a soft load server cluster in the access request processing system, and the soft load server cluster sets the domain name information in the headers of all received access request messages to make it consistent with the virtual domain name addresses defined for different namespaces in the multi-application cloud platform, thereby achieving the goal of reusing the current deployment architecture, code logic and cross-namespace management on the same cloud for all applications in platform A without modifying the code or reapplying for F5 load and domain name, and supporting personalized deployment modes for heterogeneous systems. Since this solution does not require the application of multiple sets of domain names and large-scale code modification, it not only solves the problem of domain name contention, but also reduces the workload of system modification.
[0031] Embodiment 1
[0032] For example, Figure 1 This is a schematic diagram of the structure of an access request processing system provided in the first embodiment of the present application. The access request processing system provided in the embodiment of the present application is set between the user and the multi-application cloud platform (such as Red Hat Cloud), and is used to process the domain name information of the access request sent by the user to the multi-application cloud platform, and forward the processed access request to the entry server in the multi-application cloud platform. Figure 1 As shown, the access request processing system in the embodiment of the present application includes a hard load server cluster and a soft load server cluster, and the multi-application cloud platform in the embodiment of the present application includes an entry server cluster and a containerized application cluster.
[0033] Among them, the hard load server cluster, soft load server cluster, entry server cluster and containerized application cluster are all composed of at least one server. For the convenience of distinction, in the embodiment of the present application, the servers contained in the hard load server cluster, soft load server cluster, entry server cluster and containerized application cluster are respectively called hard load servers, soft load servers, entry servers and application servers, and the servers in the hard load server cluster, soft load server cluster, entry server cluster and containerized application cluster that process received access requests are respectively called target hard load servers, target soft load servers, target entry servers and target containers.
[0034] In an embodiment of the present application, a hard load server cluster receives access requests sent by a user side, and forwards the access requests using a target hard load server according to a preset strategy, thereby achieving load balancing, avoiding the occurrence of single point failures, and improving the service processing capabilities of the system.
[0035] Optionally, the hard load server cluster is an F5 application system.
[0036] In an embodiment of the present application, the target soft load server in the soft load server cluster is used to process the domain name information in the message header of the received access request to make it consistent with the domain name information defined for multiple namespaces in the containerized application cluster, and finally, forward the access request carrying the modified domain name information to the entry server cluster, so that the entry server cluster distributes the access request to the corresponding application server.
[0037] Optionally, the soft load server cluster is an Nginx server cluster.
[0038] For example, Figure 2 This is a flow chart of an access request processing method provided in the first embodiment of the present application. The method of this embodiment can be executed by the access request processing device provided in the embodiment of the present application. The device can be implemented by software and / or hardware and can be integrated into the target soft load server in the soft load server cluster. Figure 2 As shown, the access request processing method of this embodiment includes:
[0039] S201: Receive an initial access request sent by a hard load server cluster.
[0040] In this step, the target soft load server in the soft load server cluster receives the initial access request sent by the hard load server cluster.
[0041] It is understandable that, as required, any server in the soft load server cluster can be used as a target soft load server to execute the access request processing method in S201-S205.
[0042] For the sake of distinction, in this embodiment, the access request sent from the hard-load server cluster to the soft-load server cluster is called an initial access request.
[0043] In a possible implementation, Figure 1 As shown, when the user enters the domain name address or IP address on the front-end page, the user device generates an initial access request and sends the initial access request to the target hard load server in the hard load server cluster. After receiving the initial access request, the target hard load server determines the target soft load server based on the information in the initial access request and forwards the initial access request to the target soft load server. Accordingly, the target soft load server receives the initial access request sent by the target hard load server.
[0044] In some embodiments, the target hard load server can be any server in the hard load server cluster, and a strategy for determining the target hard load server can be pre-set. Accordingly, in this step, the target hard load server is determined according to the preset strategy. Exemplarily, the target hard load server is determined according to a polling algorithm.
[0045] In other embodiments, the target hard load server may be a hard load server in a hard load server cluster that matches the domain name address or IP address input by the user, and a first configuration file containing a mapping relationship between an access address (domain name address and / or IP address) and the address of a hard load server in the hard load server cluster may be generated in advance. Accordingly, in this step, the target hard load server is determined based on the first configuration file.
[0046] In this embodiment, the message header of the initial access request includes context root information and domain name information.
[0047] The context root information indicates the service resource location of each application in the multi-application cloud platform. After receiving the initial access request, the target hard load server determines the target soft load server that processes the initial access request based on the context root information in the initial access request, and then forwards the initial access request to the target soft load server.
[0048] Among them, the domain name information is consistent with the access address entered by the user on the front-end page. Specifically, if the initial access request is a domain name access request, the domain name information is the domain name address entered by the user on the front-end page; if the initial access request is an IP access request, the domain name information is the IP address entered by the user on the front-end page.
[0049] S202: Determine, according to the context root information, the custom domain name address of the target application that the user requests to access.
[0050] In this step, after parsing the context root information from the initial access request, the target soft load server determines the custom domain name address of the target namespace where the target application requested by the user is deployed according to the context root information.
[0051] In a multi-application cloud platform, different applications may be deployed in different namespaces. In order to enable users to access different applications in the multi-application cloud platform using the same domain name address, in this embodiment, different custom domain name addresses are set in advance for different namespaces.
[0052] Optionally, in this embodiment, a second configuration file containing a mapping relationship between context root information and a custom domain name address can be generated in advance, and the second configuration file can be stored in each soft load server. Accordingly, in this step, the target soft load server determines the custom domain name address of the target application requested by the user based on the second configuration file.
[0053] S203: According to the custom domain name address, the domain name information is modified to obtain a target access request.
[0054] In this step, the target soft load server replaces the domain name address or IP address in the domain name information with the custom domain name address determined in S202 to obtain a target access request.
[0055] For the sake of distinction, in this embodiment, the access request generated by the target soft load server and sent by the soft load server cluster to the entry server cluster is called a target access request.
[0056] The target access request includes context root information and domain name information whose content is a custom domain name address. Optionally, the message header of the target access request includes the context root information and the custom domain name address.
[0057] S204: Determine a target entry server in the entry server cluster of the multi-application cloud platform that matches the context root information.
[0058] In this step, after parsing the context root information from the initial access request, the target soft load server determines a target entry server in the entry and exit server cluster that matches the context root information.
[0059] Optionally, in this embodiment, a third configuration file containing a mapping relationship between context root information and an entry server address may be generated in advance, and the third configuration file may be stored in each soft load server. Accordingly, in this step, the target soft load server determines the target entry server matching the context root information according to the third configuration file.
[0060] It should be noted that, in this embodiment, there is no order of precedence between S204 and S203. S204 can be executed after or during S203, or can be executed simultaneously with S203, and there is no limitation here.
[0061] S205. Forward the target access request to the target entry server, so that the target entry server distributes the target access request to the target container in the containerized application cluster of the multi-application cloud platform according to the context root information and the custom domain name address.
[0062] In this step, the target soft load server forwards the target access request generated in S203 to the target entry server determined in S204. The target entry server parses the target access request, obtains the context root information and the custom domain name address, and then determines the container in the containerized application cluster that provides services related to the target application based on the context root information and the custom domain name address, and distributes the target access request to the target container.
[0063] In this embodiment, applications are deployed in a namespace in a containerized form, and each application may correspond to multiple containers.
[0064] The target container is any one of the multiple containers that provide services related to the target application. Exemplarily, the target container may be a container that is currently in an idle state among the multiple containers that provide services related to the target application.
[0065] Figure 3 A schematic diagram of a forwarding path of an access request provided in Example 1 of the present application, Figure 3 Route-A and Route-B represent routing components, Service-A and Service-B represent service components, Pod-A1, Pod-A2, ..., Pod-An represent containers that can provide application service A, and Pod-B1, Pod-B2, ..., Pod-Bn represent containers that can provide application service B. Figure 3 As shown, in one possible implementation, the target entry server determines the target routing component (assumed to be Route-A) and the target service component (assumed to be Service-A) that match the context root information and the custom domain name address, and distributes the target access request to the target container by calling the target routing component and the target service component.
[0066] Optionally, the target service component is used to poll and dynamically update the available container list, and the target routing component is used to send the target access request to a container in the available container list, namely, the target container.
[0067] Taking platform A as an example, assuming that the 20 sub-applications under platform A belong to 7 systems, in the existing technology, according to the plan, each system needs to apply for a namespace and correspond to a set of independent domain names. The transformation costs involved include but are not limited to the following:
[0068] 1) At least 6 domain names need to be applied for according to the system dimension;
[0069] 2) All domain names must first complete the F5 mapping rule configuration to the cloud server;
[0070] 3) Sort out and notify all consumers of sub-application interfaces to transform access addresses into domain name access;
[0071] 4) Delete the redundant configuration in the F5 mapping rule corresponding to the original domain name;
[0072] 5) After the sub-applications are put on the cloud one after another, modify the F5 mapping rule configuration from the corresponding domain name to the Route entry server on the OCP cloud.
[0073] After setting up the soft load server cluster, the key contents that need to be modified in the embodiment of the present application only include the following two aspects: first, it is necessary to define the entry server cluster on the multi-application cloud platform for access request distribution; second, it is necessary to set the domain name information of the access request message header in the distribution strategy to the custom domain name assigned to the namespace. For platform A, only one namespace can use the real domain name (DNS resolvable), and the other six namespaces can use custom virtual domain names (DNS unresolvable, no application required), and the domain name information of all access request message headers must be consistent with the host in the Route component corresponding to the application.
[0074] Therefore, in an embodiment of the present application, a soft load server cluster is introduced, and the domain name information in the headers of all received access request messages is set by the soft load server cluster to be consistent with the virtual domain name addresses defined for different namespaces in the multi-application cloud platform, thereby achieving the goal of reusing the current deployment architecture, code logic, and managing across namespaces on the same cloud for all applications in platform A without modifying the code or reapplying for F5 load and domain names, and supporting personalized deployment modes for heterogeneous systems. Since this solution does not require the application of multiple sets of domain names and large-scale code modification, it not only solves the problem of domain name contention, but also reduces the workload of system modification.
[0075] On the other hand, the overall cloud migration process of the prior art is cumbersome and requires collaboration among multiple parties, which is not conducive to the smooth transition of platform A from off-cloud to on-cloud deployment. In this embodiment, by introducing a soft load server cluster, custom adaptation of the routing component domain name can be achieved without increasing the cost of transforming all internal and external applications, perfectly solving the problem of directly accessing the interface through IP and the problem of 20 applications using different hosts after OCP is deployed across namespaces.
[0076] In addition, all types of multi-application cloud platforms need to implement mapping with routing components based on domain names, but there may be certain differences between different multi-application cloud platforms. For example, some multi-application cloud platforms allow sharing of domain names across namespaces, while others do not support route routing components and require the use of other routing components (such as Ingress). In response to this situation, the embodiments of the present application can also shield the differences in cloud platform technology selection, flexibly adapt the routing components of various multi-application cloud platforms through soft loads, and support hybrid cloud deployment scenarios.
[0077] Embodiment 2
[0078] Figure 4 This is a schematic diagram of the structure of an access request processing device provided in the second embodiment of the present application. The device can be implemented by software and / or hardware, and can be integrated into a target soft load server in a soft load server cluster. Figure 4As shown, the access request processing device 10 in this embodiment includes:
[0079] A communication module 11 and a processing module 12 .
[0080] The communication module 11 is used to receive an initial access request sent by the hard load server cluster, wherein the initial access request includes context root information and domain name information;
[0081] The processing module 12 is used to determine the custom domain name address of the target application that the user requests to access based on the context root information; modify the domain name information based on the custom domain name address to obtain the target access request; determine the target entry server in the entry server cluster of the multi-application cloud platform that matches the context root information;
[0082] The communication module 11 is also used to forward the target access request to the target entry server, so that the target entry server distributes the target access request to the target container in the containerized application cluster of the multi-application cloud platform according to the context root information and the custom domain name address.
[0083] Optionally, the initial access request is sent by the user device to the target hard load server in the hard load server cluster when the user enters the domain name address or IP address on the front-end page. The target hard load server is the hard load server in the hard load server cluster that matches the domain name address or IP address.
[0084] Optionally, if the initial access request is a domain name access request, the domain name information is the domain name address entered by the user on the front-end page.
[0085] Optionally, if the initial access request is an IP access request, the domain name information is the IP address entered by the user on the front-end page.
[0086] Optionally, the target soft load server is determined by the target hard load server according to the context root information.
[0087] Optionally, the target entry server is specifically used to distribute the target access request to the target container by calling the target routing component and the target service component according to the context root information and the custom domain name address.
[0088] The access request processing device provided in this embodiment can execute the access request processing method provided in the above method embodiment, and has the corresponding functional modules and beneficial effects of the execution method. The implementation principle and technical effects of this embodiment are similar to those of the above method embodiment, and will not be repeated here.
[0089] Embodiment 3
[0090] Figure 5 A schematic diagram of the structure of a target soft load server provided in Embodiment 3 of the present application is shown in FIG. Figure 5 As shown, the target soft load server 20 includes a memory 21, a processor 22, and a computer program stored in the memory and executable on the processor; the number of processors 22 in the electronic device 20 may be one or more. Figure 5 A processor 22 is taken as an example; the processor 22 and the memory 21 in the electronic device 20 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0091] The memory 21, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the communication module 11 and the processing module 12 in the embodiment of the present application. The processor 22 executes various functional applications and access request processing of the target soft load server by running the software programs, instructions and modules stored in the memory 21, that is, implements the above-mentioned access request processing method.
[0092] The memory 21 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 21 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 21 may further include a memory remotely arranged relative to the processor 22, and these remote memories may be connected to the target soft load server via a grid. Examples of the above-mentioned grid include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0093] Embodiment 4
[0094] Embodiment 4 of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a computer processor, it is used to execute an access request processing method, the method comprising:
[0095] receiving an initial access request sent by the hard load server cluster, wherein the initial access request includes context root information and domain name information;
[0096] Determine the custom domain name address of the target application that the user requests to access based on the context root information;
[0097] According to the custom domain name address, the domain name information is changed to obtain the target access request;
[0098] Determine a target entry server in an entry server cluster of a multi-application cloud platform that matches the context root information;
[0099] The target access request is forwarded to the target entry server, so that the target entry server distributes the target access request to the target container in the containerized application cluster of the multi-application cloud platform according to the context root information and the custom domain name address.
[0100] Of course, the computer-readable storage medium provided in the embodiment of the present application, and its computer program is not limited to the method operations described above, and can also execute related operations in the access request processing method provided in any embodiment of the present application.
[0101] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or grid device, etc.) to execute the methods described in each embodiment of the present application.
[0102] It is worth noting that in the embodiment of the above-mentioned access request processing device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.
[0103] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A method for processing an access request, characterized in that: Applied to a target soft load server in a soft load server cluster, the soft load server cluster being located in an access request processing system, the access request processing system also including a hard load server cluster, the method comprising: receiving an initial access request sent by the hard load server cluster, wherein the initial access request includes context root information and domain name information; Determining, based on the context root information, a custom domain name address of a target application that the user requests to access; According to the custom domain name address, the domain name information is changed to obtain a target access request; Determine a target entry server in an entry server cluster of a multi-application cloud platform that matches the context root information; The target access request is forwarded to the target entry server so that the target entry server determines the target routing component and the target service component that match the context root information and the custom domain name address, and distributes the target access request to the target container in the containerized application cluster of the multi-application cloud platform by calling the target routing component and the target service component.
2. The method according to claim 1, characterized in that The initial access request is sent by the user device to the target hard load server in the hard load server cluster when the user enters the domain name address or IP address on the front-end page. The target hard load server is the hard load server in the hard load server cluster that matches the domain name address or the IP address.
3. The method according to claim 2, characterized in that If the initial access request is a domain name access request, the domain name information is the domain name address entered by the user on the front-end page.
4. The method according to claim 2, characterized in that: If the initial access request is an IP access request, the domain name information is the IP address entered by the user on the front-end page.
5. The method according to claim 2, characterized in that: The target soft load server is determined by the target hard load server according to the context root information.
6. An access request processing device, characterized in that: A target soft load server integrated in a soft load server cluster, wherein the soft load server cluster is located in an access request processing system, wherein the access request processing system also includes a hard load server cluster, wherein the device includes: A communication module, configured to receive an initial access request sent by the hard load server cluster, wherein the initial access request includes context root information and domain name information; A processing module is used to determine the custom domain name address of the target application that the user requests to access based on the context root information; modify the domain name information based on the custom domain name address to obtain a target access request; and determine a target entry server in the entry server cluster of the multi-application cloud platform that matches the context root information; The communication module is also used to forward the target access request to the target entry server so that the target entry server determines the target routing component and the target service component that match the context root information and the custom domain name address, and distributes the target access request to the target container in the containerized application cluster of the multi-application cloud platform by calling the target routing component and the target service component.
7. A target soft load server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the access request processing method as described in any one of claims 1 to 5 is implemented.
8. An access request processing system, characterized in that: include: A hard load server cluster and a soft load server cluster, wherein the soft load server cluster includes the target soft load server as claimed in claim 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the access request processing method as described in any one of claims 1 to 5 is implemented.
