CN114500542A - Service flow distribution method, device, equipment and computer storage medium - Google Patents

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

Info

Publication number
CN114500542A
CN114500542A CN202011265199.2A CN202011265199A CN114500542A CN 114500542 A CN114500542 A CN 114500542A CN 202011265199 A CN202011265199 A CN 202011265199A CN 114500542 A CN114500542 A CN 114500542A
Authority
CN
China
Prior art keywords
target
server group
distribution
proportion
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011265199.2A
Other languages
Chinese (zh)
Inventor
柏路平
覃强
肖中卿
吴志强
彭伟军
周双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011265199.2A priority Critical patent/CN114500542A/en
Publication of CN114500542A publication Critical patent/CN114500542A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Abstract

The embodiment of the invention provides a method, a device and equipment for distributing service traffic and a computer storage medium. The method comprises the following steps: acquiring a target service identifier and a target distribution proportion, wherein the target distribution proportion is the proportion of target service transmitted to a target server group; determining a filtering identifier of a target server group according to the target service identifier and the target distribution ratio; determining target weight according to the target distribution proportion and a preset distribution proportion and weight mapping relation; and sending the filtering identification and the target weight to the load balancer, so that the load balancer determines the traffic distribution proportion of the plurality of member devices in the target server group according to a preset traffic distribution rule, and distributes the service traffic for the plurality of member devices in the server group according to the preset traffic distribution proportion. According to the service flow distribution method, the device, the equipment and the computer storage medium provided by the embodiment of the invention, the service with the selected identifier can be quickly distributed to the remote center according to the selected percentage.

Description

Service flow distribution method, device, equipment and computer storage medium
Technical Field
The present invention belongs to the field of network data processing, and in particular, to a method, an apparatus, a device, and a computer storage medium for distributing service traffic.
Background
With the increasing of the service volume of the network information system, the situation that the original single physical central machine room cannot completely bear the burst service volume occurs. Nowadays, it has become a development trend of most systems to build a remote center system capable of independently bearing a certain amount of traffic. However, due to operational maintenance needs, many systems still have their egress entry at the load balancer at the local center.
In many scenarios, a remote center needs to simultaneously assume a part of traffic: if the flow is divided in a double-live way under normal conditions, the flow is divided in a large amount of business for sales promotion activities on holidays, the gray scale of a new version of a business system is on line, and all the flow is born by a remote center under abnormal conditions. The current load balancer only provides a method for distributing traffic according to the weight proportion of the total traffic of the virtual service or only provides a method for distributing traffic of a specific identifier to a remote center, the method is generally configured once, the current traffic proportion and the modified member weight need to be manually calculated in real time each time the traffic distribution state is modified, the distribution process is tedious, time-consuming and error-prone, and the requirement for frequently distributing traffic of the specific proportion of the specific identifier service to the remote center is difficult to meet.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a computer storage medium for distributing service traffic, which can quickly distribute a service with a selected identifier to a remote center in a selected percentage.
In a first aspect, an embodiment of the present invention provides a method for distributing service traffic, where the method includes:
acquiring a target service identifier and a target distribution proportion, wherein the target distribution proportion is the proportion of target service transmitted to a target server group;
determining a filtering identifier of a target server group according to the target service identifier and the target distribution ratio;
determining target weight according to the target distribution proportion and a preset distribution proportion and weight mapping relation; the target weight is associated with a preset flow distribution rule;
and sending the filtering identification and the target weight to the load balancer, so that the load balancer determines the traffic distribution proportion of the plurality of member devices in the target server group according to a preset traffic distribution rule, and distributes the service traffic for the plurality of member devices in the server group according to the preset traffic distribution proportion.
In an optional implementation manner, the target server group includes a local center server group, a proportional control server group and a remote center server group.
In an optional implementation manner, after determining the filtering 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 proportion is 0, determining that the target server group is a local center server group, and filtering the identifier as the identifier of the local center server group;
when the target distribution proportion is 1, determining that the target server group is a remote center server group, and filtering the identifier which is the identifier of the remote center server group;
and when the target distribution proportion is larger than 0 and smaller than 1, determining that the target server group is a proportion regulation server group, and filtering the identifier as the identifier of the proportion regulation server group.
In an optional implementation manner, before determining the target weight according to the target distribution ratio and a preset distribution ratio and weight mapping relationship, the method further includes:
acquiring a proportional weight mapping table; the proportion weight mapping table stores the distribution proportion and the weight mapping relation.
In an alternative embodiment, the method further comprises:
sending request information to a load balancer, wherein the request information carries a target service identifier and is used for the load balancer to determine a filtering identifier according to the target service identifier and determine information of a target server group according to the filtering identifier;
receiving information of a target server group sent by a load balancer;
and determining the target server group according to the information of the target server group.
In an alternative embodiment, the method further comprises:
sending a plurality of request messages to a load balancer, wherein the plurality of request messages carry target service identifiers respectively, and are used for the load balancer to determine a filtering identifier according to the target service identifier and determine information of a target server according to the filtering identifier;
receiving information of all target server groups sent by a load balancer;
and determining the target distribution proportion of each target server group according to the information of the target server group sent by the load balancer.
In an alternative embodiment, the method further comprises:
and displaying the service flow distribution result on a terminal interface.
In a second aspect, an embodiment of the present invention provides a service traffic distribution apparatus, where the apparatus includes:
the first acquisition module is used for acquiring a target service identifier and a target distribution proportion, wherein the target distribution proportion is the proportion of target service sent to a target server group;
the first judgment module is used for determining the filtering identification of the target server group according to the target service identification and the target distribution proportion;
the second judgment module is used for determining the target weight according to the target distribution proportion and a preset distribution proportion and weight mapping relation; the target weight is associated with a preset flow distribution rule;
the first sending module is configured to send the filtering identifier and the target weight to a load balancer, so that the load balancer determines traffic distribution proportions of a plurality of member devices in the target server group according to a preset traffic distribution rule, and distributes service traffic to the plurality of member devices in the server group according to the preset traffic distribution proportions.
In a third aspect, an embodiment of the present invention provides a service traffic distribution device, where the device includes: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the traffic flow distribution method in the first aspect or any optional implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, where computer program instructions are stored on the computer storage medium, and when the computer program instructions are executed by a processor, the method for distributing service traffic in the first aspect or any optional implementation manner of the first aspect is implemented.
The service traffic distribution method, the device, the equipment and the computer storage medium of the embodiment of the invention can distribute the service traffic requests of the specified service identification to the different-place central service group according to the specified distribution proportion in a system with two separated data centers sharing the service, the service traffic requests are divided more accurately, the operation efficiency of the system is improved, and the machine room crash risk is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a service traffic distribution system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an input/output interface provided by an embodiment of the invention;
fig. 3 is a flowchart illustrating a service traffic distribution method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service traffic distribution apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a service traffic distribution device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The application provides a service traffic distribution method, a device, equipment and a computer storage medium, which are realized based on a load balancer. In a high-availability system with two data centers with separated machine rooms sharing services, what proportion of services are distributed to a remote center is an important system operation and maintenance function. Current load balancers only provide the capability to switch what traffic to the off-site center, or to distribute all the traffic of a virtual service to the off-site center in a certain proportion. The traffic distribution method provided by the application can simultaneously and rapidly switch the target service carrying the specified service identification to the off-site center in a specified proportion in a lossless manner.
The service traffic distribution method provided in the present application may be specifically implemented in a service traffic distribution system. The service traffic distribution system will be described first.
Referring to fig. 1, fig. 1 is a schematic diagram of a service traffic distribution system according to an embodiment of the present invention. The flow distribution system comprises a core module, a load balancer, a database and an input/output module, wherein the load balancer, the database and the input/output module are connected with the core module; the core module is used for receiving the service flow distribution parameters sent by the input and output module, modifying the configuration of the load balancer target virtual service based on the service flow distribution parameters and the information stored in the database, and the load balancer distributes the service flow according to the configuration.
In one example, the traffic distribution parameters include: service identification and distribution ratio.
In one embodiment, the input/output module may be a touch screen. The user can intuitively acquire the distribution state information of the flow of the target virtual service in the local center and the remote center at the input and output module.
In one example, the display interface of the touch screen may be the interface shown in fig. 2.
As shown in fig. 2, the touch screen display interface is divided into two areas: a service identification area and a distribution ratio area. In the editing mode, a user can change a server group corresponding to the service flow associated with the service identifier through a clickable service identifier area; the distribution ratio area may set a distribution ratio.
As shown in fig. 3, for a service traffic distribution method provided by the present application, the method may be applied to the service traffic distribution system shown in fig. 1, and is implemented based on a core module in the system shown in fig. 1, and includes steps S101 to S104.
S101, acquiring a target service identifier and a target distribution proportion, wherein the target distribution proportion is the proportion of the target service to be sent to a target server group.
The target service identifier is an identifier for identifying the target service, and may be an identifier for uniquely identifying the target service. The target service identifier may be information that can distinguish attributes or character segments of different services in a message header or a message body, such as a source IP, a service type, an area location, an external merchant, and the like.
As shown in fig. 1, the service traffic distribution system may receive, through the input/output module, the target service identifier and the target distribution ratio input by the user.
And S102, determining the filtering identification of the target server group according to the target service identification and the target distribution proportion.
The filter identifier corresponding to the server group is an identifier for identifying a service distributed to the same server group. The target server group can identify a plurality of different services carrying the filtering identifiers which need to be processed by the target server group through the filtering identifiers. The filtering identifier may be a loading rule, and when the loading rule is different, the corresponding target server group is different.
As shown in fig. 1, in the service distribution system, the core module may determine, according to a specific numerical value of the target distribution ratio obtained from the input/output module, server group information corresponding to the numerical value. Then, the core module determines a filtering identifier according to the server group information and the target service identifier.
S103, determining target weight according to the target distribution proportion and a preset distribution proportion and weight mapping relation; the target weight is associated with a preset flow distribution rule.
The distribution proportion and weight mapping relation is a corresponding relation of a target distribution proportion and a target weight. The distribution ratio corresponds to a ratio of weights between the weight mapping relationship and the server groups in the data center. The distribution ratio and weight mapping relationship may be a database table in which the distribution ratio and weight mapping relationship is stored.
As shown in fig. 1, the service traffic distribution system may store a database table of the mapping relationship between the distribution ratio and the weight in advance through a database.
And S104, sending the filtering identification and the target weight to the load balancer, so that the load balancer determines the traffic distribution proportion of the plurality of member devices in the target server group according to a preset traffic distribution rule, and distributing the service traffic for the plurality of member devices in the server group according to the preset traffic distribution proportion.
As shown in fig. 1, the service traffic distribution system may send the filtering identifier and the target weight to the load balancer through the core module, and the load balancer completes the service traffic distribution process.
In some embodiments, step S103 is preceded by:
acquiring a proportional weight mapping table; the proportion weight mapping table stores the distribution proportion and the weight mapping relation.
The proportional-weight mapping table is a database table in which a distribution proportion and weight mapping relationship is stored.
As shown in fig. 1, the service traffic distribution system may obtain the database table from the database through the core module.
According to the service flow distribution method in the embodiment of the application, a core module obtains a target service identifier and a target distribution proportion, and determines a filtering identifier of a target server group according to the target service identifier and the target distribution proportion; determining target weight according to the target distribution proportion and a preset distribution proportion and weight mapping relation; and sending the filtering identification and the target weight to a load balancer, so that the load balancer determines the traffic distribution proportion of a plurality of member devices in a target server group according to a preset traffic distribution rule, and distributes the service traffic for the plurality of member devices in the server group according to the preset traffic distribution proportion. The method can rapidly distribute the service of the designated service identification to the remote center in the designated proportion, and compared with the existing distribution method, the method has the advantages of more accurate distribution and higher efficiency.
Based on the above embodiments of the present application, the present application further provides another embodiment, which has many similarities with the above embodiments, and for the sake of brevity, only the differences will be described here, and the similarities refer to the corresponding descriptions of the above embodiments. Compared with the above embodiments, the present embodiment specifically provides the category of the target server, and the target server in the present embodiment includes a local central server group, a proportional control server group, and a remote central server group. In this embodiment, the following steps may be further included after the step S102:
s1021, when the target distribution proportion is 0, determining that the target server group is a local center server group, and filtering the identification as the identification of the local center server group;
when the target distribution proportion is 1, determining that the target server group is a remote center server group, and filtering the identifier which is the identifier of the remote center server group;
and when the target distribution proportion is larger than 0 and smaller than 1, determining that the target server group is a proportion regulation server group, and filtering the identifier as the identifier of the proportion regulation server group.
The target server group of step S1021 may be a local central server group, a remote central server group and a proportional control server group. Compared with the traditional method, the method is different in that a proportion regulation server group is arranged in the application. The proportion regulation server group is used for processing the condition that the target distribution proportion is larger than 0 and smaller than 1.
The service traffic distribution method provided in this embodiment provides a simpler processing flow for a special situation occurring in distribution and a situation where the distribution ratio is 0 or 1, and further improves the efficiency of service traffic distribution.
In order to enable a user to accurately acquire the current service distribution state, 4 modes of opening an input/output module interface, manually refreshing, modifying refreshing and regularly refreshing are used for sending a query request to a core module, and the core module returns the current service distribution state information. The service distribution state information includes service center information (local center or off-site center) corresponding to the target service and target distribution ratio information.
In view of the above requirements, the service traffic distribution method of the present application further provides another embodiment, which has many similarities with the above embodiment, and for the sake of brevity, only the differences are explained here, and the similarities refer to the corresponding descriptions of the above embodiment. The difference between this embodiment and the method shown in fig. 3 is that a process of querying a service traffic distribution result is added, and specifically includes steps S105 to S107.
And S105, sending request information to the load balancer, wherein the request information carries a target service identifier, and is used for the load balancer to determine a filtering identifier according to the target service identifier and determine information of a target server group according to the filtering identifier.
As shown in fig. 1, in a traffic distribution system, a core module sends request information to a load balancer. This request information may be input to the core module by the user through the input-output module.
In step S105, since the filtering identifier is determined according to the target identification information and the target distribution ratio in the foregoing step, the filtering identifier associated with the filtering identifier can be determined by the target identification information, and the target server group can be determined by the filtering identifier. And then, the information of the target service associated with the target service identifier and the corresponding target server group is returned to the core module.
And S106, receiving the information of the target server group sent by the load balancer.
In this step, the core module obtains a target server group corresponding to the target service from the load balancer.
S107, determining the target server group according to the information of the target server group.
In some embodiments, the target server groups corresponding to all target services may be obtained by repeating the above steps S105 to S107, and then the target distribution ratio is determined according to the data.
In some embodiments, the step S107 may further include:
and S108, displaying the service flow distribution result on a terminal interface.
The service flow distribution result may include a service identification area for displaying a result of distributing the plurality of target services to the server group, and a distribution ratio area for displaying a distribution ratio of the remote center server group.
The terminal interface may be specifically an interface of an input/output module. Referring to fig. 2, the input/output interface is divided into two regions: a service identification area and a distribution ratio area. The service identification area is composed of a plurality of label elements which are arranged in order, one label element represents the service carrying the information shown by the label in the message, and the label element is identified by two colors of light color and dark color. The color of one element is one of the two colors, and the dark color indicates that a certain proportion of the services shown by the label are distributed to the off-site center; the light color indicates that this type of traffic is all in the local center. The service distribution proportion area only has a parameter of distribution percentage, which represents the indicated service of the dark color element in the service characteristic identification area, and the flow distributed to the remote center accounts for the percentage of the total flow of the dark color element.
The method comprises the steps that a user can edit parameters of a service identification area and a distribution proportion area in an input/output module, elements can be clicked to change the color of each label element in an editing mode, the distribution proportion is modified through a single selection drop-down box, and the input/output module sends two parameters of a label set X and a distribution proportion RV of dark elements to a core module after confirmation.
Based on the same inventive concept, the embodiment of the invention provides a service flow device.
As shown in fig. 4, a schematic diagram of a service traffic distribution apparatus provided in the present application includes:
a first obtaining module 401, configured to obtain a target service identifier and a target distribution ratio, where the target distribution ratio is a ratio of a target service to be sent to a target server group;
a first judging module 402, determining a filtering identifier of a target server group according to the target service identifier and the target distribution ratio;
a second judgment module 403, determining a target weight according to the target distribution ratio and a preset distribution ratio and weight mapping relationship; the target weight is associated with a preset flow distribution rule;
the first sending module 404 sends the filtering identifier and the target weight to the load balancer, so that the load balancer determines traffic distribution proportions of the plurality of member devices in the target server group according to a preset traffic distribution rule, and distributes the service traffic for the plurality of member devices in the server group according to the preset traffic distribution proportions.
Each module in the apparatus shown in fig. 4 has a function of implementing each step in fig. 1, and can achieve the corresponding technical effect, and for brevity, is not described again here.
In some embodiments, the target server group comprises a local central server group, a scale control server group, and a displaced central server group.
In some embodiments, the apparatus further comprises a third determining module.
The third judgment module is used for determining that the target server group is the local center server group when the target distribution proportion is 0, and filtering the identifier as the identifier of the local center server group; when the target distribution proportion is 1, determining that the target server group is a remote center server group, and filtering the identifier which is the identifier of the remote center server group; and when the target distribution proportion is larger than 0 and smaller than 1, determining that the target server group is a proportion regulation server group, and filtering the identifier as the identifier of the proportion regulation server group.
In some embodiments, the apparatus further comprises a second acquisition module.
The second acquisition module is used for acquiring a proportional weight mapping table; the proportion weight mapping table stores the distribution proportion and the weight mapping relation.
In some embodiments, the apparatus further comprises a second sending module and a third obtaining module.
And the second sending module is used for sending request information to the load balancer, wherein the request information carries target service identification information, and is used for the load balancer to determine a filtering identification according to the target service identification information, determine target server group information according to the filtering identification and return the target server group information.
And the third acquisition module is used for acquiring the target server group information returned by the load balancer.
In some embodiments, the apparatus further includes a third sending module, a fourth obtaining module, and a fourth determining module.
And the third sending module is used for sending a plurality of request messages to the load balancer, wherein the plurality of request messages carry all the target service identification information, so that the load balancer returns the target server group information corresponding to all the target service identification information.
And the fourth acquisition module is used for acquiring all the target server group information returned by the load balancer.
And the fourth judgment module is used for determining the target distribution proportion according to all the target server group information returned by the load balancer.
In some embodiments, the apparatus further comprises a display module.
And the display module is used for displaying the service flow distribution result.
Fig. 5 is a schematic diagram illustrating a service traffic distribution device according to an embodiment of the present invention.
The traffic distribution device may comprise a processor 501 and a memory 502 in which computer program instructions are stored.
Specifically, the processor 501 may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present invention.
Memory 502 may include mass storage for data or instructions. By way of example, and not limitation, memory 502 may include a Hard Disk Drive (HDD), a floppy Disk Drive, flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. In one example, memory 502 can include removable or non-removable (or fixed) media, or memory 502 is non-volatile solid-state memory. The memory 502 may be internal or external to the integrated gateway disaster recovery device.
In one example, the Memory 502 may be a Read Only Memory (ROM). In one example, the ROM may be mask programmed ROM, programmable ROM (prom), erasable prom (eprom), electrically erasable prom (eeprom), electrically rewritable ROM (earom), or flash memory, or a combination of two or more of these.
The memory 502 may include Read Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors), it is operable to perform operations described with reference to the methods according to an aspect of the present disclosure.
The processor 501 reads and executes the computer program instructions stored in the memory 502 to implement steps S101 to S104 in the embodiment shown in fig. 1, and achieve the corresponding technical effect achieved by executing the steps in the example shown in fig. 1, which is not described herein again for brevity.
In one example, the traffic distribution device may also include a communication interface 503 and a bus 510. As shown in fig. 3, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 to complete communication therebetween.
The communication interface 503 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
Bus 510 comprises hardware, software, or both to couple the components of the online data traffic billing device to each other. By way of example, and not limitation, a Bus may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (Front Side Bus, FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) Bus, an infiniband interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a Micro Channel Architecture (MCA) Bus, a Peripheral Component Interconnect (PCI) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a video electronics standards association local (VLB) Bus, or other suitable Bus or a combination of two or more of these. Bus 510 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the service traffic distribution method in the foregoing embodiment, an embodiment of the present invention may provide a computer storage medium to implement. The computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement any of the traffic distribution methods in the above embodiments.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic Circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments noted in this patent 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-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware for performing the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A method for distributing traffic, comprising:
acquiring a target service identifier and a target distribution proportion, wherein the target distribution proportion is the proportion of target service transmission to a target server group;
determining a filtering identifier of the target server group according to the target service identifier and the target distribution proportion;
determining target weight according to the target distribution proportion and a preset distribution proportion and weight mapping relation; the target weight is associated with a preset flow distribution rule;
and sending the filtering identifier and the target weight to a load balancer, so that the load balancer determines the traffic distribution proportion of a plurality of member devices in the target server group according to a preset traffic distribution rule, and distributes service traffic to the plurality of member devices in the server group according to the preset traffic distribution proportion.
2. The traffic distribution method according to claim 1, wherein the target server group includes a local central server group, a proportional control server group, and a remote central server group.
3. The method according to claim 2, wherein after determining the filtering identifier of the target server group according to the target service identifier and the target distribution ratio, the method further comprises:
when the target distribution proportion is 0, determining that the target server group is a local center server group, and the filtering identifier is an identifier of the local center server group;
when the target distribution proportion is 1, determining that the target server group is a remote center server group, and the filtering identifier is an identifier of the remote center server group;
and when the target distribution proportion is larger than 0 and smaller than 1, determining that the target server group is a proportion regulation server group, and the filtering identifier is an identifier of the proportion regulation server group.
4. The method according to claim 1, wherein before determining the target weight according to the target distribution ratio and a preset distribution ratio-weight mapping relationship, the method further comprises:
acquiring a proportional weight mapping table; the proportion weight mapping table stores distribution proportion and weight mapping relation.
5. The traffic distribution method according to claim 1, characterized in that the method further comprises:
sending request information to a load balancer, wherein the request information carries a target service identifier, and is used for the load balancer to determine a filtering identifier according to the target service identifier and determine information of a target server group according to the filtering identifier;
receiving information of a target server group sent by a load balancer;
and determining the target server group according to the information of the target server group.
6. The traffic distribution method according to claim 1, characterized in that the method further comprises:
sending a plurality of request messages to a load balancer, wherein the plurality of request messages respectively carry target service identifiers, and are used for the load balancer to determine a filtering identifier according to the target service identifier and determine information of a target server according to the filtering identifier;
receiving information of all the target server groups sent by the load balancer;
and determining the target distribution proportion of each target server group according to the information of the target server group sent by the load balancer.
7. The traffic distribution method according to claim 5 or 6, characterized in that the method further comprises:
and displaying the service flow distribution result on a terminal interface.
8. A traffic distribution apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring a target service identifier and a target distribution proportion, wherein the target distribution proportion is the proportion of target service sent to a target server group;
the first judgment module is used for determining the filtering identification of the target server group according to the target service identification and the target distribution proportion;
the second judgment module is used for determining the target weight according to the target distribution proportion and a preset distribution proportion and weight mapping relation; the target weight is associated with a preset flow distribution rule;
the first sending module is configured to send the filtering identifier and the target weight to a load balancer, so that the load balancer determines traffic distribution proportions of a plurality of member devices in the target server group according to a preset traffic distribution rule, and distributes service traffic to the plurality of member devices in the server group according to the preset traffic distribution proportions.
9. A traffic distribution apparatus, characterized in that the apparatus comprises: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the traffic distribution method according to any of claims 1-7.
10. A computer storage medium having computer program instructions stored thereon, which when executed by a processor implement the traffic distribution method according to any one of claims 1-7.
CN202011265199.2A 2020-11-12 2020-11-12 Service flow distribution method, device, equipment and computer storage medium Pending CN114500542A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011265199.2A CN114500542A (en) 2020-11-12 2020-11-12 Service flow distribution method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011265199.2A CN114500542A (en) 2020-11-12 2020-11-12 Service flow distribution method, device, equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN114500542A true CN114500542A (en) 2022-05-13

Family

ID=81490867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011265199.2A Pending CN114500542A (en) 2020-11-12 2020-11-12 Service flow distribution method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN114500542A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086429A (en) * 2022-05-16 2022-09-20 鼎捷软件股份有限公司 Request integration system and request integration method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6259705B1 (en) * 1997-09-22 2001-07-10 Fujitsu Limited Network service server load balancing device, network service server load balancing method and computer-readable storage medium recorded with network service server load balancing program
US20160323371A1 (en) * 2013-12-24 2016-11-03 Telefonaktiebolaget Lm Ericsson (Publ) Methods and apparatus for load balancing in a network
CN107040479A (en) * 2016-02-04 2017-08-11 华为软件技术有限公司 A kind of method and apparatus of cloud computing resources regulation
CN108769271A (en) * 2018-08-20 2018-11-06 北京百度网讯科技有限公司 Method, apparatus, storage medium and the terminal device of load balancing
US20190089645A1 (en) * 2015-08-25 2019-03-21 Shanghai Jiao Tong University Dynamic Network Flows Scheduling Scheme in Data Center
CN109587068A (en) * 2018-12-03 2019-04-05 深圳前海微众银行股份有限公司 Flow switching method, device, equipment and computer readable storage medium
CN111324412A (en) * 2018-12-13 2020-06-23 阿里巴巴集团控股有限公司 Service deployment method, device and storage medium
CN111431818A (en) * 2020-02-28 2020-07-17 口碑(上海)信息技术有限公司 Cross-domain request traffic distribution method and device, storage medium and computer equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6259705B1 (en) * 1997-09-22 2001-07-10 Fujitsu Limited Network service server load balancing device, network service server load balancing method and computer-readable storage medium recorded with network service server load balancing program
US20160323371A1 (en) * 2013-12-24 2016-11-03 Telefonaktiebolaget Lm Ericsson (Publ) Methods and apparatus for load balancing in a network
US20190089645A1 (en) * 2015-08-25 2019-03-21 Shanghai Jiao Tong University Dynamic Network Flows Scheduling Scheme in Data Center
CN107040479A (en) * 2016-02-04 2017-08-11 华为软件技术有限公司 A kind of method and apparatus of cloud computing resources regulation
CN108769271A (en) * 2018-08-20 2018-11-06 北京百度网讯科技有限公司 Method, apparatus, storage medium and the terminal device of load balancing
CN109587068A (en) * 2018-12-03 2019-04-05 深圳前海微众银行股份有限公司 Flow switching method, device, equipment and computer readable storage medium
CN111324412A (en) * 2018-12-13 2020-06-23 阿里巴巴集团控股有限公司 Service deployment method, device and storage medium
CN111431818A (en) * 2020-02-28 2020-07-17 口碑(上海)信息技术有限公司 Cross-domain request traffic distribution method and device, storage medium and computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086429A (en) * 2022-05-16 2022-09-20 鼎捷软件股份有限公司 Request integration system and request integration method
CN115086429B (en) * 2022-05-16 2024-02-13 鼎捷软件股份有限公司 Request integration system and request integration method

Similar Documents

Publication Publication Date Title
CN111371638A (en) Intelligent equipment testing method and device, server and storage medium
CN113364746B (en) Equipment identification method, device, equipment and computer storage medium
CN111083013B (en) Test method and device based on flow playback, electronic equipment and storage medium
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
CN114500542A (en) Service flow distribution method, device, equipment and computer storage medium
CN113472574A (en) Method, device, medium and electronic equipment for monitoring user equipment based on 5G private network
CN110769449B (en) Method and device for analyzing network connection state of terminal of Internet of things
CN112788551B (en) Message processing method and device, terminal equipment and storage medium
CN106681894B (en) Monitoring method and monitoring device of intelligent equipment
CN113301557B (en) eSIM card state management method, device, equipment and storage medium
CN114817347A (en) Business approval method and device, electronic equipment and storage medium
CN114626811A (en) Process template configuration method and related equipment
CN110544104B (en) Account determination method and device, storage medium and electronic device
CN111488625A (en) Data processing method and device
CN114697368B (en) Method and device for determining equipment control file, storage medium and electronic device
CN110968806B (en) Maintenance information searching method and device and network equipment
CN112437429B (en) Processing method and device for responding to equipment number changing instruction
CN114090504A (en) Document management method, device, equipment and storage medium in electronic system
CN114244427B (en) Method and device for checking optical fiber network port resource and computer readable medium
CN115907625A (en) Resource processing method and device, storage medium and electronic device
CN115169850A (en) Resource attribute determination method and device
CN116629794A (en) Business approval method, device, equipment and computer storage medium
CN116226811A (en) Method, device, equipment and computer storage medium for data acquisition
CN117336807A (en) Method, device, medium and system for switching multiple operators based on vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination