CN109151016A - Flow forwarding method and device, calculate equipment and storage medium at service system - Google Patents

Flow forwarding method and device, calculate equipment and storage medium at service system Download PDF

Info

Publication number
CN109151016A
CN109151016A CN201810928478.9A CN201810928478A CN109151016A CN 109151016 A CN109151016 A CN 109151016A CN 201810928478 A CN201810928478 A CN 201810928478A CN 109151016 A CN109151016 A CN 109151016A
Authority
CN
China
Prior art keywords
experiment
experimental applications
experiment embodiment
cluster
belonged
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.)
Granted
Application number
CN201810928478.9A
Other languages
Chinese (zh)
Other versions
CN109151016B (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.)
Alibaba China Co Ltd
Original Assignee
Guangdong Shenma Search 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 Guangdong Shenma Search Technology Co Ltd filed Critical Guangdong Shenma Search Technology Co Ltd
Priority to CN201810928478.9A priority Critical patent/CN109151016B/en
Publication of CN109151016A publication Critical patent/CN109151016A/en
Application granted granted Critical
Publication of CN109151016B publication Critical patent/CN109151016B/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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

The invention discloses a kind of flow forwarding method for experiment embodiment and device, service system, calculate equipment and storage medium.This method comprises: obtaining the attaching information of online experiment example from name Service, attaching information includes the cluster that the experimental applications that experiment embodiment is belonged to and experimental applications are belonged to;In response to specifying the traffic requests of experimental applications, in the case where there is the available experiment embodiment for belonging to specified experimental applications, the choice experiment example from the available experiment embodiment for belonging to specified experimental applications, and requested to selected experiment embodiment converting flow;There is no the available experiment embodiment for belonging to specified experimental applications, the choice experiment example in the experiment embodiment for belonging to the cluster that specified experimental applications are belonged to, and requested to selected experiment embodiment converting flow.It is requested as a result, according to predetermined experimental rules management misconduct example and converting flow, utmostly to guarantee service stability.

Description

Flow forwarding method and device, calculate equipment and storage medium at service system
Technical field
The present invention relates to Internet technical field, in particular to a kind of flow forwarding method and dress for experiment embodiment It sets, service system, calculate equipment and storage medium.
Background technique
In the epoch of nowadays internet rapid development, there is the information of magnanimity to generate daily, people obtain from internet The mode of information depends on search and recommends both approach.Service effectiveness is one for searching for recommended products success or not Can important indicator rapidly find out content push that user is most interested in user from massive information.Service effectiveness mentions The iteration be unableing to do without again and again is risen, each iteration requires to introduce a small amount of actual flow progress compliance test result, compliance test result By can full dose it is online.
But high-frequency measure of merit necessarily brings some problems to system O&M and service stability: on the one hand, being Guarantee the consistency of flow, it is newly-increased, delete experiment version and require upstream called side and adjust assignment of traffic mode.So One, each compliance test result requires upstream cooperation, improves O&M cost, reduces working efficiency.
On the other hand, experiment version itself is to be verified, and effect and stability probability of problems are higher, once Experiment version goes wrong and cannot normally provide service, then the flow for being forwarded to the experiment version will be dropped, and extreme influence is whole The service stability of a system.
Therefore, there is still a need for a kind of improved flow forwards scheme.
Summary of the invention
The present invention provides a kind of flow forwarding method and device for experiment embodiment, according to predetermined experimental rules to reality The request of example converting flow is tested, utmostly to guarantee service stability.
According to an aspect of the invention, there is provided a kind of flow forwarding method for experiment embodiment, comprising: from name The attaching information of service acquisition online experiment example, attaching information include that the experimental applications that experiment embodiment is belonged to and experiment are answered With the cluster belonged to;In response to specifying the traffic requests of experimental applications, the available of specified experimental applications is belonged to existing In the case where experiment embodiment, the choice experiment example from the available experiment embodiment for belonging to specified experimental applications, and to selected The experiment embodiment converting flow request selected;There is no the available experiment embodiment for belonging to specified experimental applications, The choice experiment example in the experiment embodiment for belonging to the cluster that specified experimental applications are belonged to, and it is real to selected experiment Example converting flow request.
It, will be to experimental applications as a result, there is no the available experiment embodiment for belonging to specified experimental applications Forwarding request can be converted into cluster forwarding request, clothes ensure that by compatibility of the high-level resource to low-level resource The stability of business.
Optionally, this method can also include: the traffic requests in response to cluster-specific, belong to specified cluster Choice experiment example in experiment embodiment, and requested to selected experiment embodiment converting flow.
Traffic requests are combed into multiple groups as a result, are accessed respectively by cluster or experimental applications, reduce O&M operation and The communication cost of upstream and downstream.Three-level resource management scheme in request repeating process can be effectively ensured flow and not be lost, and test Offline or service fault cause experimental applications rank can not decision when going out suitable experiment embodiment, belong to automatically from experimental applications Cluster level decision, the automatic distribution of flow when can accomplish to test online or offline.
Optionally, this method can also include: to construct tree, in tree, experiment embodiment based on attaching information For the child node of its experimental applications belonged to, experimental applications for its cluster belonged to child node, wherein be based on tree-shaped knot Structure choice experiment example.
Downstream service resource is collected by service discovery mechanisms as a result, tree-shaped tissue is carried out to it and is managed.
Optionally, this method can also include: online experiment example while registering to name Service, to name Service Report the attaching information of itself.
It is alternatively possible to periodically obtain the attaching information of online experiment example from name Service.
Optionally, an experiment embodiment only belongs to an experimental applications, and an experimental applications only belong to a collection Group;And a cluster can have one or more experimental applications under its command, and an experimental applications can have one or more experiments under its command Example.
Optionally, traffic requests are the traffic requests for experiment that module is issued from upstream flowrate.
According to another aspect of the present invention, a kind of flow forwarding device for experiment embodiment is additionally provided, comprising: letter Acquisition device is ceased, the attaching information of the online experiment example for obtaining from name Service, attaching information includes experiment embodiment institute The cluster that the experimental applications and experimental applications of ownership are belonged to;First retransmission unit, in response to specifying experimental applications Traffic requests, in the case where there is the available experiment embodiment for belonging to specified experimental applications, from belonging to specified experiment Choice experiment example in the available experiment embodiment of application, and requested to selected experiment embodiment converting flow;Second forwarding dress It sets, for belonging to specified experiment there is no the available experiment embodiment for belonging to specified experimental applications It is requested using choice experiment example in the experiment embodiment of the cluster belonged to, and to selected experiment embodiment converting flow.
Optionally, which can also include: third retransmission unit, for the flow in response to cluster-specific Request, the choice experiment example in the experiment embodiment for belonging to specified cluster, and to selected experiment embodiment converting flow Request.
Optionally, which can also include: tree construction device, for being constructed based on attaching information Tree, in tree, experiment embodiment is the child node of its experimental applications belonged to, and experimental applications are belonged to for it The child node of cluster, wherein be based on tree choice experiment example.
Optionally, attaching information can be online experiment example and report while registering to name Service to name Service 's.
According to another aspect of the present invention, a kind of empirical flow service system is additionally provided, comprising: experiment embodiment, to name Word service registration, and report to name Service the attaching information of itself, attaching information include that the experiment that is belonged to of experiment embodiment is answered With and the cluster that is belonged to of experimental applications;And empirical flow forwarding module, online experiment example is obtained from name Service Attaching information receives the traffic requests for experiment from upstream, and requests to experiment embodiment converting flow, wherein in response to referring to The traffic requests for determining experimental applications, in the case where there is the available experiment embodiment for belonging to specified experimental applications, experiment stream Amount forwarding module choice experiment example from the available experiment embodiment for belonging to specified experimental applications, and to selected experiment The request of example converting flow;There is no the available experiment embodiment for belonging to specified experimental applications, empirical flow Forwarding module choice experiment example in the experiment embodiment for belonging to the cluster that specified experimental applications are belonged to, and to selected Experiment embodiment converting flow request.
Optionally, in response to the traffic requests of cluster-specific, empirical flow forwarding module is belonging to specified cluster Choice experiment example in experiment embodiment, and requested to selected experiment embodiment converting flow.
According to another aspect of the present invention, a kind of calculating equipment is additionally provided, comprising: processor;And memory, thereon It is stored with executable code, when executable code is executed by processor, processor is made to execute method as described above.
According to another aspect of the present invention, a kind of non-transitory machinable medium is additionally provided, is stored thereon with Executable code makes processor execute method as described above when executable code is executed by the processor of electronic equipment.
It is unified to receive upstream flowrate request, root as a result, by introducing empirical flow forwarding module and building tree According to the downward management misconduct example of experimental rules and converting flow request, and can utmostly guarantee to service in experiment embodiment failure Stability.
Detailed description of the invention
Disclosure illustrative embodiments are described in more detail in conjunction with the accompanying drawings, the disclosure above-mentioned and its Its purpose, feature and advantage will be apparent, wherein in disclosure illustrative embodiments, identical reference label Typically represent same parts.
Fig. 1 shows the schematic diagram of empirical flow service system according to an embodiment of the invention.
Fig. 2 shows the schematic diagrames of tree according to an embodiment of the invention.
Fig. 3 shows the schematic flow chart of flow forwarding method in accordance with another embodiment of the present invention.
Fig. 4 shows the schematic flow chart of flow forwarding method in accordance with another embodiment of the present invention.
Fig. 5 shows the structural block diagram of flow forwarding device according to an embodiment of the invention.
Fig. 6 shows the schematic block diagram of flow forwarding device in accordance with another embodiment of the present invention.
Fig. 7 shows the structural schematic diagram according to an embodiment of the invention for calculating equipment.
Specific embodiment
The preferred embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Preferred embodiment, however, it is to be appreciated that may be realized in various forms the disclosure without the embodiment party that should be illustrated here Formula is limited.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and can be by the disclosure Range is completely communicated to those skilled in the art.
As previously mentioned, being brought to solve high-frequency measure of merit in the prior art to system O&M and service stability Influence, the invention proposes a kind of flow forwarding method and device, by introducing empirical flow forwarding module, according to experiment The upstream requests received are forwarded to corresponding experiment embodiment by rule, and utmostly guarantee to service in experiment embodiment failure Stability.
In one embodiment, flow forwarding method of the invention is realized based on a kind of empirical flow service system.Fig. 1 shows The schematic block diagram of empirical flow service system according to an embodiment of the invention is gone out.
As shown in Figure 1, empirical flow service system 100 (following abbreviation service system) of the invention can be distributed system System, which may include name Service 110, experiment embodiment 120 and empirical flow forwarding module 130.Wherein, attached drawing In line indicate between modules that there are information exchange, above-mentioned line can be wired connection, be wirelessly connected, or can Carry out any type of connection of information transmission.
Experiment embodiment 120 can be registered to name Service 110, and the attaching information of itself is reported to name Service 110
Attaching information may include the cluster that the experimental applications that experiment embodiment is belonged to and experimental applications are belonged to.Experiment Example may include the attaching information when registering to name Service in the metadata that experiment embodiment reports.
In a distributed system, some service has been usually deployed many experiment embodiments to promote integrity service ability.This In, it will thus provide the experiment embodiment of same services is referred to as cluster (cluster), and each experiment embodiment is known as a node (Node).Generally, an experimental applications may use one or more clusters.
In a preferred embodiment, an experiment embodiment only belongs to an experimental applications, and an experimental applications are only Belong to a cluster.Also, a cluster can have one or more experimental applications under its command, and an experimental applications can have one under its command A or multiple experiment embodiments.The attaching relation for simplifying three as a result, enables high-level resource simultaneous to low-level resource Hold.
Empirical flow forwarding module 130 obtains the attaching information of online experiment example from name Service, receives and uses from upstream The traffic requests are forwarded in the traffic requests of experiment, and to experiment embodiment.
Empirical flow forwarding module 130 periodically or periodically can obtain returning for online experiment example from name Service Belong to information.
Online experiment example is to be included in the experiment embodiment of empirical flow forwarding system, and including but is not limited to is that an experiment is answered With new online, or restore from failure or be again online.Online experiment example while being registered to name Service, Include the attaching information of its own into the metadata that name Service reports.
Traffic requests are the traffic requests for experiment that module is issued from upstream flowrate.Upstream flowrate issues module can The traffic requests for being used to test are issued to empirical flow forwarding module 130, other traffic requests then can be directly issued to Corresponding Service Instance can also issue otherwise.Specifically issue that mode is unrelated to the invention, and the present invention does not make this Limitation.
The traffic requests can be the traffic requests to specified experimental applications.
In one embodiment, in response to the traffic requests of specified experimental applications, empirical flow forwarding module 130 first may be used Based on the attaching information obtained from name Service, to judge whether there is the available experiment reality for belonging to specified experimental applications Example, and then by predetermined selection mode, selection can carry out flow forwarding with experiment embodiment.Wherein, the present invention is to used Predetermined selection mode is with no restriction.
In response to specifying the traffic requests of experimental applications, there is the available experiment embodiment for belonging to specified experimental applications In the case where, empirical flow forwarding module 130 can select real from the available experiment embodiment for belonging to specified experimental applications Example is tested, and forwards the traffic requests to selected experiment embodiment.Wherein, such as regular flow distribution side can be used Formula, the choice experiment example in the multiple available experiment embodiments for belonging to the experimental applications.
In the case where selected experiment embodiment executes traffic requests failure, it can choose and belong to the experimental applications Other available experiment embodiments, and requested to selected experiment embodiment converting flow.
In some cases, it can be possible to which there is no the available experiment embodiments for belonging to specified experimental applications.For example, from name The attaching information of word service acquisition may be out of date, or in the case where periodically (regular) acquisition attaching information, obtains twice Between taking, situations such as having occurred using offline or experiment embodiment failure.
There is no the available experiment embodiment for belonging to specified experimental applications, empirical flow forwarding module 130 can in the experiment embodiment for belonging to the cluster that specified experimental applications are belonged to choice experiment example, and to selected Experiment embodiment forward the traffic requests.
As a result, when all experiment embodiments under an experimental applications are all no longer available, then its traffic steering is specified to it The experiment embodiment of other experimental applications under the cluster is belonged to, realizes that smoothly flow forwards, and avoids traffic loss, it is high-rise Grade resource also ensures the stability of service to the compatibility of low-level resource.
Foregoing traffic requests are also possible to the traffic requests to cluster-specific.
In response to the traffic requests of cluster-specific, empirical flow forwarding module 130 can belong to specified cluster Choice experiment example in experiment embodiment, and the traffic requests are forwarded to selected experiment embodiment.
Here, the regular flow method of salary distribution can also be used, is selected in the multiple available experiment embodiments for belonging to the cluster Select experiment embodiment.
In the case where selected experiment embodiment executes traffic requests failure, it can choose and belong to specified cluster Other available experiment embodiments, and requested to selected experiment embodiment converting flow.
Smoothly flow forwarding may be implemented in above-mentioned flow forwarding mechanism through the invention as a result, avoids traffic loss.
In addition, empirical flow forwarding module 130 is also based on attaching information building tree for the ease of management, Empirical flow forwarding module 130 can be based on the tree choice experiment example.
In a preferred embodiment, cluster, three experimental applications, experiment embodiment layers can be passed through to downstream service resource Secondary building tree, in the tree, experiment embodiment is the child node of its experimental applications belonged to, and experimental applications are it The child node of the cluster belonged to,
Fig. 2 shows the schematic diagrames of tree according to an embodiment of the invention.
As shown in Fig. 2, empirical flow forwarding module 130 (Dispatcher) can be divided into three to the management of experiment embodiment Grade: cluster (Group), experimental applications (App), experiment embodiment (Instance).
The i.e. corresponding ip:port active service of Instance, Group, App be to Instance on different grain size It divides.Wherein, an Instance can only belong to an App, and an App can only belong to a Group, and so on, one A Instance can only belong to a Group.Opposite, a Group can have multiple App under its command.
Experiment embodiment includes above-mentioned attaching information in the metamessage that reports when registering to name Service.
When empirical flow forwarding module 130 starts, three-level information, and structure in memory can be obtained from name Service immediately Build tree topology shown in Fig. 2.In its life cycle, empirical flow forwarding module 130 can also be periodically or regular Newest attaching information is obtained from name Service, updates accordingly/rebuild the tree.
Upstream called side can specify cluster (Group) or experimental applications (App) are initiated to call.
If specified Group access, empirical flow forwarding module 130 can be based on above-mentioned tree, and according to load Balance policy selects an experiment embodiment from all available experiment embodiments that the Group has under its command, and real to selected experiment Example converting flow request.
In the case where selected experiment embodiment executes traffic requests failure, it can choose and belong to the other of the cluster Experiment embodiment can be used, and is requested to selected experiment embodiment converting flow.
In general, the experiment embodiment quantity that Group has under its command is more, unless entire cluster is unavailable, otherwise can will flow Amount request is forwarded to some normally available experiment embodiment;
Specified if experimental applications (App) access, empirical flow forwarding module 130 can be excellent according to load balancing The forwarding for first selecting an experiment embodiment to carry out traffic requests from the experiment embodiment that the experimental applications (App) have under its command.
Under the scene of experiment, an App may only correspond to an experiment embodiment, it is also possible to cause because of testing offline The APP does not correspond to specific experiment example.
There is no specific experiment example, or the experiment in the case where having recorded/having had found experimental applications under experimental applications node Example has broken down and has caused in the case where can not using experiment embodiment, and will lead to this not can be used the request of the App Experiment embodiment forwarding.
In this case, Group node can be passed up to by APP node, by this according to the tree-shaped information of tree Traffic requests to specified Group are converted to the traffic requests of specified App, selection belongs to specified the other of Group can Use experiment embodiment.
In this way, there is no the available experiment embodiment for belonging to specified experimental applications, it will be to experimental applications Forwarding request be converted into the request of the forwarding to cluster, it is preferential to guarantee stream by high-level resource to the compatibility of low-level resource Amount request will not lose, and then guarantee the stability of system service.
As previously mentioned, it is periodically, in the period that empirical flow forwarding module 130, which obtains attaching information from name Service, , which there is exception, in interior experiment embodiment to be perceived in time.
Therefore, forwarding request return state can also be added to the Intervention Mechanism of experiment embodiment state in the present invention, when to certain It, can be by the example markers for exception and to tree after experiment embodiment forwarding request fails and confirms the experiment embodiment exception It is rebuild.
, can be when rebuilding tree next time, in tree after reconstruction after if experiment embodiment restores normal Restore the experiment embodiment.
The present invention collects downstream service resource by service discovery mechanisms as a result, and tree tissue is carried out to it and is managed Reason.Traffic requests can be combed into multiple groups by upstream called side, be accessed respectively by Group or App, subsequent experimental flow Stream cooperation is cut in the online upstream that do not need, and reduces O&M operation as a result, and upstream and downstream links up cost.
It requests in repeating process, three-level resource management scheme can be effectively ensured flow and be not dropped, and test offline or service Failure and cause App rank can not decision when going out suitable experiment embodiment, the Group level decision that can be belonged to automatically from App, The forwarding to Group can be converted into the forwarding request of App as a result, to request, by high-level resource to low-level resource The compatible stability that ensure that service tests offline rear flow certainly meanwhile, it is capable to realize that experimentally linear flow rate distributes automatically The dynamic effect cut away.
Flow forwarding scheme for experiment embodiment of the invention can be implemented as a kind of flow for experiment embodiment turn Forwarding method.
Fig. 3 shows the schematic flow chart of flow forwarding method according to an embodiment of the invention.This method can be by It is shown in FIG. 1 that the flow forwarding method is executed by empirical flow forwarding module 130.
As shown in figure 3, in step s310, the attaching information of online experiment example, the ownership are obtained from name Service Information includes the cluster that the experimental applications that experiment embodiment is belonged to and experimental applications are belonged to.
Here, empirical flow forwarding module 130 periodically obtains the ownership of the online experiment example from name Service Information.One experiment embodiment only belongs to an experimental applications, and an experimental applications only belong to a cluster;And one Cluster can have one or more experimental applications under its command, and an experimental applications can have one or more experiment embodiments under its command.
Online experiment example includes its own into the metadata that name Service reports while registering to name Service Attaching information.
Empirical flow forwarding module 130 receives the traffic requests for experiment that module is issued from upstream flowrate, the stream Amount request can be the traffic requests of specified experimental applications.
In step S315, the available experiment embodiment for belonging to specified experimental applications is judged whether there is.
In response to specifying the traffic requests of experimental applications, there is the available experiment embodiment for belonging to specified experimental applications In the case where, in step s 320, the choice experiment example from the available experiment embodiment for belonging to specified experimental applications, and to Selected experiment embodiment forwards the traffic requests.Wherein, traffic requests are that being used in fact for module is issued from upstream flowrate The traffic requests tested.
There is no the available experiment embodiment for belonging to specified experimental applications, in step S330, returning Belong to choice experiment example in the experiment embodiment for the cluster that specified experimental applications are belonged to, and turns to selected experiment embodiment Send out traffic requests described.
Above-mentioned traffic requests are also possible to the traffic requests of specified cluster, at this point, in response to the traffic requests of cluster-specific, In step s 320, the choice experiment example in the experiment embodiment for belonging to specified cluster, and to selected experiment embodiment Forward the traffic requests.
Fig. 4 shows the schematic flow chart of flow forwarding method in accordance with another embodiment of the present invention.This method can As shown in Figure 1 by empirical flow forwarding module 130 execute the flow forwarding method.
As shown in figure 4, obtaining the attaching information of online experiment example, the ownership letter from name Service in step S410 Breath includes the cluster that the experimental applications that experiment embodiment is belonged to and experimental applications are belonged to.
In step S420, tree is constructed based on the attaching information, in the tree, experiment embodiment is its institute The child node of the experimental applications of ownership, experimental applications for its cluster belonged to child node,
It is real based on tree selection in response to specifying the traffic requests of experimental applications or cluster in step S430 Example is tested, and forwards the traffic requests to the experiment embodiment of selection.
So far, it has been combined attached drawing 3-4 and simply describes showing for the flow forwarding method for experiment embodiment of the invention Meaning property process.
In addition, the flow forwarding method for experiment embodiment of the invention can also be by a kind of flow for experiment embodiment Retransmission unit is realized.
Fig. 5 is to show the structural block diagram of flow forwarding device according to an embodiment of the invention.Wherein, flow forwarding dress Setting 500 functional module can be realized by the combination of the hardware of the realization principle of the invention, software or hardware and software.This field Technical staff is it is understood that Fig. 5 described function module can combine or be divided into submodule, to realize The principle of foregoing invention.Therefore, description herein can support to functions described herein module it is any it is possible combination or Person divides or further restriction.
Flow forwarding device 500 shown in fig. 5 can be for realizing flow forwarding method shown in Fig. 3-4, below only The operation that the functional module and each functional module that flow forwarding device 500 can have can execute is described briefly, for The detail section being directed to may refer to the description above in association with Fig. 3-4, and which is not described herein again.
As shown in figure 5, the flow forwarding device 500 for experiment embodiment of the invention may include information acquisition device 510, the first retransmission unit 520 and the second retransmission unit 530.
The attaching information for the online experiment example that information acquisition device 510 can be used for obtaining from name Service, it is described to return Category information includes the experimental applications that experiment embodiment is belonged to and the cluster that experimental applications are belonged to, the attaching information are online What experiment embodiment reported while registering to name Service to name Service.
First retransmission unit 520 can be used for the traffic requests in response to specifying experimental applications, belong to meaning existing In the case where the available experiment embodiment for determining experimental applications, selected from the available experiment embodiment for belonging to specified experimental applications real Example is tested, and forwards the traffic requests to selected experiment embodiment;
Second retransmission unit 530 can be used in the feelings that the available experiment embodiment for belonging to specified experimental applications is not present Under condition, the choice experiment example in the experiment embodiment for belonging to the cluster that specified experimental applications are belonged to, and to selected Experiment embodiment forwards the traffic requests.
In a preferred embodiment, which can also include third retransmission unit 540 (under Fig. 6).
Third retransmission unit can be used for the traffic requests in response to cluster-specific, in the experiment for belonging to specified cluster Choice experiment example in example, and the traffic requests are forwarded to selected experiment embodiment.
It should be understood that the description in text to " first ", " second " and " third ", it is intended to be subject to area to description object Point, rather than have any regulation expressed or implied to its sequence and size.
Fig. 6 shows the schematic block diagram of flow forwarding device in accordance with another embodiment of the present invention.
As shown in fig. 6, flow forwarding device 500 of the invention can also include tree construction device 550.
Tree construction device 550 can be used for constructing tree based on attaching information, real in the tree Example is tested as the child node of its experimental applications belonged to, experimental applications for its cluster belonged to child node, wherein it is above-mentioned First/second/third retransmission unit can be based on the tree choice experiment example, and carry out flow forwarding.
As a result, by above-mentioned flow forwarding device upwards unify receive traffic requests, manage downwards each experiment embodiment and to The request of its converting flow.Own home information is registered to name Service and reported to each experiment embodiment, flow forwarding device periodically from Name Service obtains experiment version information and constructs tree management, and rebuilds after information change to tree, is requesting When arrival the suitable downstream node of information decision is required and set to carry out flow forwarding in conjunction with request.
Fig. 7 shows the structure that an embodiment according to the present invention can be used for realizing the calculating equipment of above-mentioned flow forwarding method Schematic diagram.
Referring to Fig. 7, calculating equipment 700 includes memory 710 and processor 720.
Processor 720 can be the processor of a multicore, also may include multiple processors.In some embodiments, Processor 720 may include a general primary processor and one or more special coprocessors, such as graphics process Device (GPU), digital signal processor (DSP) etc..In some embodiments, the circuit reality of customization can be used in processor 720 It is existing, such as application-specific IC (ASIC, Application Specific Integrated Circuit) or scene Programmable gate array (FPGA, Field Programmable Gate Arrays).
Memory 710 may include various types of storage units, such as Installed System Memory, read-only memory (ROM), and forever Long storage device.Wherein, ROM can store the static data of other modules needs of processor 720 or computer or refer to It enables.Permanent storage can be read-write storage device.Permanent storage can be after computer circuit breaking not The non-volatile memory device of the instruction and data of storage can be lost.In some embodiments, permanent storage device uses Mass storage device (such as magnetically or optically disk, flash memory) is used as permanent storage.In other embodiment, permanently deposit Storage device can be removable storage equipment (such as floppy disk, CD-ROM drive).Installed System Memory can be read-write storage equipment or The read-write storage equipment of volatibility, such as dynamic random access memory.Installed System Memory can store some or all processors The instruction and data needed at runtime.In addition, memory 710 may include the combination of any computer readable storage medium, Including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read only memory), disk and/or CD can also use.In some embodiments, memory 710 may include that removable storage that is readable and/or writing is set It is standby, for example, laser disc (CD), read-only digital versatile disc (such as DVD-ROM, DVD-dual layer-ROM), read-only Blu-ray Disc, Super disc density, flash card (such as SD card, min SD card, Micro-SD card etc.), magnetic floppy disc etc..It is computer-readable to deposit It stores up medium and does not include carrier wave and the momentary electron signal by wirelessly or non-wirelessly transmitting.
It is stored with executable code on memory 710, when executable code is handled by processor 720, can make to handle Device 720 executes the flow dress forwarding method addressed above.
Above by reference to attached drawing be described in detail the flow forwarding method according to the present invention for experiment embodiment and Device, service system.
In addition, being also implemented as a kind of computer program or computer program product, the meter according to the method for the present invention Calculation machine program or computer program product include the calculating for executing the above steps limited in the above method of the invention Machine program code instruction.
Alternatively, the present invention can also be embodied as a kind of (or the computer-readable storage of non-transitory machinable medium Medium or machine readable storage medium), it is stored thereon with executable code (or computer program or computer instruction code), When the executable code (or computer program or computer instruction code) by electronic equipment (or calculate equipment, server Deng) processor execute when, so that the processor is executed each step according to the above method of the present invention.
Those skilled in the art will also understand is that, various illustrative logical blocks, mould in conjunction with described in disclosure herein Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.
The flow chart and block diagram in the drawings show the possibility of the system and method for multiple embodiments according to the present invention realities Existing architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a journey A part of sequence section or code, a part of the module, section or code include one or more for realizing defined The executable instruction of logic function.It should also be noted that in some implementations as replacements, the function of being marked in box can also To be occurred with being different from the sequence marked in attached drawing.For example, two continuous boxes can actually be basically executed in parallel, They can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or stream The combination of each box in journey figure and the box in block diagram and or flow chart, can the functions or operations as defined in executing Dedicated hardware based system realize, or can realize using a combination of dedicated hardware and computer instructions.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport In the principle, practical application or improvement to the technology in market for best explaining each embodiment, or make the art Other those of ordinary skill can understand each embodiment disclosed herein.

Claims (15)

1. a kind of flow forwarding method for experiment embodiment, comprising:
The attaching information of online experiment example is obtained from name Service, the attaching information includes the experiment that experiment embodiment is belonged to Using and the cluster that is belonged to of experimental applications;
In response to specifying the traffic requests of experimental applications, in the feelings that there is the available experiment embodiment for belonging to specified experimental applications Under condition, the choice experiment example from the available experiment embodiment for belonging to specified experimental applications, and to selected experiment embodiment Forward the traffic requests;
There is no the available experiment embodiment for belonging to specified experimental applications, specified experimental applications are being belonged to Choice experiment example in the experiment embodiment of the cluster belonged to, and the traffic requests are forwarded to selected experiment embodiment.
2. flow forwarding method according to claim 1, further includes:
In response to the traffic requests of cluster-specific, the choice experiment example in the experiment embodiment for belonging to specified cluster, and to Selected experiment embodiment forwards the traffic requests.
3. flow forwarding method according to claim 1, further includes:
Tree is constructed based on the attaching information, in the tree, experimental applications that experiment embodiment is belonged to for it Child node, experimental applications for its cluster belonged to child node,
Wherein, it is based on the tree choice experiment example.
4. flow forwarding method according to claim 1, further includes:
Online experiment example reports the attaching information of itself to name Service while registering to name Service.
5. flow forwarding method according to claim 4, wherein
The attaching information of the online experiment example is periodically obtained from name Service.
6. flow forwarding method according to claim 1, wherein
One experiment embodiment only belongs to an experimental applications, and an experimental applications only belong to a cluster;And
One cluster can have one or more experimental applications under its command, and it is real that an experimental applications can have one or more experiments under its command Example.
7. flow forwarding method according to claim 1, wherein
The traffic requests are the traffic requests for experiment that module is issued from upstream flowrate.
8. a kind of flow forwarding device for experiment embodiment, comprising:
Information acquisition device, the attaching information of the online experiment example for obtaining from name Service, the attaching information include The cluster that the experimental applications and experimental applications that experiment embodiment is belonged to are belonged to;
First retransmission unit belongs to specified experimental applications existing for the traffic requests in response to specifying experimental applications Available experiment embodiment in the case where, the choice experiment example from the available experiment embodiment for belonging to specified experimental applications, and The traffic requests are forwarded to selected experiment embodiment;
Second retransmission unit, for returning there is no the available experiment embodiment for belonging to specified experimental applications Belong to choice experiment example in the experiment embodiment for the cluster that specified experimental applications are belonged to, and turns to selected experiment embodiment Send out traffic requests described.
9. flow forwarding device according to claim 8, further includes:
Third retransmission unit, for the traffic requests in response to cluster-specific, in the experiment embodiment for belonging to specified cluster Choice experiment example, and the traffic requests are forwarded to selected experiment embodiment.
10. flow forwarding device according to claim 8, further includes:
Tree construction device, for constructing tree, in the tree, experiment embodiment based on the attaching information For the child node of its experimental applications belonged to, experimental applications for its cluster belonged to child node,
Wherein, it is based on the tree choice experiment example.
11. flow forwarding device according to claim 8, wherein
The attaching information is that online experiment example reports while registering to name Service to name Service.
12. a kind of empirical flow service system, comprising:
Experiment embodiment is registered to name Service, and the attaching information of itself is reported to name Service, and the attaching information includes real Test the experimental applications that example is belonged to and the cluster that experimental applications are belonged to;And
Empirical flow forwarding module obtains the attaching information of online experiment example from the name Service, receives and is used for from upstream The traffic requests of experiment, and the traffic requests are forwarded to experiment embodiment,
Wherein, in response to the traffic requests of specified experimental applications, there is the available experiment reality for belonging to specified experimental applications In the case where example, empirical flow forwarding module choice experiment from the available experiment embodiment for belonging to specified experimental applications Example, and the traffic requests are forwarded to selected experiment embodiment;
There is no the available experiment embodiment for belonging to specified experimental applications, the empirical flow forwarding module exists Belong to choice experiment example in the experiment embodiment for the cluster that specified experimental applications are belonged to, and to selected experiment embodiment Forward the traffic requests.
13. empirical flow service system according to claim 12, wherein
In response to the traffic requests of cluster-specific, the empirical flow forwarding module is in the experiment embodiment for belonging to specified cluster Middle choice experiment example, and the traffic requests are forwarded to selected experiment embodiment.
14. a kind of calculating equipment, comprising:
Processor;And
Memory is stored thereon with executable code, when the executable code is executed by the processor, makes the processing Device executes the method as described in any one of claim 1-7.
15. a kind of non-transitory machinable medium, is stored thereon with executable code, when the executable code is electric When the processor of sub- equipment executes, the processor is made to execute the method as described in any one of claims 1 to 7.
CN201810928478.9A 2018-08-10 2018-08-10 Flow forwarding method and device, service system, computing device and storage medium Active CN109151016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810928478.9A CN109151016B (en) 2018-08-10 2018-08-10 Flow forwarding method and device, service system, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810928478.9A CN109151016B (en) 2018-08-10 2018-08-10 Flow forwarding method and device, service system, computing device and storage medium

Publications (2)

Publication Number Publication Date
CN109151016A true CN109151016A (en) 2019-01-04
CN109151016B CN109151016B (en) 2021-07-30

Family

ID=64789526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810928478.9A Active CN109151016B (en) 2018-08-10 2018-08-10 Flow forwarding method and device, service system, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN109151016B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698326A (en) * 2020-06-12 2020-09-22 北京百度网讯科技有限公司 Method and apparatus for determining cost attribution of cloud service resources

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101932034A (en) * 2009-06-26 2010-12-29 华为技术有限公司 Method and system for enhancing service quality and application network element
CN102571605A (en) * 2012-02-17 2012-07-11 杭州华三通信技术有限公司 Method and device for preventing traffic from interrupting
CN103391254A (en) * 2012-05-09 2013-11-13 百度在线网络技术(北京)有限公司 Method and device for managing distributed CDN flows
CN104767685A (en) * 2015-04-17 2015-07-08 杭州华三通信技术有限公司 Flow forwarding method and device
CN107820694A (en) * 2015-03-24 2018-03-20 脸谱公司 The technology for media share by message transfer service and mixing again
US20180191793A1 (en) * 2016-12-30 2018-07-05 Akamai Technologies, Inc. Multicast overlay network for delivery of real-time video

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101932034A (en) * 2009-06-26 2010-12-29 华为技术有限公司 Method and system for enhancing service quality and application network element
CN102571605A (en) * 2012-02-17 2012-07-11 杭州华三通信技术有限公司 Method and device for preventing traffic from interrupting
CN103391254A (en) * 2012-05-09 2013-11-13 百度在线网络技术(北京)有限公司 Method and device for managing distributed CDN flows
CN107820694A (en) * 2015-03-24 2018-03-20 脸谱公司 The technology for media share by message transfer service and mixing again
CN104767685A (en) * 2015-04-17 2015-07-08 杭州华三通信技术有限公司 Flow forwarding method and device
US20180191793A1 (en) * 2016-12-30 2018-07-05 Akamai Technologies, Inc. Multicast overlay network for delivery of real-time video

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698326A (en) * 2020-06-12 2020-09-22 北京百度网讯科技有限公司 Method and apparatus for determining cost attribution of cloud service resources
CN111698326B (en) * 2020-06-12 2023-01-31 北京百度网讯科技有限公司 Method and device for determining cost attribution of cloud service resources

Also Published As

Publication number Publication date
CN109151016B (en) 2021-07-30

Similar Documents

Publication Publication Date Title
CN103793425B (en) Data processing method and device for distributed system
CN103793295B (en) Simulation engine system and method for use in disaster recovery virtualization
CN105229591B (en) The method and computer system of global polymerization NameSpace are created for storage management
CN102857370B (en) A kind of method of Resources allocation and device
CN105094997B (en) Physical memory sharing method and system between a kind of cloud computing host node
CN108351806A (en) Database trigger of the distribution based on stream
CN106843745A (en) Capacity expansion method and device
CN103533058B (en) HDFS (Hadoop distributed file system)/Hadoop storage cluster-oriented resource monitoring system and HDFS/Hadoop storage cluster-oriented resource monitoring method
CN106446159B (en) A kind of method of storage file, the first virtual machine and name node
CN106844108B (en) A kind of date storage method, server and storage system
CN103607424B (en) Server connection method and server system
KR20140074311A (en) System and method for supporting a dynamic resource broker in a transactional middleware machine environment
CN104035836B (en) Automatic disaster-tolerant recovery method and system in cluster searching platform
CN104615606A (en) Hadoop distributed file system and management method thereof
CN102521014A (en) Deploying method and deploying device for virtual machine
CN103095687A (en) Method and device of metadata processing
CN104869140B (en) The method of the data storage of multi-cluster system and control multi-cluster system
US20140137187A1 (en) Scalable and Highly Available Clustering for Large Scale Real-Time Applications
CN108021661A (en) A kind of conversion method of data format and system
CN107291539B (en) Cluster program scheduler method based on resource significance level
CN109726008A (en) Resource allocation methods and equipment
CN106547646A (en) A kind of data backup and restoration methods, data backup and recovery device
CN107506145A (en) A kind of physical store dispatching method and cloud main frame creation method
CN109144783A (en) A kind of distribution magnanimity unstructured data backup method and system
CN108959048A (en) The method for analyzing performance of modular environment, device and can 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
TA01 Transfer of patent application right

Effective date of registration: 20200818

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping square B radio tower 13 layer self unit 01

Applicant before: Guangdong Shenma Search Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant