TWI748653B - System and method for determining operation status of device by updating execution status - Google Patents
System and method for determining operation status of device by updating execution status Download PDFInfo
- Publication number
- TWI748653B TWI748653B TW109132382A TW109132382A TWI748653B TW I748653 B TWI748653 B TW I748653B TW 109132382 A TW109132382 A TW 109132382A TW 109132382 A TW109132382 A TW 109132382A TW I748653 B TWI748653 B TW I748653B
- Authority
- TW
- Taiwan
- Prior art keywords
- server
- data
- host
- execution status
- slave server
- Prior art date
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
一種裝置運作狀況判斷系統及其方法,特別係指一種透過更新執行狀態判斷裝置運作狀況之系統及方法。A system and method for judging device operating status, in particular, refers to a system and method for judging device operating status by updating execution status.
隨著經濟與科技的發展,大型企業的規模越來越大,且通訊與交通工具也有大幅度的進步,使得企業集團可以在不同的地點設置辦公室,並建立內部網路以連接不同的辦公室。With the development of economy and technology, the scale of large-scale enterprises is getting bigger and bigger, and communication and transportation have also made great progress, so that enterprise groups can set up offices in different locations and establish internal networks to connect different offices.
企業集團所建立之內部網路通常是依據不同的地理位置建立不同網域,並為每個網域設定符合需求的存取權限,如此,透過網路拓撲結構和網域的存取權限,便可以實現讓不同網域中的資料應用主機連線到資料提供伺服器進行資料存取。Intranets established by enterprise groups usually create different domains based on different geographic locations, and set access permissions that meet the requirements for each domain. In this way, through the network topology and the access permissions of the domains, It is possible to allow data application hosts in different domains to connect to the data providing server for data access.
一般而言,即使都是同一企業集團內部的裝置,但資料提供伺服器大多不會監控執行消費應用系統或資料查詢服務之資料應用主機是否可以正常運作。但若資料提供伺服器沒有監控資料應用主機的運作狀況,資料提供伺服器可能會在資料應用主機無法正常運作的情況下,反復進行資料推送,造成頻寬與資源的浪費,甚至導致資料應用主機的資料錯誤。Generally speaking, even if they are all devices within the same enterprise group, most of the data providing servers do not monitor whether the data application host that executes the consumer application system or the data query service can operate normally. However, if the data providing server does not monitor the operating status of the data application host, the data providing server may repeatedly push data when the data application host is not functioning normally, resulting in waste of bandwidth and resources, and even the data application host. The data is wrong.
因此,目前也有部分的資料提供伺服器依靠與資料應用主機間互相傳送的請求封包及/或回應封包、或透過監控資料應用主機所執行的特定程序等方式來判斷資料應用主機的運作狀況是否正常。然而,透過收發請求封包/回應封包的方式需要在資料提供伺服器與資料應用主機上開發對應的應用子系統以提供相關介面,將增加額外的開發成本與負擔;而透過監控客戶端主機所執行的特定程序的方式則需要額外對監控所取得的資料進行分析,同樣也需要增加成本與負擔。Therefore, at present, some data-providing servers rely on request packets and/or response packets sent to and from the data application host, or by monitoring specific procedures executed by the data application host to determine whether the data application host is operating normally. . However, the method of sending and receiving request packets/response packets requires the development of corresponding application subsystems on the data providing server and the data application host to provide related interfaces, which will increase additional development costs and burdens; and by monitoring the execution of the client host The method of specific procedures requires additional analysis of the data obtained by monitoring, and also requires additional costs and burdens.
綜上所述,可知先前技術中長期以來一直存在目前由資料提供伺服器監控資料應用主機之運作狀態將額外增加成本的問題,因此有必要提出改進的技術手段,來解決此一問題。In summary, it can be seen that the prior art has long been a problem that the current operating status of the data application host monitored by the data providing server will increase the cost. Therefore, it is necessary to propose improved technical means to solve this problem.
有鑒於先前技術存在由資料提供伺服器監控資料應用主機之運作狀態將增加成本的問題,本發明遂揭露一種透過更新執行狀態判斷裝置運作狀況之系統及方法,其中:In view of the problem in the prior art that monitoring the operation status of the data application host by the data providing server will increase the cost, the present invention discloses a system and method for judging the operation status of the device by updating the execution status, in which:
本發明所揭露之透過更新執行狀態判斷裝置運作狀況之系統,至少包含:主伺服器,用以於判斷目標資料發生變化時,產生並記錄包含執行狀態之事件資料;消費主機;從伺服器,用以與主伺服器同步資料,並在偵測到事件資料時,產生下載通知訊息並傳送下載通知訊息至消費主機,及依據下載通知訊息是否成功傳送給消費主機更新執行狀態,使消費主機於接收到下載通知訊息時至從伺服器讀取目標資料,及用以於成功傳送下載通知訊息至消費主機後,依據消費主機是否讀取目標資料更新執行狀態,並依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常。The system for judging the operating status of the device by updating the execution status disclosed in the present invention at least includes: a master server for generating and recording event data including the execution status when determining target data changes; a consumer host; a slave server, It is used to synchronize data with the main server, and when event data is detected, it generates a download notification message and sends the download notification message to the consumer host, and based on whether the download notification message is successfully sent to the consumer host to update the execution status, the consumer host will When the download notification message is received until the target data is read from the server, and after the download notification message is successfully sent to the consumer host, the execution status is updated according to whether the consumer host reads the target data, and the consumer host and slave are judged according to the execution status. Whether the connection between the server and the consumer host is abnormal.
本發明所揭露之透過更新執行狀態判斷裝置運作狀況之方法,其步驟至少包括:主伺服器於判斷目標資料發生變化時,產生並記錄包含執行狀態之事件資料;從伺服器與主伺服器同步資料;從伺服器於偵測到事件資料時,產生下載通知訊息並傳送下載通知訊息至消費主機;從伺服器依據下載通知訊息是否成功傳送給消費主機更新執行狀態;消費主機於接收到下載通知訊息後,至從伺服器讀取目標資料;從伺服器於成功傳送下載通知訊息至消費主機後,依據消費主機是否讀取目標資料更新執行狀態;從伺服器依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常。The method for judging the operating status of the device by updating the execution status disclosed in the present invention includes at least the steps: the master server generates and records event data including the execution status when the target data changes; and the slave server synchronizes with the master server Data; when the slave server detects event data, it generates a download notification message and sends the download notification message to the consumer host; the slave server sends the download notification message to the consumer host to update the execution status according to whether the download notification message is successful; the consumer host receives the download notification After the message, until the target data is read from the server; after the download notification message is successfully sent from the server to the consumer host, the execution status is updated according to whether the consumer host reads the target data; the server judges the consumer host and slave server according to the execution status Whether the connection between the device and the consumer host is abnormal.
本發明所揭露之系統與方法如上,與先前技術之間的差異在於本發明透過伺服器於判斷目標資料發生變化時記錄包含執行狀態之事件資料後,從伺服器於偵測到事件資料時依據所產生之下載通知訊息是否成功傳送給消費主機更新執行狀態,並依據消費主機是否讀取目標資料更新執行狀態,及依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常,藉以解決先前技術所存在的問題,並可以達成準確得知資料提供伺服器與資料應用主機之是否異常及發生異常之時間的技術功效。The system and method disclosed in the present invention are as above. The difference with the prior art is that the present invention uses the server to record the event data including the execution status when the target data changes, and then the server detects the event data based on Whether the generated download notification message is successfully sent to the consumer host to update the execution status, and update the execution status according to whether the consumer host reads the target data, and judge whether the consumer host and the connection between the slave server and the consumer host are abnormal according to the execution status. In order to solve the problems existing in the prior art, the technical effect of accurately knowing whether the data providing server and the data application host are abnormal and the time when the abnormality occurs can be achieved.
以下將配合圖式及實施例來詳細說明本發明之特徵與實施方式,內容足以使任何熟習相關技藝者能夠輕易地充分理解本發明解決技術問題所應用的技術手段並據以實施,藉此實現本發明可達成的功效。In the following, the features and implementation of the present invention will be described in detail with the drawings and embodiments. The content is sufficient to enable any person familiar with the relevant art to easily and fully understand the technical means used by the present invention to solve the technical problems and implement them accordingly. The achievable effect of the present invention.
本發明可以透過在主伺服器中記錄與目標資料對應的執行狀態,藉以依據執行狀態判斷從伺服器及消費主機的運作狀態與相互間之連接狀態是否異常。在本發明中,消費主機可以透過目標資料提供服務(包含但不限於監控服務、統計服務等)。The present invention can record the execution status corresponding to the target data in the master server, thereby judging whether the operation status of the slave server and the consumer host and the connection status between them are abnormal according to the execution status. In the present invention, the consumer host can provide services (including but not limited to monitoring services, statistical services, etc.) through target data.
以下先以「第1圖」本發明所提之透過更新執行狀態判斷裝置運作狀況之系統架構圖來說明本發明的系統運作。如「第1圖」所示,本發明之系統含有消費主機110、主伺服器120、送伺服器130。其中,消費主機110、主伺服器120、從伺服器130都可以是計算設備。需要說明的是,在本發明中,消費主機110及從伺服器130可以不只一個,也就是可能有兩個或兩個以上的消費主機110或從伺服器130。Hereinafter, the system operation of the present invention will be explained by using the "Figure 1" of the present invention to determine the operation status of the device by updating the execution status of the system architecture diagram. As shown in "Figure 1", the system of the present invention includes a
消費主機110可以透過有線網路或無線網路與主伺服器120及從伺服器130連接,並可以接收主伺服器120/從伺服器130所傳送的資料或訊號,也可以傳送資料或訊號給主伺服器120/從伺服器130。本發明所提之有線網路包含但不限於纜線直接連接、乙太網路等;本發明所提之無線網路例如3G/4G/5G等行動通訊網路(蜂巢式網路)、WiFi、Zigbee等無線區域網路、藍牙、紅外線、近端通訊等,但本發明並不以此為限。The
消費主機110可以設定一個或多個目標識別資料。消費主機110所設定之目標識別資料至少能夠表示消費主機110欲取得之目標資料,例如,目標識別資料可以是目標資料的名稱,也可以是目標資料的名稱與能夠表示目標資料所發生之操作的操作識別碼等,但本發明並不以此為限。其中,操作為對目標資料進行新增、更新、刪除等,但操作並不以上述為限,凡可以讓目標資料被改變的動作都可以是本發明所提之操作;操作識別碼可以由任意數量之文字、數字、字母、符號以任意順序排列而成。The
消費主機110也可以產生註冊請求。消費主機110所產生的註冊請求包含所設定的目標識別資料。一般而言,註冊請求還包含消費主機110的網路識別資料。在部分的實施例中,註冊請求也可以包含其他訊息,例如,消費主機的相關資訊、目標資料的請求來源等,但本發明並不以此為限。其中,網路識別資料包含但別限於網路位址(IP address)。The
消費主機110也可以傳送所產生的註冊請求至主伺服器120。在大部分的實施例中,消費主機110可以使用主伺服器120所提供之應用程式介面(API)與主伺服器120連接,並透過主伺服器120所提供之應用程式介面將註冊請求傳送給主伺服器120。The
消費主機110也負責接收從伺服器130傳送的下載通知訊息。消費主機110所接收到的下載通知訊息可以包含目標識別資料,但本發明並不以此為限,例如下載通知訊息中還可以包含從伺服器130所提供之應用程式介面的相關資訊等。The
消費主機110也負責依據所接收到之下載通知訊息連線至發出下載通知訊息的從伺服器130,並負責由所連接之從伺服器130下載目標資料。消費主機110可以依據下載通知訊息所記載之應用程式介面連線至從伺服器130以下載目標資料,但本發明並不以此為限,例如,消費主機110也可以在接收到下載通知訊息時直接將下載目標資料的請求傳回給從伺服器130。The
主伺服器120可以透過有線或無線網路與消費主機110及從伺服器130連接,並可以接收消費主機110/從伺服器130所傳送的資料或訊號,也可以傳送資料或訊號給消費主機110/從伺服器130。The
主伺服器120可以決定與消費主機110對應的從伺服器130。一般而言,主伺服器120可以依據消費主機110的網路識別資料決定與消費主機110對應的從伺服器130,例如,主伺服器120可以選擇與消費主機110在相同網域之從伺服器130與消費主機110對應,但本發明並不以此為限。The
主伺服器120也可以接收消費主機110所傳送的目標識別資料,並可以將所接收到的目標識別資料傳送給與消費主機110對應的從伺服器130。在部分的實施例中,主伺服器120也可以由傳送目標識別資料的請求中讀出消費主機110的網路識別資料,並將網路識別資料連同目標識別資料一同傳送給從伺服器130。The
主伺服器120也可以儲存包含目標資料之各種資料。若主伺服器120使用資料庫儲存資料,則主伺服器120可以在資料庫中額外建立並維護特定的事件表;而若主伺服器120並非使用資料庫儲存資料,則主伺服器120可以使用檔案建立並維護事件表。The
主伺服器120並可以在所儲存之資料被操作(如新增、修改、刪除)之操作事件被觸發而導致所儲存之資料發生變化時,於所維護之事件表中新增一筆資料被操作的事件資料。主伺服器120所維護之事件表所儲存的每一筆事件資料可以包含被操作之資料的識別資料(如名稱)、表示被操作之行為的操作識別碼、及執行狀態,但本發明並不以此為限,例如,事件資料還可以包含資料被操作的時間及狀態被更新的時間等。在部分的實施例中,事件資料被新增時的執行狀態可以是表示資料已建立的訊息。The
主伺服器120也可以依據所維護之事件表中的執行狀態判斷從伺服器130的運作狀態及從伺服器130與主伺服器120間之連線狀態是否異常。更詳細的,當事件表中之執行狀態為表示通知成功或傳送成功的訊息時,主伺服器120可以判斷從伺服器130的功能正常,且主伺服器120與從伺服器130間之連線狀態及從伺服器130與消費主機110間之連線狀態都正常;當事件表中之執行狀態為表示通知失敗或傳送失敗的訊息時,主伺服器120同樣可以判斷從伺服器130的功能正常,且主伺服器120與從伺服器130間之連線狀態正常,但可以判斷從伺服器130與消費主機110間之連線狀態異常;當事件表中之執行狀態為表示已讀取或結束的訊息時,主伺服器120可以判斷從伺服器130與消費主機110的功能都正常,且主伺服器120與從伺服器130間之連線狀態及從伺服器130與消費主機110間之連線狀態也都正常;當事件表中之執行狀態為資料取得異常的訊息時,主伺服器120可以判斷從伺服器130的功能正常,且主伺服器120與從伺服器130間之連線狀態及從伺服器130與消費主機110間之連線狀態都正常,但消費主機110的功能異常;當事件表中之執行狀態持續為表示資料已建立的訊息時,主伺服器120可以判斷從伺服器130功能異常及/或主伺服器120與從伺服器130間之連線狀態異常。The
從伺服器130可以透過有線或無線網路與主伺服器120及消費主機110連接,並可以接收主伺服器120/消費主機110所傳送的資料或訊號,也可以傳送資料或訊號給主伺服器120/消費主機110。The
從伺服器130可以與主伺服器120同步資料。其中,從伺服器130與主伺服器120同步的資料可以包含主伺服器120所維護的事件表,及可以包含主伺服器120儲存的所有資料或與所對應之消費主機110傳送給主伺服器120之目標識別資料對應的目標資料。The
從伺服器130也可以接收主伺服器120所傳送之目標識別資料及網路識別資料,並可以將所接收到之目標識別資料與網路識別資料做為一筆資料記錄到主機關注資料表中,藉以建立與目標識別資料對應之目標資料及網路識別資料所表示之消費主機110的對應關係。The
從伺服器130也負責偵測與主伺服器120同步的資料中是否存在事件資料。從伺服器130可以透過資料庫管理程式(或稱資料庫管理系統,DBMS)所提供的監控功能持續監控被新加入與主伺服器120同步之事件表的記錄或在每次與主伺服器120同步資料後查詢事件表所新增的事件資料,藉以取得被新增到事件表中的事件資料;而若從伺服器130並非使用資料庫儲存資料,則從伺服器130可以在每次與主伺服器120同步資料後查詢事件表所新增的事件資料,藉以取得被新增到事件表中的事件資料。從伺服器130並可以在所取得之事件資料中包含與目標資料對應之目標識別資料時,判斷偵測到事件資料。例如,若目標識別資料僅為目標資料的名稱,當被新增到事件表中之事件資料包含目標資料的名稱時,從伺服器130即可以判斷偵測到事件資料;而若目標識別資料包含目標資料的名稱與操作識別碼,則從伺服器130可以在被新增到事件表中之一筆事件資料同時包含目標資料的名稱與相同的操作識別碼時,才判斷偵測到事件資料。The
從伺服器130也負責在偵測到事件資料時,產生下載通知訊息。從伺服器130也負責將所產生的下載通知訊息傳送給與所偵測到之事件資料相對應的消費主機110。更詳細的,從伺服器130可以由所維護之主機關注資料表中讀出與所偵測到之事件資料中的目標識別資料相對應的網路識別資料,並將下載通知訊息傳送給與所取得之網路識別資料對應的消費主機110。The
從伺服器130也負責依據傳送下載通知訊息給相對應之消費主機110的結果更新與主伺服器120同步之事件表中的執行狀態。例如,當從伺服器130在傳送下載通知訊息給消費主機110後一定時間內接收到消費主機110所傳送之表示接收到下載通知訊息的回應時,從伺服器130可以將事件表中相對應之事件資料的執行狀態更新為表示傳送成功或通知成功的訊息;而當從伺服器130無法傳送下載通知訊息給消費主機110,或從伺服器130在傳送下載通知訊息給消費主機110後一定時間內都沒有接收到消費主機110所傳送之表示接收到下載通知訊息的回應時,從伺服器130可以將事件表中相對應之事件資料的執行狀態更新為表示傳送失敗或通知失敗的訊息。但從伺服器130判斷下載通知訊息是否成功傳送給消費主機110的方式並不以此為限。The
從伺服器130也可以提供應用程式介面給相對應之消費主機110下載目標資料。從伺服器130可以為所有目標資料提供相同的應用程式介面,也可以分別為不同的目標資料提供不同的應用程式介面,本發明並沒有特別的限制。The
從伺服器130也負責接收相對應之消費主機110所傳送的讀取請求,並負責依據所接收到之讀取請求中的目標識別資料讀出相對應的目標資料,及負責將所讀出之目標資料傳回相對應之消費主機110。若從伺服器130提供應用程式介面給消費主機110,則從伺服器130可以透過所提供之應用程式介面接收消費主機110所傳送的讀取請求,並透過應用程式介面將目標資料傳回消費主機110。The
從伺服器130也負責在將所讀出之目標資料傳回相對應之消費主機110時,將與主伺服器120同步之事件表中相對應之事件資料的執行狀態更新為表示已讀取或結束的訊息。從伺服器130也負責在將事件表中的執行狀態更新為表示傳送成功或通知成功的訊息後預定時間內都沒有接收相對應之消費主機110所傳送的讀取請求時,將事件表中相對應之事件資料的執行狀態更新為表示資料讀取異常的訊息。The
從伺服器130也負責依據事件表中之執行狀態判斷消費主機110的運作狀態及從伺服器130與消費主機110間之連線狀態是否異常。更詳細的,當與主伺服器120同步之事件表中的執行狀態為表示通知成功或傳送成功的訊息時,從伺服器130可以判斷從伺服器130與消費主機110間之連線狀態正常;當事件表中之執行狀態為表示通知失敗或傳送失敗的訊息時,主伺服器120可以判斷從伺服器130與消費主機110間之連線狀態異常;當事件表中之執行狀態為表示已讀取或結束的訊息時,主伺服器120可以判斷消費主機110的功能正常且從伺服器130與消費主機110間之連線狀態正常;當事件表中之執行狀態為資料取得異常的訊息時,主伺服器120可以判斷從伺服器130與消費主機110間之連線狀態正常但消費主機110的功能異常。The
接著以一個實施例來解說本發明的運作系統與方法,並請參照「第2A圖」本發明所提之透過更新執行狀態判斷裝置運作狀況之方法流程圖。Next, an embodiment is used to explain the operating system and method of the present invention, and please refer to "Figure 2A" the flowchart of the method for judging the operating status of the device by updating the execution status of the present invention.
首先,主伺服器120可以持續判斷所儲存的資料是否發生變化,並可以在所儲存之資料被操作而發生變化時,產生相對應的事件資料,及將所產生的事件資料寫入所維護的事件表中(步驟220),其中,主伺服器120所產生之事件資料的執行狀態欄位中可以包含表示資料已建立的訊息。First, the
在從伺服器130與主伺服器120進行資料同步(步驟230)後,從伺服器130可以偵測被同步的資料中是否存在主伺服器120所產生的事件資料。在本實施例中,假設從伺服器130與主伺服器120同步的資料中包含主伺服器120所維護的事件表,則從伺服器130可以在每次同步後至與主伺服器120同步之事件表中查詢新增的事件資料或透過資料庫的監控功能持續監控事件表所新增的事件資料,並可以比對事件表中新增之事件資料中的目標識別資料與所維護之主機關注資料表中的目標識別資料,當事件資料與主機關注資料表中存在相同的目標識別資料時,從伺服器130可以判斷偵測到事件資料。After the data synchronization between the
從伺服器130可以在判斷偵測到事件資料後,可以產生下載通知訊息,並可以將所產生的下載通知訊息傳送給消費主機110(步驟240)。在本實施例中,假設從伺服器130所產生的下載通知訊息包含目標識別資料及提供給消費主機110讀取目標資料的應用程式介面,且從伺服器130可以依據所維護之主機關注資料表中讀出與事件資料中之目標識別資料對應的網路識別資料,並將下載通知訊息傳送給與所取得之網路識別資料對應的消費主機110。The
在伺服器130將所產生的下載通知訊息傳送給消費主機110(步驟240)後,從伺服器130可以依據下載通知訊息是否成功傳送給消費主機110更新與主伺服器120同步之事件表中對應事件資料的執行狀態(步驟250)。After the
在消費主機110接收到從伺服器130所傳送的下載通知訊息後,消費主機110可以連線至從伺服器130,並可以由從伺服器130讀取目標資料(步驟260)。在本實施例中,假設消費主機110可以依據下載通知訊息中所包含的應用程式介面與從伺服器130連接,並透過應用程式介面向從伺服器130請求下載與下載通知訊息中之目標識別資料對應的目標資料。After the
在從伺服器130判斷下載通知訊息成功傳送給消費主機110後,可以依據消費主機110是否讀取目標資料以更新與主伺服器120同步之事件表中對應事件資料的執行狀態(步驟270)。在本實施例中,假設從伺服器130可以在將事件表中相對應之事件資料的執行狀態更新為表示傳送成功或通知成功的訊息後,開始倒數計時。若消費主機110於從伺服器130倒數結束的時間內連線至從伺服器130讀取目標資料,則從伺服器130可以將執行狀態更新為表示結束作業或資料已讀取的訊息;而若在從伺服器130倒數結束時,消費主機110都沒有連線至從伺服器130,則從伺服器130可以將執行狀態更新為表示資料讀取異常的訊息。After the
在從伺服器130依據消費主機110是否讀取目標資料而更新與主伺服器120同步之事件表中對應事件資料的執行狀態(步驟270)後,從伺服器130可以依據與主伺服器120同步之事件表中各事件資料的執行狀態判斷對應之消費主機110的運作狀態及從伺服器130與消費主機110間之連線狀態是否異常(步驟280)。After the
另外,本發明也可以如「第2C圖」之流程所示,在從伺服器130與主伺服器120進行資料同步(步驟230)後,主伺服器120可以依據所維護之事件表中各事件資料的執行狀態判斷對應之從伺服器130的運作狀態及主伺服器120與從伺服器130間之連線狀態是否異常(步驟290)。In addition, the present invention can also be as shown in the flow chart of "Figure 2C". After the
如此,透過本發明,可以準確的判斷資料提供伺服器(從伺服器130)與資料應用主機(消費主機110)的運作狀況。In this way, through the present invention, the operation status of the data providing server (slave server 130) and the data application host (consumer host 110) can be accurately determined.
上述實施例中,在從伺服器130偵測到事件資料前(步驟240),消費主機110可以先向主伺服器120註冊所關注的目標資料,使得與消費主機110對應的從伺服器130建立目標資料與消費主機110的對應關係,藉以讓從伺服器130可以在偵測到事件資料時,依據所建立之對應關係傳送所產生的下載通知訊息至對應的消費主機110。In the above embodiment, before the event data is detected from the server 130 (step 240), the
更詳細的,如「第2B圖」之流程所示,消費主機110可以設定與所需關注之目標資料對應的目標識別資料,並可以產生註冊請求,及可以將所產生的註冊請求傳送給主伺服器120(步驟211)。其中,假設註冊請求除了包含目標識別資料之外,還包含消費主機110的裝置識別資料、及目標識別資料的存取網址,消費主機110可以依據主伺服器120所提供的應用程式介面將註冊請求傳送給主伺服器120。In more detail, as shown in the process of "Figure 2B", the
在主伺服器120接收到消費主機110所傳送之包含目標識別資料的註冊請求(步驟211)後,主伺服器120可以為發出註冊請求的消費主機110選擇做為與消費主機110對應之從伺服器130,並可以將註冊請求中的目標識別資料傳送給與消費主機110對應的從伺服器130(步驟215)。其中,假設網路識別資料為網路位址,主伺服器120可以由註冊請求中取得消費主機110的網路位址,並依據所取得之網路位址選出與消費主機110在相同網域之從伺服器130做為與消費主機110對應的從伺服器130。After the
在主伺服器120將目標識別資料及網路識別資料傳送給與消費主機110對應的從伺服器130(步驟215)後,從伺服器130可以將所接收到的目標識別資料及網路識別資料做為一筆資料寫入所維護的主機關注資料表中,藉以建立目標資料與消費主機110的對應關係。After the
綜上所述,可知本發明與先前技術之間的差異在於具有伺服器於判斷目標資料發生變化時記錄包含執行狀態之事件資料後,從伺服器於偵測到事件資料時依據所產生之下載通知訊息是否成功傳送給消費主機更新執行狀態,並依據消費主機是否讀取目標資料更新執行狀態,及依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常之技術手段,藉由此一技術手段可以來解決先前技術所存在由資料提供伺服器監控資料應用主機之運作狀態將增加成本的問題,進而達成準確得知資料提供伺服器與資料應用主機之是否異常及發生異常之時間的技術功效。In summary, it can be seen that the difference between the present invention and the prior art is that after the server records the event data including the execution status when the target data is changed, the download from the server is generated when the event data is detected. The notification message is successfully sent to the consumer host to update the execution status, and the execution status is updated according to whether the consumer host reads the target data, and the execution status is used to determine whether the consumer host and the connection between the slave server and the consumer host are abnormal. This technical method can solve the problem that the data provider server monitors the operating status of the data application host in the prior art will increase the cost, and then can accurately know whether the data provider server and the data application host are abnormal and abnormal. The technical effect of time.
再者,本發明之透過更新執行狀態判斷裝置運作狀況之方法,亦可以硬體、軟體或硬體與軟體之組合散布於若干互連之不同元件的分散方式實現。Furthermore, the method for judging the operation status of the device by updating the execution status of the present invention can also be implemented in a decentralized manner in which hardware, software, or a combination of hardware and software are distributed among a number of interconnected different components.
雖然本發明所揭露之實施方式如上,惟所述之內容並非用以直接限定本發明之專利保護範圍。任何本發明所屬技術領域中具有通常知識者,在不脫離本發明所揭露之精神和範圍的前提下,對本發明之實施的形式上及細節上作些許之更動潤飾,均屬於本發明之專利保護範圍。本發明之專利保護範圍,仍須以所附之申請專利範圍所界定者為準。Although the embodiments of the present invention are disclosed as above, the content described is not intended to directly limit the scope of patent protection of the present invention. Anyone with ordinary knowledge in the technical field to which the present invention belongs, without departing from the spirit and scope of the present invention, makes some modifications in the form and details of the implementation of the present invention, all belong to the patent protection of the present invention. Scope. The scope of patent protection of the present invention shall still be determined by the scope of the attached patent application.
110:消費主機110: consumer host
120:主伺服器120: main server
130:從伺服器130: From the server
步驟211:消費主機傳送目標資料之目標識別資料給主伺服器Step 211: The consumer host sends the target identification data of the target data to the host server
步驟215:主伺服器傳送目標識別資料及消費主機之網路識別資料至從伺服器Step 215: The master server sends the target identification data and the network identification data of the consumer host to the slave server
步驟220:主伺服器於判斷目標資料發生變化時,產生包含執行狀態之事件資料並記錄事件資料Step 220: When the main server determines that the target data has changed, it generates event data including the execution status and records the event data
步驟230:從伺服器與主伺服器同步資料Step 230: Synchronize data between the slave server and the master server
步驟240:從伺服器於偵測到事件資料時,產生下載通知訊息並傳送下載通知訊息至消費主機Step 240: When the event data is detected from the server, generate a download notification message and send the download notification message to the consumer host
步驟250:從伺服器依據下載通知訊息是否成功傳送給消費主機更新執行狀態Step 250: Update the execution status from the server according to whether the download notification message is successfully sent to the consumer host
步驟260:消費主機於接收到下載通知訊息後,至從伺服器讀取目標資料Step 260: After receiving the download notification message, the consumer host reads the target data from the server
步驟270:從伺服器於成功傳送下載通知訊息至消費主機後,依據消費主機是否讀取目標資料更新執行狀態Step 270: After successfully sending the download notification message from the server to the consumer host, update the execution status according to whether the consumer host reads the target data
步驟280:從伺服器依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常Step 280: Judging from the server according to the execution status of the consumer host and whether the connection between the slave server and the consumer host is abnormal
步驟290:主伺服器依據執行狀態判斷從伺服器及主伺服器與從伺服器間之連線是否異常Step 290: The master server judges whether the connection between the slave server and the master server and the slave server is abnormal according to the execution status
第1圖為本發明所提之透過更新執行狀態判斷裝置運作狀況之系統架構圖。 第2A圖為本發明所提之透過更新執行狀態判斷裝置運作狀況之方法流程圖。 第2B圖為本發明所提之建立目標資料、從伺服器及消費主機之對應關係之方法流程圖。 第2C圖為本發明所提之透過更新執行狀態判斷裝置運作狀況之附加方法流程圖。 Figure 1 is a system architecture diagram for judging the operating status of the device by updating the execution status according to the present invention. Figure 2A is a flow chart of the method for judging the operating status of the device by updating the execution status according to the present invention. Figure 2B is a flowchart of the method for establishing the corresponding relationship between the target data, the slave server and the consumer host according to the present invention. Figure 2C is a flowchart of the additional method of judging the operating status of the device by updating the execution status according to the present invention.
步驟220:主伺服器於判斷目標資料發生變化時,產生包含執行狀態之事件資料並記錄事件資料 Step 220: When the main server determines that the target data has changed, it generates event data including the execution status and records the event data
步驟230:從伺服器與主伺服器同步資料 Step 230: Synchronize data between the slave server and the master server
步驟240:從伺服器於偵測到事件資料時,產生下載通知訊息並傳送下載通知訊息至消費主機 Step 240: When the event data is detected from the server, generate a download notification message and send the download notification message to the consumer host
步驟250:從伺服器依據下載通知訊息是否成功傳送給消費主機更新執行狀態 Step 250: Update the execution status from the server according to whether the download notification message is successfully sent to the consumer host
步驟260:消費主機於接收到下載通知訊息後,至從伺服器讀取目標資料 Step 260: After receiving the download notification message, the consumer host reads the target data from the server
步驟270:從伺服器於成功傳送下載通知訊息至消費主機後,依據消費主機是否讀取目標資料更新執行狀態 Step 270: After successfully sending the download notification message from the server to the consumer host, update the execution status according to whether the consumer host reads the target data
步驟280:從伺服器依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常 Step 280: Judging from the server according to the execution status of the consumer host and whether the connection between the slave server and the consumer host is abnormal
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109132382A TWI748653B (en) | 2020-09-18 | 2020-09-18 | System and method for determining operation status of device by updating execution status |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109132382A TWI748653B (en) | 2020-09-18 | 2020-09-18 | System and method for determining operation status of device by updating execution status |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI748653B true TWI748653B (en) | 2021-12-01 |
TW202213100A TW202213100A (en) | 2022-04-01 |
Family
ID=80680874
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW109132382A TWI748653B (en) | 2020-09-18 | 2020-09-18 | System and method for determining operation status of device by updating execution status |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI748653B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI443507B (en) * | 2011-12-05 | 2014-07-01 | Giga Byte Tech Co Ltd | Self-repairing system and self-repairing method thereof |
TW201619828A (en) * | 2014-11-28 | 2016-06-01 | 英業達股份有限公司 | Rack server system with replying state layer by layer |
JP2017055298A (en) * | 2015-09-10 | 2017-03-16 | 富士ゼロックス株式会社 | Connection control device and program |
US20170228273A1 (en) * | 2016-02-10 | 2017-08-10 | Dell Products, Lp | System and Method for Encoding Exception Conditions Included at a Remediation Database |
TWI639125B (en) * | 2016-06-15 | 2018-10-21 | 國泰人壽保險股份有限公司 | Financial system, financial server and synchronizing method |
CN109816124A (en) * | 2019-02-12 | 2019-05-28 | 山东云尚信息科技有限公司 | Enterprise's computer software fault Monitoring and maintenance system |
-
2020
- 2020-09-18 TW TW109132382A patent/TWI748653B/en active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI443507B (en) * | 2011-12-05 | 2014-07-01 | Giga Byte Tech Co Ltd | Self-repairing system and self-repairing method thereof |
TW201619828A (en) * | 2014-11-28 | 2016-06-01 | 英業達股份有限公司 | Rack server system with replying state layer by layer |
JP2017055298A (en) * | 2015-09-10 | 2017-03-16 | 富士ゼロックス株式会社 | Connection control device and program |
US20170228273A1 (en) * | 2016-02-10 | 2017-08-10 | Dell Products, Lp | System and Method for Encoding Exception Conditions Included at a Remediation Database |
TWI639125B (en) * | 2016-06-15 | 2018-10-21 | 國泰人壽保險股份有限公司 | Financial system, financial server and synchronizing method |
CN109816124A (en) * | 2019-02-12 | 2019-05-28 | 山东云尚信息科技有限公司 | Enterprise's computer software fault Monitoring and maintenance system |
Also Published As
Publication number | Publication date |
---|---|
TW202213100A (en) | 2022-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7961594B2 (en) | Methods and systems for history analysis for access paths in networks | |
EP1267518B1 (en) | Multiple device management method and system | |
US7797412B2 (en) | Method and system for managing server configuration data | |
JP5548829B2 (en) | Computer system, data management method, and data management program | |
KR101109980B1 (en) | Facilitating synchronization of servers in a coordinated timing network | |
CN103248725B (en) | A kind of safe and reliable domain name mapping restorative procedure and system | |
WO2017020715A1 (en) | Method and device for monitoring status of cdn node | |
JP2011204192A (en) | Switching device, information processing device, and failure notification control program | |
TWI748653B (en) | System and method for determining operation status of device by updating execution status | |
KR102665749B1 (en) | Method and apparatus for ensuring continued device operational reliability in cloud-degraded mode | |
US20080243882A1 (en) | Updating of link to data repository | |
CN104954505B (en) | Monitoring method and system for DNS data updating overall process | |
JP2009206731A (en) | Monitoring system, monitoring device, monitoring method, and program | |
CN114285863B (en) | System and method for judging device operation status by updating execution status | |
CN114268619B (en) | System and method for selecting mirror server to obtain data according to identification data | |
US7734640B2 (en) | Resource discovery and enumeration in meta-data driven instrumentation | |
CN111090648B (en) | Relational database data synchronization conflict resolution method | |
US7805507B2 (en) | Use of URI-specifications in meta-data driven instrumentation | |
EP3895015B1 (en) | Collecting repeated diagnostics data from across users participating in a document collaboration session | |
CN113708973B (en) | Resource state monitoring system and method | |
US12095851B2 (en) | Domain name system based global server load balancing service | |
JP2023129154A (en) | Remote operation system, timestamp correction method, and timestamp correction program | |
CN117955991A (en) | Service processing method, device, equipment and storage medium | |
JP5331749B2 (en) | Fault tolerant computer system and data access method | |
US20070299846A1 (en) | System and method for meta-data driven instrumentation |