Service flow distribution method, device, equipment and computer storage medium

By obtaining the target business identifier and distribution ratio, determining the filtering identifier and weight of the target server group, and dynamically adjusting the traffic distribution rules of the load balancer, the problems of complicated configuration and low efficiency of business traffic distribution in the existing technology are solved, and the business is realized. Fast and accurate distribution of traffic and improvement of system operation efficiency.

CN114500542BActive Publication Date: 2024-08-27中移信息技术有限公司 +1
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202011265199.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-12
Publication Date
2024-08-27
Estimated Expiration
2040-11-12

AI Technical Summary

Technical Problem

When distributing business traffic, existing load balancers are difficult to meet the need to regularly distribute a specified proportion of specified identified services to remote centers. The configuration is cumbersome, time-consuming and error-prone, and cannot meet the needs of sudden business volumes and abnormal situations. Traffic distribution needs.

Method used

By obtaining the target business ID and distribution ratio, determine the filter ID and weight of the target server group, and combine the preset traffic distribution rules to send the filter ID and weight to the load balancer to achieve the traffic distribution ratio of the member devices in the server group. Dynamically adjust to ensure that business traffic is distributed to remote centers according to specified proportions.

Benefits of technology

It achieves rapid and accurate distribution of designated business traffic, improves system operation efficiency, reduces the risk of computer room downtime, simplifies the traffic distribution process, and reduces the need for manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114500542B
    Figure CN114500542B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, equipment and computer storage medium for distributing business traffic. The method includes: obtaining a target business identifier and a target distribution ratio, the target distribution ratio being the ratio of the target business sent to the target server group; determining the filter identifier of the target server group according to the target business identifier and the target distribution ratio; determining the target weight according to the target distribution ratio and the preset distribution ratio and weight mapping relationship; sending the filter identifier and the target weight to the load balancer, so that the load balancer can determine the traffic distribution ratio of multiple member devices in the target server group according to the preset traffic distribution rule, and distribute business traffic to multiple member devices in the server group according to the preset traffic distribution ratio. The method, device, equipment and computer storage medium for distributing business traffic according to the embodiment of the present invention can quickly distribute the business with the selected identifier to the remote center at the selected percentage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of network data processing, and in particular relates to a service flow distribution method, device, equipment and computer storage medium. Background Art

[0002] As the business volume of network information systems continues to increase, the original single physical center room is unable to fully bear the sudden business volume. Nowadays, building a remote center system that can independently bear a certain amount of business has become the development trend of most systems. However, due to operation and maintenance needs, the external entrance of many systems is still in the local center's load balancer.

[0003] In many scenarios, it is necessary for the remote center to bear part of the business traffic at the same time: such as dual-active diversion under normal circumstances, large business volume diversion during holiday promotions, grayscale launch of new versions of business systems, and remote centers bearing all traffic under abnormal circumstances. The current load balancer only provides methods for distributing virtual service traffic in weighted proportions or only provides methods for distributing traffic with specific identifiers to remote centers. Such methods are generally one-time configurations. Each time the traffic distribution status is modified, the current traffic ratio and the modified member weights must be manually calculated in real time. The distribution process is cumbersome, time-consuming, and prone to errors. It is difficult to meet the needs of regularly distributing a specified proportion of traffic with specified identifiers to remote centers. Summary of the invention

[0004] The embodiment of the present invention provides a service flow distribution method, device, equipment and computer storage medium, which can quickly distribute the selected identified services to a remote center at a selected percentage.

[0005] In a first aspect, an embodiment of the present invention provides a service traffic distribution method, the method comprising:

[0006] Obtain a target service identifier and a target distribution ratio, where the target distribution ratio is the ratio of the target service sent to the target server group;

[0007] Determine the filter identifier of the target server group according to the target service identifier and the target distribution ratio;

[0008] The target weight is determined according to the target distribution ratio and the preset distribution ratio and weight mapping relationship; the target weight is associated with the preset traffic distribution rule;

[0009] The filter identifier and target weight are sent to the load balancer so that the load balancer can determine the traffic distribution ratio of multiple member devices in the target server group according to the preset traffic distribution rule, and distribute the business traffic to multiple member devices in the server group according to the preset traffic distribution ratio.

[0010] In an optional implementation, the target server group includes a local central server group, a proportional control server group, and a remote central server group.

[0011] In an optional implementation, after determining the filter identifier of the target server group according to the target service identifier and the target distribution ratio, the method further includes:

[0012] When the target distribution ratio is 0, the target server group is determined to be the local center server group, and the filter identifier is the identifier of the local center server group;

[0013] When the target distribution ratio is 1, the target server group is determined to be a remote center server group, and the filter identifier is an identifier of the remote center server group;

[0014] When the target distribution ratio is greater than 0 and less than 1, the target server group is determined to be a ratio control server group, and the filtering identifier is an identifier of the ratio control server group.

[0015] In an optional implementation, before determining the target weight according to the target distribution ratio and the preset distribution ratio and weight mapping relationship, the method further includes:

[0016] Obtain a proportional weight mapping table; the proportional weight mapping table stores a mapping relationship between distribution ratios and weights.

[0017] In an optional embodiment, the method further includes:

[0018] Sending a request message to the load balancer, the request message carrying a target service identifier, so that the load balancer determines a filter identifier according to the target service identifier, and determines information of the target server group according to the filter identifier;

[0019] Receive information about the target server group sent by the load balancer;

[0020] Determine the target server group based on the target server group information.

[0021] In an optional embodiment, the method further includes:

[0022] Sending multiple request information to the load balancer, each of which carries a target service identifier, so that the load balancer determines a filter identifier according to the target service identifier, and determines information of the target server according to the filter identifier;

[0023] Receive information about all target server groups sent by the load balancer;

[0024] According to the information of the target server group sent by the load balancer, the target distribution ratio of each target server group is determined.

[0025] In an optional embodiment, the method further includes:

[0026] The service traffic distribution results are displayed on the terminal interface.

[0027] In a second aspect, an embodiment of the present invention provides a service flow distribution device, the device comprising:

[0028] A first acquisition module is used to acquire a target service identifier and a target distribution ratio, where the target distribution ratio is a ratio of the target service sent to the target server group;

[0029] A first judgment module determines a filtering identifier of the target server group according to the target service identifier and the target distribution ratio;

[0030] The second judgment module determines the target weight according to the target distribution ratio and the preset distribution ratio and weight mapping relationship; the target weight is associated with the preset traffic distribution rule;

[0031] The first sending module sends the filter identifier and target weight to the load balancer, so that the load balancer determines the traffic distribution ratio of multiple member devices in the target server group according to the preset traffic distribution rule, and distributes business traffic to the multiple member devices in the server group according to the preset traffic distribution ratio.

[0032] In the third aspect, an embodiment of the present invention provides a business traffic distribution device, the device comprising: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the business traffic distribution method in the first aspect or any optional implementation scheme of the first aspect.

[0033] In a fourth aspect, an embodiment of the present invention provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the service traffic distribution method in the first aspect or any optional implementation manner of the first aspect is implemented.

[0034] The business traffic distribution method, device, equipment and computer storage medium of the embodiments of the present invention can distribute business traffic requests with specified business identifiers to remote center service groups according to a specified distribution ratio in a system in which two data centers with separate computer rooms jointly undertake business. The business traffic request division is more accurate, the system operation efficiency is improved, and the risk of computer room downtime is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following is a brief introduction to the drawings required for use in the embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0036] Figure 1 It is a schematic diagram of a service flow distribution system provided by an embodiment of the present invention;

[0037] Figure 2 is a schematic diagram of an input and output interface provided by an embodiment of the present invention;

[0038] Figure 3 It is a flow chart of a service flow distribution method provided by an embodiment of the present invention;

[0039] Figure 4 It is a structural schematic diagram of a service flow distribution device provided by an embodiment of the present invention;

[0040] Figure 5 It is a structural diagram of a business traffic distribution device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present invention, rather than to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.

[0042] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0043] The present application provides a business traffic distribution method, device, equipment and computer storage medium, which are implemented based on a load balancer. In a high-availability system in which two data centers with separate computer rooms jointly undertake business, what kind of business and what proportion of it are distributed to the remote center is an important system operation and maintenance function. The current load balancer only provides the function of switching what kind of business to the remote center, or only distributes all the traffic of a virtual service to the remote center according to a certain proportion. The traffic distribution method provided by the present application can quickly and losslessly switch the target business carrying the specified business identifier to the remote center at a specified proportion at the same time.

[0044] The service flow distribution method provided in the present application can be specifically implemented in a service flow distribution system. The service flow distribution system is first introduced below.

[0045] Please refer to Figure 1 , Figure 1 The present invention provides a schematic diagram of a business traffic distribution system. The traffic distribution system includes a core module, a load balancer, a database, and an input / output module connected to the core module; wherein the core module is used to receive the business traffic distribution parameters sent by the input / output module, and based on the business traffic distribution parameters and the information stored in the database, modify the configuration of the load balancer target virtual service, and the load balancer distributes the business traffic according to the above configuration.

[0046] In one example, the service traffic distribution parameters include: service identification and distribution ratio.

[0047] In one embodiment, the input-output module may be a touch screen. The user may intuitively obtain the distribution status information of the traffic of the target virtual service in the local center and the remote center through the input-output module.

[0048] In one example, the display interface of the touch screen can be Figure 2 The interface shown.

[0049] like Figure 2 As shown, the touch screen display interface is divided into two areas: the service identification area and the distribution ratio area. In the edit mode, the user can change the server group corresponding to the service flow associated with the service identification by clicking the service identification area; the distribution ratio area can set the distribution ratio.

[0050] like Figure 3 As shown, a service flow distribution method provided by the present application can be applied to Figure 1 The business traffic distribution system shown is based on Figure 1 The core module implementation in the system shown includes steps S101-S104.

[0051] S101, obtaining a target service identifier and a target distribution ratio, where the target distribution ratio is a ratio of the target service sent to a target server group.

[0052] The target service identifier is an identifier used to identify the target service, and may be an identifier used to uniquely identify the target service. The target service identifier may be information of attributes or character fragments in the message header or message body that can distinguish different services, such as source IP, service type, regional location, external merchant, etc.

[0053] like Figure 1 As shown, the service traffic distribution system can receive the target service identifier and target distribution ratio input by the user through the input and output module.

[0054] S102: Determine a filter identifier of a target server group according to a target service identifier and a target distribution ratio.

[0055] The filter identifier corresponds to the server group and is used to identify the services distributed to the same server group. The target server group can use the filter identifier to identify multiple different services that need to be processed by it. The filter identifier can be a loading rule. When the loading rules are different, the corresponding target server groups are different.

[0056] like Figure 1 In the service distribution system shown, the core module can determine the server group information corresponding to the specific value of the target distribution ratio obtained from the input and output module. Then, the core module determines the filtering identifier according to the server group information and the target service identifier.

[0057] S103, determining a target weight according to a target distribution ratio and a preset mapping relationship between the distribution ratio and the weight; the target weight is associated with a preset traffic distribution rule.

[0058] The distribution ratio and weight mapping relationship is the corresponding relationship between the target distribution ratio and the target weight. The distribution ratio and weight mapping relationship corresponds to the proportional relationship between the weights of the server groups in the data center. The distribution ratio and weight mapping relationship can specifically be a database table storing the distribution ratio and weight mapping relationship.

[0059] like Figure 1 As shown, the business traffic distribution system can pre-store a database table of the distribution ratio and weight mapping relationship through a database.

[0060] S104, sending the filter identifier and target weight to the load balancer, so that the load balancer can determine the traffic distribution ratio of multiple member devices in the target server group according to the preset traffic distribution rule, and distribute the business traffic to the multiple member devices in the server group according to the preset traffic distribution ratio.

[0061] like Figure 1 As shown, the business traffic distribution system can send the filter identifier and the target weight to the load balancer through the core module, and the load balancer completes the business traffic distribution process.

[0062] In some embodiments, before step S103, the method further includes:

[0063] Obtain a proportional weight mapping table; the proportional weight mapping table stores a mapping relationship between distribution ratios and weights.

[0064] The proportion-weight mapping table is a database table that stores the mapping relationship between distribution proportions and weights.

[0065] like Figure 1 As shown, the business traffic distribution system can obtain the database table from the database through the core module.

[0066] According to the service traffic distribution method in the embodiment of the present application, the core module obtains the target service identifier and the target distribution ratio, determines the filter identifier of the target server group according to the target service identifier and the target distribution ratio; determines the target weight according to the target distribution ratio and the preset distribution ratio and weight mapping relationship; sends the filter identifier and the target weight to the load balancer, so that the load balancer can determine the traffic distribution ratio of multiple member devices in the target server group according to the preset traffic distribution rules, and distribute service traffic to the multiple member devices in the server group according to the preset traffic distribution ratio. This method can quickly distribute the services with specified service identifiers to the remote center at a specified ratio at the same time, and compared with the existing distribution methods, the distribution is more accurate and efficient.

[0067] Based on the above embodiments of the present application, the present application also provides another embodiment, which has many similarities with the above embodiments. For the sake of brevity, only the differences are described here. For the similarities, please refer to the corresponding description of the above embodiments. Compared with the above embodiments, this embodiment specifically provides the category of the target server. In this embodiment, the target server includes a local central server group, a proportional control server group, and a remote central server group. In this embodiment, the above step S102 may also include the following steps:

[0068] S1021, when the target distribution ratio is 0, determining that the target server group is a local central server group, and filtering the identifier to be an identifier of the local central server group;

[0069] When the target distribution ratio is 1, the target server group is determined to be a remote center server group, and the filter identifier is an identifier of the remote center server group;

[0070] When the target distribution ratio is greater than 0 and less than 1, the target server group is determined to be a ratio control server group, and the filtering identifier is an identifier of the ratio control server group.

[0071] Step S1021: The target server group may be a local central server group, a remote central server group, or a ratio control server group. Compared with the traditional method, the present application is provided with a ratio control server group. The ratio control server group is used to handle the situation where the target distribution ratio is greater than 0 and less than 1.

[0072] The service traffic distribution method provided in this embodiment provides a simpler processing flow for special situations that occur during distribution, where the distribution ratio is 0 or 1, thereby further improving the efficiency of service traffic distribution.

[0073] In order to enable users to accurately obtain the current business distribution status, four methods are used to send query requests to the core module: open the input and output module interface, manually refresh, modify and refresh, and timed refresh. The core module returns the current business distribution status information. The business distribution status information includes the service center information corresponding to the target business (local center or remote center) and the target distribution ratio information.

[0074] Based on the above requirements, the service traffic distribution method of the present application also provides another embodiment, which has many similarities with the above embodiment. For the sake of brevity, only the differences are described here. For the similarities, please refer to the corresponding description of the above embodiment. Figure 3 The difference between the method shown is that a process of querying the service flow distribution result is added, which specifically includes steps S105-S107.

[0075] S105, sending a request message to the load balancer, the request message carrying a target service identifier, so that the load balancer determines a filter identifier according to the target service identifier, and determines information of the target server group according to the filter identifier.

[0076] like Figure 1 As shown, in the business traffic distribution system, the core module sends request information to the load balancer. This request information can be input to the core module by the user through the input and output module.

[0077] In step S105, since the filter identifier is determined according to the target identifier information and the target distribution ratio in the previous step, the filter identifier associated with it can be determined by the target identifier information, and the target server group can be determined by the filter identifier. Then, the target service associated with the target service identifier and the information of the target server group corresponding to it are returned to the core module.

[0078] S106, receiving information of the target server group sent by the load balancer.

[0079] In this step, the core module obtains the target server group corresponding to the target business from the load balancer.

[0080] S107: Determine the target server group according to the information of the target server group.

[0081] In some embodiments, the target server groups corresponding to all target services may be acquired by repeating the above steps S105-S107, and then the target distribution ratio may be determined based on the data.

[0082] In some embodiments, the above step S107 may further include:

[0083] S108, displaying the service flow distribution result on the terminal interface.

[0084] The above-mentioned business traffic distribution result may include a business identification area and a distribution ratio area. The business identification area is used to display the results of distributing multiple target businesses to the server group, and the distribution ratio area is used to display the distribution ratio of the remote center server group.

[0085] The above terminal interface can be specifically an interface of an input and output module. Figure 2 The input and output interface is divided into two areas: the service identification area and the distribution ratio area. The service identification area is composed of several neatly arranged label elements. A label element represents the service in the message that carries the information indicated by the label, and is identified by light and dark colors. The color of an element is one of these two colors. The dark color indicates that a certain proportion of the service indicated by the label is distributed to the remote center; the light color indicates that all services of this type are in the local center. The service distribution ratio area has only one distribution percentage parameter, which indicates the percentage of the traffic distributed to the remote center for the service indicated by the dark element in the service feature identification area to the total traffic of the dark element.

