CN110532094B - Load balancing weight value modification method and processing system - Google Patents

Load balancing weight value modification method and processing system Download PDF

Info

Publication number
CN110532094B
CN110532094B CN201910782739.5A CN201910782739A CN110532094B CN 110532094 B CN110532094 B CN 110532094B CN 201910782739 A CN201910782739 A CN 201910782739A CN 110532094 B CN110532094 B CN 110532094B
Authority
CN
China
Prior art keywords
weight values
load
modified
virtual servers
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910782739.5A
Other languages
Chinese (zh)
Other versions
CN110532094A (en
Inventor
阳波
谭曾
唐家乐
张贵荣
高远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Huianrong Information Technology Co ltd
Original Assignee
Sichuan Huianrong Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Huianrong Information Technology Co ltd filed Critical Sichuan Huianrong Information Technology Co ltd
Priority to CN201910782739.5A priority Critical patent/CN110532094B/en
Publication of CN110532094A publication Critical patent/CN110532094A/en
Application granted granted Critical
Publication of CN110532094B publication Critical patent/CN110532094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Abstract

The invention discloses a load balance weight value modification method and a processing system, wherein M appointed virtual servers input by a first user are obtained, then the M appointed virtual servers are sent to a preset cloud system to inquire and determine a first load balance using the M appointed virtual servers, simultaneously, a load virtual server group correspondingly used by the first load balance and a current weight value of each load virtual server group are obtained through inquiry, then, modified weight values respectively corresponding to each load virtual server group and corresponding relations thereof are determined, and the information is fed back to the preset cloud system to realize batch weight value modification according to the modified weight values. According to the technical scheme, not only can complicated weighted value modification operation be avoided, but also the access right of the preset cloud system can be only opened to the load balancing weight processing system, and the technical effects of improving the load balancing weighted value modification efficiency and improving the system safety of the cloud system are achieved.

Description

Load balance weight value modification method and processing system
Technical Field
The invention relates to the technical field of computer communication data processing, in particular to a method and a system for modifying a weight value of load balance.
Background
The load balancing means that: and distributing a certain data processing service work to a plurality of operation units according to a preset work proportion for execution. For example, a certain user data query work can be shared by the server A, the server B, the server C and the server D. Wherein, the first server completes 30% of the total traffic, the second server completes 20% of the total traffic, and the C server and the D server respectively complete 25% of the total traffic. Then, 30% of the server a, 20% of the server B, 25% of the server C, and 25% of the server D are load balancing weight values (hereinafter referred to as weight values) corresponding to the four servers.
The load balance provides a cheap, effective and transparent network processing expansion method for massive network data processing services, so that the bandwidth and the throughput of each server can be increased, the network data processing capacity can be enhanced, and the flexibility and the availability of the network can be improved.
At present, when a load balancing weight value of a certain virtual server needs to be modified, a cloud console needs to be logged in first, the cloud console is inquired to obtain the load balancing corresponding to the virtual server, then a monitoring port corresponding to the load balancing is selected, a virtual server group used for the load balancing is found in the monitoring port, and finally the weight value of the virtual server can be adjusted by combining the weight value conditions of other virtual servers in the virtual server group.
As shown in fig. 1, when a virtual server that needs to modify a weight value is used by multiple load balances, a user needs to repeat operations of modifying the weight value many times, and all modifications are performed manually, which not only results in a large workload, but also results in omission and inconsistency of modifying the weight value of each load balance. Meanwhile, the authority control granularity of the current cloud control console is coarse, the authority of an operator cannot be accurately controlled, and if one account is handed to a plurality of users, the security risk of account leakage exists.
Therefore, the technical problems that the operation is complicated and the safety risk is high in modification of the weight value in load balancing exist in the prior art.
Disclosure of Invention
The application provides a method and a system for modifying weight values in load balancing, which are used for solving the technical problems of complex operation and high safety risk in modifying the weight values in load balancing in the prior art.
A first aspect of the present application provides a method for modifying a weight value in load balancing, which is applied to a load balancing weight processing system, and includes:
obtaining M designated virtual servers and M designated weight values input by a first user, wherein the designated weight values are modified load weight values corresponding to the designated virtual servers one to one, and M is an integer greater than or equal to 1;
sending the M designated virtual servers to a preset cloud system, so as to determine that the load balance using the M designated virtual servers is a first load balance through inquiry of the preset cloud system, and determine that the N load virtual servers used in the first load balance and a current weight value corresponding to each load virtual server respectively, wherein N is an integer greater than or equal to M;
determining N modified weight values based on the M designated weight values, wherein the modified weight values are modified load weight values which correspond to the load virtual servers one to one, the N modified weight values comprise the M designated weight values, and the sum of the N modified weight values is less than or equal to 1;
and sending the N load virtual servers, the N modified weight values and the corresponding relation between each load virtual server and each modified weight value to the preset cloud system, so that the preset cloud system modifies the weight value of each load virtual server into the corresponding modified weight value.
Optionally, the determining N modified weight values based on the M designated weight values includes:
determining an authority virtual server group which has authority to modify the load weight value of the first user;
when P authorized virtual servers exist in the N load virtual servers, the N modified weighted values are determined based on P designated weighted values corresponding to the P authorized virtual servers respectively one by one, wherein the authorized servers belong to the M designated virtual servers and belong to the authority virtual server group, and P is an integer greater than or equal to 1.
Optionally, after the base determines that the first user has the right to modify the load weight value, the method further includes:
and when the authorized virtual server does not exist in the N load virtual servers, sending out warning information to prompt a user to modify the load weight value of the specified virtual server without permission.
Optionally, the determining N modified weight values based on the M designated weight values includes:
determining Q undetermined virtual servers in the N load virtual servers except the M appointed virtual servers, wherein Q is an integer which is greater than or equal to 0 and less than or equal to N;
determining the current load weight values corresponding to the Q to-be-determined virtual servers one to obtain Q current weight values;
judging whether the sum of the Q current weight values and the M appointed weight values is less than or equal to 1;
if so, determining that the N modified weight values consist of the Q current weight values and the M designated weight values.
Optionally, after the determining whether the sum of the Q current weight values and the M designated weight values is less than or equal to 1, the method further includes:
if not, adjusting one or more of the Q current weight values so that the sum of the adjusted Q current weight values and the M appointed weight values is less than or equal to 1;
determining that the N modified weight values consist of the adjusted Q current weight values and the M specified weight values.
A second aspect of the present application provides a load balancing weight processing system, including:
a signal input terminal;
a signal output terminal;
a processor connected to the signal input terminal and the signal output terminal, for obtaining M designated virtual servers and M designated weight values input by a first user through the signal input terminal, sending the M designated virtual servers to a preset cloud system through the signal output terminal, determining a load balance using the M designated virtual servers as a first load balance and a current weight value corresponding to each of the N load virtual servers used for the first load balance through the query of the preset cloud system obtained through the signal input terminal, and determining N modified weight values based on the M designated weight values, and sending the N load virtual servers, the N modified weight values and the corresponding relation between each load virtual server and each modified weight value to the preset cloud system through the signal output end, so that the preset cloud system modifies the weight value of each load virtual server into the corresponding modified weight value, wherein the specified weight value is the modified load weight value corresponding to the specified virtual server one to one, the modified weight value is the modified load weight value corresponding to the load virtual server one to one, the N modified weight values comprise the M specified weight values, the sum of the N modified weight values is less than or equal to 1, M is an integer greater than or equal to 1, and N is an integer greater than or equal to M.
Optionally, the processor is configured to determine an authority virtual server group to which the first user has authority to modify the load weight value, and when P authorized virtual servers exist in the N load virtual servers, determine the N modified weight values based on P designated weight values respectively corresponding to the P authorized virtual servers one by one, where the authorized servers belong to M designated virtual servers and belong to the authority virtual server group, and P is an integer greater than or equal to 1.
Optionally, the processor is configured to, when the authorized virtual server does not exist in the N load virtual servers, issue a warning message to prompt a user to modify a load weight value of the specified virtual server without permission.
Optionally, the processor is configured to determine Q to-be-determined virtual servers, excluding the M designated virtual servers, from the N load virtual servers, determine current load weight values corresponding to the Q to-be-determined virtual servers one to one, respectively, and obtain Q current weight values; judging whether the sum of the Q current weight values and the M appointed weight values is less than or equal to 1; if yes, determining that the N modified weight values consist of the Q current weight values and the M designated weight values, wherein Q is an integer which is greater than or equal to 0 and less than or equal to N.
Optionally, the processor is configured to, when the sum of the Q current weight values and the M designated weight values is greater than 1, adjust one or more of the Q current weight values, so that the sum of the adjusted Q current weight values and the M designated weight values is less than or equal to 1; determining that the N modified weight values consist of the adjusted Q current weight values and the M specified weight values.
A third aspect of the application provides a computer arrangement comprising processing means for implementing the steps of the method according to the first aspect when executing a computer program stored in a memory.
A fourth aspect of the application provides a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to the first aspect.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
according to the technical scheme, M appointed virtual servers input by a first user are obtained, then the M appointed virtual servers are sent to a preset cloud system to inquire and determine first load balance using the M appointed virtual servers, meanwhile, the current weight values of a load virtual server group and each load virtual server group which are correspondingly used in the first load balance are obtained through inquiry, then the modified weight values and the corresponding relations of the modified weight values which are respectively corresponding to each load virtual server group are determined, and the information is fed back to the preset cloud system to achieve batch weight value modification according to the modified weight values. According to the technical scheme, cumbersome weight value modification operation can be avoided, the access right of the preset cloud system can be opened to the load balancing weight processing system, and the technical effects of improving the load balancing weight value modification efficiency and improving the system safety of the cloud system are achieved.
Drawings
Fig. 1 is a flowchart illustrating modification of a weight value in load balancing according to the prior art according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for modifying a weight value of load balancing according to an embodiment of the present invention;
fig. 3 is a structural diagram of a load balancing weight processing system according to an embodiment of the present invention.
Detailed Description
The application provides a method and a system for modifying a weight value in load balancing, which are used for solving the technical problems of complex operation and high safety risk in modifying the weight value in load balancing in the prior art.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows:
according to the technical scheme, M appointed virtual servers input by a first user are obtained, then the M appointed virtual servers are sent to a preset cloud system to inquire and determine first load balance using the M appointed virtual servers, meanwhile, the current weight values of a load virtual server group and each load virtual server group which are correspondingly used in the first load balance are obtained through inquiry, then the modified weight values and the corresponding relations of the modified weight values which are respectively corresponding to each load virtual server group are determined, and the information is fed back to the preset cloud system to achieve batch weight value modification according to the modified weight values. According to the technical scheme, tedious weight value modification operation can be avoided, the access right of the preset cloud system can be opened to the load balancing weight processing system only, and the technical effects of improving the load balancing weight value modification efficiency and improving the system safety of the cloud system are achieved.
The technical solutions of the present application are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present application are detailed descriptions of the technical solutions of the present application, and are not limitations of the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship.
Example one
Referring to fig. 2, an embodiment of the present invention provides a method for modifying a load balancing weight value, applied to a load balancing weight processing system, including:
step 101: obtaining M appointed virtual servers input by a first user, wherein M is an integer greater than or equal to 1;
the specified virtual server can be understood as: the user needs a virtual server that modifies the weight values. During the execution of this step, the user may input the M designated virtual servers through various input devices. For example: the mode of keyboard input, the mode of touch panel input, the mode of voice input and the mode of remote wireless signal input can be adopted. In the prior art, there are various means and methods for inputting the above data, which are not described herein for the sake of brevity,
for example, the user may enter the following data in this step: the virtual server is designated as: a server and b server.
Step 102: sending the M designated virtual servers to a preset cloud system, so as to determine that the load balance using the M designated virtual servers is a first load balance through query of the preset cloud system, and determine that the N load virtual servers used in the first load balance and a current weight value corresponding to each load virtual server respectively, wherein N is an integer greater than or equal to M;
the number of the first load balances can be one or more, and each first load balance can respectively and correspondingly use different virtual server groups. That is, the N load virtual servers may serve as all the virtual servers used by the first load balancing. When the first load balance is Z, the number of the N load virtual servers may be Z × N.
In the execution process of this step, the load balancing weight processing system may forward the M designated virtual servers to a cloud control system. And then, the cloud control system queries and obtains first load balances using the M specified virtual servers, each virtual server group (namely the N load virtual servers) used by the first load balance respectively and a current weight value corresponding to each virtual server group respectively, and feeds back the information data to the load balance weight processing system.
It should be noted that the virtual server group obtained by querying in this step is all the virtual servers used by each first load balancing, and there is no case where a part of the virtual servers used by each first load balancing is obtained by querying.
The implementation example of this step is as follows: bearing the above example, when the load balancing weight processing system assigns "the virtual server is: after the server a and the server b are sent to a preset cloud system (which may be an ali cloud system), the preset cloud system may first obtain: the load balancing using the server a and the server b simultaneously comprises a first load balancing and a second load balancing (both the first load balancing are performed), and the load virtual server used by the first load balancing comprises: the server A comprises a server A, a server B and a server C, wherein the current weight value corresponding to the server A is 10%, the current weight value corresponding to the server B is 40%, and the current weight value corresponding to the server C is 50%; the load virtual server used by the load balancing comprises: the system comprises a server a, a server b, a server d and a server e, wherein the current weight value corresponding to the server a is 20%, the current weight value corresponding to the server b is 10%, the current weight value corresponding to the server d is 40%, and the current weight value corresponding to the server e is 30%; and then feeding the data information back to the load balancing weight processing system.
Step 103: determining modified weight values corresponding to each load virtual server corresponding to the first load balance one by one to obtain N modified weight values, wherein the sum of the N modified weight values is less than or equal to 1;
when the step is executed, the user can input N modified weighted values corresponding to each first load balance according to the requirement; or the system can automatically determine the rest modified weight values according to a preset method on the basis that the user only inputs part of the modified weight values. The preset method complies with the following principle: the sum of the weighted values of the load virtual servers used by each first load balance does not exceed 1. Based on the principle, the technical scheme in the embodiment of the application can adjust the weight values of other load virtual servers correspondingly involved in each first load balance on the basis of modifying and adjusting the modified weight values input by the user, so that the N modified weight values which accord with a natural rule and meet the user requirement are obtained.
It should be noted that, in this step, not only the N modified weight values but also a one-to-one correspondence relationship between each load virtual server and each modified weight value is determined.
The step is executed as follows: after receiving the above example, after the load balancing weight processing system receives the relevant query information fed back by the preset cloud system, the user may input the corresponding N modified weight values for the first load balancing by: the modified weight value corresponding to the server a is 20%, the modified weight value corresponding to the server b is 30%, and the modified weight value corresponding to the server c is 50%; the N modified weighted values corresponding to the load balancing input of the second node are as follows: the modified weight value corresponding to the server a is 40%, the modified weight value corresponding to the server b is 20%, the modified weight value corresponding to the server d is 30%, and the modified weight value corresponding to the server e is 10%. Certainly, in the process, the user can also input the modified weight values of the server a and the server b corresponding to the load balancing a and the load balancing b respectively, and the system can automatically adjust the modified weight values of other servers on the basis that the sum of the N modified weight values corresponding to each load balancing does not exceed 1. Therefore, N modified weight values corresponding to the first load balance and N modified weight values corresponding to the second load balance are obtained.
Step 104: and sending the N load virtual servers, the N modified weight values and the corresponding relation between each load virtual server and each modified weight value to the preset cloud system, so that the preset cloud system modifies the weight value of each load virtual server corresponding to the first load balance into the corresponding modified weight value.
The step is executed as follows: in the above example, after the preset cloud system receives the data items obtained by the load balancing weight processing system in step 103, the weight values of the relevant servers may be modified in batch in the following manner: aiming at first load balance, the weight value of the server a is modified to be 20%, the weight value of the server b is modified to be 30%, and the weight value of the server c is modified to be 50%; for load balancing, the weight value of the server a is modified to be 40%, the weight value of the server b is modified to be 20%, the weight value of the server d is modified to be 30%, and the weight value of the server e is modified to be 10%.
Of course, the technical solution in the embodiment of the present application further includes the following situations: specified virtual service when user inputs When the servers are all virtual servers (i.e., N = M) that form the first load balancing, the embodiments of the present invention are implemented The method can be concretely as follows:
when the load balancing weight processing system receives the following data input by a user: specifying virtualThe server simulation is as follows: a clothes After the server and the server B, the load balancing weight processing system can process the data: "A Server and B Server" to And presetting a cloud system (which can be an Ali cloud system). The preset cloud system may first query for: using both A-server and the load balance of the server B comprises third load balance and fourth load balance (both third and fourth are the first load balance), and third load balance The load virtual servers used for load balancing and load balancing are and are only: server A and server B. In load balancing A The current weight value corresponding to the server is 20%, and the current weight value corresponding to the server B is 30%; a service in butyl load balancing The current weight value corresponding to the server B is 10%, and the current weight value corresponding to the server B is 50%; then presetting a cloud system and then connecting the cloud system with the cloud system And feeding back data information to the load balancing weight processing system.
After the load balancing weight processing system receives the relevant query information fed back by the preset cloud system, the user can use the relevant query information The two modified weighted values corresponding to the load balancing input of the third party are respectively: the modified weight value corresponding to the server A is 10%, the weight value of the server B after the modification is 60%; two modified weight values corresponding to load balancing inputs Comprises the following steps: the modified weight value corresponding to the server A is 30%, and the modified weight value corresponding to the server B is 10%; thereby obtaining C Two modified weight values corresponding to load balancing, and two modified weight values corresponding to load balancing.
When the preset cloud system receives the various items obtained by the load balancing weight processing system through the steps Then, the weight values of the relevant servers can be modified in a batch mode according to the following modes: for load balance of third clothes, A clothes The weight value of the server is modified to 10 percent, and the weight value of the server B is modifiedChanging to 60 percent; for load balancing, of servers A The weight value is modified to 30%, and the weight value of the B server is modified to 10%.
It should be noted that, in this case, the user can input the designated virtual server at the same time Entering a modified weight value corresponding to each designated virtual server; of course, the phase of the preset cloud system feedback can be received After the query information is closed, each modified weight value is input, and the user can set the weight value according to the requirement The technical solution is not further limited.
Therefore, according to the technical scheme in the embodiment of the application, M designated virtual servers input by a first user are obtained, the M designated virtual servers are sent to a preset cloud system to inquire and determine a first load balance using the M designated virtual servers, the load virtual server groups correspondingly used by the first load balance and the current weight value of each load virtual server group are simultaneously inquired and obtained, the modified weight value and the corresponding relation respectively corresponding to each load virtual server group are further determined, and the information is fed back to the preset cloud system to realize batch weight value modification according to the modified weight values. According to the technical scheme, cumbersome weight value modification operation can be avoided, the access right of the preset cloud system can be opened to the load balancing weight processing system, and the technical effects of improving the load balancing weight value modification efficiency and improving the system safety of the cloud system are achieved.
Optionally, the determining N modified weight values based on the M designated weight values includes:
determining an authority virtual server group which has authority to modify the load weight value of the first user;
when P authorized virtual servers exist in the N load virtual servers, the N modified weighted values are determined based on P designated weighted values corresponding to the P authorized virtual servers respectively one by one, wherein the authorized servers belong to the M designated virtual servers and belong to the authority virtual server group, and P is an integer greater than or equal to 1.
That is to say, in the technical solution in the embodiment of the present application, the modification of the load balancing weight value to the virtual server exceeding the authority by the user is also avoided by setting the access authority, so that the technical effect of further improving the security and reliability of the modification of the load balancing authority can be further achieved.
Further, after the base determines that the first user has the right to modify the load weight value, the method further includes:
and when the authorized virtual server does not exist in the N load virtual servers, sending out warning information to prompt a user to modify the load weight value of the specified virtual server without permission.
Further, the determining N modified weight values based on the M designated weight values includes:
determining Q undetermined virtual servers in the N load virtual servers except the M appointed virtual servers, wherein Q is an integer which is greater than or equal to 0 and less than or equal to N;
determining the current load weight values corresponding to the Q virtual servers to be determined one by one, and obtaining Q current weight values;
judging whether the sum of the Q current weight values and the M appointed weight values is less than or equal to 1;
if so, determining that the N modified weight values consist of the Q current weight values and the M designated weight values.
Still further, after the determining whether the sum of the Q current weight values and the M designated weight values is less than or equal to 1, the method further comprises:
if not, adjusting one or more of the Q current weight values so that the sum of the adjusted Q current weight values and the M appointed weight values is less than or equal to 1;
determining that the N modified weight values consist of the adjusted Q current weight values and the M designated weight values.
Through the implementation of the scheme, the system can automatically process the relevant parameters into the modified weight values which accord with the natural rules on the basis of inputting the wrong modified weight values by the user, and therefore the technical effect of further improving the intelligent level of the system is achieved.
Example two
Referring to fig. 3, a second embodiment of the present application provides a load balancing weight processing system, including:
a signal input terminal 201;
a signal output terminal 202;
a processor 203, connected to the signal input end and the signal output end, configured to obtain M designated virtual servers input by a first user through the signal input end, send the M designated virtual servers to a preset cloud system through the signal output end, determine, through query by the preset cloud system, that load balancing using the M designated virtual servers is first load balancing, and current weight values respectively corresponding to the N load virtual servers and each load virtual server used in the first load balancing, determine a modified weight value corresponding to each load virtual server corresponding to the first load balancing one to one, obtain N modified weight values, and send the N load virtual servers, the N modified weight values, and a correspondence relationship between each load virtual server and each modified weight value to the preset cloud system through the signal output end, so that the preset cloud system modifies the weight value of each load virtual server corresponding to the first load balancing into the corresponding modified weight value, where M is an integer greater than or equal to 1, N is an integer greater than or equal to M, and N is less than or equal to 1.
Specifically, the processor 203 may be a general-purpose Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits for controlling program execution.
The load balancing weight processing system may further include a storage device, and the number of the storage devices may be one or more. The Memory device may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk Memory.
Further, the processor 203 is configured to determine that the first user has a right to modify a load weight value; when P authorized virtual servers exist in the N load virtual servers, modified weight values corresponding to each authorized virtual server one to one are determined, P modified weight values are obtained, the N modified weight values are determined based on the P modified weight values and current weight values corresponding to each unauthorized virtual server, wherein the authorized servers belong to the M designated virtual servers and belong to the authority virtual server group, the unauthorized servers belong to the N load virtual servers and do not belong to the authority virtual server group, and P is an integer greater than or equal to 1.
Further, the processor 203 is configured to issue a warning message to prompt a user to modify a load weight value of the specified virtual server without permission when the authorized virtual server does not exist in the N load virtual servers.
Further, the processor 203 is configured to obtain a designated weight value corresponding to each designated virtual server, which is input by a user, and obtain M designated weight values; determining Q to-be-determined virtual servers in the N load virtual servers except the M designated virtual servers, determining current weight values corresponding to the Q to-be-determined virtual servers, and obtaining Q current weight values; judging whether the sum of the Q current weight values and the M appointed weight values is less than or equal to 1; if yes, determining that the N modified weight values consist of the Q current weight values and the M appointed weight values, wherein Q is an integer which is greater than or equal to 0 and less than or equal to N.
Further, the processor 203 is configured to, when the sum of the Q current weight values and the M designated weight values is greater than 1, adjust one or more of the Q current weight values, so that the sum of the adjusted Q current weight values and the M designated weight values is less than or equal to 1; determining that the N modified weight values consist of the adjusted Q current weight values and the M designated weight values.
Various modifications and specific examples of the method for modifying a load balancing weight value in the embodiment of fig. 1 are also applicable to the phased array antenna test system in this embodiment, and those skilled in the art can clearly know the method for implementing the phased array antenna test system in this embodiment through the foregoing detailed description of the method for modifying a load balancing weight value, so that details are not described here for brevity of the description.
An embodiment of the application further provides a computer apparatus comprising processing means for implementing the steps of the method as claimed in any one of the first claims when executing a computer program stored in a memory.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, performs the steps of the method according to an embodiment.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the present application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Further, the steps of the methods in the technical solutions of the present application may be reversed, and the sequence may be changed while still falling within the scope of the invention covered by the present application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (11)

1. A method for modifying a load balancing weight value is applied to a load balancing weight processing system, and is characterized by comprising the following steps:
obtaining M appointed virtual servers input by a first user, wherein M is an integer greater than or equal to 1;
sending the M designated virtual servers to a preset cloud system, so as to determine that the load balance using the M designated virtual servers is a first load balance through query of the preset cloud system, and determine that the N load virtual servers used in the first load balance and a current weight value corresponding to each load virtual server respectively, wherein N is an integer greater than or equal to M;
determining modified weight values corresponding to each load virtual server in a one-to-one correspondence mode, and obtaining N modified weight values, wherein the sum of the N modified weight values is less than or equal to 1;
sending the N load virtual servers, the N modified weight values, and the corresponding relationship between each load virtual server and each modified weight value to the preset cloud system, so that the preset cloud system modifies the weight value of each load virtual server corresponding to the first load balancing into the corresponding modified weight value;
the determining modified weight values corresponding to each load virtual server in the first load balancing manner one to obtain N modified weight values includes: determining an authority virtual server group which has authority to modify the load weight value of the first user;
when P authorized virtual servers exist in the N load virtual servers, determining modified weight values corresponding to each authorized virtual server one to one, and obtaining P modified weight values, wherein the authorized virtual servers belong to the M designated virtual servers and belong to the authority virtual server group, and P is an integer greater than or equal to 1;
and determining the N modified weighted values based on the P modified weighted values and the current weighted value corresponding to each non-right virtual server, wherein the non-right virtual server belongs to the N load virtual servers and does not belong to the authority virtual server group.
2. The method of claim 1, wherein after said determining that the first user has permission for the permission virtual server group for load weight value modification, the method further comprises: and when the authorized virtual server does not exist in the N load virtual servers, sending out warning information to prompt a user to modify the load weight value of the specified virtual server without permission.
3. The method of claim 1, wherein the determining modified weight values for each load virtual server corresponding to the first load balancing in a one-to-one correspondence, and obtaining N modified weight values, comprises: acquiring appointed weight values corresponding to each appointed virtual server input by a user, and acquiring M appointed weight values;
determining Q undetermined virtual servers in the N load virtual servers except the M appointed virtual servers, wherein Q is an integer which is greater than or equal to 0 and less than or equal to N;
determining current weight values corresponding to the Q to-be-determined virtual servers, and obtaining Q current weight values;
judging whether the sum of the Q current weight values and the M appointed weight values is less than or equal to 1;
if yes, determining that the N modified weight values consist of the Q current weight values and the M designated weight values.
4. The method of claim 3, wherein after said determining whether the sum of said Q current weight values and said M specified weight values is less than or equal to 1, the method further comprises: if not, adjusting one or more of the Q current weight values so that the sum of the adjusted Q current weight values and the M appointed weight values is less than or equal to 1;
determining that the N modified weight values consist of the adjusted Q current weight values and the M specified weight values.
5. A processing system based on the load balancing weight value modification method according to any one of claims 1 to 4, comprising:
a signal input terminal;
a signal output terminal;
a processor connected to the signal input terminal and the signal output terminal, configured to obtain M designated virtual servers input by a first user through the signal input terminal, send the M designated virtual servers to a preset cloud system through the signal output terminal, determine, through query by the preset cloud system, that load balancing using the M designated virtual servers is first load balancing, determine current weight values respectively corresponding to the N load virtual servers and each load virtual server used in the first load balancing, determine modified weight values corresponding to each load virtual server corresponding to the first load balancing one to one, obtain N modified weight values, and send, through the signal output terminal, a correspondence relationship among the N load virtual servers, the N modified weight values, and each load virtual server and each modified weight value to the preset cloud system, so that the preset cloud system modifies the weight value of each load virtual server corresponding to the first load balancing to the corresponding modified weight value, where M is an integer greater than or equal to 1, N is an integer greater than or equal to M, and N is less than or equal to 1.
6. The system of claim 5, wherein the processor is configured to determine a set of permission virtual servers that the first user has permission to modify the load weight value; when P authorized virtual servers exist in the N load virtual servers, modified weight values corresponding to each authorized virtual server one to one are determined, P modified weight values are obtained, the N modified weight values are determined based on the P modified weight values and current weight values corresponding to each unauthorized virtual server, wherein the authorized virtual servers belong to the M designated virtual servers and belong to the authority virtual server group, the unauthorized virtual servers belong to the N load virtual servers and do not belong to the authority virtual server group, and P is an integer larger than or equal to 1.
7. The system of claim 6, wherein the processor is configured to issue a warning message to prompt a user to modify the load weight value of the specified virtual server without permission when the authorized virtual server is absent from the N load virtual servers.
8. The system of claim 6, wherein the processor is configured to obtain a designated weight value corresponding to each designated virtual server, which is input by a user, and obtain M designated weight values; determining Q to-be-determined virtual servers in the N load virtual servers except the M designated virtual servers, determining current weight values corresponding to the Q to-be-determined virtual servers, and obtaining Q current weight values; judging whether the sum of the Q current weight values and the M appointed weight values is less than or equal to 1; if yes, determining that the N modified weight values consist of the Q current weight values and the M designated weight values, wherein Q is an integer which is greater than or equal to 0 and less than or equal to N.
9. The system of claim 8, wherein the processor, when said determining the sum of the Q current weight values and the M designated weight values is greater than 1, is configured to adjust one or more of the Q current weight values such that the sum of the adjusted Q current weight values and the M designated weight values is less than or equal to 1; determining that the N modified weight values consist of the adjusted Q current weight values and the M specified weight values.
10. A computer arrangement, characterized in that the arrangement comprises processing means for implementing the steps of the method according to any of claims 1-4 when executing a computer program stored in a memory.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201910782739.5A 2019-08-23 2019-08-23 Load balancing weight value modification method and processing system Active CN110532094B (en)

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 CN110532094A (en) 2019-12-03
CN110532094B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448738B (en) * 2021-08-31 2021-11-12 成都派沃特科技股份有限公司 Method, device, equipment and storage medium for adjusting availability of server
CN115174583B (en) * 2022-06-28 2024-03-29 福州大学 Server load balancing method based on programmable data plane

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611735A (en) * 2011-12-21 2012-07-25 奇智软件(北京)有限公司 Load balancing method and system of application services
US9116752B1 (en) * 2009-03-25 2015-08-25 8X8, Inc. Systems, methods, devices and arrangements for server load distribution
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, system and the server of load balancing service
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9584595B2 (en) * 2013-10-17 2017-02-28 International Business Machines Corporation Transaction distribution with an independent workload advisor
US9871855B2 (en) * 2014-09-19 2018-01-16 Facebook, Inc. Balancing load across cache servers in a distributed data store
US9497123B2 (en) * 2014-12-18 2016-11-15 Telefonaktiebolaget L M Ericsson (Publ) Method and system for load balancing in a software-defined networking (SDN) system upon server reconfiguration

Patent Citations (10)

* Cited by examiner, † Cited by third party
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
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, system and the server of load balancing service
CN110134513A (en) * 2019-04-17 2019-08-16 平安科技(深圳)有限公司 Load-balancing method, device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
服务器负载均衡(Server Load Balancing)在企业中的应用;袁媛等;《石家庄铁道学院学报》(第03期);第95-97页 *
结构化P2P网络的语义发布/订阅系统负载均衡算法;钱剑锋等;《浙江大学学报(工学版)》(第10期);第1710-1718页 *

Also Published As

Publication number Publication date
CN110532094A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
US10079879B2 (en) Weighted rendezvous hashing
CN104079543B (en) The acquisition methods of intelligent domestic system supervision authority, device and system
CN108712423A (en) Right management method and device
CN110532094B (en) Load balancing weight value modification method and processing system
CN102004673A (en) Processing method and system of multi-core processor load balancing
CN107846289B (en) Method, electronic equipment and system for supporting artificial participation block chain decision
CN106534082B (en) User registration method and device
CN103684878A (en) Operating command parameter control method and device
CN106301772A (en) Cipher set-up method, device and for arranging the device of password
CN105227595A (en) A kind of message method and equipment
CN105447110A (en) Method for rapidly loading data in batches of database cluster and loading system
CN105376347A (en) IP address allocation method and system
CN106604253B (en) Wireless networking method and system
CN106453349A (en) An account number login method and apparatus
CN104202834A (en) Control method, controller and electronic equipment
WO2017070057A1 (en) Distributed load balancing for access points
CN106576257A (en) Network parameter adjustment method and base station device
CN106302400A (en) The processing method and processing device of access request
CN113177179A (en) Data request connection management method, device, equipment and storage medium
CN104898472A (en) Terminal control method and device
CN113904871B (en) Access method of network slice, PCF entity, terminal and communication system
CN104852986A (en) Method and device for providing newly-added function
CN104243587A (en) Load balancing method and system for message servers
EP3972199A1 (en) Open interface management method, electronic device, and storage medium
CN112019547B (en) Network traffic evaluation method, attack detection method, server, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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