WO2020118946A1 - Automatically and dynamically adjusted weight value rotation module design for avoiding weight imbalance - Google Patents

Automatically and dynamically adjusted weight value rotation module design for avoiding weight imbalance Download PDF

Info

Publication number
WO2020118946A1
WO2020118946A1 PCT/CN2019/078290 CN2019078290W WO2020118946A1 WO 2020118946 A1 WO2020118946 A1 WO 2020118946A1 CN 2019078290 W CN2019078290 W CN 2019078290W WO 2020118946 A1 WO2020118946 A1 WO 2020118946A1
Authority
WO
WIPO (PCT)
Prior art keywords
weight
value
rotation
threshold
threshold value
Prior art date
Application number
PCT/CN2019/078290
Other languages
French (fr)
Chinese (zh)
Inventor
郭书玮
Original Assignee
江苏华存电子科技有限公司
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 江苏华存电子科技有限公司 filed Critical 江苏华存电子科技有限公司
Publication of WO2020118946A1 publication Critical patent/WO2020118946A1/en

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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Abstract

Provided is a method of automatically and dynamically adjusted weight value rotation module design for avoiding weight imbalance, multi-connected plural required inputs represent a need for simultaneously accepting more than one instruction requirements, and in combination with a corresponding number of weight inputs, a granted output value is obtained through weight calculation. The method sets a group of threshold values, which are used to judge whether the difference between a maximum weight and a minimum weight is too large, if yes, the maximum weight is deleted, meanwhile, the deleted value is kept and used to merge the next weight value to be compared with the threshold values again; the method discloses a module design suitable for data weight sorting rotation, the weight rotation design is mainly applied to applications related to data priority processing required by a system when multiple machines implement load balance, and the method uses the threshold value to detect the weight error, and then adjusts the data rotation sorting, realizes the feature of online automatic and dynamic adjustment of weights, and improves flexibility and efficiency of rotation scheduling.

Description