[0086] In the input and output module, users can edit the parameters of the business identification area and the distribution ratio area. In the edit mode, they can click on the elements to change the color of each label element, and modify the distribution ratio through the single-select drop-down box. After confirmation, the input and output module sends the two parameters of the label set X and the distribution ratio RV of the dark element to the core module.

[0087] Based on the same inventive concept, an embodiment of the present invention provides a service flow device.

[0088] like Figure 4 FIG. 1 is a schematic diagram of a service flow distribution device provided by the present application, the device comprising:

[0089] The first acquisition module 401 is used to acquire a target service identifier and a target distribution ratio, where the target distribution ratio is a ratio of the target service sent to the target server group;

[0090] The first judgment module 402 determines the filtering identifier of the target server group according to the target service identifier and the target distribution ratio;

[0091] The second judgment module 403 determines the target weight according to the target distribution ratio and the preset distribution ratio and weight mapping relationship; the target weight is associated with the preset traffic distribution rule;

[0092] The first sending module 404 sends a filter identifier and a target weight to the load balancer, so that the load balancer determines the traffic distribution ratio of multiple member devices in the target server group according to a preset traffic distribution rule, and distributes business traffic to multiple member devices in the server group according to the preset traffic distribution ratio.

[0093] Figure 4 Each module in the device shown has the function of realizing Figure 1 The functions of each step in the process can achieve the corresponding technical effects, which will not be described in detail here for the sake of brevity.

[0094] In some embodiments, the target server group includes a local central server group, a proportional control server group, and a remote central server group.

[0095] In some embodiments, the device further includes a third determination module.

[0096] The third judgment module is used to determine that the target server group is a local central server group when the target distribution ratio is 0, and the filtering identifier is the identifier of the local central server group; when the target distribution ratio is 1, determine that the target server group is a remote central server group, and the filtering identifier is the identifier of the remote central server group; when the target distribution ratio is greater than 0 and less than 1, determine that the target server group is a proportion control server group, and the filtering identifier is the identifier of the proportion control server group.

[0097] In some embodiments, the apparatus further includes a second acquisition module.

[0098] The second acquisition module is used to acquire a proportion-weight mapping table; the proportion-weight mapping table stores a mapping relationship between distribution proportions and weights.

[0099] In some embodiments, the device further includes a second sending module and a third acquiring module.

[0100] The second sending module is used to send request information to the load balancer, the request information carries target service identification information, so that the load balancer determines the filtering identification according to the target service identification information, determines the target server group information according to the filtering identification and returns it.

[0101] The third acquisition module is used to obtain the target server group information returned by the load balancer.

[0102] In some embodiments, the device further includes a third sending module, a fourth acquiring module and a fourth determining module.

[0103] The third sending module is used to send multiple request information to the load balancer, where the multiple request information carries all target service identification information, so that the load balancer returns the target server group information corresponding to all target service identification information.

[0104] The fourth acquisition module is used to obtain all the target server group information returned by the load balancer.

[0105] The fourth judgment module is used to determine the target distribution ratio according to all target server group information returned by the load balancer.

[0106] In some embodiments, the device also includes a display module.

[0107] The display module is used to display the business traffic distribution results.

[0108] Figure 5 A schematic diagram of a service flow distribution device provided by an embodiment of the present invention is shown.

[0109] The service flow distribution device may include a processor 501 and a memory 502 storing computer program instructions.

[0110] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.

[0111] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 502 may include a removable or non-removable (or fixed) medium, or the memory 502 is a non-volatile solid-state memory. The memory 502 may be inside or outside the integrated gateway disaster recovery device.

[0112] In one example, the memory 502 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0113] The memory 502 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0114] The processor 501 reads and executes the computer program instructions stored in the memory 502 to implement Figure 1 Steps S101 to S104 in the embodiment shown in the figure are completed and Figure 1 The corresponding technical effects achieved by executing the steps of the example shown are not repeated here for the sake of brevity.

[0115] In one example, the service flow distribution device may further include a communication interface 503 and a bus 510. Figure 3 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.

[0116] The communication interface 503 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.

[0117] Bus 510 includes hardware, software or both, and couples the components of online data traffic billing equipment to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0118] In addition, in combination with the service flow distribution method in the above embodiment, the embodiment of the present invention can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any service flow distribution method in the above embodiment is implemented.

[0119] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0120] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0121] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0122] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0123] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A service flow distribution method, characterized in that: include: Obtaining a target service identifier and a target distribution ratio, where the target distribution ratio is a ratio of the target service sent to the target server group; Determining a filter identifier of the target server group according to the target service identifier and the target distribution ratio; Determining a target weight according to the target distribution ratio and a preset mapping relationship between the distribution ratio and the weight; The target weight is associated with a preset traffic distribution rule; Sending the filter identifier and the target weight to the load balancer, so that the load balancer determines the traffic distribution ratio of the multiple member devices in the target server group according to the preset traffic distribution rule, and distributes the service traffic to the multiple member devices in the server group according to the preset traffic distribution ratio; The target server group includes a local central server group, a proportional control server group, and a remote central server group; After determining the filter identifier of the target server group according to the target service identifier and the target distribution ratio, the method further includes: When the target distribution ratio is 0, the target server group is determined to be a local central server group, and the filtering identifier is an identifier of the local central server group; When the target distribution ratio is 1, the target server group is determined to be a remote central server group, and the filtering identifier is an identifier of the remote central server group; When the target distribution ratio is greater than 0 and less than 1, the target server group is determined to be a ratio regulation server group, and the filtering identifier is an identifier of the ratio regulation server group.

2. The service flow distribution method according to claim 1, characterized in that: Before determining the target weight according to the target distribution ratio and the preset distribution ratio and weight mapping relationship, the method further includes: Obtain a proportion-weight mapping table; the proportion-weight mapping table stores a mapping relationship between distribution proportions and weights.

3. The service flow distribution method according to claim 1, characterized in that: The method further comprises: Sending a request message to the load balancer, wherein the request message carries a target service identifier, so that the load balancer determines a filter identifier according to the target service identifier, and determines information of a target server group according to the filter identifier; Receive information about the target server group sent by the load balancer; The target server group is determined according to the information of the target server group.

4. The service flow distribution method according to claim 1, characterized in that: The method further comprises: Sending multiple request information to the load balancer, wherein the multiple request information respectively carries a target service identifier, so that the load balancer determines a filtering identifier according to the target service identifier, and determines information of the target server according to the filtering identifier; Receiving information of all the target server groups sent by the load balancer; The target distribution ratio of each target server group is determined according to the information of the target server group sent by the load balancer.

5. The service flow distribution method according to claim 3 or 4, characterized in that: The method further comprises: The service traffic distribution results are displayed on the terminal interface.

6. A service flow distribution device, characterized in that: The device comprises: A first acquisition module is used to acquire a target service identifier and a target distribution ratio, where the target distribution ratio is a ratio of the target service sent to the target server group; A first judgment module determines a filtering identifier of the target server group according to the target service identifier and the target distribution ratio; The second judgment module determines the target weight according to the target distribution ratio and the preset distribution ratio and weight mapping relationship; the target weight is associated with the preset traffic distribution rule; A first sending module sends the filter identifier and the target weight to the load balancer, so that the load balancer determines the traffic distribution ratio of multiple member devices in the target server group according to a preset traffic distribution rule, and distributes service traffic to the multiple member devices in the server group according to the preset traffic distribution ratio; The first judgment module is also used for the target server group to include a local central server group, a ratio control server group, and a remote central server group; after determining the filtering identifier of the target server group according to the target service identifier and the target distribution ratio, it also includes: When the target distribution ratio is 0, the target server group is determined to be a local central server group, and the filtering identifier is an identifier of the local central server group; When the target distribution ratio is 1, the target server group is determined to be a remote central server group, and the filtering identifier is an identifier of the remote central server group; When the target distribution ratio is greater than 0 and less than 1, the target server group is determined to be a ratio regulation server group, and the filtering identifier is an identifier of the ratio regulation server group.

7. A service flow distribution device, characterized in that: The device includes: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the service traffic distribution method as described in any one of claims 1-5.

8. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the service traffic distribution method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method and device for regulating cloud computing resources

    CN107040479A

  • Service control method and service control device

    CN107046505A

  • Load balancing method and device, storage medium and terminal equipment

    CN108769271A

  • Flow switching method, apparatus and device and computer readable storage medium

    CN109587068A

  • Service deployment method and device and storage medium

    CN111324412A