Shunting method, device, equipment, medium and product
The forwarding target scheduling unit is determined through the basic scheduling unit and the business line identification rules, which solves the problem of long request response time in multi-service and multi-geographical location architectures, and realizes efficient diversion and forwarding of access requests.
Patent Information
- Application Number
- CN202510528951.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-07-04
AI Technical Summary
In a multi-service and multi-geographic Internet architecture, it is impossible to dynamically select the optimal network path based on the attributes of the target website, resulting in a long request response time.
The access request is received through the basic scheduling unit, the forwarding target scheduling unit is determined using the service line identification rules, and the service interface request address of the target access website is distributed based on the public network IP address.
It improves the response speed of access requests and realizes diversion and forwarding according to the attributes of the target website.
Smart Images

Figure CN120263855A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a traffic splitting method, apparatus, device, medium, and product. Background Art
[0002] In modern Internet architectures, a website or application may consist of multiple different services, which may be deployed at different geographical locations or on different servers. In traditional network architectures, there is usually only one network egress address, and all requests are forwarded through this address. In the face of high-concurrency requests, this architecture is prone to network congestion, resulting in a decrease in response speed.
[0003] In a complex architecture with multiple services and multiple geographical locations, it is impossible to dynamically select the optimal network path according to the specific attributes of the target website (such as geographical location, service type, etc.), resulting in a long request response time. Summary of the Invention
[0004] Embodiments of the present disclosure provide a traffic splitting method, apparatus, device, medium, and product, which implement traffic splitting and forwarding of access requests and improve the response speed of access requests.
[0005] In a first aspect, a traffic splitting method is provided, including:
[0006] Receiving an access request by using a type of service; the access request includes a target access website; the type of service is deployed inside a basic scheduling unit;
[0007] Determining a forwarding target scheduling unit according to a service line identification rule and distributing the access request to the forwarding target scheduling unit; the service identification rule is stored in a configuration file, and the configuration file is bound to the type of service in the basic scheduling unit;
[0008] Based on the public network IP address bound to the forwarding target scheduling unit, forwarding the access request through the forwarding target scheduling unit to the service interface request address of the target access website corresponding to the public network IP address.
[0009] In a second aspect, a traffic splitting apparatus is provided, including:
[0010] A receiving module, configured to receive an access request by using a type of service; the access request includes a target access website; the type of service is deployed inside a basic scheduling unit;
[0011] A forwarding target scheduling unit determination module, configured to determine a forwarding target scheduling unit according to a service line identification rule, and distribute the access request to the forwarding target scheduling unit; the service identification rule is stored inside a configuration file, and the configuration file is bound to a type of service in the basic scheduling unit;
[0012] A forwarding module, configured to forward the access request to a service interface request address of the target access website corresponding to the public network IP address through the forwarding target scheduling unit based on the public network IP address bound to the forwarding target scheduling unit.
[0013] In a third aspect, an electronic device is provided, including:
[0014] At least one processor; and,
[0015] A memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the traffic splitting method as described in the first aspect above.
[0017] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, it implements the traffic splitting method as described in the first aspect above.
[0018] In a fifth aspect, a computer program product is provided, the computer program product includes a computer program, and when the computer program is executed by a processor, it implements the traffic splitting method as described in the first aspect above.
[0019] Embodiments of the present disclosure disclose a traffic splitting method, apparatus, device, medium and product. The method includes: receiving an access request by using a type of service; the access request includes a target access website; the type of service is deployed inside a basic scheduling unit; determining a forwarding target scheduling unit according to a service line identification rule, and distributing the access request to the forwarding target scheduling unit; the service identification rule is stored inside a configuration file, and the configuration file is bound to a type of service in the basic scheduling unit; based on the public network IP address bound to the forwarding target scheduling unit, forwarding the access request to a service interface request address of the target access website corresponding to the public network IP address through the forwarding target scheduling unit. This technical solution determines a target scheduling unit through a basic scheduling unit, and realizes the forwarding of access requests through the target scheduling unit, realizes the distribution of network requests with different IPs according to the different attributes of the target website, and improves the response speed of access requests.
[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 disclosure, nor is it used to limit the scope of the embodiments of the present disclosure. Other features of the embodiments of the present disclosure will become readily 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 disclosure, the following briefly introduces the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0022] Figure 1 is a flowchart of a flow splitting method provided in Embodiment 1 of the present disclosure;
[0023] Figure 2 is a schematic diagram of a flow splitting process provided in Embodiment 1 of the present disclosure;
[0024] Figure 3 is a schematic structural diagram of a flow splitting device provided in Embodiment 2 of the present disclosure;
[0025] Figure 4 is a schematic structural diagram of an electronic device provided in Embodiment 3 of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0026] In order to enable those skilled in the art to better understand the solutions of the embodiments of the present disclosure, the following clearly and completely describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some embodiments of the present disclosure, rather than all embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the embodiments of the present disclosure.
[0027] It should be noted that the terms "first", "second", etc. in the description and claims of the embodiments of the present disclosure and the above accompanying drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0028] Example 1
[0029] Figure 1 The figure is a flowchart of a traffic splitting method provided in Example 1 of the present disclosure. This example is applicable to the scenario of splitting access requests. This method can be executed by a traffic splitting device, which can be implemented in the form of hardware and / or software. The traffic splitting device can be configured in an electronic device, and the electronic device includes, but is not limited to, devices with data processing capabilities such as computers, laptops, terminals, and servers. As Figure 1 shown, the method includes:
[0030] S110. Receive an access request using a first type of service; the access request includes a target access website; the first type of service is deployed inside the basic scheduling unit.
[0031] In this embodiment, the first type of service can be a service with specific functions or uses, and the first type of service can be deployed inside the basic scheduling unit. Exemplarily, the first type of service can be the Nginx service. The Nginx service can be an open-source, high-performance Web server and reverse proxy server, and at the same time supports multiple functions such as load balancing, HTTP caching, and streaming media. It is famous for its high performance, stability, rich functions, and low resource consumption, and is widely used in the Internet industry.
[0032] According to the above description, the basic scheduling unit can be the smallest unit Pod deployed in the Kubernetes cluster. The basic POD is used to deploy and manage containerized applications. An access request can be received using the first type of service, and the access request can include a target access website, and the target access website can be a website that a user wants to access, such as: Baidu, etc.
[0033] S120. Determine a forwarding target scheduling unit according to the business line identification rule, and distribute the access request to the forwarding target scheduling unit; the business identification rule is stored inside the configuration file, and the configuration file is bound to the first type of service in the basic scheduling unit.
[0034] In this embodiment, the business line identification rule can be a rule for identifying business lines. The business line identification rule can be stored inside the configuration file, and the configuration file can be a file for configuring the first type of service. It can be understood that the configuration file is bound to the first type of service in the basic scheduling unit.
[0035] According to the above description, the forwarding target scheduling unit can be determined using the business line identification rule. After the forwarding target scheduling unit is determined, the access request received by the basic scheduling unit can be distributed to the forwarding target scheduling unit.
[0036] S130. Based on the public network IP address bound by the forwarding target scheduling unit, forward the access request to the service interface request address of the target access website corresponding to the public network IP address through the forwarding target scheduling unit.
[0037] It can be known that the target scheduling unit can bind a public network IP address, where the public network IP address can be a public IP address in a certain region. Each public network IP address also has a corresponding service interface request address of the target access website. After receiving the access request, the forwarding target scheduling unit can forward the access request to the service interface request address of the target access website corresponding to the public network IP address through the forwarding target scheduling unit.
[0038] Exemplarily, if the public network IP address is the IP address of Shanghai and the access request is to access Baidu, then the access request (to access Baidu) can be forwarded to the service interface request address of the Baidu website through the Shanghai IP address. At the same time, when the access request accesses the target website (Baidu), the public network IP address can also be carried.
[0039] This embodiment provides a traffic splitting method, including: receiving an access request by using a type of service; the access request includes a target access website; the type of service is deployed inside the basic scheduling unit; determining a forwarding target scheduling unit according to the service line identification rule and distributing the access request to the forwarding target scheduling unit; the service identification rule is stored inside a configuration file, and the configuration file is bound to the type of service in the basic scheduling unit; based on the public network IP address bound by the forwarding target scheduling unit, forward the access request to the service interface request address of the target access website corresponding to the public network IP address through the forwarding target scheduling unit. This technical solution determines the target scheduling unit through the basic scheduling unit and realizes the forwarding of the access request through the target scheduling unit, improving the response speed of the access request.
[0040] As an optional implementation manner of this embodiment, for the traffic splitting method provided in this embodiment, before receiving the access request by using a type of service, the method further includes:
[0041] Create a target Kubernetes cluster, and create a basic scheduling unit and a target scheduling unit in the target Kubernetes cluster; where the basic scheduling unit is used to deploy a type of service; the target scheduling unit is used to bind the type of service to the corresponding configuration file through shared storage.
[0042] In this embodiment, the Kubernetes cluster is a powerful container orchestration platform that helps users efficiently manage containerized applications through features such as automation, high availability, and elastic scaling. A target Kubernetes cluster can be created, and the Calico network plugin can be used in the target Kubernetes cluster. A basic scheduling unit (i.e., basic POD) and a target scheduling unit (target POD) can be created in the target Kubernetes cluster. The basic scheduling unit is used to deploy a type of service; the target scheduling unit is used to bind the type of service to the corresponding configuration file through shared storage.
[0043] Among them, the target Kubernetes cluster can have multiple public IP addresses, and each public IP address can be bound to a target scheduling unit.
[0044] As an optional implementation manner of this embodiment, determining the forwarding target scheduling unit according to the business line identification rule includes:
[0045] 1) Determine the business line corresponding to the access request according to the business line identification rule, and determine the IP label corresponding to the business line;
[0046] Specifically, the business line corresponding to the access request can be determined through the business line identification rule. After the business line of the access request is determined, the IP label corresponding to the business line can also be determined. The business line can refer to different business function modules or service modules, and each module is responsible for a specific business function. The IP label can refer to an IP address or IP address label associated with a specific business line, which is used to identify and distinguish the network traffic of different business lines.
[0047] By assigning a specific IP label to each business line, efficient distribution and processing of requests can be achieved, ensuring the high performance and high availability of the system.
[0048] 2) Determine whether there is such an IP label in the target Kubernetes cluster.
[0049] It can be known that the target scheduling unit can also be bound to the IP label. Therefore, after the IP label corresponding to the business line is determined, it can be determined whether there is an IP label in the target Kubernetes cluster that is the same as the IP label corresponding to the business line.
[0050] 3) If it exists, determine the target scheduling unit bound to the IP label as the forwarding target scheduling unit.
[0051] It can be known that if there is an IP label in the target Kubernetes cluster that is the same as the IP label corresponding to the business line, the target scheduling unit bound to the IP label can be determined as the forwarding target scheduling unit.
[0052] As an alternative implementation of this embodiment, the method further includes:
[0053] If not, create at least one target scheduling unit in the target Kubernetes cluster, and all the target scheduling units are bound to the IP label.
[0054] It should be noted that if there is no IP label in the target Kubernetes cluster that is the same as the IP label corresponding to the business line, it can be understood that there is no target scheduling unit in the target Kubernetes cluster that can be used to forward the access request. At this time, at least one new target scheduling unit can be created in the target Kubernetes cluster, and the newly created target scheduling unit can be bound to the IP label corresponding to the business line.
[0055] As an alternative implementation of this embodiment, the method further includes:
[0056] The basic scheduling unit further includes a NodePort, and the NodePort is used to map the first type of service to the outside of the target Kubernetes cluster so that external users can access the first type of service.
[0057] Specifically, the NodePort can be a way to expose the service inside the cluster to the outside of the cluster. It opens a fixed port on each node, so that external traffic can access the service inside the cluster through this port. In this embodiment, the basic scheduling unit may also include a NodePort, and the NodePort is used to map the first type of service to the outside of the target Kubernetes cluster so that external users can access the first type of service.
[0058] Figure 2 FIG. is a schematic diagram of a traffic splitting process provided in this embodiment. As Figure 2 shown, the basic POD configured with the nginx service is used to receive access requests, determine the target POD based on the IP label corresponding to the business line in the access request, the basic POD can split the access requests and forward them to the target PODs corresponding to each access request, and the target PODs can forward the received access requests to the target access website (X website), realizing the split and forwarding of access requests and improving the response speed of access requests.
[0059] Embodiment 2
[0060] Figure 3 FIG. is a schematic structural diagram of a traffic splitting device provided in Embodiment 2 of the present disclosure; as Figure 3As shown in the figure, the device includes: a receiving module 210, a forwarding target scheduling unit determination module 220, and a forwarding module 230.
[0061] Among them, the receiving module 210 is used to receive access requests using a type of service; the access request includes a target access website; the type of service is deployed inside the basic scheduling unit;
[0062] The forwarding target scheduling unit determination module 220 is used to determine the forwarding target scheduling unit according to the business line identification rule and distribute the access request to the forwarding target scheduling unit; the business identification rule is stored in the configuration file, and the configuration file is bound to the type of service in the basic scheduling unit;
[0063] The forwarding module 230 is used to forward the access request to the service interface request address of the target access website corresponding to the public network IP address through the forwarding target scheduling unit based on the public network IP address bound to the forwarding target scheduling unit.
[0064] Embodiment II of the present disclosure provides a shunting device, which improves the response speed of access requests.
[0065] Furthermore, the device further includes:
[0066] A cluster creation module, which is used to create a target Kubernetes cluster and create a basic scheduling unit and a target scheduling unit in the target Kubernetes cluster; among them, the basic scheduling unit is used to deploy a type of service; the target scheduling unit is used to bind the type of service to the corresponding configuration file through shared storage.
[0067] Furthermore, the target scheduling unit is bound to an IP label.
[0068] Furthermore, the forwarding target scheduling unit determination module 220 is further used to:
[0069] Determine the business line corresponding to the access request according to the business line identification rule and determine the IP label corresponding to the business line;
[0070] Determine whether the IP label exists in the target Kubernetes cluster;
[0071] If it exists, determine the target scheduling unit bound to the IP label as the forwarding target scheduling unit.
[0072] Furthermore, the device further includes:
[0073] A scheduling unit creation module, which is configured to create at least one target scheduling unit in the target Kubernetes cluster if it does not exist, and all the target scheduling units are bound to the IP label.
[0074] Further, the basic scheduling unit further includes a NodePort, which is used to map the first type of service to the outside of the target Kubernetes cluster so that external users can access the first type of service.
[0075] The shunting device provided by the embodiments of the present disclosure can execute the shunting method provided by any embodiment of the embodiments of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
[0076] Embodiment III
[0077] Figure 4 FIG. shows a schematic structural diagram of an electronic device 10 that can be used to implement the embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, for example, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the embodiments of the present disclosure described and / or claimed herein.
[0078] As Figure 4 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. Among them, the memory stores a computer program executable by the at least one processor, and the processor 11 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0079] A plurality of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0080] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microprocessor, etc. The processor 11 executes the various methods and processes described above, such as the shunting method.
[0081] In some embodiments, the shunting method can be implemented as a computer program that is tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the shunting method described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the shunting method in any other suitable manner (e.g., by means of firmware).
[0082] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), application-specific standard products (ASSP), systems-on-chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a dedicated or general-purpose programmable processor, and can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0083] The computer programs for implementing the methods of the embodiments of the present disclosure can be written in any combination of one or more programming languages. These computer programs can be provided to the processors of general-purpose computers, special-purpose computers, or other programmable data processing devices, such that when the computer programs are executed by the processors, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0084] In the context of embodiments of the present disclosure, a computer-readable storage medium may be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0085] In order to provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0086] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0087] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The relationship between the client and the server is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0088] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the embodiments of the present disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions of the embodiments of the present disclosure can be achieved, and no limitations are imposed herein.
[0089] The above specific embodiments do not constitute a limitation on the protection scope of the embodiments of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the embodiments of the present disclosure shall be included within the protection scope of the embodiments of the present disclosure.
[0090] The embodiments of the present disclosure also provide a computer program product, including a computer program and / or instructions, which, when executed by a processor, implement the traffic splitting method provided in any embodiment of the present application.
[0091] In the process of implementing the computer program product, computer program code for performing the operations of the embodiments of the present disclosure can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network - including a local area network (LAN) or a wide area network (WAN) - or can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0092] Note that the above is only the preferred embodiment of the present disclosure and the applied technical principles. Those skilled in the art will understand that the embodiments of the present disclosure are not limited to the specific embodiments here, and various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present disclosure. Therefore, although the embodiments of the present disclosure have been described in more detail through the above embodiments, the embodiments of the present disclosure are not limited to the above embodiments only. Without departing from the concept of the embodiments of the present disclosure, more other equivalent embodiments can be included, and the scope of the embodiments of the present disclosure is determined by the scope of the appended claims.
Claims
1. A shunting method, characterized in that, Including: Receiving an access request by using a type of service; The access request includes a target access website; The type of service is deployed inside a basic scheduling unit; Determining a forwarding target scheduling unit according to a business line identification rule, and distributing the access request to the forwarding target scheduling unit; the business identification rule is stored inside a configuration file, and the configuration file is bound to the type of service in the basic scheduling unit; Based on the public network IP address bound to the forwarding target scheduling unit, forwarding the access request through the forwarding target scheduling unit to the service interface request address of the target access website corresponding to the public network IP address.
2. The method according to claim 1, wherein Before receiving the access request by using the type of service, the method further includes: Creating a target Kubernetes cluster, and creating a basic scheduling unit and a target scheduling unit in the target Kubernetes cluster; Wherein, the basic scheduling unit is used to deploy the type of service; the target scheduling unit is used to bind the type of service to a corresponding configuration file through shared storage.
3. The method according to claim 2, wherein The target scheduling unit is bound to an IP label.
4. The method according to claim 3, characterized in that The determining the forwarding target scheduling unit according to the business line identification rule includes: Determining the business line corresponding to the access request according to the business line identification rule, and determining the IP label corresponding to the business line; Determining whether there is the IP label in the target Kubernetes cluster; If it exists, determining the target scheduling unit bound to the IP label as the forwarding target scheduling unit.
5. The method according to claim 4, characterized in that, The method further includes: If it does not exist, creating at least one target scheduling unit in the target Kubernetes cluster, and all the target scheduling units are bound to the IP label.
6. The method according to claim 1, wherein The basic scheduling unit further includes a NodePort, and the NodePort is used to map the type of service to the outside of the target Kubernetes cluster so that external users can access the type of service.
7. A flow splitting device, characterized in that, Including: A receiving module, configured to receive an access request by using a type of service; the access request includes a target access website; The type of service is deployed inside a basic scheduling unit; A forwarding target scheduling unit determining module, configured to determine a forwarding target scheduling unit according to a business line identification rule, and distribute the access request to the forwarding target scheduling unit; the business identification rule is stored inside a configuration file, and the configuration file is bound to the type of service in the basic scheduling unit; A forwarding module, configured to forward the access request through the forwarding target scheduling unit to the service interface request address of the target access website corresponding to the public network IP address bound to the forwarding target scheduling unit.
8. An electronic device, characterized in that, Including: At least one processor; And, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the traffic splitting method as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the shunt method as described in any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program which, when executed by a processor, implements the shunt method as described in any one of claims 1-6.