一种避免权重失衡之自动动态调整权重数值轮替模块设计Design of an automatic dynamic adjustment weight value rotation module to avoid weight imbalance 技术领域Technical field
本发明涉及权重数值轮替模块设计技术领域,具体为一种避免权重失衡之自动动态调整权重数值轮替模块设计。The invention relates to the technical field of weight value rotation module design, in particular to an automatic dynamic adjustment of weight value rotation module design to avoid weight imbalance.
背景技术Background technique
对应在多台机器实现负载均衡得时候,通常使用轮替调度算法,轮替调度算法就是以循环的方式依次将请求调度不同的服务器,并选出当前轮替的伺服器,其优点在于其简洁性,无需记录当前所有连接状态。Corresponding to when multiple machines achieve load balancing, the round-robin scheduling algorithm is usually used. The round-robin scheduling algorithm is to schedule requests to different servers in a round-robin manner and select the current round-robin server. Its advantage is its simplicity. No need to record all current connection status.
在现行的轮替调度算法中增加权重的加权计算,并称为权重轮替调度算法,主要对应于多台伺服器指令要求;目前权重轮替调度以输入后权重计算来进行轮替排序,其排序方式有一定的规律.假设某一特定权重数值过高,其执行序列将被某一特定伺服器长时间占有,为达到平衡权重排序,避免高权重数值占据运算资源,提出利用门槛值侦测自动动态调整权重数值数值轮替设计。The weighted calculation of adding weight to the current round-robin scheduling algorithm is called the weight round-robin scheduling algorithm, which mainly corresponds to the instruction requirements of multiple servers; the current weight round-robin scheduling uses the input weight calculation to perform round-robin sequencing. There are certain rules in the sorting method. Assuming that a specific weight value is too high, its execution sequence will be occupied by a specific server for a long time. In order to achieve balanced weight sorting and avoid high weight values occupying computing resources, it is proposed to use threshold detection Automatically and dynamically adjust the weight value numerical rotation design.
发明内容Summary of the invention
本发明的目的在于提供一种避免权重失衡之自动动态调整权重数值轮替模块设计,以解决上述背景技术中提出的问题。The purpose of the present invention is to provide an automatic dynamic adjustment weight value rotation module design to avoid weight imbalance to solve the problems raised in the background art.
为实现上述目的,本发明提供如下技术方案:一种避免权重失衡之自动动态调整权重数值轮替模块设计,多衔接复数要求输入,代表需同时接受复数以上的指令要求,搭配相对应数量的权重输入,藉由权重计算得出授予输出值。In order to achieve the above object, the present invention provides the following technical solutions: an automatic dynamic adjustment of weight value rotation module design to avoid weight imbalance, multiple connection of multiple request input, representing the need to simultaneously accept more than one command request, with a corresponding number of weights Input, the weighted output value is calculated by weight calculation.
优选的,设定一组门槛值,利用此门槛值去判断其最大权重与最小权重相差是否过大,一但判断过大,则对最大权重进行删减,同时保留删减的数值,用于合并下一次权重数值再与门槛值比较。Preferably, a set of threshold values is set, and the threshold value is used to determine whether the difference between the maximum weight and the minimum weight is too large. Once the judgment is too large, the maximum weight is truncated, and the truncated value is retained for The next weight value is combined and compared with the threshold value.
优选的,最大权重侦测与调整模组结构如下:利用门槛值当判断机制,公式为“(最大权重数值-最小权重数值)/2<门槛值”,一但超过门槛值,最大权重数值将删减为近一半的数值;如果小于门槛值,则保持原值,另外其删减过后的余值会在填补在下一次的权重比较,直到小于门槛值。Preferably, the structure of the maximum weight detection and adjustment module is as follows: using the threshold value as the judgment mechanism, the formula is "(maximum weight value-minimum weight value)/2<threshold value". Once the threshold value is exceeded, the maximum weight value will be It is reduced to nearly half of the value; if it is less than the threshold value, the original value is maintained, and the remaining value after its reduction will be filled in the next weight comparison until it is less than the threshold value.
与现有技术相比,本发明的有益效果是:本发明公开了适用于资料权重排序轮替得模块设计,权重轮替设计主要应用于多台机器实现负载均衡时系统必须对资料要求进行优先顺序处理等相关应用,而本发明藉由门槛值来侦测权重误差,进而调整资料轮替排序,达到线上自动动态调变权重的特性,增加轮替排列弹性与效率。Compared with the prior art, the beneficial effects of the present invention are: The present invention discloses a module design suitable for data weight sorting rotation. The weight rotation design is mainly applied to multiple machines to achieve load balancing. The system must prioritize data requirements. Sequential processing and other related applications, and the present invention detects the weight error through the threshold value, and then adjusts the data rotation order, to achieve the characteristics of online automatic dynamic adjustment of weight, and increase the flexibility and efficiency of the rotation arrangement.
附图说明BRIEF DESCRIPTION
图1为制式4要求输入权重轮替调度设计输入输出示意图;Figure 1 is a schematic diagram of the input and output of the system 4 requiring input weight rotation scheduling design;
图2为输入输出关系图;Figure 2 is the input and output relationship diagram;
图3为本发明提出用以门槛值来进行调整权重之权重侦测与调整模组结构图;3 is a structural diagram of a weight detection and adjustment module proposed by the present invention for adjusting weights using a threshold value;
图4最大权重侦测与调整模组结构图;Figure 4 Structure diagram of the maximum weight detection and adjustment module;
图5为最大权重侦测与调整模组另一结构图;5 is another structural diagram of the maximum weight detection and adjustment module;
图6为在自动动态调整权重数值轮替设计下输入输出关系图。Fig. 6 is the input-output relationship diagram under the design of automatic dynamic adjustment weight value rotation.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.
请参阅图1-6,本发明提供一种技术方案:一种避免权重失衡之自动动态调整权重数值轮替模块设计,多衔接复数要求输入,代表需同时接受复数以上的指令要求,搭配相对应数量的权重输入,藉由权重计算得出授予输出值。Please refer to Figures 1-6, the present invention provides a technical solution: an automatic dynamic adjustment weight value rotation module design to avoid weight imbalance, multiple connection multiple input requirements, which means that more than one command request must be accepted at the same time, matching The weight of the quantity is input, and the granted output value is calculated by the weight.
本发明设定一组门槛值,利用此门槛值去判断其最大权重与最小权重相差是否过大,一但判断过大,则对最大权重进行删减,同时保留删减的数值,用于合并下一次权重数值再与门槛值比较,这样的做法能有效地避免权重失衡的问题,且能保留其权重的大小优先特性。The present invention sets a set of threshold values, and uses this threshold value to judge whether the difference between the maximum weight and the minimum weight is too large. Once the judgment is too large, the maximum weight is truncated, while the truncated value is retained for consolidation The next time the weight value is compared with the threshold value, this approach can effectively avoid the problem of weight imbalance, and can retain its weight size priority characteristics.
本发明中,最大权重侦测与调整模组结构如下:利用门槛值当判断机制,公式为“(最大权重数值-最小权重数值)/2<门槛值”,一但超过门槛值,最大权重数值将删减为近一半的数值;如果小于门槛值,则保持原值,另外其删减过后的余值会在填补在下一次的权重比较,直到小于门槛值。In the present invention, the structure of the maximum weight detection and adjustment module is as follows: the threshold value is used as the judgment mechanism, the formula is "(maximum weight value-minimum weight value)/2<threshold value", but once the threshold value is exceeded, the maximum weight value It will be reduced to nearly half of the value; if it is less than the threshold value, the original value will be maintained. In addition, the remaining value after its reduction will be filled in the next weight comparison until it is less than the threshold value.
如图1所示,要求输入为4位元输入,权重位元为4位元和授予输出为4位元。As shown in Figure 1, the input is required to be 4-bit input, the weight bit is 4 bits and the grant output is 4 bits.
如图2所示,假设输入为A,B,C,D,权重分别15,3,1,2,其输出为AAAAAAAAAAAAAAABBBCDD。As shown in Figure 2, suppose the inputs are A, B, C, D, and the weights are 15, 3, 1, 2, and the output is AAAAAAAAAAAAAAABBBCDD.
如图5所示,假设权重0至3,分别为15,3,1,2,而门槛值设定为4.则最大选择器输出为15,最小选择器为1.根据公式(15-1)/2>4,其最大权重将其删减为7,而删减过后的余值8将回填至下一次权重值。As shown in Figure 5, suppose the weights 0 to 3 are 15, 3, 1, 2, and the threshold is set to 4. The maximum selector output is 15, and the minimum selector is 1. According to the formula (15-1 )/2>4, its maximum weight is reduced to 7, and the residual value 8 after the reduction will be backfilled to the next weight value.
如图6所示,在自动动态调整权重数值轮替设计下,假设输入为A,B,C,D.权重分别15,3,1,2,其输出为AAAAAAABBBCDD…AAAAAAAA。As shown in Fig. 6, under the design of automatic dynamic adjustment of weight value rotation, suppose the inputs are A, B, C, D. The weights are 15, 3, 1, 2, and the output is AAAAAAABBBCDD...AAAAAAAA.
综上所述,本发明公开了适用于资料权重排序轮替得模块设计,权重轮替设计主要应用于多台机器实现负载均衡时系统必须对资料要求进行优先顺序处理等相关应用,而本发明藉由门槛值来侦测权重误差,进而调整资料轮替排序,达到线上自动动态调变权重的特性,增加轮替排列弹性与效率。In summary, the present invention discloses the design of a module suitable for data weight sorting rotation. The weight rotation design is mainly applied to related applications in which the system must prioritize the data requirements when multiple machines achieve load balancing. Threshold values are used to detect weight errors, and then the data rotation sequence is adjusted to achieve the characteristics of online automatic dynamic adjustment of weights, increasing the flexibility and efficiency of the rotation arrangement.
尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同物限定。Although the embodiments of the present invention have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, and substitutions can be made to these embodiments without departing from the principles and spirit of the present invention And variations, the scope of the invention is defined by the appended claims and their equivalents.

Claims (3)

  1. 一种避免权重失衡之自动动态调整权重数值轮替模块设计,其特征在于:多衔接复数要求输入,代表需同时接受复数以上的指令要求,搭配相对应数量的权重输入,藉由权重计算得出授予输出值。An automatic dynamic adjustment weight value rotation module design to avoid weight imbalance, which is characterized by multiple connection multiple request input, which means that it needs to accept more than one command request at the same time, with a corresponding number of weight input, calculated by weight Grant the output value.
  2. 根据权利要求1所述的一种避免权重失衡之自动动态调整权重数值轮替模块设计,其特征在于:设定一组门槛值,利用此门槛值去判断其最大权重与最小权重相差是否过大,一但判断过大,则对最大权重进行删减,同时保留删减的数值,用于合并下一次权重数值再与门槛值比较。The design of an automatic dynamic adjustment weight value rotation module to avoid weight imbalance according to claim 1, characterized in that: a set of threshold values is set, and the threshold value is used to determine whether the difference between the maximum weight and the minimum weight is too large Once the judgment is too large, the maximum weight is deleted, while the deleted value is retained, which is used to merge the next weight value and compare it with the threshold value.
  3. 根据权利要求1所述的一种避免权重失衡之自动动态调整权重数值轮替模块设计,其特征在于:最大权重侦测与调整模组结构如下:利用门槛值当判断机制,公式为“(最大权重数值-最小权重数值)/2<门槛值”,一但超过门槛值,最大权重数值将删减为近一半的数值;如果小于门槛值,则保持原值,另外其删减过后的余值会在填补在下一次的权重比较,直到小于门槛值。The design of an automatic dynamic adjustment weight value rotation module to avoid weight imbalance according to claim 1, characterized in that: the structure of the maximum weight detection and adjustment module is as follows: the threshold value is used as the judgment mechanism, and the formula is "(max. Weight value-minimum weight value)/2<threshold value", once the threshold value is exceeded, the maximum weight value will be reduced to nearly half of the value; if it is less than the threshold value, the original value will be retained, and the remaining value after its reduction Will fill in the next weight comparison until it is less than the threshold.
PCT/CN2019/078290 2018-12-09 2019-03-15 Automatically and dynamically adjusted weight value rotation module design for avoiding weight imbalance WO2020118946A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811499855.8 2018-12-09
CN201811499855.8A CN109558247A (en) 2018-12-09 2018-12-09 The automatic dynamic adjustment weighted value alternation module design that one kind avoids weight unbalance

Publications (1)

Publication Number Publication Date
WO2020118946A1 true WO2020118946A1 (en) 2020-06-18

Family

ID=65869484

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/078290 WO2020118946A1 (en) 2018-12-09 2019-03-15 Automatically and dynamically adjusted weight value rotation module design for avoiding weight imbalance

Country Status (2)

Country Link
CN (1) CN109558247A (en)
WO (1) WO2020118946A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853614A (en) * 2012-12-06 2014-06-11 财团法人资讯工业策进会 Workload distribution device and workload distribution method thereof
CN106817340A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 The method of early warning decision, node and subsystem
CN107124472A (en) * 2017-06-26 2017-09-01 杭州迪普科技股份有限公司 Load-balancing method and device, computer-readable recording medium
CN108632394A (en) * 2018-08-13 2018-10-09 北京奇艺世纪科技有限公司 A kind of web cluster load balancing method of adjustment and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853614A (en) * 2012-12-06 2014-06-11 财团法人资讯工业策进会 Workload distribution device and workload distribution method thereof
CN106817340A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 The method of early warning decision, node and subsystem
CN107124472A (en) * 2017-06-26 2017-09-01 杭州迪普科技股份有限公司 Load-balancing method and device, computer-readable recording medium
CN108632394A (en) * 2018-08-13 2018-10-09 北京奇艺世纪科技有限公司 A kind of web cluster load balancing method of adjustment and device

Also Published As

Publication number Publication date
CN109558247A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
US9760527B2 (en) Disaggregated server architecture for data centers
US20190188024A1 (en) Virtual machine hot migration method and apparatus, and system
US11669372B2 (en) Flexible allocation of compute resources
US8745335B2 (en) Memory arbiter with latency guarantees for multiple ports
CN103327072B (en) A kind of method of cluster load balance and system thereof
EP2515504B1 (en) Content delivery method, system and schedule server
CN104536832B (en) A kind of virtual machine deployment method
US10613898B2 (en) Apparatuses and methods for flexible scheduling in a database system
US8645545B2 (en) Balancing the loads of servers in a server farm based on an angle between two vectors
WO2015101091A1 (en) Distributed resource scheduling method and device
CN107317864B (en) Data equalization method and device of storage equipment
US10996985B2 (en) Dynamic queue depth management with non-volatile memory controllers
CN111131486B (en) Load adjustment method and device of execution node, server and storage medium
CN106528270A (en) Automatic migration method and system of virtual machine based on OpenStack cloud platform
JP4745335B2 (en) Dynamic load balancing
US10275371B2 (en) Method and apparatus for controlling memory operation
TW201738742A (en) Processor power monitoring and control with dynamic load balancing
CN112882818A (en) Task dynamic adjustment method, device and equipment
CN106293917A (en) The optimization method of a kind of I O scheduling cfq algorithm and system
US20110185366A1 (en) Load-balancing of processes based on inertia
WO2020118946A1 (en) Automatically and dynamically adjusted weight value rotation module design for avoiding weight imbalance
US20220141140A1 (en) Resource management system and resource management method
US11042394B2 (en) Method for processing input and output on multi kernel system and apparatus for the same
WO2021253817A1 (en) Interconnection channel adjusting method, apparatus, system and device, and medium
CN105204945B (en) A kind of load balance device under big data background

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19894435

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19894435

Country of ref document: EP

Kind code of ref document: A1