CN109558152A - Flow switching method, device, medium and electronic equipment when system gray scale is issued - Google Patents
Flow switching method, device, medium and electronic equipment when system gray scale is issued Download PDFInfo
- Publication number
- CN109558152A CN109558152A CN201811255226.0A CN201811255226A CN109558152A CN 109558152 A CN109558152 A CN 109558152A CN 201811255226 A CN201811255226 A CN 201811255226A CN 109558152 A CN109558152 A CN 109558152A
- Authority
- CN
- China
- Prior art keywords
- flow
- target
- system server
- server
- systems
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Abstract
The present invention relates to intelligent decision field, flow switching method, device, medium and electronic equipment when disclosing a kind of publication of system gray scale.It include the target flow value of system server request switching in the request this method comprises: receiving the request switched over to the target flow of target handover system server;Obtain the residual flow load with the connatural other systems server of the target handover system server;Based on residual flow load corresponding to each system server in other systems server, the target flow value of the target handover system server request switching is distributed;According to the flow value of distribution, switches the target handover system server and request the target flow of switching to the other systems server.Under the method, switches target flow by being allocated automatically to target flow value, and according to the flow value that distribution obtains, so that the flow for the distribution of each server is more reasonable, take full advantage of idle server resource.
Description
Technical field
The present invention relates to intelligent decision field, in particular to flow switching method, device, Jie when a kind of system gray scale is issued
Matter and electronic equipment.
Background technique
With the progress of economic society, scientific and technological development is maked rapid progress, and also layer goes out not the various demands of people
Thoroughly.In order to meet the continually changing demand of people, while for the loophole or defect of repair system, system developer is usually wanted
Update constantly is iterated to its system.System is typically required stronger security and stability and reliability, and once to being
System is had unexpected loophole and occurred in many cases when being iterated update, if system update and while starting a leak is used
Family flow is excessive, often causes damages to large-scale user, if it is system related with finance, also will cause financial wind
Danger.
In the realization of the prior art, in order to avoid causing large-scale user to cause when being iterated update to system
Loss, the method for generalling use gray scale publication.When gray scale publication is publication new system version, run in current system server
New system version, while the flow of most of user is guided to the system server for running old system version, it does so, i.e.,
Keep new system version leaky, be also unlikely to cause to influence on a large scale, reduces the risk of system gray scale publication.Currently,
The mode that system is generallyd use when gray scale is issued is that mechanical and stiff formula carries out flow switching.
Drawback of the prior art is that when switching flow to other servers often using random switching or single solution for diverse problems
Switch specific flow likes, often makes the flow distributed each server unreasonable, each clothes cannot be made full use of
The slack resources of business device.
Summary of the invention
In intelligent decision field, in order to which server traffic distribution each when solving the switching of flow present in the relevant technologies does not conform to
The technical issues of reason, the present invention provides flow switching method, device, medium and electronic equipments when a kind of publication of system gray scale.
According to the one side of the application, flow switching method when providing a kind of publication of system gray scale, which comprises
The request switched over to the target flow of target handover system server is received, includes the system in the request
The target flow value that server request of uniting switches;
Obtain the residual flow load with the connatural other systems server of the target handover system server;
Based on residual flow load corresponding to each system server in other systems server, the target is distributed
The target flow value of switching system server request switching;
According to the flow value of distribution, switch the target flow of the target handover system server request switching to it is described its
His system server.
According to the another aspect of the application, flow shifting device when providing a kind of publication of system gray scale, described device packet
It includes:
Receiving module is configured as receiving the request for switching over the target flow of target handover system server, institute
State in request includes that the system server requests the target flow value switched;
Module is obtained, is configured as obtaining and the connatural other systems server of the target handover system server
Residual flow load;
Distribution module is configured as based on residual flow corresponding to each system server in other systems server
Load distributes the target flow value of the target handover system server request switching;
Target flow switching module is configured as the flow value according to distribution, switches the target handover system server
Request the target flow of switching to the other systems server.
According to the another aspect of the application, a kind of computer-readable program medium is provided, computer program is stored with
Instruction makes computer execute foregoing method when the computer program instructions are computer-executed.
According to the another aspect of the application, a kind of electronic equipment is provided, the electronic equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is by the processing
When device executes, foregoing method is realized.
The technical solution that the embodiment of the present invention provides can include the following benefits:
Flow switching method, which includes the following steps: to receive to switch target, when system gray scale provided by the present invention is issued is
The request that switches over of target flow of system server includes the target stream of system server request switching in the request
Magnitude;Obtain the residual flow load with the connatural other systems server of the target handover system server;Based on it
Residual flow load corresponding to each system server in his system server distributes the target handover system server
Request the target flow value of switching;According to the flow value of distribution, switch the mesh of the target handover system server request switching
Flow is marked to the other systems server.
Under the method, switch target by being allocated automatically to target flow value, and according to the flow value that distribution obtains
Flow takes full advantage of idle server resource so that the flow for the distribution of each server is more reasonable.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
Invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
The application scenarios of flow switching method when Fig. 1 is a kind of system gray scale shown according to an exemplary embodiment publication
Schematic diagram;
The flow chart of flow switching method when Fig. 2 is a kind of system gray scale shown according to an exemplary embodiment publication;
Fig. 3 is the flow chart of the details of the step 240 of the embodiment shown in corresponding embodiment according to fig. 2;
Fig. 4 is the flow chart of the details of the step 240 of another embodiment shown in corresponding embodiment according to fig. 2;
Fig. 5 is the step 220 of an embodiment shown in corresponding embodiment and the intermediate step of step 240 and step according to fig. 2
Rapid 240 details flow chart;
Fig. 6 is the flow chart according to the details of the step 240' of the embodiment shown in Fig. 5 corresponding embodiment;
Fig. 7 be the embodiment shown in corresponding embodiment according to fig. 2 step 250 after step flow chart;
Fig. 8 is that the page layout of forced convection's amount adjusting distribution of an embodiment shown according to an exemplary embodiment shows
It is intended to;
Fig. 9 is that the forced convection of another embodiment shown according to an exemplary embodiment measures the page layout for adjusting distribution
Schematic diagram;
The block diagram of flow shifting device when Figure 10 is a kind of system gray scale shown according to an exemplary embodiment publication;
Flow switching method when Figure 11 is a kind of realization above system gray scale shown according to an exemplary embodiment publication
Electronic equipment example block diagram;
Flow switching method when Figure 12 is a kind of realization above system gray scale shown according to an exemplary embodiment publication
Computer readable storage medium.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure
Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function
Energy entity, not necessarily must be corresponding with physically or logically independent entity.
Flow switching method when the disclosure provides firstly a kind of publication of system gray scale.Implementation terminal of the invention can be
Portable mobile equipment, such as smart phone, tablet computer, laptop etc., are also possible to fixed apparatus, for example, calculating
Machine equipment, on-site terminal, desktop computer, server, work station etc..Implementation terminal of the invention can be by wired or wireless
Mode is communicated with server, wherein may include the combination of hardware, software or firmware.
The application scenarios of flow switching method when Fig. 1 is a kind of system gray scale shown according to an exemplary embodiment publication
Schematic diagram.As shown in Figure 1, including implementation terminal 110 of the invention, target handover system server 120 and other systems clothes
Business device 130,140 and 150.As can be seen that the work of target handover system server 120 is more busy, there is a large amount of user to access
Target handover system server 120 brings biggish flow to it.When to the system on target handover system server 120
When being updated iteration, just in case having updated mistake, shadow can be caused to the user of a large amount of access target switching system servers 120
It rings, in some instances it may even be possible to generate the consequence that can not be retrieved.It is usually first right in order to reduce the influence when system is updated to user
System carries out gray scale publication, i.e., seldom some people system is first allowed to use, and finds that new edition system can be with after a period of use
It operates normally, then owner is allowed to access the system.In order to reduce the customer flow of target handover system server 120, pass through
Implementation terminal 110 of the invention the flow of access target switching system server 120 be switched to other do not need update be
System server, to achieve the purpose that allow to carry out gray scale delivery system new version in target handover system server 120.
The flow chart of flow switching method when Fig. 2 is a kind of system gray scale shown according to an exemplary embodiment publication.
As shown in Fig. 2, the method the following steps are included:
Step 210, the request switched over to the target flow of target handover system server is received.
It include the target flow value of system server request switching in the request.
In one embodiment, target flow value refers to that the request of target handover system server is switched to other system service
The size of the flowing of access of device.
In one embodiment, target flow value refers to that the request of target handover system server is switched to other system service
The quantity of the user of the access of the device target handover system server.
In one embodiment, it is equipped with a timer in implementation terminal of the invention, allows when reaching preset to being
When system carries out the time of gray scale publication, automatic trigger implementation terminal of the invention allows to receive to target handover system server
The request that target flow switches over.
In one embodiment, before the publication of system gray scale, there are also the processes that system is tested, after test passes through,
Triggering target handover system server issues the request switched over to target flow.
Step 220, the residual flow with the connatural other systems server of the target handover system server is obtained
Load.
In one embodiment, this step specifically refers to, and first determination is connatural with the target handover system server
Then other systems server obtains the residual flow load for the other systems server determined.
In one embodiment, residual flow load refers to the number of users that other systems server can also access.System
The number of users for counting access system server can be realized by way of the IP address number of statistics access system server.
In one embodiment, residual flow load refers to the uninterrupted that other systems server can also access.
In one embodiment, there is the configuration information table of the system server in each system server, with the target
The connatural other systems server of switching system server refers to that the target handover system server configuration information table is complete
Identical system server.By read other systems server in each system server configuration information table and with the target
Switching system server compares, and determines and the connatural other systems server of the target handover system server;
In one embodiment, each system server has a monitoring log, record have the flow of the system server with
And residual flow load, the monitoring log by crawling other systems server obtain the residual stream loading gage of other systems server
Lotus.
In one embodiment, system server qualitative classification is artificially had according to the function of each server statistics in advance
Table, record have the corresponding relationship of each system server and property, and connatural system server is in one group, by being embedded in
The script that the present invention implements terminal crawls and the connatural other systems server of the target handover system server.Such as text
Part submission system server and file searching system server are connatural system servers, and document storage system and file are standby
Part system is also connatural system server.
Step 240, based on residual flow load corresponding to each system server in other systems server, distribution
The target flow value of the target handover system server request switching.
Residual flow load is the direct important indicator for embodying system server service condition, this have the advantage that,
Keep the distribution of target flow value more balanced and rationally, reduces and the excessive congestion system server of flow occur or flow is very few
Waste the probability of system resource situation.
In one embodiment, to all system servers in other systems server according to residual flow load from greatly to
It is small to be ranked up, and according to sequence from big to small, it is corresponding with the system server to be followed successively by each system server distribution
The identical flow value of residual flow load, wherein if remaining flow value is less than the residual flow load of a certain system server,
Residual stream magnitude then is distributed for the system server, is finished until target flow value is assigned.
Step 250, according to the flow value of distribution, switch the target flow of the target handover system server request switching
To the other systems server.
In one embodiment, target flow is equal to all flows of access target switching system server, switches target
After flow, the system on target handover system server is updated, by a part of flow in target flow after update
Target handover system server is switched back into realize the purpose of gray scale publication.
In one embodiment, target flow is less than all flows of access target switching system server, switches target
After flow, while the system on target handover system server is updated, target handover system server still has one
Shunt volume exists, after update, so that it may achieve the purpose that system gray scale on target handover system server is issued.
Fig. 3 is the flow chart of the details of the step 240 of the embodiment shown in corresponding embodiment according to fig. 2.Such as Fig. 3 institute
Show, comprising the following steps:
Step 241, determine that residual flow load in other systems server is greater than predetermined residual flow load threshold value is
The number of system server.
In the case where the residual flow load of a system server is too small, flow is distributed to the system server again
It will cause system server congestion or the excessive situation of pressure, user experience influenced, so to set a predetermined residual stream
Load threshold value is measured, is only just allowed to distribution flow greater than the system server of predetermined residual flow load threshold value.
Step 242, using the flow value of the target flow value and the quotient of the number as in other systems server
Residual flow load is greater than the flow value that the system server of predetermined residual flow load threshold value distributes.
For example the numerical value of the residual flow load of four systems server is respectively 10,7,5,3, target flow value 15,
If predetermined residual flow load threshold value is 6, the system server that the numerical value for being only residual flow load is 10 and 7 is respectively distributed
The flow that flow value is 7.5.If predetermined residual flow load threshold value is 4, the numerical value for residual flow load is 10,7,5
System server distribute respectively flow value be 5 flow.
This have the advantage that avoiding while balancing the pressure of discrete target flow to residual flow load
Too small system server increases flow again, ensure that the stable operation of the too small system server of residual flow load.
Fig. 4 is the flow chart of the details of the step 240 of another embodiment shown in corresponding embodiment according to fig. 2.Such as Fig. 4 institute
Show, step 240 includes following sub-step:
Step 241', the residual flow load for obtaining each system server in other systems server respectively are with this
The ratio of the maximum stream flow load of system server.
In one embodiment, in implementation terminal of the invention be equipped with script, the residual flow load of system server with
The ratio of the maximum stream flow load of the system server is recorded in the statistical data of the system server, crawls the system by script
It counts, the ratio of the maximum stream flow load of the residual flow load and system server of available each system server
Value.
Step 242' determines partition density according to the ratio, and determines all systems in the other systems server
The sum of described specific gravity of server.
In one embodiment, adder is equipped in implementation terminal of the invention, one specific gravity of every acquisition just calculates all
The sum of specific gravity got.
Step 243' according to following formula determination will be other systems server based on the sum of the ratio and the specific gravity
In each system server distribution flow value account for the target flow value ratio:
Wherein, Ω is the ratio, and E is the target flow value, and S is the sum of described specific gravity, and α is for other systems service
The flow value of each system server distribution in device accounts for the target flow value ratio.
As can be seen that in the present embodiment, working as ratioWhen, for the ratio determine distribution specific gravity be 0.2, when than
ValueWhen, determine that the specific gravity of distribution is 0.3 for the ratio, whenWhen, the specific gravity of distribution is determined for the ratio
It is 0.4.
In one embodiment, counter, adder and multiplier, counter difference are equipped in implementation terminal of the invention
The number of 3 specific gravity is counted, multiplier calculates the number of each specific gravity and the product of the specific gravity, and adder calculates all products
The sum of, the sum of as described specific gravity S.
This have the advantage that by the way that different weights is arranged for the system server of different residual flow load, into
And it realizes the system server for different residual flow load and customizes the flow value of each system server distribution and account for the mesh
Mark flow value ratio.
Fig. 5 is the step 220 of an embodiment shown in corresponding embodiment and the intermediate step of step 240 and step according to fig. 2
Rapid 240 details flow chart.As shown in Figure 5, comprising the following steps:
Step 230, it obtains and the connatural other systems server of the system server and the target handover system
The distance of server.
In one embodiment, it is previously provided with the longitude and latitude table of each system server, is obtained by inquiring the longitude and latitude table
The longitude and latitude of each system server is taken, then determines that other systems take by the corresponding relationship of longitude and latitude and entity space distance
Device be engaged at a distance from the target handover system server.
In one embodiment, the IP address for obtaining target handover system server and other systems server, passes through
The database with the corresponding relationship of IP address and city is inquired, the place city of each server is obtained, then inquiry is default
City and longitude and latitude mapping table, then the longitude and latitude in city where determining each server passes through longitude and latitude and reality
The corresponding relationship of body space length determines other systems server at a distance from the target handover system server.
In one embodiment, the distance between all connatural each system servers are recorded in the pre-set same sex
Matter system server, by inquiring the table, determines other systems server and the target handover system server in table
Distance.
Step 240', based on residual flow load corresponding to each system server in other systems server and
Other systems server distributes the target handover system server request and cuts at a distance from the target handover system server
The target flow value changed.
In one embodiment, each system server residual flow load is sorted from large to small and is incorporated into as multiple flows
Load section is according to system server and target switching then to the residual flow load in each flow load section
The distance of system server is ranked up from small to large.It finally according to sorted order, is each system in other systems server
Server of uniting distributes the flow value equal with the system server residual flow load, wherein if target flow value remains after being assigned
Remaining flow value is less than system server residual flow load, then distributes the remaining flow value for the system server.Than
If system server has 4, residual flow load is number of users, respectively 10,3,4,8 each system servers and the target
The distance of switching system server is respectively 200 kilometers, and 300 kilometers, 400 kilometers, 100 kilometers, target flow value 20 is remaining
Flow load be divided into [0,5] and (5,10] two sections, then the number of users after each system server sequence is 8,10,3 respectively,
4, it be number of users is that distribute flow value respectively be 8,10,2 for 8,10,3 system server respectively.
This have the advantage that balancing the residual flow load and each system server and the mesh of system server
The relationship between the distance of switching system server is marked, keeps the flow value distributed for system server more reasonable.
Fig. 6 is the flow chart according to the details of the step 240' of the embodiment shown in Fig. 5 corresponding embodiment.Such as Fig. 6 institute
Show, step 240' the following steps are included:
Step 2401' determines according to the residual flow load of each system server in the other systems server
One score.
Step 2402', according to system server each in other systems server and the target handover system server
Distance determine the second score.
Step 2403', according to the first score determined for system server each in the other systems server and the
Two scores distribute the target flow value of the target handover system server request switching.
In one embodiment, when the maximum stream flow of the residual flow load of a system server and the system server
The ratio of loadWhen, it determines that the first score is 0.2 for the system server, works as ratioWhen, it is for this
System server determines that the first score is 0.3, whenWhen, it determines that the first score is 0.4 for the system server, is for other
System server of each system server at a distance from the target handover system server less than 500 kilometers in system server
The second score is set as 0.8, sets the second score as 0.4 for system server of the distance between 500~1000 kilometers, be
System server of the distance greater than 1000 kilometers sets the second score as 0.1.According to the first score and the second score by such as
Lower formula determines the allocation proportion of target flow value each system server in other systems server:
Wherein, E is the target flow value, and m is each the first score of system server and second in other systems server
The sum of score, M are the sum of the first score and second score of all system servers in other systems server, and α is for other
The flow value of each system server distribution in system server accounts for the target flow value ratio.
This have the advantage that having comprehensively considered residual flow load and each system server and the institute of system server
Two kinds of factors of distance of target handover system server are stated in the target for distributing the target handover system server request switching
Flow value is played the role of, and keeps the distribution of target flow value more scientific.
Fig. 7 be the embodiment shown in corresponding embodiment according to fig. 2 step 250 after step flow chart.Such as Fig. 7 institute
Show, comprising the following steps:
Step 260, the triggering for carrying out artificial flow adjusting is monitored.
In one embodiment, artificial flow is bound by algorithm and adjusts event, and monitor the event.
Step 270, according to the triggering, the page for carrying out artificial flow adjusting is loaded.
In one embodiment, in response to target flow finishing switching, the artificial flow of automatic trigger adjusts event, and loads
For carrying out the page of artificial flow adjusting.
Step 280, the allocation proportion to target flow value is received by the page.
Step 290, the target handover system server request is redistributed according to the target flow allocation proportion to cut
The target flow value changed.
In one embodiment, as shown in Figure 8 for carrying out the page of artificial flow adjusting.Fig. 8 is exemplary according to one
The forced convection for implementing the embodiment exemplified measures the page layout schematic diagram for adjusting distribution.As shown in figure 8, other systems take
There are three being engaged in device, the ratio of the target flow value for the distribution of each system server can be inputted by the input frame at the interface
Example is carried out the movement of assignment of traffic after clicking " determination " submission.
In one embodiment, as shown in Figure 9 for carrying out the page of artificial flow adjusting.Fig. 9 is exemplary according to one
The forced convection for implementing another embodiment exemplified measures the page layout schematic diagram for adjusting distribution.As shown in figure 9, each system
The residual flow load of server accounts for the ratio of the maximum stream flow load of the system server in the page with graphic user interface GUI
The form of (Graphical User Interface) is presented, and is had a control slider under each system server, is passed through tune
Saving each slider after click " determination " is submitted, can be carried out distribution stream with dynamic regulation target flow value and allocation proportion
The movement of amount.It should be noted that the graphic user interface can by include but is not limited to it is one of following in the form of present: visitor
Family end, Web page, App (Application), application program.
It in one embodiment, further include forming the IP address of each flow of target flow and each in the request
The flow value of flow, based on residual flow load corresponding to each system server in other systems server, distribution
Before the target flow value of the target handover system server request switching, the method also includes:
It obtains and generates IP address belonging to the user of flow;Traffic channel belonging to IP address according to acquisition, determination are wanted
The flow distributed according to traffic channel;Determination will will be assigned according to the flow that traffic channel distributes from other systems server
The system server arrived;The sum of the flow value of flow that determination will be distributed according to traffic channel;By the target flow value and institute
Its difference of sum is stated as the first object flow value;By the traffic filtering to be distributed according to traffic channel in the target flow
Fall, to obtain first flow;
The target flow value of the distribution target handover system server request switching specifically includes:
Distribute the first object flow value of the target handover system server request switching;
The flow value according to distribution switches the target handover system server and requests the target flow of switching to institute
Other systems server is stated to specifically include:
According to the first object flow value of distribution, switch the first flow of the target handover system server request switching
To the other systems server.
In one embodiment, the IP address for generating flow belongs to any one traffic channel of Intranet, public network, special line,
Traffic channel belonging to IP address according to acquisition, determination will refer to according to the flow that traffic channel distributes as the IP for generating flow
When address belongs to Intranet or special line, the flow which generates is distributed according to traffic channel;From other systems server
Middle determination will refer to according to the flow system server to be assigned to that traffic channel distributes to every other system server
Residual flow load be ranked up from big to small, using the maximum system server of residual flow load as by special line IP
The system server that the assignment of traffic of location arrives, using the system server of residual flow load sequence second as by Intranet IP
The system server that the assignment of traffic of location arrives.
Since Intranet, public network IP generally fall into the responsible consumer of access target switching system server.The benefit done so
It is, for the different system server of the assignment of traffic of different type IP address generation, ensures the access of responsible consumer in system
Gray scale being capable of normal table progress when issuing.
The flow shifting device when disclosure additionally provides a kind of publication of system gray scale is that the device of the invention is implemented below
Example.
The block diagram of flow shifting device when Figure 10 is a kind of system gray scale shown according to an exemplary embodiment publication.Such as
Shown in Figure 10, device 1000 includes:
Receiving module 1010 is configured as receiving and ask to what the target flow of target handover system server switched over
It asks, includes the target flow value of system server request switching in the request;
Module 1020 is obtained, is configured as obtaining and the connatural other systems service of the target handover system server
The residual flow load of device;
Distribution module 1030 is configured as based on residue corresponding to each system server in other systems server
Flow load distributes the target flow value of the target handover system server request switching;
Target flow switching module 1040 is configured as the flow value according to distribution, switches the target handover system clothes
Business device requests the target flow of switching to the other systems server.
According to the third aspect of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
The electronic equipment 1100 of this embodiment according to the present invention is described referring to Figure 11.The electricity that Figure 11 is shown
Sub- equipment 1100 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 11, electronic equipment 1100 is showed in the form of universal computing device.The component of electronic equipment 1100 can
To include but is not limited to: at least one above-mentioned processing unit 1110, connects not homologous ray at least one above-mentioned storage unit 1120
The bus 1130 of component (including storage single 1120 and processing unit 1110).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 1110
Row, so that various according to the present invention described in the execution of the processing unit 1110 above-mentioned " embodiment method " part of this specification
The step of illustrative embodiments.
Storage unit 1120 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 1121 and/or cache memory unit 1122, it can further include read-only memory unit (ROM) 1123.
Storage unit 1120 can also include program/utility with one group of (at least one) program module 1125
1124, such program module 1125 includes but is not limited to: operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 1130 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 1100 can also be with one or more external equipments 1300 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 1100 communicate, and/or with make
The electronic equipment 1100 can with it is one or more of the other calculating equipment be communicated any equipment (such as router, modulation
Demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 1150.Also, electronic equipment 1100
Network adapter 1160 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public affairs can also be passed through
Common network network, such as internet) communication.As shown, network adapter 1160 passes through its of bus 1130 and electronic equipment 1100
The communication of its module.It should be understood that although not shown in the drawings, other hardware and/or software can be used in conjunction with electronic equipment 1100
Module, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic
Tape drive and data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment
Method.
According to the fourth aspect of the disclosure, a kind of computer readable storage medium is additionally provided, being stored thereon with can be real
The program product of existing this specification above method.In some possible embodiments, various aspects of the invention can also be real
It is now a kind of form of program product comprising program code, when described program product is run on the terminal device, the journey
Sequence code is each according to the present invention described in above-mentioned " illustrative methods " part of this specification for executing the terminal device
The step of kind illustrative embodiments.
With reference to shown in Figure 12, the program product for realizing the above method of embodiment according to the present invention is described
1200, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device,
Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with
To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and change can executed without departing from the scope.The scope of the present invention is limited only by the attached claims.
Claims (10)
- Flow switching method when 1. a kind of system gray scale is issued, which is characterized in that the described method includes:The request switched over to the target flow of target handover system server is received, includes that the system takes in the request The target flow value of business device request switching;Obtain the residual flow load with the connatural other systems server of the target handover system server;Based on residual flow load corresponding to each system server in other systems server, the target switching is distributed The target flow value of system server request switching;According to the flow value of distribution, target flow to described other for switching the target handover system server request switching are System server.
- 2. the method according to claim 1, wherein each system clothes based in other systems server Residual flow load corresponding to business device, the target flow value for distributing the system server request switching specifically include:Determine that residual flow load is greater than the number of the system server of predetermined residual flow load threshold value in other systems server Mesh;Using the flow value of the target flow value and the quotient of the number as residual flow load in other systems server The flow value distributed greater than the system server of predetermined residual flow load threshold value.
- 3. the method according to claim 1, wherein each system clothes based in other systems server Residual flow load corresponding to business device, the target flow value for distributing the system server request switching specifically include:The residual flow load for obtaining each system server in other systems server respectively and the system server are most The ratio of big flow load;Determine the partition density of each system server, according to the ratio to obtain all systems in the other systems server The sum of the specific gravity of system server;It according to following formula determination to be each system in other systems server based on the sum of the ratio and the specific gravity The flow value of server distribution accounts for the target flow value ratio:Wherein, Ω is the ratio, and E is the target flow value, and S is the sum of described specific gravity, and α is in other systems server Each system server distribution flow value account for the target flow value ratio.
- 4. the method according to claim 1, wherein obtaining and the target handover system server congeniality Other systems server residual flow load after, the method also includes:It obtains at a distance from the connatural other systems server of the system server and the target handover system server;Wherein, the target flow value of the distribution target handover system server request switching is also based on taking with the system The connatural other systems server of device be engaged at a distance from the target handover system server.
- 5. according to the method described in claim 4, it is characterized in that, the distribution target handover system server request is cut The target flow value changed specifically includes:According to the residual flow load of each system server in the other systems server, the first score is determined;Second is determined at a distance from the target handover system server according to system server each in other systems server Score;According to the first score and the second score determined for system server each in the other systems server, described in distribution The target flow value of target handover system server request switching.
- 6. the method according to claim 1, wherein switching the target switching in the flow value according to distribution After the target flow to the other systems server of system server request switching, the method also includes:Monitor the triggering for carrying out artificial flow adjusting;According to the triggering, the page for carrying out artificial flow adjusting is loaded;The allocation proportion to target flow value is received by the page;The target flow of the target handover system server request switching is redistributed according to the target flow allocation proportion Value.
- 7. the method according to claim 1, wherein further including each stream for forming target flow in the request The flow value of the IP address of amount and each flow, based on corresponding to each system server in other systems server Residual flow load is distributed before the target flow value of the target handover system server request switching, and the method is also wrapped It includes:It obtains and generates IP address belonging to the user of flow;Traffic channel belonging to IP address according to acquisition, the flow that determination will be distributed according to traffic channel;The flow system server to be assigned to that determination will be distributed according to traffic channel from other systems server;The sum of the flow value of flow that determination will be distributed according to traffic channel;Using the target flow value and described and its difference as the first object flow value;By to fall according to the traffic filtering that traffic channel distributes in the target flow, to obtain first flow;The target flow value of the distribution target handover system server request switching specifically includes:Distribute the first object flow value of the target handover system server request switching;The flow value according to distribution, switch the target flow of target handover system server request switching to it is described its He specifically includes system server:According to the first object flow value of distribution, switches the target handover system server and request the first flow of switching to institute State other systems server.
- Flow shifting device when 8. a kind of system gray scale is issued, which is characterized in that described device includes:Receiving module is configured as receiving the request for switching over the target flow of target handover system server, described to ask It include the target flow value of system server request switching in asking;Module is obtained, is configured as obtaining the residue with the connatural other systems server of the target handover system server Flow load;Distribution module is configured as based on residual stream loading gage corresponding to each system server in other systems server Lotus distributes the target flow value of the target handover system server request switching;Target flow switching module is configured as the flow value according to distribution, switches the target handover system server request The target flow of switching is to the other systems server.
- 9. a kind of computer-readable program medium, which is characterized in that it is stored with computer program instructions, when the computer journey When sequence instruction is computer-executed, computer is made to execute method according to any one of claim 1 to 7.
- 10. a kind of electronic equipment, which is characterized in that the electronic equipment includes:Processor;Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor When row, method as described in any one of claim 1 to 7 is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811255226.0A CN109558152A (en) | 2018-10-26 | 2018-10-26 | Flow switching method, device, medium and electronic equipment when system gray scale is issued |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811255226.0A CN109558152A (en) | 2018-10-26 | 2018-10-26 | Flow switching method, device, medium and electronic equipment when system gray scale is issued |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109558152A true CN109558152A (en) | 2019-04-02 |
Family
ID=65865235
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811255226.0A Pending CN109558152A (en) | 2018-10-26 | 2018-10-26 | Flow switching method, device, medium and electronic equipment when system gray scale is issued |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109558152A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111432247A (en) * | 2020-03-19 | 2020-07-17 | 平安科技(深圳)有限公司 | Traffic scheduling method, traffic scheduling device, server and storage medium |
CN112685290A (en) * | 2020-12-23 | 2021-04-20 | 北京字跳网络技术有限公司 | Chaotic engineering experiment method and device of system and storage medium |
-
2018
- 2018-10-26 CN CN201811255226.0A patent/CN109558152A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111432247A (en) * | 2020-03-19 | 2020-07-17 | 平安科技(深圳)有限公司 | Traffic scheduling method, traffic scheduling device, server and storage medium |
CN111432247B (en) * | 2020-03-19 | 2022-10-18 | 平安科技(深圳)有限公司 | Traffic scheduling method, traffic scheduling device, server and storage medium |
CN112685290A (en) * | 2020-12-23 | 2021-04-20 | 北京字跳网络技术有限公司 | Chaotic engineering experiment method and device of system and storage medium |
WO2022135094A1 (en) * | 2020-12-23 | 2022-06-30 | 北京字跳网络技术有限公司 | Chaos engineering experimentation method and device for system, and storage medium |
CN112685290B (en) * | 2020-12-23 | 2023-04-18 | 北京字跳网络技术有限公司 | Chaotic engineering experiment method and device of system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106663289B (en) | Behavioral demand response ranking | |
CN110493080B (en) | Block link point monitoring method and device, electronic equipment and storage medium | |
US10783002B1 (en) | Cost determination of a service call | |
US20130197863A1 (en) | Performance and capacity analysis of computing systems | |
CN104704773A (en) | Consistency-based service-level agreements in cloud storage environments | |
US11070646B1 (en) | Methods and systems for selection of remote services | |
CN107944000A (en) | Flight freight rate update method, device, electronic equipment, storage medium | |
CN103746934A (en) | CDN bandwidth balancing method, CDN control center and system | |
JP6299599B2 (en) | Information system construction support apparatus, information system construction support method, and information system construction support program | |
CN114237466B (en) | Inspection point configuration method and device | |
US20200090109A1 (en) | Asset and device management | |
CN110267288A (en) | Mobile network complains localization method and device | |
CN102916831A (en) | Method and system for acquiring health degree of business system | |
CN109558152A (en) | Flow switching method, device, medium and electronic equipment when system gray scale is issued | |
JPWO2014054232A1 (en) | Information system construction support apparatus, information system construction support method, and information system construction support program | |
CN108985556B (en) | Method, apparatus, equipment and the computer storage medium of flow scheduling | |
US10242349B1 (en) | Efficient scheduling of maintenance for power distribution systems | |
US10936968B2 (en) | Ticket routing | |
US20160342899A1 (en) | Collaborative filtering in directed graph | |
CN111123778B (en) | Method and device for monitoring vehicle use condition and electronic equipment | |
JPWO2014054231A1 (en) | Information system construction support apparatus, information system construction support method, and information system construction support program | |
CN114844791B (en) | Cloud service automatic management and distribution method and system based on big data and storage medium | |
CN112703485A (en) | Supporting experimental assessment of modifications to computing environments within a distributed system using machine learning methods | |
CN108964904A (en) | Group cipher method for managing security, device, electronic equipment and storage medium | |
CN111062604B (en) | Meteorological disaster-based power grid business risk assessment method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information |
Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary) Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd. Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A Applicant before: Shenzhen one ledger Intelligent Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |