TW201506636A - Method and system for managing servers for signing - Google Patents
Method and system for managing servers for signing Download PDFInfo
- Publication number
- TW201506636A TW201506636A TW102112639A TW102112639A TW201506636A TW 201506636 A TW201506636 A TW 201506636A TW 102112639 A TW102112639 A TW 102112639A TW 102112639 A TW102112639 A TW 102112639A TW 201506636 A TW201506636 A TW 201506636A
- Authority
- TW
- Taiwan
- Prior art keywords
- server
- sign
- state
- task
- preset value
- Prior art date
Links
Abstract
Description
本發明涉及一種資源管理方法及系統,尤其是涉及一種簽核動態調整方法及系統。The present invention relates to a resource management method and system, and more particularly to a signoff core dynamic adjustment method and system.
分散式的應用,極大的提升了簽核系統的處理能力。但並不是處理簽核任務的所有時間段,都需要同等的硬體資源支援。如果能將硬體資源進行合理的動態調整,充分利用已有硬體資源,則可有效降低簽核系統整體成本。Decentralized applications greatly improve the processing power of the sign-off system. But not all time periods for handling sign-off tasks require equal hardware resources support. If the hardware resources can be reasonably dynamically adjusted and the existing hardware resources can be fully utilized, the overall cost of the sign-off system can be effectively reduced.
鑒於以上內容,有必要提供一種簽核動態調整方法及系統,可以動態調整處理簽核任務時所使用的硬體資源。In view of the above, it is necessary to provide a method and system for dynamically adjusting the sign-off, which can dynamically adjust the hardware resources used in the process of signing the sign-off task.
所述簽核動態調整方法包括:獲取步驟:即時獲取當前用來處理簽核任務的各個伺服器的指定參數;比對步驟:比對所獲取的指定參數與第一預設值、第二預設值的大小;判斷步驟:依據所述比對結果,判斷當前用來處理簽核任務的各個伺服器所處的狀態;調整步驟:根據各個伺服器所處的狀態,調整用來處理簽核任務的伺服器的數量;及分配步驟:將剩餘的簽核任務重新分配到調整後的各個伺服器。The sign-off dynamic adjustment method includes: an obtaining step: acquiring a specified parameter of each server currently used for processing the sign-off task; comparing steps: comparing the obtained specified parameter with the first preset value, the second pre- Setting the size of the value; determining step: judging the state of each server currently used to process the sign-off task according to the comparison result; adjusting step: adjusting the signing according to the state of each server The number of servers for the task; and the allocation step: reassign the remaining sign-off tasks to the adjusted servers.
所述簽核動態調整系統包括:獲取模組,用於即時獲取當前用來處理簽核任務的各個伺服器的指定參數;比對模組,用於比對所獲取的指定參數與第一預設值、第二預設值的大小;判斷模組,用於依據所述比對結果,判斷當前用來處理簽核任務的各個伺服器所處的狀態;調整模組,用於根據各個伺服器所處的狀態,調整用來處理簽核任務的伺服器的數量;及分配模組,用於將剩餘的簽核任務重新分配到調整後的各個伺服器。The sign-off dynamic adjustment system includes: an acquisition module, configured to acquire a specified parameter of each server currently used to process the sign-off task, and a comparison module, configured to compare the obtained parameter with the first pre-prepared parameter Setting a value, a size of the second preset value; a determining module, configured to determine, according to the comparison result, a state in which each server currently used to process the sign-off task is located; and an adjustment module, configured to use each servo The state of the device, adjusting the number of servers used to process the sign-off task; and the allocation module for reallocating the remaining sign-off tasks to the adjusted servers.
相較於習知技術,本發明所述之簽核動態調整方法及系統,能夠針對處理簽核任務時各個時間段的資源需求,動態調整其所使用的硬體資源,達到節能、降低成本的目的。Compared with the prior art, the sign-off dynamic adjustment method and system of the present invention can dynamically adjust the hardware resources used for each time period of the sign-off task, thereby achieving energy saving and cost reduction. purpose.
1‧‧‧伺服器1‧‧‧Server
10‧‧‧簽核動態調整系統10‧‧‧Signature dynamic adjustment system
20‧‧‧儲存器20‧‧‧Storage
30‧‧‧CPU30‧‧‧CPU
100‧‧‧獲取模組100‧‧‧Get the module
200‧‧‧比對模組200‧‧‧ alignment module
300‧‧‧判斷模組300‧‧‧Judgement module
400‧‧‧調整模組400‧‧‧Adjustment module
500‧‧‧分配模組500‧‧‧Distribution module
600‧‧‧執行模組600‧‧‧Execution module
圖1係為本發明簽核動態調整系統較佳實施方式之運行環境圖。1 is a diagram showing an operating environment of a preferred embodiment of a sign-off dynamic adjustment system of the present invention.
圖2係為本發明簽核動態調整系統較佳實施方式之功能模組圖。2 is a functional block diagram of a preferred embodiment of the sign-off dynamic adjustment system of the present invention.
圖3係為本發明簽核動態調整方法較佳實施方式之流程圖。3 is a flow chart of a preferred embodiment of the sign-off dynamic adjustment method of the present invention.
參閱圖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 sign-off dynamic adjustment system of the present invention. In the case of decentralized sign-off, a plurality of servers 1 (three are shown as representative in FIG. 1) are usually required to complete various sign-off tasks, and the sign-off dynamic adjustment system 10 operates on one or more of the servos. In the device 1. The server 1 further includes a storage unit 20 and a CPU 30 connected through a data line or a signal line.
參閱圖2所示,係為本發明簽核動態調整系統較佳實施方式之功能模組圖。Referring to FIG. 2, it is a functional module diagram of a preferred embodiment of the sign-off 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 determination 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 configured to acquire 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 occupancy of the CPU 30. This embodiment will be described by taking the occupancy of the CPU 30 as an example. The signing task includes an agent signing, a supervisor signing, and the like.
所述比對模組200用於比對所獲取的CPU 30的佔用量與第一預設值、第二預設值的大小。在本實施方式中,所述第一預設值為80%,所述第二預設值為20%。The comparison module 200 is configured to compare the occupied amount of the CPU 30 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的狀態包括超載、空閒及正常狀態。當CPU 30的佔用量大於第一預設值時,所述伺服器1處於超載狀態。當CPU 30的佔用量小於第二預設值時,所述伺服器1處於空閒狀態。當CPU 30的佔用量介於第一預設值與第二預設值之間(小於或等於第一預設值且大於或等於第二預設值)時,所述伺服器1處於正常狀態。The determining module 300 is configured to determine, according to the comparison result, a state in which each server 1 currently used to process the sign-off task is located. In this embodiment, the state of the server 1 includes an overload, an idle state, and a normal state. When the occupancy of the CPU 30 is greater than the first preset value, the server 1 is in an overload state. When the occupancy of the CPU 30 is less than the second preset value, the server 1 is in an idle state. When the occupancy 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 state of each server 1. In the present embodiment, when the server 1 is in an overload 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 a server 1 for processing the sign-off task. When the server 1 is in a normal state, the adjustment module 400 maintains the number of servers 1 used to process the sign-off task unchanged.
所述分配模組500用於將剩餘的簽核任務重新分配到調整後的各個伺服器1。例如,假設之前有兩個伺服器1用來處理簽核任務,而該兩個伺服器1處於超載狀態,於是所述調整模組400增加一個伺服器1來處理簽核任務,所述分配模組500將之前分配給兩個伺服器1的剩餘的簽核任務重新分配給三個伺服器1。所述剩餘的簽核任務是在重新分配前還未完成的簽核任務。The distribution module 500 is configured to reallocate the remaining sign-off tasks to the adjusted servers 1 . For example, suppose that there are two servers 1 used to process the sign-off task, and the two servers 1 are in an overload state, so the adjustment module 400 adds a server 1 to process the sign-off task, the distribution mode. The group 500 reassigns the remaining sign-off tasks previously assigned to the two servers 1 to the three servers 1. The remaining sign-off tasks are sign-off tasks that have not been completed before redistribution.
所述執行模組600用於控制調整後的各個伺服器1開始執行剩餘的簽核任務。The execution module 600 is configured to control each of the adjusted servers 1 to start executing the remaining sign-off tasks.
參閱圖3所示,係為本發明簽核動態調整方法較佳實施方式之流程圖。Referring to FIG. 3, it is a flowchart of a preferred embodiment of the sign-off dynamic adjustment method of the present invention.
步驟S10,所述獲取模組100即時獲取當前用來處理簽核任務的各個伺服器1的指定參數。所述指定參數主要為CPU 30的狀態參數,例如CPU 30的佔用量。本實施方式以CPU 30的佔用量為例進行說明。In step S10, the obtaining module 100 acquires 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 occupancy of the CPU 30. This embodiment will be described by taking the occupancy of the CPU 30 as an example.
步驟S12,所述比對模組200比對所獲取的CPU 30的佔用量與第一預設值、第二預設值的大小。在本實施方式中,所述第一預設值為80%,所述第二預設值為20%。In step S12, the comparison module 200 compares the acquired amount of the CPU 30 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的狀態包括超載、空閒及正常狀態。In step S14, the determining module 300 determines, according to the comparison result, the state of each server 1 currently used to process the sign-off task. In this embodiment, the state of the server 1 includes an overload, an idle state, and a normal state.
步驟S16,所述調整模組400根據各個伺服器1所處的狀態,調整用來處理簽核任務的伺服器1的數量。在本實施方式中,當伺服器1處於超載狀態時,所述調整模組400增加一個用來處理簽核任務的伺服器1。當伺服器1處於空閒狀態時,所述調整模組400減少一個用來處理簽核任務的伺服器1。當伺服器1處於正常狀態時,所述調整模組400維持用來處理簽核任務的伺服器1的數量不變。In step S16, the adjustment module 400 adjusts the number of servers 1 for processing the sign-off task according to the state of each server 1. In the present embodiment, when the server 1 is in an overload 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 a server 1 for processing the sign-off task. When the server 1 is in a normal state, the adjustment module 400 maintains the number of servers 1 used to process the sign-off task unchanged.
步驟S18,所述分配模組500將剩餘的簽核任務重新分配到調整後的各個伺服器1。In step S18, the distribution module 500 re-allocates the remaining sign-off tasks to the adjusted servers 1.
步驟S20,所述執行模組600控制調整後的各個伺服器1開始執行剩餘的簽核任務。In step S20, the execution module 600 controls each of the adjusted servers 1 to start executing the remaining sign-off tasks.
在所述簽核動態調整方法中,上述流程迴圈進行,即時獲取各個伺服器1的相關參數,從而即時對用來處理簽核任務的伺服器1的數量進行動態調整,當伺服器1超載時增加數量,減輕當前伺服器1的壓力,當伺服器1空閒時減少數量,釋放資源,直至減少到剩餘最後一台伺服器1來處理簽核任務。In the sign-off dynamic adjustment method, the above process loops, and the relevant parameters of each server 1 are obtained in real time, so that the number of servers 1 used for processing the sign-off task is dynamically adjusted, and when the server 1 is overloaded When the number is increased, the pressure of the current server 1 is alleviated, the number is reduced when the server 1 is idle, and the resources are released until the last remaining server 1 is reduced to process the sign-off task.
綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅爲本發明之較佳實施方式,本發明之範圍並不以上述實施方式爲限,舉凡熟悉本案技藝之人士爰依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. However, the above description is only a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or variations made by those skilled in the art in accordance with the spirit of the present invention are It should be covered by the following patent application.
無no
10‧‧‧簽核動態調整系統 10‧‧‧Signature dynamic adjustment system
100‧‧‧獲取模組 100‧‧‧Get the module
200‧‧‧比對模組 200‧‧‧ alignment module
300‧‧‧判斷模組 300‧‧‧Judgement module
400‧‧‧調整模組 400‧‧‧Adjustment module
500‧‧‧分配模組 500‧‧‧Distribution module
600‧‧‧執行模組 600‧‧‧Execution module
Claims (10)
獲取步驟:即時獲取當前用來處理簽核任務的各個伺服器的指定參數;
比對步驟:比對所獲取的指定參數與第一預設值、第二預設值的大小;
判斷步驟:依據所述比對結果,判斷當前用來處理簽核任務的各個伺服器所處的狀態;
調整步驟:根據各個伺服器所處的狀態,調整用來處理簽核任務的伺服器的數量;及
分配步驟:將剩餘的簽核任務重新分配到調整後的各個伺服器。A signing dynamic adjustment method, the method comprising:
Obtaining step: acquiring the specified parameters of each server currently used to process the sign-off task;
Alignment step: comparing the obtained parameters with the first preset value and the second preset value;
a determining step: determining, according to the comparison result, a state in which each server currently used to process the sign-off task is in a state;
Adjustment step: adjusting the number of servers used to process the sign-off task according to the state of each server; and assigning steps: reallocating the remaining sign-off tasks to the adjusted servers.
控制調整後的各個伺服器開始執行剩餘的簽核任務。The method for dynamically adjusting the signing as described in claim 1, wherein the method further comprises the steps of:
Each server that controls the adjustment begins to perform the remaining sign-off tasks.
當指定參數大於第一預設值時,所述伺服器處於超載狀態;
當指定參數小於第二預設值時,所述伺服器處於空閒狀態;及
當指定參數小於或等於第一預設值且大於或等於第二預設值時,所述伺服器處於正常狀態。The method for dynamically adjusting signing according to claim 1, wherein the state of the server includes an overload, an idle state, and a normal state;
When the specified parameter is greater than the first preset value, the server is in an overload state;
When the specified parameter is less than the second preset value, the server is in an idle state; and when the specified parameter is less than or equal to the first preset value and greater than or equal to the second preset value, the server is in a normal state.
當伺服器處於超載狀態時,增加一個用來處理簽核任務的伺服器;
當伺服器處於空閒狀態時,減少一個用來處理簽核任務的伺服器;及
當伺服器處於正常狀態時,維持用來處理簽核任務的伺服器的數量不變。The method for dynamically adjusting the signing as described in claim 4, wherein in the adjusting step:
When the server is in an overload state, add a server for processing the sign-off task;
When the server is in an idle state, a server for processing the sign-off task is reduced; and when the server is in a normal state, the number of servers for processing the sign-off task is maintained.
獲取模組,用於即時獲取當前用來處理簽核任務的各個伺服器的指定參數;
比對模組,用於比對所獲取的指定參數與第一預設值、第二預設值的大小;
判斷模組,用於依據所述比對結果,判斷當前用來處理簽核任務的各個伺服器所處的狀態;
調整模組,用於根據各個伺服器所處的狀態,調整用來處理簽核任務的伺服器的數量;及
分配模組,用於將剩餘的簽核任務重新分配到調整後的各個伺服器。A signing dynamic adjustment system, the system comprising:
The obtaining module is configured to acquire the specified parameters of each server currently used to process the sign-off task;
The comparison module is configured to compare the obtained parameters with the first preset value and the second preset value;
a determining module, configured to determine, according to the comparison result, a state in which each server currently used to process the sign-off task is in a state;
The adjustment module is configured to adjust the number of servers used to process the sign-off task according to the state of each server; and an allocation module for reallocating the remaining sign-off tasks to the adjusted servers .
控制模組,用於控制調整後的各個伺服器開始執行剩餘的簽核任務。For example, the signing dynamic adjustment system described in claim 6 of the patent scope, wherein the system further comprises:
The control module is configured to control each of the adjusted servers to start performing the remaining sign-off tasks.
當指定參數大於第一預設值時,所述伺服器處於超載狀態;
當指定參數小於第二預設值時,所述伺服器處於空閒狀態;及
當指定參數小於或等於第一預設值且大於或等於第二預設值時,所述伺服器處於正常狀態。The signing dynamic adjustment system of claim 6, wherein the state of the server includes an overload, an idle state, and a normal state;
When the specified parameter is greater than the first preset value, the server is in an overload state;
When the specified parameter is less than the second preset value, the server is in an idle state; and when the specified parameter is less than or equal to the first preset value and greater than or equal to the second preset value, the server is in a normal state.
當伺服器處於超載狀態時,所述調整模組增加一個用來處理簽核任務的伺服器;
當伺服器處於空閒狀態時,所述調整模組減少一個用來處理簽核任務的伺服器;及
當伺服器處於正常狀態時,所述調整模組維持用來處理簽核任務的伺服器的數量不變。For example, the signing dynamic adjustment system described in claim 6 of the patent scope, wherein:
When the server is in an overload state, the adjustment module adds a server for processing the sign-off task;
When the server is in an idle state, the adjustment module reduces a server for processing the sign-off task; and when the server is in a normal state, the adjustment module maintains a server for processing the sign-off task The quantity does not change.
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 |
---|---|
TW201506636A true TW201506636A (en) | 2015-02-16 |
TWI512485B TWI512485B (en) | 2015-12-11 |
Family
ID=51670713
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW102112639A TWI512485B (en) | 2013-04-08 | 2013-04-10 | Method and system for managing servers for signing |
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 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1936849A (en) * | 2005-09-19 | 2007-03-28 | 国际商业机器公司 | Resource dynamic regulation method and apparatus |
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 |
CN102236582B (en) * | 2011-07-15 | 2013-06-05 | 浙江大学 | Method for balanced distribution of virtualized cluster load in a plurality of physical machines |
CN102279771B (en) * | 2011-09-02 | 2013-07-10 | 北京航空航天大学 | Method and system for adaptively allocating resources as required in virtualization environment |
CN102427475B (en) * | 2011-12-08 | 2014-01-29 | 无锡城市云计算中心有限公司 | Load balance scheduling system in cloud computing environment |
-
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
Also Published As
Publication number | Publication date |
---|---|
CN104102541A (en) | 2014-10-15 |
CN104102541B (en) | 2018-02-13 |
TWI512485B (en) | 2015-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8365175B2 (en) | Power management using dynamic application scheduling | |
JP2017511940A5 (en) | ||
US20200342322A1 (en) | Method and device for training data, storage medium, and electronic device | |
TWI755415B (en) | Method, device and system for application cluster resource allocation in cloud environment | |
CN107515786B (en) | Resource allocation method, master device, slave device and distributed computing system | |
US9396039B1 (en) | Scalable load testing using a queue | |
US20150295970A1 (en) | Method and device for augmenting and releasing capacity of computing resources in real-time stream computing system | |
JP2007531130A5 (en) | ||
RU2015114568A (en) | AUTOMATED RESOURCE USE PROFILING | |
US20170300359A1 (en) | Policy based workload scaler | |
US9104491B2 (en) | Batch scheduler management of speculative and non-speculative tasks based on conditions of tasks and compute resources | |
WO2017166643A1 (en) | Method and device for quantifying task resources | |
CN108897627B (en) | Docker dynamic scheduling method for typical container | |
JP7109549B2 (en) | Scheduling memory bandwidth based on service floor quality | |
CN107589997B (en) | Dynamic adjusting method for guaranteeing delay sensitive program QoS under data center environment | |
TWI512485B (en) | Method and system for managing servers for signing | |
Liao et al. | Auto-scaling strategy for amazon web services in cloud computing | |
CN111190739A (en) | Resource allocation method and device, electronic equipment and storage medium | |
CN107203256B (en) | Energy-saving distribution method and device under network function virtualization scene | |
CN104518897A (en) | Resource management optimization processing method and resource management optimization processing device for virtual firewalls | |
US20210191751A1 (en) | Method and device for allocating resource in virtualized environment | |
CN108574600B (en) | Service quality guarantee method for power consumption and resource competition cooperative control of cloud computing server | |
US11303546B2 (en) | Service system and control method of the same | |
CN104021046A (en) | Method and device for processing applications | |
CN107239341B (en) | Resource conversion method and system and virtual machine resource scheduling system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |