TW201512806A - System and method for handling waiting time of task - Google Patents

System and method for handling waiting time of task Download PDF

Info

Publication number
TW201512806A
TW201512806A TW102124326A TW102124326A TW201512806A TW 201512806 A TW201512806 A TW 201512806A TW 102124326 A TW102124326 A TW 102124326A TW 102124326 A TW102124326 A TW 102124326A TW 201512806 A TW201512806 A TW 201512806A
Authority
TW
Taiwan
Prior art keywords
task
time
type
waiting time
processing
Prior art date
Application number
TW102124326A
Other languages
Chinese (zh)
Inventor
Chung-I Lee
De-Yi Xie
Shuai-Jun Tao
zhi-qiang Yi
Jun-Chao Yao
Zhun Yang
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW102124326A priority Critical patent/TW201512806A/en
Publication of TW201512806A publication Critical patent/TW201512806A/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a system for handling a waiting time of a task. The system is configured for: calculating a forecasting waiting time of a specific type of a task in a datacenter; sending the forecasting time to a client and displaying the forecasting time in the client; calculating a real waiting time after the specific type of the task has been handled; collecting statistics of the forecasting waiting time and the real waiting time in a period time, and calculating an adjusting value; adjusting the forecasting waiting time of the specific type of the task using the adjusting value.

Description

任務等待時間處理系統及方法Task waiting time processing system and method

本發明涉及一種處理系統及方法,尤其是關於一種任務等待時間處理系統及方法。The present invention relates to a processing system and method, and more particularly to a task latency processing system and method.

目前,任務處理(例如,專利申請文件轉檔)都採用後臺服務的方式進行處理,用戶在相關頁面啟動任務處理後,系統會給出一個提示(案件正在轉檔中,請稍後),然而,用戶不能很直觀地看到任務處理還要等待多久的時間,而用戶也無法預估任務處理大概需要等待的時間,這就給用戶帶來很大的困擾,不知道是繼續等待,還是可以先完成其他的工作再來處理該任務,如果繼續等待,有可能就浪費不必要的等待時間,如果稍後再來處理,又不知道過多久再來處理。At present, task processing (for example, patent application file transfer) is handled by the background service. After the user starts the task processing on the relevant page, the system will give a prompt (the case is being converted, please wait), however The user can't intuitively see how long the task processing has to wait, and the user can't predict the time that the task needs to wait. This will cause great trouble to the user. I don't know if I will continue to wait, or I can After completing other tasks and then processing the task, if you continue to wait, it may waste unnecessary waiting time. If you process it later, you don't know how long it will take to process it.

鑒於以上內容,有必要提供一種任務等待時間處理系統及方法,其可以預先為用於估算任務處理需要等待的時間,並根據實際情況動態更新等待的時間,如此一來,用戶看到時間之後就能根據時長去決定是繼續等待還是先處理其他工作,方便了用戶。In view of the above, it is necessary to provide a task waiting time processing system and method, which can be used in advance to estimate the time that the task processing needs to wait, and dynamically update the waiting time according to the actual situation, so that after the user sees the time, It is convenient to decide whether to continue waiting or to handle other work according to the length of time.

一種任務等待時間處理系統,該系統運行於監控伺服器中,該系統包括:計算模組,用於計算當前資料中心處理特定類型的任務的預計等待時間;顯示模組,用於將該特定類型的任務的預計等待時間發送給用戶端,並在用戶端上顯示出來;更新模組,用於及時更新該特定類型的任務的預計等待時間;所述顯示模組,還用於將更新後的該特定類型的任務的預計等待時間發送給用戶端,並在用戶端上顯示出來;所述計算模組,還用於當該特定類型的任務處理完成之後,計算該特定類型的任務的實際等待時間;修正模組,用於統計一定時期的該特定類型的任務的預計等待時間及實際等待時間,並計算一個修正係數,根據修正係數修正該特定類型的任務的預計等待時間。A task waiting time processing system, the system running in a monitoring server, the system comprising: a computing module, configured to calculate an expected waiting time of a current data center for processing a specific type of task; a display module for the specific type The expected waiting time of the task is sent to the client and displayed on the client; the update module is used to update the expected waiting time of the specific type of task in time; the display module is also used to update the An estimated waiting time of the specific type of task is sent to the user end and displayed on the user end; the computing module is further configured to calculate an actual waiting for the specific type of task after the processing of the specific type of task is completed. Time; a correction module for counting the expected waiting time and the actual waiting time of the specific type of task for a certain period of time, and calculating a correction coefficient, and correcting the expected waiting time of the specific type of task according to the correction coefficient.

一種任務等待時間處理方法,該方法運用於監控伺服器中,該方法包括:計算當前資料中心處理特定類型的任務的預計等待時間;將該特定類型的任務的預計等待時間發送給用戶端,並在用戶端上顯示出來;及時更新該特定類型的任務的預計等待時間;將更新後的該特定類型的任務的預計等待時間發送給用戶端,並在用戶端上顯示出來;當該特定類型的任務處理完成之後,計算該特定類型的任務的實際等待時間;統計一定時期的該特定類型的任務的預計等待時間及實際等待時間,並計算一個修正係數,根據修正係數修正該特定類型的任務的預計等待時間。A task waiting time processing method is applied to a monitoring server, the method comprising: calculating an expected waiting time of a current data center for processing a specific type of task; and sending an expected waiting time of the specific type of task to the user end, and Displayed on the client; timely update the expected waiting time of the specific type of task; send the updated expected waiting time of the specific type of task to the client, and display it on the user; when the specific type After the task processing is completed, calculating the actual waiting time of the specific type of task; counting the expected waiting time and the actual waiting time of the specific type of task for a certain period of time, and calculating a correction coefficient, and correcting the specific type of task according to the correction coefficient Expected waiting time.

相較於習知技術,本發明提供的任務等待時間處理系統及方法,其可以預先估算任務處理需要等待的時間,並根據實際情況動態更新等待的時間,如此一來,用戶看到時間之後就能根據時長去決定是繼續等待還是先處理其他工作,方便了用戶。Compared with the prior art, the present invention provides a task waiting time processing system and method, which can pre-estimate the time that the task processing needs to wait, and dynamically update the waiting time according to the actual situation, so that after the user sees the time, It is convenient to decide whether to continue waiting or to handle other work according to the length of time.

10‧‧‧用戶端10‧‧‧ Client

20‧‧‧監控電腦20‧‧‧Monitoring computer

30‧‧‧資料庫30‧‧‧Database

40‧‧‧網路40‧‧‧Network

50‧‧‧資料中心50‧‧‧Data Center

500‧‧‧伺服器500‧‧‧Server

200‧‧‧任務等待時間處理系統200‧‧‧Task Waiting Time Processing System

210‧‧‧算模組210‧‧‧ Calculation Module

220‧‧‧示模組220‧‧‧ display module

230‧‧‧更新模組230‧‧‧Update Module

240‧‧‧修正模組240‧‧‧correction module

250‧‧‧儲存器250‧‧‧Storage

260‧‧‧處理器260‧‧‧ processor

圖1係本發明任務等待時間處理系統較佳實施例的應用環境圖。1 is an application environment diagram of a preferred embodiment of a task latency processing system of the present invention.

圖2係本發明監控電腦較佳實施例的結構示意圖。2 is a schematic structural view of a preferred embodiment of the monitoring computer of the present invention.

圖3係本發明任務等待時間處理方法較佳實施例的流程圖。3 is a flow chart of a preferred embodiment of the task latency processing method of the present invention.

參閱圖1所示,係本發明任務等待時間處理系統200較佳實施例的應用環境圖。該任務等待時間處理系統200應用於監控電腦20中。該監控電腦20與資料中心(Data Center)50透過網路40進行通信連接。Referring to FIG. 1, an application environment diagram of a preferred embodiment of the task latency processing system 200 of the present invention is shown. The task waiting time processing system 200 is applied to the monitoring computer 20. The monitoring computer 20 is communicatively coupled to the data center (Data Center) 50 via the network 40.

所述網路40可以是網際網路、區域網路或者其他通訊網路。The network 40 can be an internet, a regional network, or other communication network.

所述資料中心50包括多個伺服器500(圖中以四個為例),所述伺服器500為刀片伺服器。所述伺服器500用於處理任務,所述任務可以是一個文件的轉檔(例如,將WORD格式的專利申請文件轉換成官方規定的專利申請文件的格式)、文件的下載或文件的上傳等伺服器自動處理的任務。The data center 50 includes a plurality of servers 500 (four in the figure), and the server 500 is a blade server. The server 500 is used to process a task, which may be a file transfer (for example, converting a patent application file in a WORD format into a format of an officially specified patent application file), downloading a file, or uploading a file, etc. The task that the server automatically handles.

所述監控電腦20用於監控資料中心50的伺服器500的運行情況,以在資料中心50中計算出處理每個任務的等待時間,並呈現給用戶端10。所述每個任務的等待時間包括每個任務的預計等待時間及每個任務的實際等待時間。每個任務的等待時間的計算方式將在圖2及圖3中做詳細描述。The monitoring computer 20 is configured to monitor the operation of the server 500 of the data center 50 to calculate the waiting time for processing each task in the data center 50 and present it to the client 10. The waiting time for each task includes an expected waiting time for each task and an actual waiting time for each task. The calculation of the waiting time for each task will be described in detail in Figures 2 and 3.

該監控電腦20還安裝有動態主機設置協定(Dynamic Host Configuration Protocol,DHCP)服務,透過DHCP服務可以分配網路之間互連的協定(Internet Protocol,IP)位址給資料中心50中的各個伺服器500,使監控電腦20能夠與資料中心50的各個伺服器500進行通信。該監控電腦20可以是個人電腦、網路伺服器,還可以是任意其他適用的電腦。此外,該監控電腦20還可以放置在資料中心50內部,即該監控電腦20也可以是資料中心50中的一台伺服器。用戶只需透過用戶端10進行操作就可以實現對資料中心50中的伺服器500的監控。The monitoring computer 20 is also equipped with a Dynamic Host Configuration Protocol (DHCP) service, and the Internet Protocol (IP) address can be allocated to each server in the data center 50 through the DHCP service. The device 500 enables the monitoring computer 20 to communicate with the various servers 500 of the data center 50. The monitoring computer 20 can be a personal computer, a web server, or any other suitable computer. In addition, the monitoring computer 20 can also be placed inside the data center 50, that is, the monitoring computer 20 can also be a server in the data center 50. The user only needs to operate through the client terminal 10 to monitor the server 500 in the data center 50.

所述監控電腦20透過一個資料庫連接與資料庫30連接。其中,所述資料庫連接可為一開放式資料庫連接(Open Database Connectivity, ODBC),或Java資料庫連接(Java Database Connectivity, JDBC)。所述資料庫30用於儲存從資料中心50的各個伺服器500傳送過來的資料,該資料包括每個任務的預計等待時間及實際等待時間等資訊。The monitoring computer 20 is coupled to the database 30 via a database connection. The database connection may be an Open Database Connectivity (ODBC) or a Java Database Connectivity (JDBC) connection. The database 30 is used to store data transmitted from the various servers 500 of the data center 50, including information such as expected waiting time and actual waiting time for each task.

在此需說明的是,資料庫30可獨立於監控電腦20,也可位於監控電腦20內。所述資料庫30可存於監控電腦20的硬碟或者快閃儲存器盤中。從系統安全性的角度考慮,本實施例中的資料庫30獨立於監控電腦20。It should be noted that the database 30 can be independent of the monitoring computer 20 or within the monitoring computer 20. The database 30 can be stored in a hard disk or flash storage disk of the monitoring computer 20. From the perspective of system security, the database 30 in this embodiment is independent of the monitoring computer 20.

所述用戶端10提供一資料中心50的登錄介面,透過該登錄介面用戶可以啟動對某一個任務的處理,例如,用戶可以透過登錄介面上傳文件到資料中心50,之後啟動對該文件的轉檔。該用戶端10可以是個人電腦、筆記本電腦、手機、平板電腦以及其他任意能與監控電腦20連接的設備。The user terminal 10 provides a login interface of the data center 50. Through the login interface, the user can initiate processing of a certain task. For example, the user can upload a file to the data center 50 through the login interface, and then initiate a file transfer to the file. . The client 10 can be a personal computer, a laptop, a mobile phone, a tablet, and any other device that can be connected to the monitoring computer 20.

參閱圖2所示,係本發明監控電腦20較佳實施例的結構示意圖。該監控電腦20包括任務等待時間處理系統200。該任務等待時間處理系統200包括計算模組210、顯示模組220、更新模組230、修正模組240。本發明所稱的模組是完成一特定功能的電腦程式段,比程式更適合於描述軟體在電腦中的執行過程,因此在本發明以下對軟體描述中都以模組描述。Referring to FIG. 2, it is a schematic structural view of a preferred embodiment of the monitoring computer 20 of the present invention. The monitoring computer 20 includes a task waiting time processing system 200. The task waiting time processing system 200 includes a computing module 210, a display module 220, an update module 230, and a correction module 240. The module referred to in the present invention is a computer program segment for performing a specific function, and is more suitable for describing the execution process of the software in the computer than the program. Therefore, the following description of the software is described in the module.

所述計算模組210用於計算當前資料中心50處理某一類型的任務的預計等待時間。所述某一類型的任務的預計等待時間包括該類型的任務的預計處理時間及該類型的任務的排隊時間(即該類型的任務的預計處理時間與該類型的任務的排隊時間之和)。具體而言,所述該類型的任務的預計處理時間透過如下方式計算:事先對某一類型的任務進行測試得出該類型的任務的平均處理時間,該平均處理時間即為該類型的任務的預計處理時間。當有一個任務啟動時,直接根據該任務的類型(如新申請案或答辯案)獲取該任務的平均處理時間,即為該任務的預計處理時間。舉例而言,監控電腦20預先發送指令給資料中心50,並要求資料中心50透過測試的方式重複多次(例如,一百次)處理某一類型的任務,記錄每一次處理該類型的任務的時間,之後所述計算模組210計算該類型的任務的平均處理時間並儲存至資料庫30,當有一個該類型的任務啟動時,直接根據該任務的類型(如新申請案或答辯案)從資料庫30中獲取該任務的平均處理時間,即獲取該任務的預計處理時間。The computing module 210 is configured to calculate an expected waiting time for the current data center 50 to process a certain type of task. The expected waiting time for the certain type of task includes the estimated processing time of the type of task and the queuing time of the type of task (ie, the sum of the expected processing time of the type of task and the queuing time of the type of task). Specifically, the estimated processing time of the task of the type is calculated by testing a certain type of task in advance to obtain an average processing time of the task of the type, and the average processing time is the task of the type. Estimated processing time. When a task is started, the average processing time of the task is obtained according to the type of the task (such as a new application or a reply), which is the estimated processing time of the task. For example, the monitoring computer 20 sends an instruction to the data center 50 in advance, and requests the data center 50 to repeat a plurality of tests (for example, one hundred times) to process a certain type of task through a test, and record each time a task of the type is processed. Time, after which the computing module 210 calculates the average processing time of the task of the type and stores it in the database 30, when there is a task of this type, directly according to the type of the task (such as a new application or a reply) The average processing time of the task is obtained from the database 30, that is, the estimated processing time of the task is obtained.

所述該類型的任務的排隊時間的計算方式如下:先計算出資料中心50處理所有任務的總時間,再除以資料中心50中伺服器500的數量,從而得出每個任務的排隊時間。資料中心50處理所有任務的總時間的計算方式如下:統計資料中心50中包含的每種任務類型的數量,並獲取每種類型的任務的預計處理時間,每種任務類型的數量乘以每種類型的任務的預計處理時間後求和。舉例而言,假設資料中心50包含兩種類型的任務,統計這兩種類型的任務的數量,並對每種類型的任務的時間進行求和,得出資料中心50處理所有任務的總時間。The queuing time of the task of the type is calculated as follows: First, the total time for the data center 50 to process all tasks is calculated, and then divided by the number of servers 500 in the data center 50, thereby obtaining the queuing time of each task. The total time that the data center 50 processes all tasks is calculated as follows: the number of each task type included in the statistic center 50, and the estimated processing time for each type of task, the number of each task type multiplied by each category The expected processing time of the type of task is summed. For example, assume that data center 50 contains two types of tasks, counts the number of these two types of tasks, and sums the time of each type of task to arrive at the total time that data center 50 processes all tasks.

需要說明的是,由於資料中心50中所處理的任務數量是動態變化的(例如,某一個任務處理完成之後,任務數量減少一個),由此得出,任務的排隊時間是動態變化的。進一步地,所述任務的預計等待時間也是動態變化的。It should be noted that since the number of tasks processed in the data center 50 is dynamically changed (for example, the number of tasks is reduced by one after a certain task is processed), it is concluded that the queuing time of the tasks is dynamically changed. Further, the expected waiting time of the task is also dynamically changed.

所述顯示模組220用於將該類型的任務的預計等待時間發送給用戶端10,並在用戶端10上顯示出來。The display module 220 is configured to send the expected waiting time of the task to the client 10 and display it on the client 10.

所述更新模組230用於及時更新該類型的任務的預計等待時間。具體而言,所述更新模組230每隔一定時間(如,五秒鐘)計算一下資料中心50中的任務數量(即資料中心50中包含所有類型的任務數量),計算出最新的該類型的任務的預計等待時間。The update module 230 is configured to update the expected waiting time of the task of the type in time. Specifically, the update module 230 calculates the number of tasks in the data center 50 at a certain time (for example, five seconds) (that is, the number of tasks in the data center 50 is included), and calculates the latest type. The expected waiting time for the mission.

所述顯示模組220還用於將更新後的該類型的任務的預計等待時間發送給用戶端10,並在用戶端10上顯示出來。The display module 220 is further configured to send the updated waiting time of the updated task of the type to the client 10 and display it on the client 10.

所述計算模組210用於當該類型的任務處理完成之後,計算該類型的任務的實際等待時間。具體而言,計算模組210從該類型的任務啟動時開始計時,到該類型的任務處理完成,記錄該任務處理完成的實際等待時間。The computing module 210 is configured to calculate an actual waiting time of the task of the type after the task processing of the type is completed. Specifically, the computing module 210 starts timing when the task of the type is started, and when the task processing of the type is completed, the actual waiting time for the processing of the task is recorded.

所述修正模組240用於統計一定時期(例如,三天)的該類型的任務的預計等待時間及實際等待時間,並計算一個修正係數,根據修正係數修正該類型的任務的預計等待時間。具體而言,經過一段時間的積累,所述修正模組240統計分析的該類型的任務的預計等待時間及實際等待時間,如下表所示:The correction module 240 is configured to count the estimated waiting time and the actual waiting time of the task of a certain period (for example, three days), and calculate a correction coefficient, and correct the expected waiting time of the task according to the correction coefficient. Specifically, after a period of accumulation, the correction module 240 statistically analyzes the estimated waiting time and the actual waiting time of the type of task, as shown in the following table:

時間 預計等待時間T1 實際等待時間T2 時間差T2-T1Time Expected waiting time T1 Actual waiting time T2 Time difference T2-T1

從上述表格中可以看出,因為存在各種不確定的因素,實際等待時間和預計等待時間是有差別的,統計出這個時間差,然後計算出時間差的平均值,上述表格中可以算出該類型的任務平均時間差為5秒(S),那麼5秒即為該類型的任務的修正係數S,把計算出的時間T1+S作為顯示的預計等待時間。也就是說,修正後的每個任務的預計等待時間為T1+5。 As can be seen from the above table, because there are various uncertain factors, the actual waiting time and the expected waiting time are different. The time difference is calculated, and then the average value of the time difference is calculated. The above table can calculate the task of the type. The average time difference is 5 seconds (S), then 5 seconds is the correction factor S for this type of task, and the calculated time T1+S is taken as the predicted waiting time for display. In other words, the estimated waiting time for each task after correction is T1+5.

需要說明的是,所述修正模組240每隔一段時間(例如,一個星期)需要重新計算修正係數,使後續的計算結果準確度更高。It should be noted that the correction module 240 needs to recalculate the correction coefficient every time (for example, one week), so that the subsequent calculation result is more accurate.

所述修正模組240還分析處理任務發送錯誤時的產生原因和概率(錯誤的原因作業系統的日誌都有記載,可以從日誌中讀出,概率根據出現錯誤的任務數量和總的任務數量就可以計算出)。The correction module 240 also analyzes the cause and probability of the processing task sending error (the cause of the error is recorded in the log of the operating system, which can be read from the log, and the probability is based on the number of tasks in which the error occurred and the total number of tasks. Can be calculated).

如圖3所示,係本發明任務等待時間處理方法較佳實施例的流程圖。As shown in FIG. 3, it is a flowchart of a preferred embodiment of the task waiting time processing method of the present invention.

步驟S10,計算模組210用於計算當前資料中心50處理某一類型的任務的預計等待時間。所述某一類型的任務的預計等待時間包括該類型的任務的預計處理時間及該類型的任務的排隊時間(即該類型的任務的預計處理時間與該類型的任務的排隊時間之和)。具體而言,所述該類型的任務的預計處理時間透過如下方式計算:事先對某一類型的任務進行測試得出該類型的任務的平均處理時間,該平均處理時間即為該類型的任務的預計處理時間。當有一個任務啟動時,直接根據該任務的類型(如新申請案或答辯案)獲取該任務的平均處理時間,即為該任務的預計處理時間。舉例而言,監控電腦20預先發送指令給資料中心50,並要求資料中心50透過測試的方式重複多次(例如,一百次)處理某一類型的任務,記錄每一次處理該類型的任務的時間,之後所述計算模組210計算該類型的任務的平均處理時間並儲存至資料庫30,當有一個該類型的任務啟動時,直接根據該任務的類型(如新申請案或答辯案)從資料庫30中獲取該任務的平均處理時間,即獲取該任務的預計處理時間。In step S10, the calculation module 210 is configured to calculate an estimated waiting time for the current data center 50 to process a certain type of task. The expected waiting time for the certain type of task includes the estimated processing time of the type of task and the queuing time of the type of task (ie, the sum of the expected processing time of the type of task and the queuing time of the type of task). Specifically, the estimated processing time of the task of the type is calculated by testing a certain type of task in advance to obtain an average processing time of the task of the type, and the average processing time is the task of the type. Estimated processing time. When a task is started, the average processing time of the task is obtained according to the type of the task (such as a new application or a reply), which is the estimated processing time of the task. For example, the monitoring computer 20 sends an instruction to the data center 50 in advance, and requests the data center 50 to repeat a plurality of tests (for example, one hundred times) to process a certain type of task through a test, and record each time a task of the type is processed. Time, after which the computing module 210 calculates the average processing time of the task of the type and stores it in the database 30, when there is a task of this type, directly according to the type of the task (such as a new application or a reply) The average processing time of the task is obtained from the database 30, that is, the estimated processing time of the task is obtained.

所述該類型的任務的排隊時間的計算方式如下:先計算出資料中心50處理所有任務的總時間,再除以資料中心50中伺服器500的數量,從而得出每個任務的排隊時間。資料中心50處理所有任務的總時間的計算方式如下:統計資料中心50中包含的每種任務類型的數量,並獲取每種類型的任務的預計處理時間,每種任務類型的數量乘以每種類型的任務的預計處理時間後求和。舉例而言,假設資料中心50包含兩種類型的任務,統計這兩種類型的任務的數量,並對每種類型的任務的時間進行求和,得出資料中心50處理所有任務的總時間。The queuing time of the task of the type is calculated as follows: First, the total time for the data center 50 to process all tasks is calculated, and then divided by the number of servers 500 in the data center 50, thereby obtaining the queuing time of each task. The total time that the data center 50 processes all tasks is calculated as follows: the number of each task type included in the statistic center 50, and the estimated processing time for each type of task, the number of each task type multiplied by each category The expected processing time of the type of task is summed. For example, assume that data center 50 contains two types of tasks, counts the number of these two types of tasks, and sums the time of each type of task to arrive at the total time that data center 50 processes all tasks.

需要說明的是,由於資料中心50中所處理的任務數量是動態變化的(例如,某一個任務處理完成之後,任務數量減少一個),由此得出,任務的排隊時間是動態變化的。進一步地,所述任務的預計等待時間也是動態變化的。It should be noted that since the number of tasks processed in the data center 50 is dynamically changed (for example, the number of tasks is reduced by one after a certain task is processed), it is concluded that the queuing time of the tasks is dynamically changed. Further, the expected waiting time of the task is also dynamically changed.

步驟S20,顯示模組220將該類型的任務的預計等待時間發送給用戶端10,並在用戶端10上顯示出來。In step S20, the display module 220 sends the expected waiting time of the task of the type to the client 10, and displays it on the client 10.

步驟S30,更新模組230及時更新該類型的任務的預計等待時間。具體而言,所述更新模組230每隔一定時間(如,五秒鐘)計算一下資料中心50中的任務數量(即資料中心50中包含所有類型的任務數量),計算出最新的該類型的任務的預計等待時間。In step S30, the update module 230 timely updates the expected waiting time of the task of the type. Specifically, the update module 230 calculates the number of tasks in the data center 50 at a certain time (for example, five seconds) (that is, the number of tasks in the data center 50 is included), and calculates the latest type. The expected waiting time for the mission.

步驟S40,顯示模組220將更新後的該類型的任務的預計等待時間發送給用戶端10,並在用戶端10上顯示出來。In step S40, the display module 220 sends the updated waiting time of the updated task of the type to the client 10, and displays it on the client 10.

步驟S50,當該類型的任務處理完成之後,計算模組210計算該類型的任務的實際等待時間。具體而言,計算模組210從該類型的任務啟動時開始計時,到該類型的任務處理完成,記錄該任務處理完成的實際等待時間。In step S50, after the task processing of the type is completed, the calculation module 210 calculates the actual waiting time of the task of the type. Specifically, the computing module 210 starts timing when the task of the type is started, and when the task processing of the type is completed, the actual waiting time for the processing of the task is recorded.

步驟S60,修正模組240統計一定時期(例如,三天)的該類型的任務的預計等待時間及實際等待時間,並計算一個修正係數,根據修正係數修正該類型的任務的預計等待時間。具體而言,經過一段時間的積累,所述修正模組240統計分析的該類型的任務的預計等待時間及實際等待時間,如下表所示:In step S60, the correction module 240 counts the estimated waiting time and the actual waiting time of the task of the type for a certain period of time (for example, three days), and calculates a correction coefficient, and corrects the expected waiting time of the task according to the correction coefficient. Specifically, after a period of accumulation, the correction module 240 statistically analyzes the estimated waiting time and the actual waiting time of the type of task, as shown in the following table:

時間 預計等待時間T1 實際等待時間T2 時間差T2-T1Time Expected waiting time T1 Actual waiting time T2 Time difference T2-T1

從上述表格中可以看出,因為存在各種不確定的因素,實際等待時間和預計等待時間是有差別的,統計出這個時間差,然後計算出時間差的平均值,上述表格中可以算出該類型的任務平均時間差為5秒(S),那麼5秒即為該類型的任務的修正係數S,把計算出的時間T1+S作為顯示的預計等待時間。也就是說,修正後的每個任務的預計等待時間為T1+5。 As can be seen from the above table, because there are various uncertain factors, the actual waiting time and the expected waiting time are different. The time difference is calculated, and then the average value of the time difference is calculated. The above table can calculate the task of the type. The average time difference is 5 seconds (S), then 5 seconds is the correction factor S for this type of task, and the calculated time T1+S is taken as the predicted waiting time for display. In other words, the estimated waiting time for each task after correction is T1+5.

需要說明的是,所述修正模組240每隔一段時間(例如,一個星期)需要重新計算修正係數,使後續的計算結果準確度更高。It should be noted that the correction module 240 needs to recalculate the correction coefficient every time (for example, one week), so that the subsequent calculation result is more accurate.

所述修正模組240還分析處理任務發送錯誤時的產生原因和概率(錯誤的原因作業系統的日誌都有記載,可以從日誌中讀出,概率根據出現錯誤的任務數量和總的任務數量就可以計算出)。The correction module 240 also analyzes the cause and probability of the processing task sending error (the cause of the error is recorded in the log of the operating system, which can be read from the log, and the probability is based on the number of tasks in which the error occurred and the total number of tasks. Can be calculated).

最後所應說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照以上較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。It should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and are not intended to be limiting, and the present invention will be described in detail with reference to the preferred embodiments thereof The technical solutions are modified or equivalently substituted without departing from the spirit and scope of the technical solutions of the present invention.

no

10‧‧‧用戶端 10‧‧‧ Client

20‧‧‧監控電腦 20‧‧‧Monitoring computer

30‧‧‧資料庫 30‧‧‧Database

40‧‧‧網路 40‧‧‧Network

50‧‧‧資料中心 50‧‧‧Data Center

500‧‧‧伺服器 500‧‧‧Server

200‧‧‧任務等待時間處理系統 200‧‧‧Task Waiting Time Processing System

Claims (10)

一種任務等待時間處理系統,該系統運行於監控伺服器中,該系統包括:
計算模組,用於計算當前資料中心處理特定類型的任務的預計等待時間;
顯示模組,用於將該特定類型的任務的預計等待時間發送給用戶端,並在用戶端上顯示出來;
更新模組,用於及時更新該特定類型的任務的預計等待時間;
所述顯示模組,還用於將更新後的該特定類型的任務的預計等待時間發送給用戶端,並在用戶端上顯示出來;
所述計算模組,還用於當該特定類型的任務處理完成之後,計算該特定類型的任務的實際等待時間;及
修正模組,用於統計一定時期的該特定類型的任務的預計等待時間及實際等待時間,並計算一個修正係數,根據修正係數修正該特定類型的任務的預計等待時間。
A task waiting time processing system, the system running in a monitoring server, the system comprising:
a calculation module for calculating an expected waiting time for a current data center to process a particular type of task;
a display module, configured to send an expected waiting time of the specific type of task to the user end, and display the same on the user end;
An update module for updating the expected waiting time of the particular type of task in time;
The display module is further configured to send the updated waiting time of the updated task of the specific type to the user end, and display the same on the user end;
The computing module is further configured to calculate an actual waiting time of the specific type of task after the processing of the specific type of the task is completed; and a correction module, configured to count the estimated waiting time of the specific type of task in a certain period of time And the actual waiting time, and calculate a correction factor to correct the expected waiting time of the particular type of task according to the correction coefficient.
如申請專利範圍第1項所述之任務等待時間處理系統,所述特定類型的任務的預計時間包括該特定類型的任務的預計處理時間及該特定類型的任務的排隊時間。The task waiting time processing system of claim 1, wherein the estimated time of the particular type of task includes an estimated processing time of the particular type of task and a queuing time of the particular type of task. 如申請專利範圍第2項所述之任務等待時間處理系統,所述該特定類型的任務的預計處理時間透過如下方式計算:對該特定類型的任務進行測試得出該特定類型的任務的平均處理時間,該特定類型的任務的平均處理時間即為該特定類型的任務的預計處理時間。The task waiting time processing system of claim 2, wherein the estimated processing time of the specific type of task is calculated by testing the specific type of task to obtain an average processing of the specific type of task. Time, the average processing time for this particular type of task is the estimated processing time for that particular type of task. 如申請專利範圍第2項所述之任務等待時間處理系統,所述該特定類型的任務的排隊時間的計算方式如下:先計算出資料中心處理所有任務的總時間,再除以資料中心中伺服器的數量,從而得出該特定類型的任務的排隊時間。For example, in the task waiting time processing system described in claim 2, the queuing time of the specific type of task is calculated as follows: first calculate the total time of processing all tasks in the data center, and then divide by the servo in the data center. The number of devices, resulting in the queuing time for that particular type of task. 如申請專利範圍第4項所述之任務等待時間處理系統,所述資料中心處理所有任務的總時間的計算方式如下:統計資料中心中包含的每種任務類型的數量,並獲取每種類型的任務的預計處理時間,每種任務類型的數量乘以每種類型的任務的預計處理時間後求和。For example, in the task waiting time processing system described in claim 4, the total time for processing all tasks in the data center is calculated as follows: the number of each task type included in the statistics center, and each type of each type is obtained. The estimated processing time of the task, the number of each task type multiplied by the expected processing time of each type of task and summed. 一種任務等待時間處理方法,該方法運用於監控伺服器中,該方法包括:
計算當前資料中心處理特定類型的任務的預計等待時間;
將該特定類型的任務的預計等待時間發送給用戶端,並在用戶端上顯示出來;
及時更新該特定類型的任務的預計等待時間;
將更新後的該特定類型的任務的預計等待時間發送給用戶端,並在用戶端上顯示出來;
當該特定類型的任務處理完成之後,計算該特定類型的任務的實際等待時間;及
統計一定時期的該特定類型的任務的預計等待時間及實際等待時間,並計算一個修正係數,根據修正係數修正該特定類型的任務的預計等待時間。
A task waiting time processing method, which is applied to a monitoring server, the method comprising:
Calculate the estimated wait time for the current data center to handle a particular type of task;
Sending the expected waiting time of the specific type of task to the client, and displaying it on the client;
Update the expected waiting time for this particular type of task in a timely manner;
Sending the updated expected waiting time of the specific type of task to the client, and displaying it on the client;
After the processing of the specific type of task is completed, calculating the actual waiting time of the task of the specific type; and counting the expected waiting time and the actual waiting time of the specific type of task for a certain period of time, and calculating a correction coefficient, which is corrected according to the correction coefficient The estimated wait time for this particular type of task.
如申請專利範圍第6項所述之任務等待時間處理方法,所述特定類型的任務的預計時間包括該特定類型的任務的預計處理時間及該特定類型的任務的排隊時間。The task waiting time processing method according to claim 6, wherein the estimated time of the specific type of task includes an estimated processing time of the specific type of task and a queuing time of the specific type of task. 如申請專利範圍第7項所述之任務等待時間處理方法,所述該特定類型的任務的預計處理時間透過如下方式計算:對該特定類型的任務進行測試得出該特定類型的任務的平均處理時間,該特定類型的任務的平均處理時間即為該特定類型的任務的預計處理時間。The task waiting time processing method according to claim 7, wherein the estimated processing time of the specific type of task is calculated by testing the specific type of task to obtain an average processing of the specific type of task. Time, the average processing time for this particular type of task is the estimated processing time for that particular type of task. 如申請專利範圍第7項所述之任務等待時間處理方法,所述該特定類型的任務的排隊時間的計算方式如下:先計算出資料中心處理所有任務的總時間,再除以資料中心中伺服器的數量,從而得出該特定類型的任務的排隊時間。For example, in the task waiting time processing method described in claim 7, the queuing time of the specific type of task is calculated as follows: first, calculating the total time of processing all tasks in the data center, and dividing by the servo in the data center The number of devices, resulting in the queuing time for that particular type of task. 如申請專利範圍第9項所述之任務等待時間處理方法,所述資料中心處理所有任務的總時間的計算方式如下:統計資料中心中包含的每種任務類型的數量,並獲取每種類型的任務的預計處理時間,每種任務類型的數量乘以每種類型的任務的預計處理時間後求和。
For the task waiting time processing method described in claim 9, the total time for processing all tasks in the data center is calculated as follows: the number of each task type included in the statistics center, and each type of The estimated processing time of the task, the number of each task type multiplied by the expected processing time of each type of task and summed.
TW102124326A 2013-07-08 2013-07-08 System and method for handling waiting time of task TW201512806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102124326A TW201512806A (en) 2013-07-08 2013-07-08 System and method for handling waiting time of task

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102124326A TW201512806A (en) 2013-07-08 2013-07-08 System and method for handling waiting time of task

Publications (1)

Publication Number Publication Date
TW201512806A true TW201512806A (en) 2015-04-01

Family

ID=53437118

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102124326A TW201512806A (en) 2013-07-08 2013-07-08 System and method for handling waiting time of task

Country Status (1)

Country Link
TW (1) TW201512806A (en)

Similar Documents

Publication Publication Date Title
US10733245B2 (en) Methods and apparatus to track changes to a network topology
EP3462706A1 (en) Information processing method, apparatus, and system for monitoring microservices
US9384115B2 (en) Determining and monitoring performance capabilities of a computer resource service
JP6526907B2 (en) Performance monitoring of distributed storage systems
CN104780115B (en) Load-balancing method and system in cloud computing environment
US20160147520A1 (en) Device driver aggregation in operating system deployment
WO2015180291A1 (en) Method and system for monitoring server cluster
US9935893B2 (en) Systems and methods for dynamically allocating computing tasks to computer resources in a distributed processing environment
US20110138037A1 (en) Techniques for web server management
US20170126789A1 (en) Automatic Software Controller Configuration based on Application and Network Data
JP2019501551A5 (en) Cloud-based system and method for managing messages related to operation of cable test devices and computing devices
US20160014001A1 (en) Detailed end-to-end latency tracking of messages
US9667722B2 (en) Method and system for non-tagged based latency calculation
CN108897496B (en) Disk array configuration management method and device, computer equipment and storage medium
JP6607963B2 (en) Data store for aggregated metrics measurements
CN104252347A (en) Task waiting-time processing system and method
CN112506969A (en) BMC address query method, system, equipment and readable storage medium
CN109714214A (en) A kind of processing method and management equipment of server exception
CN113342608A (en) Method and device for monitoring streaming computing engine task
US10715608B2 (en) Automatic server cluster discovery
JP2006092053A (en) System use ratio management device, and system use ratio management method to be used for the same device and its program
TW201512806A (en) System and method for handling waiting time of task
US20200118058A1 (en) Real-time workflow tracking
US20170223136A1 (en) Any Web Page Reporting and Capture
JPWO2013161522A1 (en) Log collection server, log collection system, and log collection method