[go: up one dir, main page]

CN114500542B - 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
CN114500542B
CN114500542B CN202011265199.2A CN202011265199A CN114500542B CN 114500542 B CN114500542 B CN 114500542B CN 202011265199 A CN202011265199 A CN 202011265199A CN 114500542 B CN114500542 B CN 114500542B
Authority
CN
China
Prior art keywords
target
server group
proportion
distribution
determining
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.)
Active
Application number
CN202011265199.2A
Other languages
Chinese (zh)
Other versions
CN114500542A (en
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/CN114500542B/en
Publication of CN114500542A publication Critical patent/CN114500542A/en
Application granted granted Critical
Publication of CN114500542B publication Critical patent/CN114500542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a service flow distribution method, a device, equipment 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 a target service sent to a target server group; determining 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 the load balancer so as to be used for determining the flow distribution proportion of the plurality of member devices in the target server group according to a preset flow distribution rule by the load balancer and distributing the service flow to the plurality of member devices in the server group according to the preset flow distribution proportion. According to the service flow distribution method, the device, the equipment and the computer storage medium, the service with the selected identification can be rapidly distributed to the different-place center in the selected percentage.

Description

Service flow distribution method, device, equipment and computer storage medium
Technical Field
The present invention relates 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 continuous increase of the traffic of the network information system, the situation that the original single physical center machine room cannot completely bear the burst traffic occurs. The construction of off-site central systems capable of independently assuming a certain amount of traffic has become a trend in most systems today. But because of operational maintenance requirements, many systems still have load balancers with external portals at the local center.
In many scenarios, it is necessary for the offsite center to simultaneously bear a part of traffic: if the double-activity diversion is under normal conditions, the holiday sales promotion is carried out with large traffic diversion, the new version gray of the service system is online, and under abnormal conditions, the whole traffic is borne by the different-place center. The current load equalizer only provides a method for distributing the traffic according to the weight proportion of the total traffic of the virtual service or only provides a method for distributing the traffic of a specific identifier to the different-place center, the method is generally one-time configuration, the current traffic proportion and the modified member weight are calculated manually and immediately each time the traffic distribution state is modified, the distribution flow is complex, the time consumption is long, the error is easy to occur, and the requirement for frequently distributing the traffic of the specific proportion of the specific identifier service to the different-place center is difficult to meet.
Disclosure of Invention
The embodiment of the invention provides a service flow distribution method, a device, equipment and a computer storage medium, which can quickly distribute selected identified services to different centers in a selected percentage.
In a first aspect, an embodiment of the present invention provides a service traffic distribution method, where the method includes:
acquiring a target service identifier and a target distribution proportion, wherein the target distribution proportion is the proportion of a target service sent to a target server group;
Determining 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; 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 as to be used for determining the flow distribution proportion of the plurality of member devices in the target server group according to a preset flow distribution rule by the load balancer and distributing the service flow to the plurality of member devices in the server group according to the preset flow distribution proportion.
In an alternative embodiment, the target server group includes a local center server group, a proportional regulation server group, and a offsite center server group.
In an alternative embodiment, 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 proportion is 0, determining the target server group as 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 the target server group as a remote center server group, and filtering the identification as the identification of the remote center server group;
and when the target distribution proportion is greater than 0 and smaller than 1, determining the target server group as a proportion regulation server group, and filtering the identification as the identification of the proportion regulation server group.
In an alternative embodiment, before determining the target weight according to the target distribution ratio and the preset distribution ratio-weight mapping relation, the method further includes:
Acquiring a proportional weight mapping table; the proportion weight mapping table stores the distribution proportion and weight mapping relation.
In an alternative embodiment, the method further comprises:
The method comprises the steps that request information is sent to a load balancer, wherein the request information carries a target service identifier and is used for determining a filtering identifier according to the target service identifier and determining 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:
the method comprises the steps that a plurality of pieces of request information are sent to a load balancer, the plurality of pieces of request information respectively carry target service identifiers and are used for determining filtering identifiers according to the target service identifiers by the load balancer, and information of a target server is determined according to the filtering identifiers;
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 groups sent by the load balancer.
In an alternative embodiment, the method further comprises:
and displaying the service flow distribution result on the 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 the target service sent to the target server group;
The first judging 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 judging module is used for 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 first sending module sends the filtering identification and the target weight to a load balancer, so that the load balancer can determine the flow distribution proportion of a plurality of member devices in the target server group according to a preset flow distribution rule, and distribute service flow for the plurality of member devices in the server group according to the preset flow distribution proportion.
In a third aspect, an embodiment of the present invention provides a service traffic distribution apparatus, where the apparatus includes: a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the method of traffic distribution in the first aspect or any of the alternative embodiments 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, where the computer program instructions, when executed by a processor, implement a service traffic distribution method in the first aspect or any optional implementation manner of the first aspect.
The business flow distribution method, the device, the equipment and the computer storage medium can distribute the business flow request of the appointed business identifier to the service group of the different center according to the appointed distribution proportion in the system with two separated data centers for jointly bearing the business, the business flow request is divided more accurately, the operation efficiency of the system is improved, and the risk of downtime of the machine room is reduced.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are needed to be used in the embodiments of the present invention will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
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 according to an embodiment of the present invention;
fig. 3 is a flow chart of a service flow distribution method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service traffic distribution device 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 the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and the detailed embodiments. It should be understood that the particular embodiments described herein are meant to be illustrative of the invention only and 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 invention by showing examples of the invention.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 like elements in a process, method, article, or apparatus that comprises the element.
The application provides a service flow distribution method, a device, equipment and a computer storage medium, which are realized based on a load equalizer. In a high availability system where two separate data centers share a service, what proportion of what service is distributed to the off-site center is an important system operation maintenance function. The current load balancer only provides a function of switching what traffic is to be switched to the offsite center, or distributing all traffic of one virtual service to the offsite center in a certain proportion. The flow distribution method provided by the application can simultaneously rapidly and nondestructively switch the target service carrying the designated service identifier to the remote center in the designated proportion.
The service flow distribution method provided by the application can be realized in a service flow distribution system. The service traffic distribution system is first described below.
Referring to fig. 1, fig. 1 is a schematic diagram of a service flow distribution system according to an embodiment of the present invention. The flow distribution system comprises a core module, a load equalizer, a database and an input/output module, wherein the load equalizer, 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 distributing 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/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: service identification area and distribution proportion area. In the editing mode, a user can change a server group corresponding to the service flow associated with the service identifier through the clickable service identifier area; the distribution ratio area may set a distribution ratio.
As shown in fig. 3, the method for distributing service traffic provided by the present application can 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, obtaining a target service identifier and a target distribution proportion, wherein the target distribution proportion is the proportion of the target service 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 in a header or a body of a message, such as a source IP, a service type, a location of an area, an external merchant, etc., which can distinguish between attributes or character segments of different services.
As shown in fig. 1, the service traffic distribution system may receive a target service identifier and a target distribution ratio input by a user through an input/output module.
S102, determining the filter identification of the target server group according to the target service identification and the target distribution proportion.
The filter identifier corresponds to a server group and 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 identifier which need to be processed by the target server group by virtue of the filtering identifier. The filtering identifier may specifically be a loading rule, where the corresponding target server group is different when the loading rule is different.
In the service distribution system shown in fig. 1, the core module may determine server group information corresponding to a specific value of the target distribution ratio obtained from the input/output module. And 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 ratio and weight mapping relation is the corresponding relation between the target distribution ratio and the target weight. The distribution ratio corresponds to a weight mapping relationship with a weight ratio relationship between server groups in the data center. The distribution ratio and weight mapping relation may specifically be a database table storing the distribution ratio and weight mapping relation.
As shown in fig. 1, the service traffic distribution system may store a database table of the distribution ratio and weight mapping relation in advance through a database.
S104, sending the filtering identification and the target weight to the load balancer, so that the load balancer can determine the flow distribution proportion of the plurality of member devices in the target server group according to a preset flow distribution rule, and distributing the service flow to the plurality of member devices in the server group according to the preset flow 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, where the load balancer completes the service traffic distribution process.
In some embodiments, step S103 further comprises, prior to:
Acquiring a proportional weight mapping table; the proportion weight mapping table stores the distribution proportion and weight mapping relation.
The proportional weight mapping table is a database table storing a distribution proportion and weight mapping relation.
As shown in fig. 1, the service traffic distribution system may obtain the database table from a database through a core module.
According to the service flow distribution method in the embodiment of the application, a core module acquires a target service identifier and a target distribution proportion, and determines a filter 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 can determine the flow distribution proportion of a plurality of member devices in a target server group according to a preset flow distribution rule, and distribute service flow to the plurality of member devices in the server group according to the preset flow distribution proportion. The method can be used for rapidly distributing the service of the designated service identifier to the different-place center in a designated proportion, and compared with the existing distribution method, the distribution method is more accurate and has higher efficiency.
Based on the above-described embodiment of the present application, another embodiment of the present application is also presented, and the other embodiment has many similarities with the above-described embodiment, and only differences are described herein for the sake of brevity, and reference is made to the corresponding description of the above-described embodiment. In this embodiment, the class of the target server is specifically given in comparison with the above embodiment, and 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 step S102 may further include the following steps:
S1021, when the target distribution ratio is 0, determining the target server group as 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 the target server group as a remote center server group, and filtering the identification as the identification of the remote center server group;
and when the target distribution proportion is greater than 0 and smaller than 1, determining the target server group as a proportion regulation server group, and filtering the identification as the identification of the proportion regulation server group.
The target server group in step S1021 may be a local center server group, a remote center server group, and a proportional control server group. Compared with the traditional method, the method is different in that the proportional control server group is arranged in the method. The proportion regulation server group is used for processing the situation that the target distribution proportion is larger than 0 and smaller than 1.
According to the service flow distribution method provided by the embodiment, a more concise processing flow is provided for the special situation in distribution, wherein the situation that the distribution ratio is 0 or 1, and the service flow distribution efficiency is further improved.
In order to enable a user to accurately acquire the current service distribution state, 4 modes of opening an interface of an input/output module, manually refreshing, modifying and refreshing and regularly refreshing are used for sending a query request to a core module, and the core module returns the information of the current service distribution state. The service distribution state information comprises service center information (local center or remote center) corresponding to the target service and target distribution proportion information.
Based on the above-mentioned requirements, the traffic distribution method of the present application also provides another embodiment, and the embodiment has many similarities with the above-mentioned embodiment, and for brevity, only the differences are described herein, and the similarities are please refer to the corresponding description of the above-mentioned embodiment. The difference between this embodiment and the method shown in fig. 3 is that a process of querying the service traffic distribution result is added, which specifically includes steps S105-S107.
S105, sending request information to the load balancer, wherein the request information carries a target service identifier, so that the load balancer can 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 the traffic distribution system, the core module sends request information to the 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 filter identifier is determined according to the target identifier information and the target distribution ratio in the foregoing steps, the filter identifier associated therewith may be determined by the target identifier information, and the target server group may be determined by the filter identifier. And then, returning the information of the target server group corresponding to the target service associated with the target service identifier to the core module.
S106, receiving the information of the target server group sent by the load balancer.
In this step, the core module acquires 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 group corresponding to all the target services may be obtained by repeating the above steps S105 to S107, and then the target distribution ratio may be determined according to the data.
In some embodiments, the step S107 may further include:
S108, displaying the service flow distribution result on the terminal interface.
The service traffic 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 proportion area for displaying a distribution proportion 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: service identification area and distribution proportion area. The service identification area consists of a plurality of tag elements which are orderly arranged, one tag element represents the service carrying the information shown by the tag in the message, and the service identification area is identified by light color and dark color. The color of an element is one of the two colors, and the dark color indicates that a certain proportion of the business shown by the label is distributed to the different place center; the light color indicates that this type of traffic is all in the local center. The service distribution proportion area only has one distribution percentage parameter which represents the shown service of the dark color element in the service characteristic identification area, and the flow distributed to the different-place center accounts for the percentage of the total flow of the dark color element.
And the user can edit parameters of the service identification area and the distribution proportion area in the input/output module, click elements in the edit mode change the colors of all the tag elements, the distribution proportion is modified through a single-selection drop-down frame, and the input/output module sends two parameters of the tag set X and the distribution proportion RV of the dark elements to the 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 flow distribution device provided by the present application includes:
A first obtaining module 401, configured to obtain a target service identifier and a target distribution proportion, where the target distribution proportion is a proportion of a target service sent to a target server group;
a first judging module 402, configured to determine a filtering identifier of the target server group according to the target service identifier and the target distribution ratio;
A second judging module 403, configured to determine 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 the flow distribution proportion of the plurality of member devices in the target server group according to a preset flow distribution rule, and distributes the service flow to the plurality of member devices in the server group according to the preset flow distribution proportion.
Each module in the apparatus shown in fig. 4 has a function of implementing each step in fig. 1, and can achieve a corresponding technical effect, which is not described herein for brevity.
In some embodiments, the target server group comprises a local central server group, a proportional regulation server group, and a offsite central server group.
In some embodiments, the apparatus further comprises a third determination module.
The third judging module is used for determining the target server group as a local center server group when the target distribution proportion is 0, and filtering the identifiers as the identifiers of the local center server group; when the target distribution proportion is 1, determining the target server group as a remote center server group, and filtering the identification as the identification of the remote center server group; and when the target distribution proportion is greater than 0 and smaller than 1, determining the target server group as a proportion regulation server group, and filtering the identification as the identification 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 the proportional weight mapping table; the proportion weight mapping table stores the distribution proportion and 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 determining a filtering identification by the load balancer according to the target service identification information, determining target server group information according to the filtering identification and returning.
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 judging module.
And the third sending module is used for sending a plurality of pieces of request information to the load balancer, wherein the plurality of pieces of request information carry all pieces of target service identification information and are used for returning the target server group information corresponding to all pieces of target service identification information by the load balancer.
And the fourth acquisition module is used for acquiring all the target server group information returned by the load balancer.
And the fourth judging 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 shows a schematic diagram of 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 storing computer program instructions.
In particular, the processor 501 may include a central processing unit (Central Processing Unit, CPU), or Application SPECIFIC INTEGRATED Circuit (ASIC), or may be configured as one or more integrated circuits that implement 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 comprise a hard disk drive (HARD DISK DRIVE, HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) drive, or a combination of two or more of the foregoing. In one example, memory 502 may include removable or non-removable (or fixed) media, or memory 502 may be a non-volatile solid state memory. Memory 502 may be internal or external to the integrated gateway disaster recovery device.
In one example, memory 502 may be 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.
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 the operations described with reference to methods in accordance with aspects 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 effects achieved by executing the steps in the embodiment shown in fig. 1, which are not described herein 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 to each other by a bus 510 and perform communication with each other.
The communication interface 503 is mainly used to implement communication between each module, apparatus, unit and/or device in the embodiments of the present invention.
Bus 510 includes hardware, software, or both that couple the components of the online data flow billing device to each other. By way of example, and not limitation, the buses may include an accelerated graphics Port (ACCELERATED GRAPHICS Port, AGP) or other graphics Bus, an enhanced industry Standard architecture (Extended Industry Standard Architecture, EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry Standard architecture (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 embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
In addition, in combination with the service traffic distribution method in the above embodiment, the embodiment of the present invention may be implemented by providing a computer storage medium. The computer storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the traffic distribution methods of the above embodiments.
It should be understood that the invention is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. The method processes of the present invention are not limited to the specific steps described and shown, but various changes, modifications and additions, or the order between steps may be made by those skilled in the art after appreciating the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic Circuit, application SPECIFIC INTEGRATED Circuit (ASIC), appropriate 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 over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, 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 the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. 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, or may be performed in a different order from the order in the embodiments, or several steps 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, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, 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 which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (8)

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 a target service sent 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;
the filtering identification and the target weight are sent to a load balancer, so that the load balancer can determine the flow distribution proportion of a plurality of member devices in the target server group according to a preset flow distribution rule, and distribute service flows for the plurality of member devices in the server group according to the preset flow distribution proportion;
The target server group comprises a local central server group, a proportional control server group and a remote central server group; after the filter identifier of the target server group is determined according to the target service identifier and the target distribution proportion, the method further comprises:
when the target distribution proportion is 0, determining that the target server group is a local center server group, wherein 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, wherein the filtering identification is the identification of the remote center server group;
And when the target distribution proportion is greater than 0 and smaller than 1, determining that the target server group is a proportion regulation server group, and the filtering identification is an identification of the proportion regulation server group.
2. The traffic distribution method according to claim 1, wherein before the determining the target weight according to the target distribution ratio and the preset distribution ratio-weight mapping relationship, the method further comprises:
acquiring a proportional weight mapping table; the proportion weight mapping table stores the distribution proportion and weight mapping relation.
3. The traffic distribution method according to claim 1, characterized in that the method further comprises:
Transmitting request information to a load balancer, wherein the request information carries a target service identifier, and is used for determining a filtering identifier by the load balancer according to the target service identifier and determining 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.
4. The traffic distribution method according to claim 1, characterized in that the method further comprises:
the method comprises the steps that a plurality of pieces of request information are sent to a load balancer, wherein the plurality of pieces of request information respectively carry target service identifiers and are used for determining a filtering identifier according to the target service identifiers by the load balancer and determining 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 groups sent by the load balancer.
5. The traffic distribution method according to claim 3 or 4, characterized in that the method further comprises:
and displaying the service flow distribution result on the terminal interface.
6. A traffic distribution device, the device comprising:
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 the target service sent to the target server group;
The first judging 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 judging module is used for 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 first sending module is used for sending the filtering identification and the target weight to a load balancer, determining the flow distribution proportion of a plurality of member devices in the target server group according to a preset flow distribution rule by the load balancer, and distributing service flows to the plurality of member devices in the server group according to the preset flow distribution proportion;
The first judging module is also used for the target server group to comprise a local center server group, a proportion regulation server group and a remote center server group; after the filtering identifier of the target server group is determined according to the target service identifier and the target distribution proportion, the method further comprises the following steps:
when the target distribution proportion is 0, determining that the target server group is a local center server group, wherein 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, wherein the filtering identification is the identification of the remote center server group;
And when the target distribution proportion is greater than 0 and smaller than 1, determining that the target server group is a proportion regulation server group, and the filtering identification is an identification of the proportion regulation server group.
7. A 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 traffic distribution method according to any of claims 1-5.
8. A computer storage medium having stored thereon computer program instructions which, when executed by a processor, implement a traffic distribution method according to any of claims 1-5.
CN202011265199.2A 2020-11-12 2020-11-12 Service flow distribution method, device, equipment and computer storage medium Active CN114500542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011265199.2A CN114500542B (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 CN114500542B (en) 2020-11-12 2020-11-12 Service flow distribution method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN114500542A CN114500542A (en) 2022-05-13
CN114500542B true CN114500542B (en) 2024-08-27

Family

ID=81490867

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN114500542B (en)

Families Citing this family (1)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN111431818A (en) * 2020-02-28 2020-07-17 口碑(上海)信息技术有限公司 Cross-domain request traffic distribution method and device, storage medium and computer equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3369445B2 (en) * 1997-09-22 2003-01-20 富士通株式会社 Network service server load adjusting device, method and recording medium
WO2015096025A1 (en) * 2013-12-24 2015-07-02 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for load balancing in a network
CN105227488B (en) * 2015-08-25 2018-05-08 上海交通大学 A kind of network flow group scheduling method for distributed computer platforms
CN107046505B (en) * 2016-02-05 2020-01-03 华为技术有限公司 Service control method and service control device
US20180314971A1 (en) * 2017-04-26 2018-11-01 Midea Group Co., Ltd. Training Machine Learning Models On A Large-Scale Distributed System Using A Job Server
US10382582B1 (en) * 2017-11-21 2019-08-13 Juniper Networks, Inc. Hierarchical network traffic scheduling using dynamic node weighting
CN109587068B (en) * 2018-12-03 2022-08-12 深圳前海微众银行股份有限公司 Traffic switching method, apparatus, device, and computer-readable storage medium
CN111324412A (en) * 2018-12-13 2020-06-23 阿里巴巴集团控股有限公司 Service deployment method, device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN111431818A (en) * 2020-02-28 2020-07-17 口碑(上海)信息技术有限公司 Cross-domain request traffic distribution method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN114500542A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN104751340B (en) Customer service component flow method and system
CN105188049A (en) Virtual SIM (Subscriber Identity module) card service authorization method, terminal, server and system
CN105190662A (en) Mobile payment processing system and method therefor
CN109857577B (en) Access control method, device, medium, and electronic apparatus
CN114500542B (en) Service flow distribution method, device, equipment and computer storage medium
CN116887236A (en) Near field communication interaction method, user terminal, card swiping terminal, medium and product
CN112788551B (en) Message processing method and device, terminal equipment and storage medium
CN105228107A (en) A kind of vehicle abnormality processing method and relevant device
CN115167351A (en) Controller function updating method and system, vehicle and server
CN108809730B (en) Method and device for controlling flow switching of machine room
CN110753323B (en) Card resource allocation method and server
CN112465369A (en) Logistics distribution hotspot pushing method and logistics distribution system
CN113163331A (en) Service response method, device, equipment and storage medium
CN110769449B (en) Method and device for analyzing network connection state of terminal of Internet of things
CN113554385B (en) Distribution robot control method, distribution robot control device, electronic equipment and computer readable medium
CN114049065A (en) Data processing method, device and system
CN114675970A (en) Information determination method, device, equipment, storage medium and computer program product
CN114040399A (en) Equipment binding method and device, storage medium and electronic device
CN112995900A (en) SIM card distribution method, device, server and computer readable storage medium
CN114116543B (en) Hardware plug method, device and equipment based on middle platform and computer storage medium
CN112437429B (en) Processing method and device for responding to equipment number changing instruction
CN110968806B (en) Maintenance information searching method and device and network equipment
CN119893682A (en) Baseband board channel resource allocation method, testing equipment, upper computer and system
CN118631357A (en) Bluetooth testing method, device, electronic device and readable storage medium

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
GR01 Patent grant
GR01 Patent grant