CN104102541B - Sign-off dynamic adjusting method and system - Google Patents
Sign-off dynamic adjusting method and system Download PDFInfo
- Publication number
- CN104102541B CN104102541B CN201310118923.2A CN201310118923A CN104102541B CN 104102541 B CN104102541 B CN 104102541B CN 201310118923 A CN201310118923 A CN 201310118923A CN 104102541 B CN104102541 B CN 104102541B
- Authority
- CN
- China
- Prior art keywords
- server
- sign
- task
- preset value
- state
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
- Hardware Redundancy (AREA)
Abstract
一种签核动态调整方法,该方法包括步骤:实时获取当前用来处理签核任务的各个服务器的指定参数;比较所获取的指定参数与第一预设值、第二预设值的大小;判断当前用来处理签核任务的各个服务器所处的状态;根据各个服务器所处的状态,调整用来处理签核任务的服务器的数量;将剩余的签核任务重新分配到调整后的各个服务器。本发明还提供一种签核动态调整系统。本发明可以动态调整处理签核任务时所使用的硬件资源。
A method for dynamically adjusting sign-off, the method comprising the steps of: obtaining in real time specified parameters of each server currently used to process sign-off tasks; comparing the obtained specified parameters with the first preset value and the size of the second preset value; Judging the status of each server currently used to process the sign-off task; adjusting the number of servers used to process the sign-off task according to the status of each server; reallocating the remaining sign-off tasks to the adjusted servers . The invention also provides a sign-off dynamic adjustment system. The present invention can dynamically adjust the hardware resource used when processing the sign-off task.
Description
技术领域technical field
本发明涉及一种资源管理方法及系统,尤其是涉及一种签核动态调整方法及系统。The present invention relates to a method and system for resource management, in particular to a method and system for dynamic adjustment of sign-off.
背景技术Background technique
分布式的应用,极大的提升了签核系统的处理能力。但并不是处理签核任务的所有时间段,都需要同等的硬件资源支持。如果能将硬件资源进行合理的动态调整,充分利用已有硬件资源,则可有效降低签核系统整体成本。Distributed applications have greatly improved the processing capabilities of the sign-off system. However, not all time periods for processing sign-off tasks require the same hardware resource support. If the hardware resources can be dynamically adjusted reasonably and the existing hardware resources can be fully utilized, the overall cost of the sign-off system can be effectively reduced.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种签核动态调整方法,可以动态调整处理签核任务时所使用的硬件资源。In view of the above, it is necessary to provide a method for dynamically adjusting the signoff, which can dynamically adjust the hardware resources used in processing the signoff tasks.
鉴于以上内容,还有必要提供一种签核动态调整系统,可以动态调整处理签核任务时所使用的硬件资源。In view of the above, it is also necessary to provide a dynamic adjustment system for sign-off, which can dynamically adjust the hardware resources used in processing sign-off tasks.
所述签核动态调整方法包括:获取步骤:实时获取当前用来处理签核任务的各个服务器的指定参数;比较步骤:比较所获取的指定参数与第一预设值、第二预设值的大小;判断步骤:依据所述比较结果,判断当前用来处理签核任务的各个服务器所处的状态;调整步骤:根据各个服务器所处的状态,调整用来处理签核任务的服务器的数量;及分配步骤:将剩余的签核任务重新分配到调整后的各个服务器。The dynamic adjustment method for sign-off includes: obtaining step: obtaining in real time the designated parameters of each server currently used to process the sign-off task; comparing step: comparing the obtained designated parameters with the first preset value and the second preset value Size; judging step: according to the comparison result, judging the state of each server currently used to process the sign-off task; adjusting step: adjusting the number of servers used to process the sign-off task according to the state of each server; And distribution step: redistribute the remaining sign-off tasks to the adjusted servers.
所述签核动态调整系统包括:获取模块,用于实时获取当前用来处理签核任务的各个服务器的指定参数;比较模块,用于比较所获取的指定参数与第一预设值、第二预设值的大小;判断模块,用于依据所述比较结果,判断当前用来处理签核任务的各个服务器所处的状态;调整模块,用于根据各个服务器所处的状态,调整用来处理签核任务的服务器的数量;及分配模块,用于将剩余的签核任务重新分配到调整后的各个服务器。The sign-off dynamic adjustment system includes: an acquisition module, used to acquire in real time the specified parameters of each server currently used to process the sign-off task; a comparison module, used to compare the acquired specified parameters with the first preset value, the second The size of the preset value; the judgment module is used to judge the status of each server currently used to process the sign-off task according to the comparison result; the adjustment module is used to adjust the status of each server according to the status of each server. The number of servers for signing off tasks; and an allocation module, configured to reallocate the remaining signing tasks to the adjusted servers.
相较于现有技术,所述的签核动态调整方法及系统,能够针对处理签核任务时各个时间段的资源需求,动态调整其所使用的硬件资源,达到节能、降低成本的目的。Compared with the prior art, the dynamic adjustment method and system for sign-off can dynamically adjust the hardware resources used according to the resource requirements of each time period when processing sign-off tasks, so as to achieve the purpose of energy saving and cost reduction.
附图说明Description of drawings
图1是本发明签核动态调整系统较佳实施例的运行环境图。Fig. 1 is an operating environment diagram of a preferred embodiment of the signoff dynamic adjustment system of the present invention.
图2是本发明签核动态调整系统较佳实施例的功能模块图。Fig. 2 is a functional block diagram of a preferred embodiment of the signoff dynamic adjustment system of the present invention.
图3是本发明签核动态调整方法较佳实施例的流程图。Fig. 3 is a flow chart of a preferred embodiment of the method for dynamically adjusting the signature of the present invention.
主要元件符号说明Description of main component symbols
如下具体实施方式将结合上述附图进一步说明本发明。The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.
具体实施方式detailed description
参阅图1所示,是本发明签核动态调整系统较佳实施例的运行环境图。在进行分布式签核时,通常需要多个服务器1(图1中示出三个作为代表)来完成各项签核任务,所述签核动态调整系统10运行于其中一个或多个服务器1中。所述服务器1中还包括通过数据线或信号线相连的存储器20及CPU 30。Referring to FIG. 1 , it is an operating environment diagram of a preferred embodiment of the signoff dynamic adjustment system of the present invention. When performing distributed sign-off, usually multiple servers 1 (three are shown in FIG. 1 as a representative) are required to complete each sign-off task, and the sign-off dynamic adjustment system 10 runs on one or more of the servers 1 middle. The server 1 also includes a memory 20 and a CPU 30 connected through data lines or signal lines.
参阅图2所示,是本发明签核动态调整系统较佳实施例的功能模块图。Referring to FIG. 2 , it is a functional block diagram of a preferred embodiment of the signoff dynamic adjustment system of the present invention.
所述签核动态调整系统10包括获取模块100、比较模块200、判断模块300、调整模块400、分配模块500及执行模块600。The sign-off dynamic adjustment system 10 includes an acquisition module 100 , a comparison module 200 , a judgment module 300 , an adjustment module 400 , an allocation module 500 and an execution module 600 .
所述获取模块100用于实时获取当前用来处理签核任务的各个服务器1的指定参数。所述指定参数主要为CPU 30的状态参数,例如CPU 30的占用量。本实施例以CPU 30的占用量为例进行说明。所述签核任务包括代理人签核、主管签核等。The obtaining module 100 is used to obtain the specified parameters of each server 1 currently used to process the sign-off task in real time. The specified parameters are mainly state parameters of the CPU 30 , such as the CPU 30 occupancy. In this embodiment, the usage of the CPU 30 is taken as an example for description. The task of signing off includes signing off by an agent, signing off by a supervisor, and the like.
所述比较模块200用于比较所获取的CPU 30的占用量与第一预设值、第二预设值的大小。在本实施例中,所述第一预设值为80%,所述第二预设值为20%。The comparison module 200 is used for comparing the acquired CPU 30 usage with the first preset value and the second preset value. In this embodiment, the first preset value is 80%, and the second preset value is 20%.
所述判断模块300用于依据所述比较结果,判断当前用来处理签核任务的各个服务器1所处的状态。在本实施例中,所述服务器1的状态包括过载、空闲及正常状态。当CPU30的占用量大于第一预设值时,所述服务器1处于过载状态。当CPU 30的占用量小于第二预设值时,所述服务器1处于空闲状态。当CPU 30的占用量介于第一预设值与第二预设值之间(小于或等于第一预设值且大于或等于第二预设值)时,所述服务器1处于正常状态。The judging module 300 is configured to judge the status of each server 1 currently used to process the sign-off task according to the comparison result. In this embodiment, the status of the server 1 includes overload, idle and normal status. When the usage of the CPU 30 is greater than the first preset value, the server 1 is in an overloaded state. When the usage of the CPU 30 is less than the second preset value, the server 1 is in an idle state. When the usage of the CPU 30 is between the first preset value and the second preset value (less than or equal to the first preset value and greater than or equal to the second preset value), the server 1 is in a normal state.
所述调整模块400用于根据各个服务器1所处的状态,调整用来处理签核任务的服务器1的数量。在本实施例中,当服务器1处于过载状态时,所述调整模块400增加一个用来处理签核任务的服务器1。当服务器1处于空闲状态时,所述调整模块400减少一个用来处理签核任务的服务器1。当服务器1处于正常状态时,所述调整模块400维持用来处理签核任务的服务器1的数量不变。The adjustment module 400 is configured to adjust the number of servers 1 used to process the sign-off task according to the status of each server 1 . In this embodiment, when the server 1 is in an overloaded state, the adjustment module 400 adds a server 1 for processing the sign-off task. When the server 1 is in an idle state, the adjustment module 400 reduces one server 1 for processing the sign-off task. When the server 1 is in a normal state, the adjustment module 400 keeps the number of servers 1 used to process the sign-off task unchanged.
所述分配模块500用于将剩余的签核任务重新分配到调整后的各个服务器1。例如,假设之前有两个服务器1用来处理签核任务,而该两个服务器1处于过载状态,于是所述调整模块400增加一个服务器1来处理签核任务,所述分配模块500将之前分配给两个服务器1的剩余的签核任务重新分配给三个服务器1。所述剩余的签核任务是在重新分配前还未完成的签核任务。The allocation module 500 is used to reallocate the remaining sign-off tasks to the adjusted servers 1 . For example, assuming that there were two servers 1 used to process sign-off tasks before, and the two servers 1 were in an overloaded state, then the adjustment module 400 added a server 1 to process sign-off tasks, and the allocation module 500 allocated The remaining sign-off tasks for the two servers 1 are redistributed to the three servers 1 . The remaining sign-off tasks are sign-off tasks that have not been completed before reallocation.
所述执行模块600用于控制调整后的各个服务器1开始执行剩余的签核任务。The executing module 600 is used to control each adjusted server 1 to start executing the remaining sign-off tasks.
参阅图3所示,是本发明签核动态调整方法较佳实施例的流程图。Referring to FIG. 3 , it is a flow chart of a preferred embodiment of the signature dynamic adjustment method of the present invention.
步骤S10,所述获取模块100实时获取当前用来处理签核任务的各个服务器1的指定参数。所述指定参数主要为CPU 30的状态参数,例如CPU 30的占用量。本实施例以CPU 30的占用量为例进行说明。Step S10, the obtaining module 100 obtains in real time the specified parameters of each server 1 currently used to process the sign-off task. The specified parameters are mainly state parameters of the CPU 30 , such as the CPU 30 occupancy. In this embodiment, the usage of the CPU 30 is taken as an example for description.
步骤S12,所述比较模块200比较所获取的CPU 30的占用量与第一预设值、第二预设值的大小。在本实施例中,所述第一预设值为80%,所述第二预设值为20%。Step S12 , the comparison module 200 compares the acquired CPU 30 usage with the first preset value and the second preset value. In this embodiment, the first preset value is 80%, and the second preset value is 20%.
步骤S14,所述判断模块300依据所述比较结果,判断当前用来处理签核任务的各个服务器1所处的状态。在本实施例中,所述服务器1的状态包括过载、空闲及正常状态。Step S14, the judging module 300 judges the status of each server 1 currently used to process the sign-off task according to the comparison result. In this embodiment, the status of the server 1 includes overload, idle and normal status.
步骤S16,所述调整模块400根据各个服务器1所处的状态,调整用来处理签核任务的服务器1的数量。在本实施例中,当服务器1处于过载状态时,所述调整模块400增加一个用来处理签核任务的服务器1。当服务器1处于空闲状态时,所述调整模块400减少一个用来处理签核任务的服务器1。当服务器1处于正常状态时,所述调整模块400维持用来处理签核任务的服务器1的数量不变。Step S16, the adjustment module 400 adjusts the number of servers 1 used to process the sign-off task according to the status of each server 1 . In this embodiment, when the server 1 is in an overloaded state, the adjustment module 400 adds a server 1 for processing the sign-off task. When the server 1 is in an idle state, the adjustment module 400 reduces one server 1 for processing the sign-off task. When the server 1 is in a normal state, the adjustment module 400 keeps the number of servers 1 used to process the sign-off task unchanged.
步骤S18,所述分配模块500将剩余的签核任务重新分配到调整后的各个服务器1。In step S18, the allocation module 500 reallocates the remaining sign-off tasks to the adjusted servers 1 .
步骤S20,所述执行模块600控制调整后的各个服务器1开始执行剩余的签核任务。Step S20, the execution module 600 controls each server 1 after adjustment to start executing the remaining sign-off tasks.
在所述签核动态调整方法中,上述流程循环进行,实时获取各个服务器1的相关参数,从而实时对用来处理签核任务的服务器1的数量进行动态调整,当服务器1过载时增加数量,减轻当前服务器1的压力,当服务器1空闲时减少数量,释放资源,直至减少到剩余最后一台服务器1来处理签核任务。In the dynamic adjustment method for sign-off, the above-mentioned process is carried out cyclically, and the relevant parameters of each server 1 are obtained in real time, thereby dynamically adjusting the number of servers 1 used to process the sign-off task in real time, increasing the number when the server 1 is overloaded, Reduce the pressure on the current server 1, reduce the number of servers 1 when they are idle, and release resources until the last server 1 is left to process the sign-off task.
以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced. Without departing from the spirit and scope of the technical solution of the present invention.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310118923.2A CN104102541B (en) | 2013-04-08 | 2013-04-08 | Sign-off dynamic adjusting method and system |
TW102112639A TWI512485B (en) | 2013-04-08 | 2013-04-10 | Method and system for managing servers for signing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310118923.2A CN104102541B (en) | 2013-04-08 | 2013-04-08 | Sign-off dynamic adjusting method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104102541A CN104102541A (en) | 2014-10-15 |
CN104102541B true CN104102541B (en) | 2018-02-13 |
Family
ID=51670713
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310118923.2A Active CN104102541B (en) | 2013-04-08 | 2013-04-08 | Sign-off dynamic adjusting method and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104102541B (en) |
TW (1) | TWI512485B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106371923A (en) * | 2016-08-30 | 2017-02-01 | 江苏国泰新点软件有限公司 | Method and device for processing task |
CN109815011A (en) * | 2018-12-29 | 2019-05-28 | 东软集团股份有限公司 | A kind of method and apparatus of data processing |
CN112333172B (en) * | 2020-10-28 | 2023-06-30 | 中国农业银行股份有限公司 | Signature verification method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090100172A1 (en) * | 2005-09-19 | 2009-04-16 | Ying Chen | Method and apparatus for monitoring web services resource utilization |
CN102236582A (en) * | 2011-07-15 | 2011-11-09 | 浙江大学 | Method for balanced distribution of virtualization cluster load in a plurality of physical machines |
CN102279771A (en) * | 2011-09-02 | 2011-12-14 | 北京航空航天大学 | Method and system for adaptively allocating resources as required in virtualization environment |
CN102427475A (en) * | 2011-12-08 | 2012-04-25 | 曙光信息产业(北京)有限公司 | System for load balancing scheduling in cloud computing environment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4289436B1 (en) * | 2008-03-18 | 2009-07-01 | 日本電気株式会社 | Load balancing system and load balancing method |
US7809833B2 (en) * | 2008-07-15 | 2010-10-05 | International Business Machines Corporation | Asymmetric dynamic server clustering with inter-cluster workload balancing |
TW201128545A (en) * | 2010-02-01 | 2011-08-16 | Hon Hai Prec Ind Co Ltd | System and method for signing electronic files by distributed servers |
GB2499547B (en) * | 2010-11-22 | 2020-04-22 | Ibm | Load balancing in distributed database |
-
2013
- 2013-04-08 CN CN201310118923.2A patent/CN104102541B/en active Active
- 2013-04-10 TW TW102112639A patent/TWI512485B/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090100172A1 (en) * | 2005-09-19 | 2009-04-16 | Ying Chen | Method and apparatus for monitoring web services resource utilization |
CN102236582A (en) * | 2011-07-15 | 2011-11-09 | 浙江大学 | Method for balanced distribution of virtualization cluster load in a plurality of physical machines |
CN102279771A (en) * | 2011-09-02 | 2011-12-14 | 北京航空航天大学 | Method and system for adaptively allocating resources as required in virtualization environment |
CN102427475A (en) * | 2011-12-08 | 2012-04-25 | 曙光信息产业(北京)有限公司 | System for load balancing scheduling in cloud computing environment |
Also Published As
Publication number | Publication date |
---|---|
TW201506636A (en) | 2015-02-16 |
CN104102541A (en) | 2014-10-15 |
TWI512485B (en) | 2015-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104714851B (en) | A kind of method and device for realizing resource allocation | |
US10355959B2 (en) | Techniques associated with server transaction latency information | |
CN107908479B (en) | Node resource allocation method and device | |
CN109684080B (en) | Centralized task scheduling method, system and storage medium | |
CN104239150B (en) | A kind of method and device of hardware resource adjustment | |
CN108270805B (en) | Resource allocation method and device for data processing | |
JP2015517147A5 (en) | ||
CN107193652A (en) | The flexible resource dispatching method and system of flow data processing system in container cloud environment | |
CN106874100B (en) | Computing resource allocation method and device | |
CN106201723A (en) | The resource regulating method of a kind of data center and device | |
CN109800261B (en) | Dynamic control method and device for double-database connection pool and related equipment | |
CN104104551B (en) | Cloud resource need assessment method and device | |
CN104102541B (en) | Sign-off dynamic adjusting method and system | |
GB2582513A (en) | Automatic diagonal scaling of workloads in a distributed computing environment | |
CN103309723A (en) | Virtual machine resource integration system and method | |
CN106407013A (en) | Resource dynamic dispatching method, apparatus and system, and resource dispatching server | |
WO2015165546A1 (en) | Dynamically scaled web service deployments | |
JP2013196695A (en) | Virtual machine allocation system and method of the same | |
CN103297511B (en) | The dispatching method of the client/server under high dynamic environments and system | |
CN106254470B (en) | Distributed job shard allocation method and device | |
CN105094944B (en) | A kind of virtual machine migration method and device | |
CN108200185B (en) | Method and device for realizing load balance | |
CN104021046A (en) | Method and device for processing applications | |
CN114844843A (en) | Method and device for adjusting number of application instances | |
CN107239341B (en) | Resource conversion method and system and virtual machine resource scheduling system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |