TW201324360A - Entrusted background execution encapsulated module - Google Patents

Entrusted background execution encapsulated module Download PDF

Info

Publication number
TW201324360A
TW201324360A TW101112201A TW101112201A TW201324360A TW 201324360 A TW201324360 A TW 201324360A TW 101112201 A TW101112201 A TW 101112201A TW 101112201 A TW101112201 A TW 101112201A TW 201324360 A TW201324360 A TW 201324360A
Authority
TW
Taiwan
Prior art keywords
execution
work
module
delivery
weight
Prior art date
Application number
TW101112201A
Other languages
Chinese (zh)
Other versions
TWI466026B (en
Inventor
zheng-ying Liu
Rui-Ji Liao
Yun-Tai Lu
Zhi-Xin Xie
Jun-Bin Zhuang
Original Assignee
Chunghwa Telecom 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 Chunghwa Telecom Co Ltd filed Critical Chunghwa Telecom Co Ltd
Priority to TW101112201A priority Critical patent/TW201324360A/en
Publication of TW201324360A publication Critical patent/TW201324360A/en
Application granted granted Critical
Publication of TWI466026B publication Critical patent/TWI466026B/zh

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention can automatically evoke the execution of module-encapsulated jobs in accordance with new jobs added by the user in an on-line system. The module employs the Semaphore theory to decide whether to execute or wait, if it is executable, the module employs the reflection mechanism to trigger the task entrusted by the user. When the task is completed, the system automatically notifies the task entrusting person via an Email and provides some related result information, and then continue with the execution of a next work after completion; if it is to wait, the job weight is automatically added in accordance with a weighting algorithm, thereby avoiding the phenomenon of a low-weight work never being executed . The invention provides an efficiency adjusting mechanism for achieving the adjustment of system operations and ensures the operation efficiency of entrusted works.

Description

交付背景執行包覆模組Delivery background execution cladding module

本發明係有關於一種交付背景執行包覆模組,特別是指一種有效控制背景工作執行及應用伺服器系統資源使用的調控模組。The invention relates to a delivery background execution wrapping module, in particular to a control module for effectively controlling background work execution and application server system resource usage.

交付背景執行方法一直是被大型系統常使用的一種方法,主要用來處理大量運算或是需要大量耗時、耗資源的工作,一方面可以讓使用者不需在前端等待結果,造成時間的浪費;另一方面也可避免因此類較繁重的工作造成系統的負擔,讓系統可以保持足夠的資源讓其他功能進行。傳統的背景執行模式有兩類,說明如下:等待排程:使用者將任務交付後端後,由後端的排程程序進行排程,排程執行時間大多啟動於系統負荷較小的時間,例如凌晨時分,時間到後再觸發工作執行緒執行。Delivery background execution method has always been a method commonly used by large systems. It is mainly used to process a large number of operations or requires a lot of time-consuming and resource-intensive work. On the one hand, users can wait for the result at the front end without wasting time. On the other hand, it can also avoid the burden of the system caused by such heavy work, so that the system can maintain sufficient resources for other functions to proceed. There are two types of traditional background execution modes, which are described as follows: waiting for scheduling: After the user delivers the task to the back end, the scheduling program is scheduled by the back end, and the scheduling execution time is mostly started when the system load is small, for example. In the early hours of the morning, the work thread execution is triggered after the time is up.

立即執行:使用者將任務丟後端後,系統就會觸發執行緒來執行該項工作。Execute immediately: After the user drops the backend, the system will trigger the thread to perform the work.

交付後端等待排程執行工作,雖然可避免影響線上系統使用者的操作,但因為工作往往在交付後,須等到排程時間到達後,才開始執行,較適合周期性工作包,卻不適合具時效性工作包;另外工作的執行時間往往是半夜,執行期間若有任何問題,僅可於次日待系統工程師處理後才可繼續進行,進而影響上班尖峰時間的系統效能。The delivery backend waits for scheduled execution. Although it can avoid affecting the operation of online system users, because the work is often delivered, it must wait until the scheduled time has elapsed before starting execution. It is more suitable for periodic work packages, but not suitable for Time-sensitive work package; the execution time of other work is often in the middle of the night. If there are any problems during the execution, it can only be processed after the system engineer is processed the next day, which will affect the system performance of the peak time of work.

交付後端後立即執行方式,實作方式通常以多執行緒(Threads)方式進行,執行緒完成執行後將執行結果透過一些方法來通知使用者任務已完成(如:EMAIL),此種方法較適合具時效性的任務,且於執行時期若有發生錯誤,系統管理者通常也可即時的處理。但系統於大量使用者同時觸發過多工作,將導致系統的負荷加重,進而影響系統的效能,甚至造成系統停止服務,不但交付的工作無法完成,系統其他的功能也將無法服務,影響甚鉅。The implementation mode is implemented immediately after the backend is delivered. The implementation mode is usually performed in multiple threads (Threads). After the thread finishes executing, the execution result is notified to the user that the task has been completed (for example, EMAIL). Suitable for time-sensitive tasks, and if there is an error during the execution period, the system administrator can usually handle it immediately. However, if the system triggers too many jobs at the same time, the system will increase the load, which will affect the system's performance, and even cause the system to stop service. Not only can the delivery work be completed, but other functions of the system will not be serviced.

參考專利公開號200707243非同步資料查詢方法與系統以及執行該方法的電腦程式的儲存媒體中,所提出的專利僅針對非同步方式來交付後端執行,但就後端執行緒的控制以及系統的負荷均未予以考量,其主要交付後端執行的方式是採取立即執行方式,然交付後端執行包覆模組可改善其在大量使用者使用時,系統造成的負擔過大導致系統出現停止服務的情形;並且於系統繁忙時可動態調配交付後端執行的工作數,確保系統的穩定性。Referring to Patent Publication No. 200707243, the asynchronous data query method and system, and the storage medium of the computer program for executing the method, the proposed patent only delivers the backend execution in an asynchronous manner, but the control of the backend thread and the system The load is not considered, and the main way to deliver the back-end is to adopt the immediate execution mode. However, the delivery of the back-end execution of the package module can improve the system's excessive burden caused by the system when the user uses it. Situation; and when the system is busy, the number of jobs executed by the delivery backend can be dynamically provisioned to ensure the stability of the system.

由此可見,上述習用技術仍有諸多缺失,實非一良善之設計者,而亟待加以改良。本案發明人鑑於上述習用技術所衍生的各項缺點,乃亟思加以改良創新,並經多年苦心孤詣潛心研究後,終於成功發明完成本件一種交付背景執行包覆模組。It can be seen that there are still many shortcomings in the above-mentioned conventional technology, which is not a good designer, but needs to be improved. In view of the shortcomings derived from the above-mentioned conventional technologies, the inventor of the present invention has improved and innovated, and after years of painstaking research, he finally succeeded in inventing a delivery background-encapsulating module.

本發明的目的是在於提供一個較具效率且可調控的交付背景執行模組,此模組具備提供時效性任務的執行、兼顧系統效能可動態調整執行工作個數、動態調整工作執行權重等特點,除可解決傳統交付後端執行方法的缺陷,又可讓系統管理者充分掌握後端任務的執行情形,提升系統的穩定度與產出效能並降低系統管理的成本。The object of the present invention is to provide a more efficient and controllable delivery background execution module, which has the functions of providing time-sensitive tasks, taking into account system performance, dynamically adjusting the number of execution tasks, and dynamically adjusting work execution weights. In addition to solving the shortcomings of the traditional delivery back-end execution method, the system administrator can fully grasp the execution situation of the back-end task, improve the stability and output efficiency of the system, and reduce the cost of system management.

首先利用高階程式語言的反射(Reflection)、執行緒(Threads)來實作交付後端包覆模組,並於交付後立即啟動工作執行模組來解決傳統以排程方式作為交付後端的執行方式,達成交付工作需具備時效性的目的。First, use the reflection and Threads of the high-level programming language to implement the delivery of the back-end wrapper module, and immediately start the work execution module after delivery to solve the traditional execution mode of the delivery as the delivery backend. To achieve the purpose of delivery must be time-sensitive.

包覆模組再結合資料庫模組並實作號誌(Semaphore)與權重佇列(Weighting Queue),使包覆模組具備可動態調整交付後端執行工作的可執行個數,避免傳統因過多後端交付工作同時執行時,造成系統資源不足,導致的系統中斷或是緩慢的情形,嚴重影響系統的穩定度。The encapsulation module is combined with the database module and implemented as a Semaphore and a Weighting Queue, so that the encapsulation module can dynamically adjust the number of executables for the delivery of the backend, avoiding the traditional When too many back-end delivery tasks are executed at the same time, the system resources are insufficient, resulting in system interruption or slow situation, which seriously affects the stability of the system.

本發明額外提供後端工作量預警機制及提供後端執行工作之統計分析資料,以提供系統管理員針對包覆模組做最佳化的設定,並即時提出有問題的工作清單及錯誤訊息,縮減系統錯誤改善時間以及降低管理成本。The invention additionally provides a back-end workload warning mechanism and statistical analysis data for providing back-end execution work, so as to provide a system administrator to optimize settings for the package module, and immediately present a problematic work list and error message. Reduce system errors and improve management time and management costs.

可達成上述發明目的之交付背景執行包覆模組,係指一種運用於交付後端執行程式的包覆模組;主要係由:A delivery execution background module that achieves the above-described objects is a cladding module that is used to deliver a back-end execution program;

(1) 工作交付模組:交付模組是將使用者交付之工作儲存於資料庫模組中,交付模組將工作執行條件儲存並依據權重規則賦予該工作之執行權重;(1) Work Delivery Module: The delivery module stores the work delivered by the user in the database module, and the delivery module stores the work execution conditions and assigns the execution weight to the work according to the weighting rule;

(2) 工作執行模組:交付模組完成交付工作後,會接續啟動一個工作執行模組,執行模組首先取得目前等待執行工作中擁有最高權重的工作,再依據系統可執行之工作數來決定是否可執行,若無法執行,系統將啟動動態調整權重模組重新計算等待中相同類別工作的執行權重,此作法可避免低權重工作較難被執行的情形發生;若可執行,則於執行完成後將執行結果EMAIL通知前端使用者,若執行失敗則會EMAIL通知系統管理者,接續下一個工作執行;(2) Work execution module: After the delivery module completes the delivery work, it will start a work execution module. The execution module first obtains the work with the highest weight in the current waiting work, and then according to the number of work executable by the system. Decide whether it is executable. If it cannot be executed, the system will start the dynamic adjustment weight module to recalculate the execution weight of the same category of work in the waiting process. This method can avoid the situation where the low weight work is difficult to be executed; if it is executable, it is executed. After completion, the result EMAIL will be notified to the front-end user. If the execution fails, EMAIL will notify the system administrator to continue the next job execution;

(3) 動態調整權重模組:工作執行模組於判定交付之工作無法立即執行時,交付動態調整權重模組,此模組將該類等待執行的工作權重予以加權,加權方式依據權重演算法定義計算;(3) Dynamic adjustment weight module: The work execution module delivers a dynamic adjustment weight module when the judgment delivery work cannot be executed immediately, and the module weights the work weights waiting for execution, and the weighting method is based on the weight algorithm. Define calculations;

動態調整工作模組:系統管理員事先依據每個交付工作的類型及造成系統的負荷,於資料庫模組事先定義每個交付後端工作可同時執行的個數,並於執行時期藉由應用伺服器效能檢視工具來取得系統的負荷,透過管理介面取得各交付後端執行工作的執行情形,系統管理員綜合兩項資訊動態增減交付後端執行之工作數,提高系統的產出量及維持系統的穩定度。Dynamic adjustment work module: The system administrator pre-defines the number of simultaneous executions of each delivery back-end work in the database module according to the type of each delivery work and the load caused by the system, and uses the application during the execution period. The server performance inspection tool obtains the load of the system, and obtains the execution status of each delivery backend through the management interface. The system administrator comprehensively increases and decreases the number of work performed by the backend to improve the output of the system and Maintain system stability.

請參閱圖一所示,為本發明交付背景執行包覆模組功能模組圖,包括:複數個終端伺服器1,可以同時連接到應用伺服器2執行交付工作任務。一個資料庫伺服器(DB Server)3,係用於儲存交付背景執行工作的執行參數、工作執行情形及相關執行記錄。一個應用伺服器(AP Server)2,係依據終端伺服器1提出的服務要求將交付後端執行工作的參數儲存於資料庫伺服器(DB Server)3中,再依據工作執行條件執行各項任務程序,包括以下模組:Please refer to FIG. 1 , which is a functional module diagram of the execution module of the present invention, including: a plurality of terminal servers 1 , which can be simultaneously connected to the application server 2 to perform a delivery task. A database server (DB Server) 3 is used to store execution parameters, work execution situations, and related execution records for delivery background execution. An application server (AP Server) 2 stores the parameters for delivering the back-end execution work in the database server (DB Server) 3 according to the service request proposed by the terminal server 1, and then performs various tasks according to the work execution conditions. The program includes the following modules:

工作交付模組201,具備瀏覽器介面負責處理使用者工作交付作業,每項工作均有其對應的商業邏輯元件205,介面依據使用者的使用權限提供各工作需要參數的輸入,並於交付後端執行前驗證所有參數的合理性,通過後,將使用者賦予執行之工作交付後端執行;交付模組並提供工作執行過程與結果之查詢介面,以便使用者掌握工作執行狀態;The work delivery module 201 has a browser interface for processing user job delivery operations, and each job has its corresponding business logic component 205. The interface provides input of each work requirement parameter according to the user's usage authority, and after delivery, after delivery Verify the rationality of all parameters before execution, and then pass the user to the execution of the work to deliver the backend execution; deliver the module and provide the query interface for the work execution process and results, so that the user can master the work execution status;

工作執行模組202,具備工作喚起執行功能,負責處理交付後端執行工作的執行。工作執行模組202接續在工作交付模組201之後啟動,啟動後模組將在等待執行的工作中,取得各類工作裡權重最大的工作,接續透過控制Semaphore模組301來判斷工作可執行數是否已達系統設定上限,來決定此交付工作是否允許被執行,若可執行,模組運用Reflection技術觸發此工作的商用邏輯元件205,並開始執行,過程中若有任何錯誤產生,模組藉由例外分析機制,將錯誤訊息記錄至資料庫模組中,並藉由EMAIL通知系統管理者發生錯誤,以利後續錯誤處理作業;若工作正常執行結束,執行模組將依據執行參數的紀錄通知前端使用者執行完成;The work execution module 202 has a work evoke execution function and is responsible for processing the execution of the delivery backend execution work. The work execution module 202 is started after the work delivery module 201. After the startup, the module will obtain the most weighted work in various types of work in the work waiting for execution, and then determine the number of work executables by controlling the Semaphore module 301. Whether the system has set an upper limit to determine whether the delivery work is allowed to be executed. If it is executable, the module uses the Reflection technology to trigger the commercial logic component 205 of the work, and starts execution. If any error occurs during the process, the module borrows The exception analysis mechanism records the error message into the database module, and notifies the system administrator of the error by EMAIL, so as to facilitate the subsequent error processing; if the normal execution ends, the execution module will notify the record according to the execution parameter. The front-end user is executed;

動態調整權重模組203,具備重新計算工作權重功能,負責重新計算等待工作之權重。在工作執行模組202判定工作仍須等待後,動態調整權重模組203將依據權重演算法重新計算等待工作的權重,權重演算法公式為Wa=,參數說明如下:The dynamic adjustment weight module 203 has a recalculation work weight function and is responsible for recalculating the weight of the waiting work. After the work execution module 202 determines that the work still has to wait, the dynamic adjustment weight module 203 will recalculate the weight of the waiting work according to the weight algorithm, and the weight algorithm formula is Wa= The parameters are as follows:

● Wa:加權後權重值● Wa: weighted weight value

● Wb:加權前權重值● Wb: weighted pre-weight value

● F:系統管理者事先定義的加權因子● F: the weighting factor defined by the system administrator in advance

● DWTO:Descending waiting-time order,代表同類工作等待時間的遞減排序。● DWTO: Descending waiting-time order, which represents the descending ordering of similar work waiting times.

等待時間的長短以及權重加權因子都是影響重新計算後的權重高低,其中權重加權因子可動態調整,此模組可讓低權重但等待時間越久的工作得以適度提高權重,避免Starvation現象的產生;The length of the waiting time and the weighting weighting factor all affect the weight of the recalculated. The weighting weighting factor can be dynamically adjusted. This module can make the work with low weight but longer waiting time increase the weight and avoid the Starvation phenomenon.

動態調整工作模組204,具備可執行工作個數的調整模組,提供系統管理者依系統現況,彈性調整各項工作可執行個數,此模組可讓系統管理者避開系統尖峰時期來執行交付背景執行的工作,也可在系統資源可承受範圍下,將系統產出最大化;The dynamic adjustment working module 204 has an adjustment module capable of executing the number of work, and provides the system administrator to flexibly adjust the number of executable work according to the current situation of the system. The module allows the system administrator to avoid the system peak period. Performing the work of delivering the background execution can also maximize system output under the tolerance of system resources;

工作商業邏輯元件205,具備工作商業邏輯的程式碼,由程式設計師實做,此元件使用包覆模組所提供的共用介面函式來開發,可讓包覆模組於執行階段來觸發該元件,完成該元件所負責的商業邏輯程式,圖中A、B、C為代表不同的工作商業邏輯元件;The work business logic component 205, having the code of the work business logic, is implemented by the programmer. The component is developed using the shared interface function provided by the wrap module, and the wrap module can be triggered during the execution phase. Component, the business logic program responsible for the completion of the component, A, B, C in the figure represent different working business logic components;

控制Semaphore模組301,具備儲存Semaphore狀態的儲存模組,用於控制各項工作可運用的Semaphore個數,以及可觀察目前Semaphore的使用狀態,並藉由動態調整工作模組204來穩定系統之產出效能;一個系統若存在許多需大量耗費系統資源及非即時性的功能,例如大量的查詢、載檔功能,或是使用傳統交付後端執行的方法,本發明提供可控制的交付背景執行的模組,改善傳統交付背景執行方法的缺點,加入時效性及效能控管的特性。此模組包含兩個執行階段:交付階段、執行階段,以及動態調整工作模組204,說明如下:The Semaphore module 301 is provided with a storage module for storing the Semaphore state, which is used for controlling the number of Semaphores that can be used for each job, and observing the current state of use of the Semaphore, and stably adjusting the working module 204 to stabilize the system. Output efficiency; a system that provides controllable delivery background execution if there are many functions that require significant system resources and non-immediacy, such as a large number of queries, documentation functions, or methods that are performed using traditional delivery backends. The module improves the shortcomings of traditional delivery background execution methods, adding timeliness and performance control features. The module includes two execution phases: a delivery phase, an execution phase, and a dynamic adjustment work module 204, as follows:

交付階段:交付階段泛指前端使用者於終端機伺服器輸入工作執行參數,完成後送至資料庫儲存的整個程序,即稱做交付階段。包覆模組提供一個標準化的程式介面以及函式庫,讓程式設計師將負責工作所需之執行參數,存入資料庫模組中,工作執行參數的合理性判斷需由程式設計師實做,工作交付模組201於存入資料庫時,依據工作參數的範圍以及執行人的權限來賦予該項工作的執行權重,即完成工作交付階段,後續包覆模組將進入工作執行階段;Delivery phase: The delivery phase generally refers to the front-end user inputting the work execution parameters to the terminal server, and then sending the entire program to the database for storage, which is called the delivery phase. The wrapper module provides a standardized program interface and library, allowing the programmer to store the execution parameters required for the work in the database module. The rationality of the work execution parameters needs to be determined by the programmer. When the work delivery module 201 is stored in the database, the execution weight of the work is given according to the scope of the work parameters and the authority of the executor, that is, the work delivery phase is completed, and the subsequent wrapping module enters the work execution phase;

執行階段:執行階段泛指每次工作交付階段完成後,包覆模組將自動啟動工作執行階段程序,圖二為執行階段可執行工作的流程圖,詳述如下:Execution phase: The execution phase generally means that after each work delivery phase is completed, the wrap module will automatically start the work execution phase program. Figure 2 is a flow chart of the executable work in the execution phase, as detailed below:

1. 依據工作類別自資料庫模組中的Semaphore Pool取得對應可使用的Semaphore,並取得工作池中,擁有最大權重的工作來準備執行。1. According to the work category, obtain the corresponding Semaphore from the Semaphore Pool in the database module, and obtain the work with the greatest weight in the work pool to prepare for execution.

2. 自資料庫中,讀取該工作的各項執行參數。2. From the database, read the execution parameters of the job.

3. 以Java Reflection機制來觸發該工作的商業邏輯元件205,並將執行狀態記錄於資料庫模組中。3. The business logic component 205 that triggers the work is triggered by the Java Reflection mechanism, and the execution state is recorded in the database module.

4. 完成執行後,啟動EMAIL通知使用者執行結果。4. After the execution is completed, start EMAIL to notify the user to execute the result.

5. 重回第1步驟,直到沒有等待的工作執行。5. Return to step 1 until there is no waiting work to perform.

執行階段中若此類工作沒有任何可對應的Semaphore可使用時,動態調整權重模組203將依據權重演算法,將等待執行的工作權重予以重新計算,適度的增加其權重,將可以避免低權重工作較難被執行的問題。In the execution stage, if there is no corresponding Semaphore available for such work, the dynamic adjustment weight module 203 will recalculate the work weights waiting to be executed according to the weight algorithm, moderately increase its weight, and can avoid low weight. Work is harder to implement.

動態調整工作模組204:系統管理者藉由資料庫模組內記錄之工作執行狀態,以及參考應用伺服器提供的效能檢視器,來動態調整Semaphore個數,可獲得系統的最大輸出及穩定度。Dynamic adjustment work module 204: The system administrator dynamically adjusts the number of Semaphores by using the work execution status recorded in the database module and the performance checker provided by the application server to obtain the maximum output and stability of the system. .

本發明提供一個交付後端執行的包覆模組,利用執行緒(Threads)、程式語言的反射特性(Reflection)、資料庫交易特性(Transaction)以及權重佇列(Weighting Queue)來實作包覆模組,另外以Semaphore原理來控制交付後端工作同時執行個數,與前述引證案及其他習用技術相互比較時,更具有下列之優點:The present invention provides a wrapper module for delivering backend execution, which is implemented by using Threads, reflection characteristics of a programming language, transaction characteristics (Transaction), and Weighting Queue. The module, in addition to the Semaphore principle to control the delivery of the back-end work while executing the number, compared with the aforementioned citations and other conventional techniques, has the following advantages:

● 精簡應用程式的開發時程:透過Reflection特性,程式設計師僅需專注在開發任務的商業邏輯,無需處理其餘交付後端與工作執行階段的控制程式撰寫,大幅減少程式重複程式碼發生率,提升程式設計師的效率。● Streamlined application development time: Through the Reflection feature, the programmer only needs to focus on the business logic of the development task, without having to deal with the rest of the delivery backend and the control execution of the work execution stage, greatly reducing the program repetitive code generation rate. Improve the efficiency of the programmer.

● 系統效能調控與兼顧時效性:系統管理者可動態調整各項後端工作的Semaphore個數,來增加系統的產出;也可針對工作特性,單獨調整其工作權重,使該工作得以最優先執行,達成時效性的要求。● System performance control and timeliness: The system administrator can dynamically adjust the number of Semaphores for each back-end work to increase the output of the system; or adjust the work weights individually for the work characteristics, so that the work can be given the highest priority. Execution, meeting the requirements of timeliness.

● 提供交付後端工作的效能分析與除錯介面:藉由每個交付後端工作的執行記錄,系統管理者可輕易的取得每個工作執行的時間或錯誤的訊息記錄。● Provides a productivity analysis and debugging interface for delivering back-end work: With each execution record of the back-end job, system administrators can easily get a record of the time or error of each job execution.

● 工作權重的動態調整機制:於系統繁忙時,系統自動調增等待執行工作的權重,確保於系統較閒暇時可立即執行,避免低權重工作較難被執行的問題。● Dynamic adjustment mechanism of work weight: When the system is busy, the system automatically increases the weight of waiting for execution, ensuring that the system can be executed immediately when the system is idle, and avoiding the problem that low-weight work is difficult to be executed.

上述詳細說明僅為本發明眾多可行實施例中,列舉其中部分實施例的具體說明,惟此等實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。The above detailed description is only to be construed as illustrative of the preferred embodiments of the invention. Changes should be included in the scope of the patent in this case.

綜上所述,本案不但在技術應用思想層面上確屬創新,且較習知的方法增進上述多項功效,應已充分符合新穎性及進步性之法定發明專利要件,爰依法提出申請,懇請 貴局核准本件發明專利申請案,以勵發明,至感德便。In summary, this case is not only innovative in terms of technical application ideas, but also enhances the above-mentioned multiple functions by the well-known methods. It should fully comply with the statutory invention patent requirements of novelty and progressiveness, and apply for it according to law. The bureau approved the application for the invention patent, in order to invent the invention, to the sense of virtue.

1...終端伺服器1. . . Terminal server

2...應用伺服器2. . . Application server

3...資料庫伺服器3. . . Database server

201...工作交付模組201. . . Work delivery module

202...工作執行模組202. . . Work execution module

203...動態調整權重模組203. . . Dynamic adjustment weight module

204...動態調整工作模組204. . . Dynamic adjustment work module

205...工作商業邏輯元件205. . . Work business logic

301...控制Semaphore模組301. . . Control Semaphore Module

圖一為本發明之交付背景執行包覆模組系統功能模組圖Figure 1 is a functional module diagram of the delivery background module of the present invention

圖二為本發明之交付背景執行包覆模組執行階段之系統流程圖Figure 2 is a system flow diagram of the execution phase of the present invention executing the cladding module in the present invention

1...終端伺服器1. . . Terminal server

2...應用伺服器2. . . Application server

3...資料庫伺服器3. . . Database server

201...工作交付模組201. . . Work delivery module

202...工作執行模組202. . . Work execution module

203...動態調整權重模組203. . . Dynamic adjustment weight module

204...動態調整工作模組204. . . Dynamic adjustment work module

205...工作商業邏輯元件205. . . Work business logic

301...控制Semaphore模組301. . . Control Semaphore Module

Claims (8)

一種交付背景執行包覆模組,包括:一資料庫伺服器,用以儲存工作執行模組交付之工作執行參數、控制號誌模組設定資料、交付工作執行歷程與錯誤訊息記錄;一應用伺服器,用以集中並提供各交付端執行工作之執行平台,並以網路介面對該資料庫伺服器進行交付工作資料的存取;以及一終端伺服器,係用以連接到該應用伺服器以執行交付工作任務。A delivery background execution wrapping module includes: a database server for storing work execution parameters delivered by the work execution module, control code module setting data, delivery work execution history and error message records; The device is used to centralize and provide an execution platform for each delivery end to perform work, and access the work data to the database server through the network; and a terminal server for connecting to the application server To perform delivery tasks. 如申請專利範圍第1項所述之交付背景執行包覆模組,其中該應用伺服器更進一步包含一包括工作交付模組,其係用以處理該終端伺服器交付執行工作的執行參數之合理性驗證,以及依據權重規則賦予該執行工作之執行權重,並用以啟動該工作執行模組。The delivery background execution wrapping module as described in claim 1 wherein the application server further comprises a work delivery module configured to process the execution parameters of the terminal server delivery execution work. Sexual verification, and the execution weight given to the execution work according to the weighting rule, and used to start the work execution module. 如申請專利範圍第1項所述之交付背景執行包覆模組,其中該應用伺服器更進一步包含一工作執行模組,其係用以取得執行參數,並依該執行工作之執行權重決定是否執行,接著啟動該工作商業邏輯元件。The delivery background execution wrapping module of claim 1, wherein the application server further comprises a work execution module for obtaining execution parameters and determining whether the execution weight of the execution work is Execute, then start the work business logic component. 如申請專利範圍第1項所述之交付背景執行包覆模組,其中該應用伺服器更進一步包含一工作商業邏輯元件,該工作商業邏輯元件包含一共用介面函式,該共用介面函式係為啟動該工作商業邏輯元件的介面。The delivery background execution wrapping module of claim 1, wherein the application server further comprises a working business logic component, the working business logic component comprising a common interface function, the common interface function system To initiate the interface of the working business logic component. 如申請專利範圍第1項所述之交付背景執行包覆模組,其中該應用伺服器更進一步包含一動態調整權重模組,當該工作執行模組於判定交付之工作無法立即執行時,該動態調整權重模組依據權重演算法對等待執行的工作權重予以加權。The delivery background execution wrapping module as described in claim 1, wherein the application server further comprises a dynamic adjustment weight module, when the work execution module cannot perform the work of determining delivery immediately, The dynamic adjustment weight module weights the work weights awaiting execution according to the weighting algorithm. 如申請專利範圍第1項所述之交付背景執行包覆模組,其中該應用伺服器更進一步包含一動態調整工作模組,其係提供系統管理員動態調整各類工作的執行個數,並藉以動態調整號誌模組。The delivery background execution encapsulation module as described in claim 1 , wherein the application server further comprises a dynamic adjustment work module, which provides a system administrator to dynamically adjust the number of executions of various types of work, and To dynamically adjust the number module. 如申請專利範圍第1項所述之交付背景執行包覆模組,其中該應用伺服器更進一步包含一控制號誌模組,其係提供各類交付後端工作的Semaphore記錄與相關使用情形,以收集並分析相關資料。The delivery background execution wrapping module as described in claim 1 wherein the application server further comprises a control number module, which provides various Semaphore records and related use cases for delivering backend work. To collect and analyze relevant information. 如申請專利範圍第5項所述之交付背景執行包覆模組,其中該權重演算法係以加權因子、等待時間排序、原工作權重作為加權權重計算的基礎,再以一數學模型加以計算新的權重值。For example, the delivery background execution wrapping module described in claim 5, wherein the weighting algorithm is based on a weighting factor, a waiting time sorting, and an original working weight as a basis for weighting weight calculation, and then calculating a new mathematical model. Weight value.
TW101112201A 2011-12-08 2011-12-08 Entrusted background execution encapsulated module TW201324360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101112201A TW201324360A (en) 2011-12-08 2011-12-08 Entrusted background execution encapsulated module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101112201A TW201324360A (en) 2011-12-08 2011-12-08 Entrusted background execution encapsulated module

Publications (2)

Publication Number Publication Date
TW201324360A true TW201324360A (en) 2013-06-16
TWI466026B TWI466026B (en) 2014-12-21

Family

ID=49033013

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101112201A TW201324360A (en) 2011-12-08 2011-12-08 Entrusted background execution encapsulated module

Country Status (1)

Country Link
TW (1) TW201324360A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI552079B (en) * 2013-09-18 2016-10-01 Chunghwa Telecom Co Ltd Intelligent multi - layer job assignment system and its
CN112416826A (en) * 2020-11-20 2021-02-26 成都海光集成电路设计有限公司 Special computing chip, DMA data transmission system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7047337B2 (en) * 2003-04-24 2006-05-16 International Business Machines Corporation Concurrent access of shared resources utilizing tracking of request reception and completion order
GB0519981D0 (en) * 2005-09-30 2005-11-09 Ignios Ltd Scheduling in a multicore architecture

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI552079B (en) * 2013-09-18 2016-10-01 Chunghwa Telecom Co Ltd Intelligent multi - layer job assignment system and its
CN112416826A (en) * 2020-11-20 2021-02-26 成都海光集成电路设计有限公司 Special computing chip, DMA data transmission system and method
CN112416826B (en) * 2020-11-20 2023-09-22 成都海光集成电路设计有限公司 Special computing chip, DMA data transmission system and method

Also Published As

Publication number Publication date
TWI466026B (en) 2014-12-21

Similar Documents

Publication Publication Date Title
US10049133B2 (en) Query governor across queries
JP5448032B2 (en) Resource management apparatus, resource management program, and resource management method
JP6447120B2 (en) Job scheduling method, data analyzer, data analysis apparatus, computer system, and computer-readable medium
JP6386165B2 (en) Method and apparatus for managing jobs that can and cannot be interrupted when there is a change in power allocation to a distributed computer system
WO2021159638A1 (en) Method, apparatus and device for scheduling cluster queue resources, and storage medium
US9755988B2 (en) Method and system for arbitraging computer resources in a cloud computing environment
US8578381B2 (en) Apparatus, system and method for rapid resource scheduling in a compute farm
US8024615B2 (en) Steady state computer testing
CN110806933B (en) Batch task processing method, device, equipment and storage medium
JP2962365B2 (en) Method and computer system for improving response time of a computer system to a user request
US9262210B2 (en) Light weight workload management server integration
WO2017016421A1 (en) Method of executing tasks in a cluster and device utilizing same
CN111858065B (en) Data processing method, device, storage medium and device
Chard et al. Cost-aware cloud provisioning
JP2007034414A5 (en)
JP6369170B2 (en) Execution time estimation apparatus and method
US20080221857A1 (en) Method and apparatus for simulating the workload of a compute farm
WO2017005115A1 (en) Adaptive optimization method and device for distributed dag system
KR101770191B1 (en) Resource allocation and apparatus
Begam et al. Timer-cloud: Time-sensitive vm provisioning in resource-constrained clouds
CN115033375A (en) Distributed task scheduling method, device, equipment and storage medium in cluster mode
TW201324360A (en) Entrusted background execution encapsulated module
Ramaprasad et al. Bounding worst-case response time for tasks with non-preemptive regions
Grounds et al. Cost-minimizing scheduling of workflows on a cloud of memory managed multicore machines
Wang et al. Improving utilization through dynamic VM resource allocation in hybrid cloud environment

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees