CN110532094A - A kind of load balancing weighted value amending method and processing system - Google Patents
A kind of load balancing weighted value amending method and processing system Download PDFInfo
- Publication number
- CN110532094A CN110532094A CN201910782739.5A CN201910782739A CN110532094A CN 110532094 A CN110532094 A CN 110532094A CN 201910782739 A CN201910782739 A CN 201910782739A CN 110532094 A CN110532094 A CN 110532094A
- Authority
- CN
- China
- Prior art keywords
- weighted value
- load
- virtual server
- modification
- value
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5083—Techniques for rebalancing the load in a distributed system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of load balancing weighted value amending method and processing systems, by M specified virtual servers for obtaining the first user input, the M specified virtual servers are sent to default cloud system again to inquire and determine the first load balancing for having used the M specified virtual servers, inquiry simultaneously obtains the present weight value of the corresponding load virtual server group used of first load balancing and each load virtual server group, and then weighted value and its corresponding relationship after the corresponding modification of each load virtual server group are determined again, above- mentioned information are fed back to default cloud system again to realize the weighted value modification for carrying out batch type according to weighted value after modification.Application scheme can not only be modified to avoid cumbersome weighted value and be operated, and can be only open-minded to the load balancing weight processing system by the access authority of default cloud system, there is the technical effect for the security of system for improving load balancing weighted value modification efficiency and promoting cloud system.
Description
Technical field
The present invention relates to computer technical field of communication processing, modify more particularly to a kind of load balancing weighted value
Method and processing system.
Background technique
Load balancing refers to: a certain data processing vocational work is shared multiple operations lists according to scheduled workable proportions
It is executed in member.For example, a certain user data query work can be divided jointly by A server, B server, C server, D server
Load is completed.Wherein, first server completes the 30% of total traffic, and second server completes 20%, the C server and D of total traffic
Server is respectively completed the 25% of total traffic.So, A server 30%, the 20% of B server, the 25% of C server, D
25% of server is the corresponding load balancing weighted value (hereinafter referred to as weighted value) of four servers.
Load balancing provides a kind of cheap, effective and transparent network processes for the network data processing business of magnanimity
Extended method can not only increase bandwidth, the handling capacity of each server, moreover it is possible to which Strengthens network data-handling capacity improves network
Flexibility and availability.
Currently, need to first log into cloud console when needing to modify the load balancing weighted value of some virtual server,
Load balancing corresponding with the virtual server is obtained in the inquiry of cloud console, then selects monitoring corresponding with the load balancing
Virtual server group used in the load balancing is found in port in listening port, could finally combine virtual server group
In the weighted value situations of other virtual servers the weighted value of the virtual server is adjusted.
As shown in Figure 1, being used in the case that the virtual server for needing to modify weighted value exists by multiple load balancing uses
Family needs to be repeated as many times the operation for carrying out weighted value modification, and all modifications are all made of manually-operated mode, not only workload compared with
Greatly, it is also easy to appear to omit and modifies inconsistent situation with the weighted value of each load balancing.Meanwhile the permission of cloud console at present
Control granularity is thicker, cannot accurately control the permission of operator, if an account transfers to multiple users to use, there is also accounts
Number leakage security risk.
As it can be seen that existing in the prior art larger for the cumbersome and security risk of weighted value modification in load balancing
The technical issues of.
Summary of the invention
The application provides a kind of load balancing weighted value amending method and processing system, exists in the prior art to solve
Modify cumbersome and larger security risk technical problem for the weighted value in load balancing.
The application first aspect provides a kind of load balancing weighted value amending method, is applied at a load balancing weight
Reason system, comprising:
Obtain the M specified virtual servers and M specified weight value of the first user input, wherein the specified weight
Value is modified load weighted value, M are the integer more than or equal to 1 correspondingly with the specified virtual server;
The M specified virtual servers are sent to default cloud system, to determine by the default cloud system inquiry
The load balancing for having used the M specified virtual servers is that the first load balancing and first load balancing use
N number of load virtual server and the corresponding present weight value of each load virtual server, wherein N be more than or equal to M
Integer;
Determine weighted value after N number of modification based on the M specified weight value, wherein after the modification weighted value be with
The load virtual server modified load weighted value correspondingly, weighted value includes the M after N number of modification
Specified weight value, and after N number of modification weighted value and be less than or equal to 1;
By weighted value after N number of load virtual server, N number of modification and each load virtual server with
The corresponding relationship of weighted value is sent to the default cloud system after each modification, so that the default cloud system is empty by each load
The weighted value of quasi- server is revised as weighted value after corresponding modification.
It is optionally, described that weighted value after N number of modification is determined based on the M specified weight value, comprising:
Determine that first user has permission the permission virtual server group for carrying out load weighted value modification;
In N number of load virtual server there are P have the right virtual server when, had the right based on the P virtual
One-to-one P specified weight value determines weighted value after N number of modification to server respectively, wherein described to have the right to service
Device belongs to M specified virtual servers and belongs to the permission virtual server group, and P is the integer more than or equal to 1.
Optionally, the base determine first user have permission carry out load weighted value modification permission virtually take
After device group of being engaged in, the method also includes:
In N number of load virtual server there is no it is described have the right virtual server when, send a warning message to mention
Show that user's lack of competence modifies the load weighted value of the specified virtual server.
It is optionally, described that weighted value after N number of modification is determined based on the M specified weight value, comprising:
Determine that the Q in N number of load virtual server in addition to the M specified virtual servers is a undetermined virtual
Server, Q are the integer more than or equal to 0 and less than or equal to N;
It determines that the Q virtual servers undetermined are currently one-to-one respectively and loads weighted value, obtain Q current power
Weight values;
Judge the Q present weight value and the M specified weight value and whether less than or equal to 1;
If so, weighted value is by the Q present weight value and the M specified weight value after determining N number of modification
Composition.
Optionally, described judging the Q present weight value and the M specified weight value and whether be less than or equal to
After 1, the method also includes:
If it is not, then one or more of described Q present weight value is adjusted, so that Q adjusted current
Weighted value and the M specified weight value and less than or equal to 1;
Weighted value is by the Q present weight value adjusted and the M specified weight value after determining N number of modification
Composition.
The application second aspect provides a load balancing weight processing system, comprising:
Signal input part;
Signal output end;
Processor is connect with the signal input part and the signal output end, to be obtained by the signal input part
The M specified virtual servers and M specified weight value for obtaining the first user input, by the signal output end by the M
Specified virtual server is sent to default cloud system, is determined with obtaining the default cloud system inquiry by the signal input part
The load balancing for having used the M specified virtual servers is that the first load balancing and first load balancing use
N number of load virtual server and the corresponding present weight value of each load virtual server, based on the specified power of the M
Weight values determine weighted value after N number of modification, by the signal output end by N number of load virtual server, described N number of repair
The corresponding relationship for changing rear weighted value and each load virtual server and weighted value after each modification is sent to the default cloud
System, so that the weighted value of each load virtual server is revised as weighted value after corresponding modification by the default cloud system,
Wherein, the specified weight value be with the specified virtual server modified load weighted value correspondingly, it is described to repair
Change rear weighted value be with the load virtual server modified load weighted value correspondingly, weighed after N number of modification
Weight values include the M specified weight value, and after N number of modification weighted value and be less than or equal to 1, M be it is whole more than or equal to 1
Number, N are the integer more than or equal to M.
Optionally, the processor, to determine that first user has permission the power for carrying out load weighted value and modifying
Limit virtual server group, in N number of load virtual server there are P have the right virtual server when, have based on the P is a
One-to-one P specified weight value determines weighted value after N number of modification to power virtual server respectively, wherein described to have
Power server belongs to M specified virtual servers and belongs to the permission virtual server group, and P is the integer more than or equal to 1.
Optionally, the processor, to there is no the Virtual Services of having the right in N number of load virtual server
When device, the load weighted value to prompt user's lack of competence to modify the specified virtual server is sent a warning message.
Optionally, the processor, to determine in N number of load virtual server except the M specified virtual
Q virtual servers undetermined except server determine that the Q virtual servers undetermined are currently one-to-one negative respectively
Weighted value is carried, Q present weight value is obtained;Judge the Q present weight value with it is the M specified weight value and whether small
In equal to 1;If so, weighted value is by the Q present weight value and the M specified weight value after determining N number of modification
Composition, wherein Q is the integer more than or equal to 0 and less than or equal to N.
Optionally, the processor, in the judgement Q present weight value and the M specified weight value
And when being greater than 1, then one or more of described Q present weight value is adjusted, so that Q adjusted is currently weighed
Weight values and the M specified weight value and less than or equal to 1;Weighted value is by the Q adjusted after determining N number of modification
Present weight value and the M specified weight value form.
The application third aspect provides a kind of computer installation, and described device includes processing equipment, the processing equipment
The step of method as described in relation to the first aspect is realized when for executing the computer program stored in memory.
The application fourth aspect provides a kind of computer readable storage medium, is stored thereon with computer program, described
The step of method as described in relation to the first aspect is realized when computer program is executed by processor.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
The M specified virtual servers that technical solution in the embodiment of the present application is inputted by the first user of acquisition, then will
The M specified virtual servers are sent to default cloud system to inquire determination and use the M specified virtual servers
First load balancing, while inquiry obtains the corresponding load virtual server group and each load used of first load balancing
The present weight value of virtual server group, and then weighted value after the corresponding modification of each load virtual server group is determined again
And its corresponding relationship, then above- mentioned information are fed back to default cloud system to realize the power for carrying out batch type according to weighted value after modification
Weight values modification.Technical solution in the embodiment of the present application can not only be modified to avoid cumbersome weighted value to be operated, but also can be incited somebody to action
The access authority of default cloud system is only open-minded to the load balancing weight processing system, and there is raising load balancing weighted value to repair
Change efficiency and promotes the technical effect of the security of system of cloud system.
Detailed description of the invention
Fig. 1 is the flow chart provided in an embodiment of the present invention for carrying out the modification of load balancing weighted value in the prior art;
Fig. 2 is a kind of flow chart of load balancing weighted value amending method provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of load balancing weight processing system provided in an embodiment of the present invention.
Specific embodiment
The application provides a kind of load balancing weighted value amending method and processing system, exists in the prior art to solve
Modify cumbersome and larger security risk technical problem for the weighted value in load balancing.
Technical solution in the embodiment of the present application is in order to solve the above technical problems, general thought is as follows:
The M specified virtual servers that technical solution in the embodiment of the present application is inputted by the first user of acquisition, then will
The M specified virtual servers are sent to default cloud system to inquire determination and use the M specified virtual servers
First load balancing, while inquiry obtains the corresponding load virtual server group and each load used of first load balancing
The present weight value of virtual server group, and then weighted value after the corresponding modification of each load virtual server group is determined again
And its corresponding relationship, then above- mentioned information are fed back to default cloud system to realize the power for carrying out batch type according to weighted value after modification
Weight values modification.Technical solution in the embodiment of the present application can not only be modified to avoid cumbersome weighted value to be operated, but also can be incited somebody to action
The access authority of default cloud system is only open-minded to the load balancing weight processing system, and there is raising load balancing weighted value to repair
Change efficiency and promotes the technical effect of the security of system of cloud system.
Technical scheme is described in detail below by attached drawing and specific embodiment, it should be understood that the application
Specific features in embodiment and embodiment are the detailed description to technical scheme, rather than to present techniques
The restriction of scheme, in the absence of conflict, the technical characteristic in the embodiment of the present application and embodiment can be combined with each other.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes
System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein
Middle character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Embodiment one
Referring to FIG. 2, the embodiment of the present application one provides a kind of load balancing weighted value amending method, it is equal to be applied to a load
Weigh weight processing system characterized by comprising
Step 101: obtaining M specified virtual servers of the first user input, wherein M is the integer more than or equal to 1;
The specified virtual server is it is to be understood that user needs to modify the virtual server of weighted value.In this step
Implementation procedure in, user can pass through various input equipments and input the M specified virtual servers.Such as: it can use
The mode of keyboard input, can be by the way of touch panel input, can be by the way of voice input, can also be using remote
The mode of journey wireless signal input.There are many means and method that input above-mentioned data in the prior art, in order to illustrate the letter of book
Jie does not just repeat one by one herein,
For example, user can input in this step following data: specified virtual server are as follows: a server and b service
Device.
Step 102: the M specified virtual servers being sent to default cloud system, to pass through the default cloud system
Inquiry determines that having used the load balancing of the M specified virtual servers is the first load balancing and first load
The N number of load virtual server and the corresponding present weight value of each load virtual server that equilibrium uses, wherein N is
Integer more than or equal to M;
First load balancing can respectively can correspond to use for one or more, each first load balancing
Different virtual server groups.That is, N number of load virtual server can be used as first load balancing and be made
All virtual servers.When first load balancing is Z, N number of quantity for loading virtual server can be with
For Z*N.
In the implementation procedure of this step, the load balancing weight processing system can be by the M specified Virtual Services
Device is forwarded to cloud control system.It is obtained again by cloud control system inquiry and has used the first negative of the M specified virtual server
Carry it is balanced, virtual server group (namely described N number of load virtual server) that each first load balancing uses respectively, with
And corresponding present weight value in each virtual server group, and these information datas feedback is weighed to the load balancing
Weight processing system.
It should be noted that the virtual server group for inquiring acquisition in this step is that each first load balancing uses
All virtual servers, the case where obtaining the partial virtual server that each first load balancing uses there is no inquiry.
It is as follows that this step executes example: example in undertaking, when the load balancing weight processing system will " specified Virtual Service
After device are as follows: a server and b server " is sent to default cloud system (can be Ali's cloud system), the default cloud system can be with
Inquiry obtains first: while having used the load balancing of a server and b server includes first load balancing and second load balancing
(first, second is first load balancing), the load virtual server that first load balancing uses include: a server, b service
Device, c server, the corresponding present weight value of a server are that the corresponding present weight value of 10%, b server is 40%, c service
The corresponding present weight value of device is 50%;The load virtual server that second load balancing uses includes: a server, b server, d
Server and e server, the corresponding present weight value of a server are that the corresponding present weight value of 20%, b server is 10%, d
The corresponding present weight value of server is that the corresponding present weight value of 40%, e server is 30%;Then these data are believed again
Breath feedback arrives the load balancing weight processing system.
Step 103: determining that each load virtual server corresponding with first load balancing is modified correspondingly
Weighted value afterwards obtains weighted value after N number of modification, wherein after N number of modification weighted value and be less than or equal to 1;
When executing this step, can voluntarily be inputted as desired by user corresponding N number of with each first load balancing
Weighted value after modification;It can also be on the basis of weighted value after user only has input part modification, by system according to presetting method
Automatically determine out weighted value after remaining modification.And the presetting method defers to following principle: corresponding to each first load balancing
The sum of the weighted value of the load virtual server used is no more than 1.Based on the principle, the technical solution in the embodiment of the present application can
After the modification inputted according to user weighted value modify adjustment on the basis of, its being related to corresponding to each first load balancing
The weighted value that he loads virtual server is adjusted, and is met the natural law to obtain and is met the described N number of of user demand
Weighted value after modification.
It should be pointed out that weighted value after N number of modification has not only been determined in this step, it is empty to further define each load
The one-to-one relationship of weighted value after quasi- server and each modification.
It is as follows that this step executes example: example in undertaking, the load balancing weight processing system receive default cloud system
After the relevant inquiring information of feedback, it can be directed to respectively first load balancing by user and input weighted value after corresponding N number of modification are as follows: a
Weighted value is that weighted value is that 30%, c server is corresponding after the corresponding modification of 20%, b server after the corresponding modification of server
Weighted value is 50% after modification;For weighted value after the corresponding N number of modification of second load balancing input are as follows: a server is corresponding to be repaired
Changing rear weighted value is that weighted value is that weighted value is after the corresponding modification of 20%, d server after the corresponding modification of 40%, b server
Weighted value is 10% after the corresponding modification of 30%, e server.Certain user in the process can also be only equal for first load respectively
Weighing apparatus and second load balancing input weighted value after the modification of corresponding a server and b server, and system can be in each load balancing
Weighted value after the modification of the other servers of adjust automatically on the basis of the sum of weighted value is no more than 1 after corresponding N number of modification.Thus
Obtain after the corresponding N number of modification of first load balancing weighted value after weighted value and the corresponding N number of modification of second load balancing.
Step 104: weighted value after N number of load virtual server, N number of modification and each load is virtual
The corresponding relationship of weighted value is sent to the default cloud system after server and each modification, so that the default cloud system will be with
The weighted value of the corresponding each load virtual server of first load balancing is revised as weighted value after corresponding modification.
It is as follows that this step executes example: example in undertaking, is handled when default cloud system is received by the load balancing weight
After all data that system is obtained by step 103, can as follows batch type to the weighted value of associated server into
Row modification: it is directed to first load balancing, the weighted value of a server is revised as 20%, the weighted value of b server is revised as
30%, the weighted value of c server is revised as 50%;For second load balancing, the weighted value of a server is revised as 40%,
The weighted value of b server is revised as 20%, the weighted value of d server is revised as 30%, the weighted value of e server is modified
It is 10%.
Certainly, the technical solution in the embodiment of the present application further includes following situation: when the specified Virtual Service of user's input
Device is the embodiment of technical scheme when constituting all virtual servers (the namely N=M) of the first load balancing
It is specifically as follows as follows:
Following data are inputted when the load balancing weight processing system receives user: specified virtual server are as follows: A clothes
It is engaged in after device and B server, the load balancing weight processing system can be by above-mentioned data: " A server and B server " is sent to
Default cloud system (can be Ali's cloud system).The default cloud system can inquire first acquisition: at the same using A server and
The load balancing of B server includes the third load balancing and fourth load balancing (third, fourth be first load balancing), and third is negative
Carrying the load virtual server that balanced and fourth load balancing uses is and only are as follows: A server and B server.A in third load balancing
The corresponding present weight value of server is that the corresponding present weight value of 20%, B server is 30%;A is serviced in fourth load balancing
The corresponding present weight value of device is that the corresponding present weight value of 10%, B server is 50%;Then cloud system is preset again by these
Data information is fed back to the load balancing weight processing system.
It, can be by user after the load balancing weight processing system receives the relevant inquiring information of default cloud system feedback
Respectively for weighted value after corresponding two modifications of the third load balancing input are as follows: weighted value is after the corresponding modification of A server
Weighted value is 60% after the corresponding modification of 10%, B server;For weighted value after corresponding two modifications of fourth load balancing input
Are as follows: weighted value is that weighted value is 10% after the corresponding modification of 30%, B server after the corresponding modification of A server;Thus to obtain third
Load balancing it is corresponding two modification after weighted value and fourth load balancing it is corresponding two modification after weighted value.
When default cloud system receives each item number obtained through the above steps by the load balancing weight processing system
It according to rear, batch type can modify to the weighted value of associated server: for the third load balancing, A be taken as follows
The weighted value of business device is revised as 10%, and the weighted value of B server is revised as 60%;For fourth load balancing, by A server
Weighted value is revised as 30%, and the weighted value of B server is revised as 10%.
It should be pointed out that user can be also defeated simultaneously when inputting specified virtual server in this example
Enter and each specifies weighted value after the corresponding modification of virtual server;It can certainly be in the phase for receiving default cloud system feedback
Input weighted value after each modification again after closing query information, user can self-setting as needed, in the embodiment of the present application
Technical solution is not further limited.
It can be seen that the technical solution in the embodiment of the present application passes through M that obtain the first user input specified virtual clothes
Be engaged in device, then the M specified virtual servers are sent to default cloud system with inquire determine used the M it is specified virtual
First load balancing of server, at the same inquiry obtain the corresponding load virtual server group used of first load balancing and
The present weight value of each load virtual server group, and then the corresponding modification of each load virtual server group is determined again
Weighted value and its corresponding relationship afterwards, then above- mentioned information are fed back to default cloud system and are criticized with realizing according to weighted value after modification
The weighted value of amount formula is modified.Technical solution in the embodiment of the present application can not only be modified to avoid cumbersome weighted value to be operated, and
And can be only open-minded to the load balancing weight processing system by the access authority of default cloud system, have and improves load balancing
Weighted value modifies efficiency and promotes the technical effect of the security of system of cloud system.
It is optionally, described that weighted value after N number of modification is determined based on the M specified weight value, comprising:
Determine that first user has permission the permission virtual server group for carrying out load weighted value modification;
In N number of load virtual server there are P have the right virtual server when, had the right based on the P virtual
One-to-one P specified weight value determines weighted value after N number of modification to server respectively, wherein described to have the right to service
Device belongs to M specified virtual servers and belongs to the permission virtual server group, and P is the integer more than or equal to 1.
That is, in technical solution in the embodiment of the present application, also by setting access authority to avoid user couple
Virtual server beyond permission carries out the modification of load balancing weighted value, thus can also play and further promote load balancing
The technical effect of permission modification safety and reliability.
Further, the base determine first user have permission carry out load weighted value modification permission it is virtual
After server group, the method also includes:
In N number of load virtual server there is no it is described have the right virtual server when, send a warning message to mention
Show that user's lack of competence modifies the load weighted value of the specified virtual server.
It is further, described that weighted value after N number of modification is determined based on the M specified weight value, comprising:
Determine that the Q in N number of load virtual server in addition to the M specified virtual servers is a undetermined virtual
Server, Q are the integer more than or equal to 0 and less than or equal to N;
It determines that the Q virtual servers undetermined are currently one-to-one respectively and loads weighted value, obtain Q current power
Weight values;
Judge the Q present weight value and the M specified weight value and whether less than or equal to 1;
If so, weighted value is by the Q present weight value and the M specified weight value after determining N number of modification
Composition.
Still further, described judging the Q present weight value and the M specified weight value and whether be less than
After 1, the method also includes:
If it is not, then one or more of described Q present weight value is adjusted, so that Q adjusted current
Weighted value and the M specified weight value and less than or equal to 1;
Weighted value is by the Q present weight value adjusted and the M specified weight value after determining N number of modification
Composition.
Execution through the above scheme, it is ensured that for user after the modification of input error on the basis of weighted value, system can
Relevant parameter is automatically processed to meet weighted value after the modification of natural rule, is achieved in further lifting system intelligence water
Flat technical effect.
Embodiment two
Referring to FIG. 3, the embodiment of the present application two provides a kind of load balancing weight processing system, comprising:
Signal input part 201;
Signal output end 202;
Processor 203 is connect with the signal input part and the signal output end, to pass through the signal input part
The M specified virtual servers for obtaining the first user input, by the signal output end by the M specified virtual servers
It is sent to default cloud system, has used the negative of the M specified virtual servers to determine by the default cloud system inquiry
It carries the balanced N number of load virtual server used for the first load balancing and first load balancing and each load is empty
The quasi- corresponding present weight value of server, determines each load virtual server one corresponding with first load balancing
Weighted value after one corresponding modification, obtains weighted value after N number of modification, by N number of load virtual server, N number of modification
The corresponding relationship of weighted value and each load virtual server and weighted value after each modification passes through the signal output end afterwards
Be sent to the default cloud system so that the default cloud system will each load corresponding with first load balancing it is virtual
The weighted value of server is revised as weighted value after corresponding modification, wherein M is the integer more than or equal to 1, and N is more than or equal to M's
Integer, after N number of modification weighted value and be less than or equal to 1.
Specifically, the processor 203 can be general central processing unit (CPU), be also possible to specific application collection
At circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), can also be one or
Multiple integrated circuits executed for controlling program.
The load balancing weight processing system can also include storage device, and the quantity of the storage device can be one
It is a or multiple.Storage device may include read-only memory (English: Read Only Memory, abbreviation: ROM), arbitrary access
Memory (English: Random Access Memory, referred to as: RAM) and magnetic disk storage.
Further, the processor 203 carries out load weighted value modification to determine that first user has permission
Permission virtual server group;When in N number of load virtual server there are P have the right virtual server when, determine with
Weighted value after each virtual server of having the right is modified correspondingly obtains weighted value after P modification, based on described P modification
Weighted value and each have no right the corresponding present weight value of virtual server afterwards and determine weighted value after N number of modification, wherein institute
Server of having the right is stated to belong to the M specified virtual servers and belong to the permission virtual server group, it is described to have no right to service
Device belongs to N number of load virtual server and is not belonging to the permission virtual server group, and P is the integer more than or equal to 1.
Further, the processor 203, to there is no the void of having the right in N number of load virtual server
When quasi- server, the load weighted value to prompt user's lack of competence to modify the specified virtual server is sent a warning message.
Further, the processor 203, to obtain the finger corresponding with each specified virtual server of user's input
Determine weighted value, obtains M specified weight value;It determines in N number of load virtual server except the M specified Virtual Services
Q except device virtual servers undetermined determine the corresponding present weight value of the Q virtual servers undetermined, obtain Q
Present weight value;Judge the Q present weight value and the M specified weight value and whether less than or equal to 1;If so,
Weighted value is made of the Q present weight value and the M specified weight value after determining N number of modification, wherein Q is big
In the integer equal to 0 and less than or equal to N.
Further, the processor 203, in the judgement Q present weight value and the M specified power
Weight values and when being greater than 1, then one or more of described Q present weight value is adjusted, is worked as so that Q adjusted is a
Preceding weighted value and the M specified weight value and less than or equal to 1;After determining that weighted value is by the adjustment after N number of modification
Q present weight value and the M specified weight value composition.
Load balancing weighted value amending method in 1 embodiment of earlier figures, various change mode and specific example are same
Suitable for the phased array antenna test macro of the present embodiment, pass through aforementioned retouching in detail to load balancing weighted value amending method
It states, those skilled in the art are clear that the implementation method of phased array antenna test macro in the present embodiment, so being
Specification it is succinct, this will not be detailed here.
One embodiment of the application also provides a kind of computer installation, and described device includes processing equipment, the processing equipment
The step of any claim the method in embodiment one is realized when for executing the computer program stored in memory.
One embodiment of the application also provides a kind of computer readable storage medium, is stored thereon with computer program, described
It realizes when computer program is executed by processor such as the step of one the method for embodiment.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the application range.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application
Mind and range.Further, each method and step in technical scheme can overturn, and convert sequencing and still fall
Enter in the invention scope that the application is covered.In this way, if these modifications and variations of the application belong to the claim of this application
And its within the scope of equivalent technologies, then the application is also intended to include these modifications and variations.
Claims (12)
1. a kind of load balancing weighted value amending method is applied to a load balancing weight processing system, which is characterized in that packet
It includes:
Obtain M specified virtual servers of the first user input, wherein M is the integer more than or equal to 1;
The M specified virtual servers are sent to default cloud system, are used with being determined by the default cloud system inquiry
The load balancing of the M specified virtual servers is the first load balancing and first load balancing use it is N number of
Load virtual server and the corresponding present weight value of each load virtual server, wherein N is whole more than or equal to M
Number;
Weighted value after determining each load virtual server corresponding with first load balancing is modified correspondingly, obtains
Weighted value after N number of modification, wherein after N number of modification weighted value and be less than or equal to 1;
By weighted value after N number of load virtual server, N number of modification and each load virtual server and each
The corresponding relationship of weighted value is sent to the default cloud system after modification, so that the default cloud system will be with first load
The weighted value of balanced corresponding each load virtual server is revised as weighted value after corresponding modification.
2. the method as described in claim 1, which is characterized in that the determination is corresponding with first load balancing each negative
Weighted value after virtual server is modified correspondingly is carried, weighted value after N number of modification is obtained, comprising:
Determine that first user has permission the permission virtual server group for carrying out load weighted value modification;
When in N number of load virtual server there are P have the right virtual server when, determine and Virtual Service of each having the right
Weighted value after device is modified correspondingly obtains weighted value after P modification, wherein the server of having the right belongs to the M finger
Determine virtual server and belong to the permission virtual server group, P is the integer more than or equal to 1;
Based on described P modification after weighted value and each have no right the corresponding present weight value of virtual server determine it is described N number of
Weighted value after modification, wherein described to have no right that server belongs to N number of load virtual server and to be not belonging to the permission virtual
Server group.
3. method according to claim 2, which is characterized in that determine that first user has permission described and load
After the permission virtual server group of weighted value modification, the method also includes:
When in N number of load virtual server there is no it is described have the right virtual server when, send a warning message to prompt to use
Family lack of competence modifies the load weighted value of the specified virtual server.
4. the method as described in claim 1, which is characterized in that the determination is corresponding with first load balancing each negative
Weighted value after virtual server is modified correspondingly is carried, weighted value after N number of modification is obtained, comprising:
The specified weight value corresponding with each specified virtual server for obtaining user's input, obtains M specified weight value;
Determine Q Virtual Services undetermined in N number of load virtual server in addition to the M specified virtual servers
Device, Q are the integer more than or equal to 0 and less than or equal to N;
It determines the corresponding present weight value of Q virtual server undetermined, obtains Q present weight value;
Judge the Q present weight value and the M specified weight value and whether less than or equal to 1;
If so, weighted value is made of the Q present weight value and the M specified weight value after determining N number of modification.
5. method as claimed in claim 4, which is characterized in that in the judgement Q present weight value and described M finger
Determine weighted value and whether it is less than or equal to after 1, the method also includes:
If it is not, then one or more of described Q present weight value is adjusted, so that Q present weight adjusted
Value and the M specified weight value and less than or equal to 1;
Weighted value is by the Q present weight value adjusted and the M specified weight value group after determining N number of modification
At.
6. a kind of load balancing weight processing system characterized by comprising
Signal input part;
Signal output end;
Processor is connect with the signal input part and the signal output end, to obtain the by the signal input part
The M specified virtual servers are sent to by M specified virtual servers of one user input by the signal output end
Default cloud system, to determine the load balancing for having used the M specified virtual servers by the default cloud system inquiry
The N number of load virtual server used for the first load balancing and first load balancing and each load Virtual Service
The corresponding present weight value of device determines that each load virtual server corresponding with first load balancing corresponds
Modification after weighted value, weighted value after N number of modification is obtained, by weight after N number of load virtual server, N number of modification
The corresponding relationship of value and each load virtual server and weighted value after each modification is sent to by the signal output end
The default cloud system, so that the default cloud system will each load virtual server corresponding with first load balancing
Weighted value be revised as weighted value after corresponding modification, wherein M is integer more than or equal to 1, and N is the integer more than or equal to M,
After N number of modification weighted value and be less than or equal to 1.
7. system as claimed in claim 6, which is characterized in that the processor, to determine that first user has the right
Limit carries out the permission virtual server group of load weighted value modification;When there are P void of having the right in N number of load virtual server
When quasi- server, weighted value after modifying correspondingly with virtual server of each having the right is determined, obtain weight after P modification
Value determines described N number of repair based on weighted value after described P modification and each corresponding present weight value of virtual server of having no right
Change rear weighted value, wherein the server of having the right belongs to the M specified virtual servers and belongs to the permission Virtual Service
Device group, the server of having no right belong to N number of load virtual server and are not belonging to the permission virtual server group, and P is
Integer more than or equal to 1.
8. system as claimed in claim 7, which is characterized in that the processor, in N number of load virtual server
In there is no it is described have the right virtual server when, send a warning message to prompt user's lack of competence to modify the specified Virtual Service
The load weighted value of device.
9. system as claimed in claim 7, which is characterized in that the processor, to obtain user input with each finger
Determine the corresponding specified weight value of virtual server, obtains M specified weight value;It determines in N number of load virtual server
The Q virtual servers undetermined in addition to the M specified virtual servers, determine the Q virtual servers pair undetermined
The present weight value answered obtains Q present weight value;Judge the Q present weight value and the M specified weight value and
Whether 1 is less than or equal to;If so, determining that weighted value is specified by the Q present weight value and the M after N number of modification
Weighted value composition, wherein Q is the integer more than or equal to 0 and less than or equal to N.
10. system as claimed in claim 9, which is characterized in that the processor, to current at described Q of the judgement
Weighted value and the M specified weight value and when being greater than 1, then by one or more progress in the Q present weight value
Adjustment so that Q present weight value adjusted and the M specified weight value and less than or equal to 1;Determine described N number of repair
Change rear weighted value and is made of the Q present weight value adjusted with the M specified weight value.
11. a kind of computer installation, which is characterized in that described device includes processing equipment, and the processing equipment is deposited for executing
The step of realizing method as claimed in any one of claims 1-5 when the computer program stored in reservoir.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
It is realized when being executed by processor such as the step of any one of claim 1-5 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910782739.5A CN110532094B (en) | 2019-08-23 | 2019-08-23 | Load balancing weight value modification method and processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910782739.5A CN110532094B (en) | 2019-08-23 | 2019-08-23 | Load balancing weight value modification method and processing system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110532094A true CN110532094A (en) | 2019-12-03 |
CN110532094B CN110532094B (en) | 2023-03-31 |
Family
ID=68664154
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910782739.5A Active CN110532094B (en) | 2019-08-23 | 2019-08-23 | Load balancing weight value modification method and processing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110532094B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448738A (en) * | 2021-08-31 | 2021-09-28 | 成都派沃特科技股份有限公司 | Method, device, equipment and storage medium for adjusting availability of server |
CN115174583A (en) * | 2022-06-28 | 2022-10-11 | 福州大学 | Server load balancing method based on programmable data plane |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102611735A (en) * | 2011-12-21 | 2012-07-25 | 奇智软件(北京)有限公司 | Load balancing method and system of application services |
US20150113162A1 (en) * | 2013-10-17 | 2015-04-23 | International Business Machines Corporation | Transaction Distribution with an Independent Workload Advisor |
US9116752B1 (en) * | 2009-03-25 | 2015-08-25 | 8X8, Inc. | Systems, methods, devices and arrangements for server load distribution |
US20160088072A1 (en) * | 2014-09-19 | 2016-03-24 | Facebook, Inc. | Balancing load across cache servers in a distributed data store |
US20160182378A1 (en) * | 2014-12-18 | 2016-06-23 | Telefonaktiebolaget L M Ericsson (Publ) | Method and system for load balancing in a software-defined networking (sdn) system upon server reconfiguration |
CN107104835A (en) * | 2017-04-25 | 2017-08-29 | 广东工业大学 | The dynamic modification method and system of a kind of virtualization SAE GW weights |
CN107124472A (en) * | 2017-06-26 | 2017-09-01 | 杭州迪普科技股份有限公司 | Load-balancing method and device, computer-readable recording medium |
CN107231421A (en) * | 2017-05-27 | 2017-10-03 | 北京力尊信通科技股份有限公司 | A kind of virtual machine computing capability dynamic adjusting method, device and system |
CN108809848A (en) * | 2018-05-28 | 2018-11-13 | 北京奇艺世纪科技有限公司 | Load-balancing method, device, electronic equipment and storage medium |
CN109587220A (en) * | 2018-11-09 | 2019-04-05 | 金蝶软件(中国)有限公司 | Load-balancing method, device, computer equipment and storage medium |
CN109618000A (en) * | 2019-01-09 | 2019-04-12 | 广州视源电子科技股份有限公司 | Master-slave switching method, device and system of load balancing service and server |
CN109981696A (en) * | 2017-12-27 | 2019-07-05 | 阿里巴巴集团控股有限公司 | A kind of load-balancing method, device and equipment |
CN110134513A (en) * | 2019-04-17 | 2019-08-16 | 平安科技(深圳)有限公司 | Load-balancing method, device, computer equipment and storage medium |
-
2019
- 2019-08-23 CN CN201910782739.5A patent/CN110532094B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9116752B1 (en) * | 2009-03-25 | 2015-08-25 | 8X8, Inc. | Systems, methods, devices and arrangements for server load distribution |
CN102611735A (en) * | 2011-12-21 | 2012-07-25 | 奇智软件(北京)有限公司 | Load balancing method and system of application services |
US20150113162A1 (en) * | 2013-10-17 | 2015-04-23 | International Business Machines Corporation | Transaction Distribution with an Independent Workload Advisor |
US20160088072A1 (en) * | 2014-09-19 | 2016-03-24 | Facebook, Inc. | Balancing load across cache servers in a distributed data store |
US20160182378A1 (en) * | 2014-12-18 | 2016-06-23 | Telefonaktiebolaget L M Ericsson (Publ) | Method and system for load balancing in a software-defined networking (sdn) system upon server reconfiguration |
CN107104835A (en) * | 2017-04-25 | 2017-08-29 | 广东工业大学 | The dynamic modification method and system of a kind of virtualization SAE GW weights |
CN107231421A (en) * | 2017-05-27 | 2017-10-03 | 北京力尊信通科技股份有限公司 | A kind of virtual machine computing capability dynamic adjusting method, device and system |
CN107124472A (en) * | 2017-06-26 | 2017-09-01 | 杭州迪普科技股份有限公司 | Load-balancing method and device, computer-readable recording medium |
CN109981696A (en) * | 2017-12-27 | 2019-07-05 | 阿里巴巴集团控股有限公司 | A kind of load-balancing method, device and equipment |
CN108809848A (en) * | 2018-05-28 | 2018-11-13 | 北京奇艺世纪科技有限公司 | Load-balancing method, device, electronic equipment and storage medium |
CN109587220A (en) * | 2018-11-09 | 2019-04-05 | 金蝶软件(中国)有限公司 | Load-balancing method, device, computer equipment and storage medium |
CN109618000A (en) * | 2019-01-09 | 2019-04-12 | 广州视源电子科技股份有限公司 | Master-slave switching method, device and system of load balancing service and server |
CN110134513A (en) * | 2019-04-17 | 2019-08-16 | 平安科技(深圳)有限公司 | Load-balancing method, device, computer equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
袁媛等: "服务器负载均衡(Server Load Balancing)在企业中的应用", 《石家庄铁道学院学报》 * |
钱剑锋等: "结构化P2P网络的语义发布/订阅系统负载均衡算法", 《浙江大学学报(工学版)》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448738A (en) * | 2021-08-31 | 2021-09-28 | 成都派沃特科技股份有限公司 | Method, device, equipment and storage medium for adjusting availability of server |
CN115174583A (en) * | 2022-06-28 | 2022-10-11 | 福州大学 | Server load balancing method based on programmable data plane |
CN115174583B (en) * | 2022-06-28 | 2024-03-29 | 福州大学 | Server load balancing method based on programmable data plane |
Also Published As
Publication number | Publication date |
---|---|
CN110532094B (en) | 2023-03-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110851529B (en) | Calculation power scheduling method and related equipment | |
CN104243337B (en) | A kind of method and device across cluster load balance | |
CN1988548B (en) | Method and system for processing speech processing request | |
CN104243405B (en) | A kind of request processing method, apparatus and system | |
CN109561148A (en) | Distributed task dispatching method in edge calculations network based on directed acyclic graph | |
CN110532094A (en) | A kind of load balancing weighted value amending method and processing system | |
CN104901898A (en) | Load balancing method and device | |
CN107819867A (en) | The load-balancing method and device of a kind of cluster network | |
CN101483601A (en) | Scheduling method and apparatus based on service priority | |
CN105791381A (en) | Access control method and apparatus | |
CN110430590A (en) | Network is sliced matching process and device | |
CN107545359A (en) | One kind removal of home vehicle dispatching method and system | |
CN114924751A (en) | Method and device for distributing service access request flow | |
CN109005211B (en) | Micro-cloud deployment and user task scheduling method in wireless metropolitan area network environment | |
CN108055701A (en) | A kind of resource regulating method and base station | |
WO2017070057A1 (en) | Distributed load balancing for access points | |
CN112468573B (en) | Data pushing method, device, equipment and storage medium based on distributed deployment | |
CN108985556B (en) | Method, apparatus, equipment and the computer storage medium of flow scheduling | |
CN105991708A (en) | Selection method of application server, apparatus and system thereof | |
CN104702521A (en) | Load balance method and device | |
CN111225030B (en) | Method and system for selecting micro-service based on trust evaluation strategy | |
CN115499306B (en) | Method and device for constructing flow scheduling model, electronic equipment and storage medium | |
CN114995957B (en) | Container group deployment method, device, electronic equipment and computer readable storage medium | |
CN105187488A (en) | Method for realizing MAS (Multi Agent System) load balancing based on genetic algorithm | |
CN110022359A (en) | A method of end user status is obtained based on mobile terminal data |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: No. 4, 5, 6 and 7, floor 7, unit 2, building 13, No. 1480, North Tianfu Avenue, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610000 Applicant after: Sichuan huianrong Information Technology Co.,Ltd. Address before: No. 4, 5, 6 and 7, floor 7, unit 2, building 13, No. 1480, north section of Tianfu Avenue, high tech Zone, Chengdu, Sichuan 610000 Applicant before: Sichuan huianrong Information Technology Service Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |