TWI463343B - Synchronous balancing system and method thereof - Google Patents

Synchronous balancing system and method thereof Download PDF

Info

Publication number
TWI463343B
TWI463343B TW101148284A TW101148284A TWI463343B TW I463343 B TWI463343 B TW I463343B TW 101148284 A TW101148284 A TW 101148284A TW 101148284 A TW101148284 A TW 101148284A TW I463343 B TWI463343 B TW I463343B
Authority
TW
Taiwan
Prior art keywords
client
time
synchronization
usage
frequency
Prior art date
Application number
TW101148284A
Other languages
Chinese (zh)
Other versions
TW201426363A (en
Inventor
Sean Liu
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to TW101148284A priority Critical patent/TWI463343B/en
Publication of TW201426363A publication Critical patent/TW201426363A/en
Application granted granted Critical
Publication of TWI463343B publication Critical patent/TWI463343B/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

同步均衡系統及其方法Synchronous equalization system and method thereof

本發明為有關於一種同步系統及其方法,特別是指一種根據客戶端的使用頻率及位置,用以分散各客戶端與同步處理端的同步處理時間點之同步均衡系統及其方法。The present invention relates to a synchronization system and a method thereof, and more particularly to a synchronous equalization system and method for dispersing synchronization processing time points of clients and synchronization processing terminals according to the frequency and location of use of the client.

近年來,隨著雲端技術的普及與蓬勃發展,使得使用雲端服務的使用者人數逐年增加,此一情況也導致雲端服務中負責同步處理的伺服端容易產生負載過重的問題。In recent years, with the popularity and flourishing of cloud technology, the number of users using cloud services has increased year by year. This situation has also led to the problem that the server responsible for synchronization processing in the cloud service is prone to overload.

一般而言,在傳統的同步處理技術中,當客戶端連線到伺服端後,將即時進行資料的同步處理,或是由使用者自行設定同步處理的時間。然而,此一方式有可能造成所有客戶端都在相近的時間點要求與伺服端進行同步處理,使得伺服端超過處理負荷而導致同步處理效率不佳,甚至造成伺服端發生故障的情況。因此,在傳統同步處理的情況下,具有負載平衡性不佳的問題。Generally speaking, in the traditional synchronous processing technology, when the client is connected to the server, the data is synchronized immediately, or the user sets the time of the synchronization process. However, this method may cause all clients to request synchronous processing with the server at a similar time point, so that the servo end exceeds the processing load, resulting in poor synchronization processing efficiency and even causing the server to malfunction. Therefore, in the case of the conventional synchronous processing, there is a problem of poor load balance.

有鑑於此,便有廠商提出一種根據同步處理的上限值及客戶端的權重值,分配客戶端進行排程處理的先後順序。如此一來,便可以確保權重值高的客戶端能夠優先進行同步處理,以及限制同時進行同步處理的客戶端數量以避免伺服端超出負荷。然而,上述方式可能造成權重值較低的客戶端永遠無法順利進行同步處理,同時也無法避免大量的客戶端集中在相近時間點進行同步處理的情況,故上述方式仍然無法有效解決負載平衡性不佳之問題。In view of this, some manufacturers have proposed a sequence of assigning clients to schedule processing according to the upper limit of the synchronous processing and the weight value of the client. In this way, it is ensured that the client with high weight value can prioritize the synchronization process and limit the number of clients that simultaneously perform synchronization processing to avoid the server being overloaded. However, the above method may cause the client with a lower weight value to be unable to perform synchronization processing smoothly, and at the same time, it is impossible to avoid a large number of clients concentrating on synchronous processing at a similar time point, so the above method still cannot effectively solve the load balance. Good question.

綜上所述,可知先前技術中長期以來一直存在同步處理的負載平衡性不佳之問題,因此實有必要提出改進的技術手段,來解 決此一問題。In summary, it can be known that there has been a problem of poor load balance of synchronous processing in the prior art for a long time, so it is necessary to propose an improved technical means to solve Decide on this issue.

有鑒於先前技術存在的問題,本發明遂揭露一種同步均衡系統及其方法。In view of the problems of the prior art, the present invention discloses a synchronous equalization system and method thereof.

本發明所揭露之同步均衡系統,此系統包含:客戶端及同步伺服端。其中,客戶端用以傳送連線訊息;至於同步伺服端則包含:儲存模組、偵測模組、計算模組、調整模組及同步模組。其中,儲存模組用以儲存每一客戶端的使用記錄及同步時間;偵測模組用以在接收到連線訊息後,偵測所述客戶端的位置訊息及使用時間,並且根據位置訊息產生時區標記,以及將時區標記及使用時間記錄於對應客戶端的使用記錄中;計算模組用以根據每一客戶端的使用記錄,以使用時間計算每一客戶端的使用頻率,以及計算具有相同的時區標記及同步時間的客戶端數量;調整模組用以根據使用頻率及客戶端數量調整及設定每一客戶端的實際同步時間;同步模組用以根據實際同步時間,將同步伺服端與所述客戶端進行同步處理。The synchronous equalization system disclosed in the present invention comprises: a client and a synchronous server. The client is configured to transmit a connection message; and the synchronization server includes a storage module, a detection module, a calculation module, an adjustment module, and a synchronization module. The storage module is configured to store the usage record and the synchronization time of each client. The detection module is configured to detect the location information and the usage time of the client after receiving the connection message, and generate a time zone according to the location information. Marking, and recording the time zone mark and the use time in the usage record of the corresponding client; the calculation module is configured to calculate the frequency of use of each client by using time according to the usage record of each client, and calculate the same time zone mark and The number of clients in the synchronization time; the adjustment module is used to adjust and set the actual synchronization time of each client according to the frequency of use and the number of clients; the synchronization module is configured to perform the synchronization server and the client according to the actual synchronization time. Synchronous processing.

至於本發明之同步均衡方法,其步驟包括:儲存客戶端的使用記錄及同步時間;當接收到來自所述客戶端的連線訊息後,偵測所述客戶端的位置訊息及使用時間,並且根據此位置訊息產生時區標記,以及將此時區標記及使用時間記錄於對應所述客戶端的使用記錄中;根據每一客戶端的使用記錄,以使用時間計算每一客戶端的使用頻率,以及計算具有相同的時區標記及同步時間的客戶端數量;根據使用頻率及客戶端數量調整及設定每一客戶端的實際同步時間;根據實際同步時間,將同步伺服端與所述客 戶端進行同步處理。As for the synchronous equalization method of the present invention, the steps include: storing a usage record of the client and a synchronization time; and after receiving the connection message from the client, detecting the location information and the usage time of the client, and according to the location The message generates a time zone tag, and records the time zone tag and the usage time in the usage record corresponding to the client; according to the usage record of each client, the usage frequency of each client is calculated by using the time, and the calculation has the same time zone tag. And the number of clients in the synchronization time; adjust and set the actual synchronization time of each client according to the frequency of use and the number of clients; according to the actual synchronization time, the synchronization server and the guest The client performs synchronization processing.

本發明所揭露之系統與方法如上,與先前技術之間的差異在於本發明是透過同步伺服端偵測客戶端的位置訊息以產生時區標記,以及根據客戶端的使用時間計算出使用頻率,並且根據使用頻率和具有相同的時區標記與同步時間的客戶端數量設定每一客戶端的實際同步時間,以便分散每一客戶端與同步伺服端的同步處理時間點。The system and method disclosed in the present invention are as above, and the difference from the prior art is that the present invention detects the location information of the client through the synchronous server to generate the time zone mark, and calculates the use frequency according to the use time of the client, and according to the use The frequency and the number of clients with the same time zone flag and synchronization time set the actual synchronization time of each client in order to disperse the synchronization processing time point of each client and the synchronization server.

透過上述的技術手段,本發明可以達成提高同步處理的負載平衡性之技術功效。Through the above technical means, the present invention can achieve the technical effect of improving the load balance of the synchronous processing.

以下將配合圖式及實施例來詳細說明本發明之實施方式,藉此對本發明如何應用技術手段來解決技術問題並達成技術功效的實現過程能充分理解並據以實施。The embodiments of the present invention will be described in detail below with reference to the drawings and embodiments, so that the application of the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.

在說明本發明所揭露之同步均衡系統及其方法之前,先對本發明所自行定義的名詞作說明,本發明所述的使用記錄是用以記錄同步伺服端偵測到的客戶端位置及其使用時間,以便後續由同步伺服端根據這些記錄計算客戶端的使用頻率,以及避免大量具有相同的位置及同步時間的客戶端要求與同步伺服端進行同步處理。Before describing the synchronous equalization system and the method thereof disclosed in the present invention, the nouns defined by the present invention are described. The usage record used in the present invention is used to record the location of the client detected by the synchronous server and its use. Time, so that the synchronization server can calculate the frequency of use of the client according to these records, and avoid a large number of client requests with the same location and synchronization time to synchronize with the synchronization server.

以下配合圖式對本發明同步均衡系統及其方法作進一步說明,請參閱「第1圖」,「第1圖」為本發明同步均衡系統之系統方塊圖,此系統包含:客戶端110及同步伺服端120。其中,客戶端110用以傳送連線訊息,所述連線訊息為登入同步伺服端120的封包訊息,客戶端110與同步伺服端120透過網路130傳遞此 連線訊息並進行資料傳輸與同步。在實際實施上,客戶端110為具有網路傳輸功能的計算機設備,如:個人電腦、個人數位助理(Personal Digital Assistant,PDA)、行動電話......等等。The following is a further description of the synchronous equalization system and the method thereof according to the drawings. Please refer to FIG. 1 and FIG. 1 is a system block diagram of a synchronous equalization system according to the present invention. The system includes: a client 110 and a synchronous servo. End 120. The client 110 is configured to transmit a connection message, where the connection message is a packet message that is sent to the synchronization server 120, and the client 110 and the synchronization server 120 transmit the message through the network 130. Connect messages and transfer and synchronize data. In actual implementation, the client 110 is a computer device having a network transmission function, such as a personal computer, a personal digital assistant (PDA), a mobile phone, and the like.

至於在同步伺服端120的部分,所述同步伺服端120包含:儲存模組121、偵測模組122、計算模組123、調整模組124及同步模組125。其中,儲存模組121用以儲存每一客戶端110的使用記錄及同步時間,所述同步時間是使用者自行設定欲進行同步處理的時間,此同步時間可由使用者預先儲存在儲存模組121中。在實際實施上,儲存模組121更可儲存每一客戶端110的優先等級(例如:付費會員的優先等級為“高”、一般會員的優先等級為“中”及訪客的優先等級為“低”),並且將此優先等級提供給調整模組124根據使用頻率、客戶端數量及優先等級來設定每一客戶端110的實際同步時間。As for the synchronization server 120, the synchronization server 120 includes a storage module 121, a detection module 122, a calculation module 123, an adjustment module 124, and a synchronization module 125. The storage module 121 is configured to store the usage record and the synchronization time of each client 110. The synchronization time is a time for the user to set the synchronization process to be performed by the user. The synchronization time may be pre-stored in the storage module 121 by the user. in. In practical implementation, the storage module 121 can further store the priority level of each client 110 (for example, the priority level of the paying member is “high”, the priority level of the general member is “medium”, and the priority level of the visitor is “low”. "), and the priority level is provided to the adjustment module 124 to set the actual synchronization time of each client 110 according to the frequency of use, the number of clients, and the priority level.

偵測模組122用以在接收到來自客戶端110的連線訊息後,偵測客戶端110的位置訊息及使用時間(例如:客戶端110登入同步伺服端120的時間),所述位置訊息為客戶端110實際所在的地點,如:上海、台北、美國......等地點,其可透過偵測客戶端110的網路位址(IP Address)來進行判斷,由於此判斷方式為習知技術,故在此不再多作贅述。接著,偵測模組122根據位置訊息產生時區標記,舉例來說,假設位置訊息為“台北”,則可根據一個時區對應表查詢“台北”所對應的時區,如:“GMT+8”,並且將此查詢到的時區“GMT+8”作為時區標記,以及將此時區標記與使用時間記錄於儲存模組121中對應客戶端110的使用記錄內。特別要說明的是,雖然上述以格林尼治平時的偏移量(如: “GMT+8”)作為時區,然本發明並未以進行此限定,在實際實施上,任何可表示為時區的方式皆不脫離本發明的應用範疇。The detecting module 122 is configured to detect the location information of the client 110 and the usage time (for example, the time when the client 110 logs in to the synchronization server 120) after receiving the connection message from the client 110. For the location where the client 110 is actually located, such as: Shanghai, Taipei, the United States, etc., it can be judged by detecting the IP address of the client 110, because of this judgment mode. It is a conventional technique, so it will not be repeated here. Then, the detecting module 122 generates a time zone mark according to the location information. For example, if the location message is “Taipei”, the time zone corresponding to “Taipei” may be queried according to a time zone correspondence table, for example, “GMT+8”. And the time zone "GMT+8" of the query is used as the time zone mark, and the time zone mark and the use time are recorded in the use record of the corresponding client 110 in the storage module 121. In particular, although the above is the usual offset of Greenwich (eg: "GMT+8") is used as the time zone, but the present invention is not limited thereto. In practice, any way that can be expressed as a time zone does not depart from the scope of application of the present invention.

計算模組123用以根據每一客戶端110的使用記錄,以其中的使用時間來計算每一客戶端110的使用頻率,舉例來說,假設使用記錄中的使用時間為“2012/10/25;2012/10/26;2012/10/27”,計算模組123可根據預設的時間間隔(如:”2012/10/25~2012/10/27”)計算使用次數(如:數值“3”);或是假設使用時間為記錄客戶端110登入同步伺服端120至登出同步伺服端120的這一段時間(如:“2012/10/25 12:11:20;2012/10/25 13:11:20”),則計算模組123更可計算出在時間間隔內累積的總時數(如:數值“1”),如此一來,計算模組123便可根據使用次數或總時數的高低來計算出客戶端110的使用頻率,所述使用次數或總時數的高低與使用頻率呈現正相關。接下來,計算模組123會再計算具有相同的時區標記和同步時間的客戶端數量,舉例來說,假設有十二個客戶端110,其時區標記皆為“GMT+8”、同步時間皆為“2012/10/25 12:00:00”,則計算模組123計算出的客戶端數量將為數值“12”。The calculation module 123 is configured to calculate the frequency of use of each client 110 according to the usage record of each client 110, for example, assuming that the usage time in the usage record is “2012/10/25”. ;2012/10/26;2012/10/27", the calculation module 123 can calculate the number of uses (such as: value " according to a preset time interval (eg: "2012/10/25~2012/10/27") 3"); or assume that the usage time is the period during which the recording client 110 logs in to the synchronization server 120 to log out of the synchronization server 120 (eg, "2012/10/25 12:11:20; 2012/10/25 13:11:20"), the calculation module 123 can calculate the total number of hours accumulated in the time interval (for example, the value "1"), so that the calculation module 123 can be based on the number of uses or total The frequency of use of the client 110 is calculated by the level of the number of hours, and the number of times of use or the total number of hours is positively correlated with the frequency of use. Next, the computing module 123 will recalculate the number of clients with the same time zone tag and synchronization time. For example, if there are twelve clients 110, the time zone tags are all "GMT+8", and the synchronization time is For "2012/10/25 12:00:00", the number of clients calculated by the calculation module 123 will be the value "12".

調整模組124用以根據計算模組123計算出的使用頻率及客戶端數量來調整及設定每一客戶端110的實際同步時間,以上例而言,假設客戶端數量“12”為最高的數值,調整模組124會對同步時間為“2012/10/25 12:00:00”的十二個客戶端110重新調整及設定每一客戶端110的同步時間以作為實際同步時間,其調整方式為依照各客戶端110的使用頻率高低來調整同步處理的優先順序,例如:假設平均的客戶端數量為“6”,則使用頻率較高的 六個客戶端110的實際同步時間設為“2012/10/25 12:00:00”(即維持原樣);另外六個客戶端110則同樣依照使用頻率設定實際同步時間,如:設為下一個小時(即“2012/10/25 13:00:00”)再進行同步處理。特別要說明的是,只要是利用客戶端110的使用頻率以及根據具有相同的時區及同步時間的客戶端數量來調整及設定每一客戶端110的實際同步時間的方式皆不脫離本發明的應用範疇。The adjustment module 124 is configured to adjust and set the actual synchronization time of each client 110 according to the usage frequency and the number of clients calculated by the calculation module 123. In the above example, the number of clients is assumed to be the highest value. The adjustment module 124 re-adjusts and sets the synchronization time of each client 110 to the twelve clients 110 whose synchronization time is "2012/10/25 12:00:00" as the actual synchronization time, and the adjustment manner thereof. In order to adjust the priority of the synchronization process according to the frequency of use of each client 110, for example, if the average number of clients is "6", the frequency of use is higher. The actual synchronization time of the six clients 110 is set to "2012/10/25 12:00:00" (ie, remains as it is); the other six clients 110 also set the actual synchronization time according to the frequency of use, such as: set to One hour (ie "2012/10/25 13:00:00") is synchronized. In particular, the method of adjusting and setting the actual synchronization time of each client 110 according to the frequency of use of the client 110 and the number of clients having the same time zone and synchronization time does not deviate from the application of the present invention. category.

同步模組125用以根據調整模組124調整及設定的實際同步時間,使同步伺服端120與客戶端110進行同步處理,由於同步處理的方式為習知技術,故在此不再多作說明。The synchronization module 125 is configured to synchronize the synchronization server 120 and the client 110 according to the actual synchronization time adjusted and set by the adjustment module 124. Since the synchronization processing method is a conventional technique, no further description is provided here. .

接著,請參閱「第2圖」,「第2圖」為本發明同步均衡方法之方法流程圖,其步驟包括:儲存客戶端110的使用記錄及同步時間(步驟210);當接收到來自所述客戶端110的連線訊息後,偵測所述客戶端110的位置訊息及使用時間,並且根據此位置訊息產生時區標記,以及將時區標記及使用時間記錄於對應所述客戶端110的使用記錄中(步驟220);根據每一客戶端110的使用記錄,以使用時間計算每一客戶端110的使用頻率,以及計算具有相同的時區標記及同步時間的客戶端數量(步驟230);根據使用頻率及客戶端數量調整及設定每一客戶端110的實際同步時間(步驟240);根據實際同步時間,將同步伺服端120與所述客戶端110進行同步處理(步驟250)。透過上述步驟,即可透過同步伺服端120偵測客戶端110的位置訊息以產生時區標記,以及根據客戶端110的使用時間計算出使用頻率,並且根據使用頻率和具有相同的時區標記與同步時間的客戶端數量設定每一客戶端 110的實際同步時間,以便分散每一客戶端110與同步伺服端120的同步處理時間點。Next, please refer to FIG. 2, which is a flowchart of a method for synchronous equalization according to the present invention. The steps include: storing a usage record and synchronization time of the client 110 (step 210); After the connection message of the client 110 is detected, the location information and the usage time of the client 110 are detected, and a time zone flag is generated according to the location information, and the time zone flag and the usage time are recorded in the corresponding use of the client 110. Recording (step 220); calculating the frequency of use of each client 110 by usage time, and calculating the number of clients having the same time zone flag and synchronization time according to the usage record of each client 110 (step 230); The frequency of use and the number of clients adjust and set the actual synchronization time of each client 110 (step 240); according to the actual synchronization time, the synchronization server 120 and the client 110 are synchronized (step 250). Through the above steps, the location information of the client 110 can be detected by the synchronization server 120 to generate a time zone flag, and the frequency of use is calculated according to the usage time of the client 110, and has the same time zone mark and synchronization time according to the frequency of use. Number of clients set per client The actual synchronization time of 110 is such that the synchronization processing time point of each client 110 and the synchronization server 120 is dispersed.

另外,在步驟240之後,更可根據預先儲存的每一客戶端110的優先等級,用以將此優先等級搭配使用頻率及客戶端數量來調整及設定每一客戶端的實際同步時間(步驟241)。換句話說,除了原先根據使用頻率及客戶端數量進行調整之外,客戶端110的優先等級高低也會影響最後設定的客戶端110的實際同步時間。In addition, after step 240, according to the priority level of each client 110 stored in advance, the priority level is used to match the frequency of use and the number of clients to adjust and set the actual synchronization time of each client (step 241). . In other words, in addition to the original adjustment according to the frequency of use and the number of clients, the priority level of the client 110 also affects the actual synchronization time of the client 110 that is finally set.

以下配合「第3圖」及「第4圖」以實施例的方式進行如下說明,請先參閱「第3圖」,「第3圖」為本發明同步伺服端儲存的客戶端資料之第一示意圖。前面提到,同步伺服端120的儲存模組121會儲存每一客戶端110的使用記錄及同步時間。在實際實施上,其儲存方式可透過資料表300來實現,每一個客戶端110對應一個資料表。偵測模組122會將時區標記及使用時間記錄在使用記錄310中,並且與同步時間320共同儲存在與客戶端110對應的資料表300中。如此一來,計算模組123便可根據資料表300讀取使用記錄310內的使用時間來計算每一客戶端110的使用頻率,以及根據同步時間320及使用記錄310內的時區標記來計算具有相同條件的客戶端數量,提供調整模組124調整及設定每一客戶端110的實際同步時間,使同步模組125能夠根據此實際同步時間對同步伺服端120及客戶端110進行同步處理。在實際實施上,倘若要將所有客戶端110記錄在同一資料表,則必須增加識別欄位(圖中未示)以便區別每一客戶端110。The following is a description of the following examples in conjunction with "3" and "4". Please refer to "3", "3" is the first client data stored in the synchronous servo port of the present invention. schematic diagram. As mentioned above, the storage module 121 of the synchronization server 120 stores the usage record and synchronization time of each client 110. In actual implementation, the storage manner can be implemented through the data table 300, and each client 110 corresponds to a data table. The detection module 122 records the time zone mark and the use time in the usage record 310, and is stored together with the synchronization time 320 in the data table 300 corresponding to the client 110. In this way, the computing module 123 can calculate the usage frequency of each client 110 according to the usage time in the usage record 310 according to the data table 300, and calculate according to the synchronization time 320 and the time zone flag in the usage record 310. The number of clients in the same condition is provided by the adjustment module 124 to adjust and set the actual synchronization time of each client 110, so that the synchronization module 125 can synchronize the synchronization server 120 and the client 110 according to the actual synchronization time. In actual implementation, if all clients 110 are to be recorded in the same data table, a recognition field (not shown) must be added to distinguish each client 110.

如「第4圖」所示意,「第4圖」為本發明同步伺服端儲存的客戶端資料之第二示意圖。前面提到,儲存模組121還可預先儲 存每一客戶端110的優先等級。同樣地,在實際實施上,此優先等級亦可儲存在與客戶端110對應的資料表成為具優先等級的資料表400,此具優先等級的資料表400包含使用記錄410、同步時間420及優先等級430。其中使用記錄410包含時區標記及使用時間。透過此具優先等級的資料表400,調整模組124便能夠根據計算模組123計算出的使用頻率及客戶端數量,同時搭配優先等級430來設定每一客戶端110的實際同步時間。特別要說明的是,調整模組124所設定的實際同步時間將取代同步時間420原先所記載的時間。As shown in Figure 4, Figure 4 is the second schematic diagram of the client data stored in the synchronous server. As mentioned above, the storage module 121 can also be pre-stored. The priority level of each client 110 is stored. Similarly, in actual implementation, the priority level may also be stored in the data table corresponding to the client 110 as a priority data table 400. The priority data table 400 includes the usage record 410, the synchronization time 420, and the priority. Level 430. The usage record 410 includes a time zone tag and usage time. Through the priority data table 400, the adjustment module 124 can set the actual synchronization time of each client 110 according to the usage frequency and the number of clients calculated by the calculation module 123, together with the priority level 430. In particular, the actual synchronization time set by the adjustment module 124 will replace the time previously recorded by the synchronization time 420.

綜上所述,可知本發明與先前技術之間的差異在於透過同步伺服端偵測客戶端的位置訊息以產生時區標記,以及根據客戶端的使用時間計算出使用頻率,並且根據使用頻率和具有相同的時區標記與同步時間的客戶端數量設定每一客戶端的實際同步時間,以便分散每一客戶端與同步伺服端的同步處理時間點,藉由此一技術手段可以解決先前技術所存在的問題,進而達成提高同步處理的負載平衡性之技術功效。In summary, it can be seen that the difference between the present invention and the prior art is that the location information of the client is detected by the synchronization server to generate a time zone flag, and the frequency of use is calculated according to the usage time of the client, and has the same frequency according to the frequency of use. The number of clients in the time zone tag and the synchronization time sets the actual synchronization time of each client, so as to disperse the synchronization processing time point of each client and the synchronization server, and the technical problem can be solved by the prior art, thereby achieving Improve the technical efficiency of load balancing for synchronous processing.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。While the present invention has been described above in the foregoing embodiments, it is not intended to limit the invention, and the invention may be modified and modified without departing from the spirit and scope of the invention. The scope of patent protection shall be subject to the definition of the scope of the patent application attached to this specification.

110‧‧‧客戶端110‧‧‧Client

120‧‧‧同步伺服端120‧‧‧Synchronous servo

121‧‧‧儲存模組121‧‧‧Storage module

122‧‧‧偵測模組122‧‧‧Detection module

123‧‧‧計算模組123‧‧‧Computation Module

124‧‧‧調整模組124‧‧‧Adjustment module

125‧‧‧同步模組125‧‧‧Synchronous module

130‧‧‧網路130‧‧‧Network

300‧‧‧資料表300‧‧‧Information Sheet

310、410‧‧‧使用記錄310, 410‧‧‧Use records

320、420‧‧‧同步時間320, 420‧‧‧ Synchronization time

400‧‧‧具優先等級的資料表400‧‧‧Priority data sheet

430‧‧‧優先等級430‧‧‧Priority

步驟210‧‧‧儲存至少一客戶端的一使用記錄及一同步時間Step 210‧‧‧ stores at least one usage record and one synchronization time of the client

步驟220‧‧‧當接收到來自所述客戶端的一連線訊息後,偵測所述客戶端的一位置訊息及一使用時間,並且根據該位置訊息產生一時區標記,以及將該時區標記及該使用時間記錄於對應所述客戶端的該使用記錄中Step 220‧‧‧, after receiving a connection message from the client, detecting a location message of the client and a usage time, and generating a time zone flag according to the location message, and marking the time zone and the The usage time is recorded in the usage record corresponding to the client.

步驟230‧‧‧根據每一客戶端的該使用記錄,以該使用時間計算每一客戶端的一使用頻率,以及計算具有相同的該 時區標記及該同步時間的一客戶端數量Step 230‧‧‧ According to the usage record of each client, calculate a usage frequency of each client by using the usage time, and calculate the same Time zone tag and the number of clients for this synchronization time

步驟240‧‧‧根據該使用頻率及該客戶端數量調整及設定每一客戶端的一實際同步時間Step 240‧‧‧ Adjust and set an actual synchronization time of each client according to the frequency of use and the number of clients

步驟241‧‧‧預先儲存每一客戶端的一優先等級,用以將該優先等級搭配該使用頻率及該客戶端數量調整及設定每一客戶端的該實際同步時間Step 241‧‧ ‧ pre-storing a priority level of each client, and adjusting the priority level with the frequency of use and the number of the client to adjust and set the actual synchronization time of each client

步驟250‧‧‧根據該實際同步時間,將該同步伺服端與所述客戶端進行同步處理Step 250‧‧‧ synchronize the synchronization server with the client according to the actual synchronization time

第1圖為本發明同步均衡系統之系統方塊圖。1 is a system block diagram of a synchronous equalization system of the present invention.

第2圖為本發明同步均衡方法之方法流程圖。2 is a flow chart of a method for synchronous equalization of the present invention.

第3圖為本發明同步伺服端儲存的客戶端資料之第一示意 圖。Figure 3 is the first schematic diagram of the client data stored in the synchronous servo end of the present invention. Figure.

第4圖為本發明同步伺服端儲存的客戶端資料之第二示意圖。FIG. 4 is a second schematic diagram of client data stored in the synchronous server of the present invention.

110‧‧‧客戶端110‧‧‧Client

120‧‧‧同步伺服端120‧‧‧Synchronous servo

121‧‧‧儲存模組121‧‧‧Storage module

122‧‧‧偵測模組122‧‧‧Detection module

123‧‧‧計算模組123‧‧‧Computation Module

124‧‧‧調整模組124‧‧‧Adjustment module

125‧‧‧同步模組125‧‧‧Synchronous module

130‧‧‧網路130‧‧‧Network

Claims (10)

一種同步均衡系統,該系統包含:至少一客戶端,用以傳送一連線訊息;及一同步伺服端,該同步伺服端包含:一儲存模組,用以儲存每一客戶端的一使用記錄及一同步時間;一偵測模組,用以在接收到該連線訊息後,偵測所述客戶端的一位置訊息及一使用時間,並且根據該位置訊息產生一時區標記,以及將該時區標記及該使用時間記錄於對應所述客戶端的該使用記錄中;一計算模組,用以根據每一客戶端的該使用記錄,以該使用時間計算每一客戶端的一使用頻率,以及計算具有相同的該時區標記及該同步時間的一客戶端數量;一調整模組,用以根據該使用頻率及該客戶端數量調整及設定每一客戶端的一實際同步時間;及一同步模組,用以根據該實際同步時間,將該同步伺服端與所述客戶端進行同步處理。A synchronous equalization system, the system includes: at least one client for transmitting a connection message; and a synchronization server, the synchronization server includes: a storage module for storing a usage record of each client and a synchronization module, configured to detect a location message and a usage time of the client after receiving the connection message, and generate a time zone marker according to the location information, and mark the time zone And the usage time is recorded in the usage record corresponding to the client; a computing module is configured to calculate, according to the usage record of each client, a usage frequency of each client by using the usage time, and calculating the same The time zone is marked with a number of clients of the synchronization time; an adjustment module is configured to adjust and set an actual synchronization time of each client according to the frequency of use and the number of clients; and a synchronization module for The actual synchronization time is synchronized with the client by the synchronization server. 如申請專利範圍第1項所述之同步均衡系統,其中該儲存模組更包含預先儲存每一客戶端的一優先等級,並且使該調整模組根據該使用頻率、該客戶端數量及該優先等級設定每一客戶端的該實際同步時間。The synchronous equalization system of claim 1, wherein the storage module further comprises pre-storing a priority level of each client, and causing the adjustment module to use the frequency of use, the number of the client, and the priority level. Set the actual synchronization time for each client. 如申請專利範圍第1項所述之同步均衡系統,其中該時區標記為根據所述客戶端的位置查詢一時區對應表以獲得格林尼治平時的偏移量。The synchronous equalization system of claim 1, wherein the time zone is marked to query a time zone correspondence table according to the location of the client to obtain a Greenwich Mean Time offset. 如申請專利範圍第1項所述之同步均衡系統,其中該使用頻率為根據預設的一時間間隔計算在該時間間隔內該使用時間的總時數,所述總時數的高低與該使用頻率的高低為正相關。The synchronous equalization system of claim 1, wherein the frequency of use is a total number of hours of the usage time in the time interval according to a preset time interval, the total number of hours and the use The frequency is positively correlated. 如申請專利範圍第1項所述之同步均衡系統,其中該實際同步時間為記錄在相應的所述客戶端的該使用記錄中,並且取代該同步時間。The synchronous equalization system of claim 1, wherein the actual synchronization time is recorded in the usage record of the corresponding client and replaces the synchronization time. 一種同步均衡方法,應用一同步伺服端中,其步驟包括:儲存至少一客戶端的一使用記錄及一同步時間;當接收到來自所述客戶端的一連線訊息後,偵測所述客戶端的一位置訊息及一使用時間,並且根據該位置訊息產生一時區標記,以及將該時區標記及該使用時間記錄於對應所述客戶端的該使用記錄中;根據每一客戶端的該使用記錄,以該使用時間計算每一客戶端的一使用頻率,以及計算具有相同的該時區標記及該同步時間的一客戶端數量;根據該使用頻率及該客戶端數量調整及設定每一客戶端的一實際同步時間;及根據該實際同步時間,將該同步伺服端與所述客戶端進行同步處理。A synchronous equalization method is applied to a synchronous server, the method comprising: storing at least one usage record of a client and a synchronization time; and detecting a connection message from the client, detecting one of the client a location message and a usage time, and generating a time zone tag according to the location message, and recording the time zone tag and the usage time in the usage record corresponding to the client; according to the usage record of each client, using the time zone Calculating a frequency of use of each client, and calculating a number of clients having the same time zone flag and the synchronization time; adjusting and setting an actual synchronization time of each client according to the frequency of use and the number of clients; and The synchronization server is synchronized with the client according to the actual synchronization time. 如申請專利範圍第6項所述之同步均衡方法,其中該方法更包含預先儲存每一客戶端的一優先等級,用以將該優先等級搭配該使用頻率及該客戶端數量調整及設定每一客戶端的該實際同步時間的步驟。The synchronous equalization method of claim 6, wherein the method further includes pre-storing a priority level of each client, and adjusting and setting each priority with the priority frequency and the number of the client. The step of the actual synchronization time of the end. 如申請專利範圍第6項所述之同步均衡方法,其中該時區標記為根據所述客戶端的位置查詢一時區對應表以獲得格林尼治平時的偏移量。The synchronous equalization method according to claim 6, wherein the time zone is marked to query a time zone correspondence table according to the location of the client to obtain a Greenwich Mean Time offset. 如申請專利範圍第6項所述之同步均衡方法,其中該使用頻率為根據預設的一時間間隔計算在該時間間隔內該使用時間的總時數,所述總時數的高低與該使用頻率的高低為正相關。The synchronous equalization method of claim 6, wherein the frequency of use is to calculate a total number of hours of the usage time in the time interval according to a preset time interval, the total number of hours and the use The frequency is positively correlated. 如申請專利範圍第6項所述之同步均衡方法,其中該實際同步時間為記錄在相應的所述客戶端的該使用記錄中,並且取代該同步時間。The synchronous equalization method according to claim 6, wherein the actual synchronization time is recorded in the usage record of the corresponding client, and the synchronization time is replaced.
TW101148284A 2012-12-19 2012-12-19 Synchronous balancing system and method thereof TWI463343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101148284A TWI463343B (en) 2012-12-19 2012-12-19 Synchronous balancing system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101148284A TWI463343B (en) 2012-12-19 2012-12-19 Synchronous balancing system and method thereof

Publications (2)

Publication Number Publication Date
TW201426363A TW201426363A (en) 2014-07-01
TWI463343B true TWI463343B (en) 2014-12-01

Family

ID=51725517

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101148284A TWI463343B (en) 2012-12-19 2012-12-19 Synchronous balancing system and method thereof

Country Status (1)

Country Link
TW (1) TWI463343B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201101066A (en) * 2009-06-30 2011-01-01 Alibaba Group Holding Ltd Method and device for data synchronization
US20110246640A1 (en) * 2010-04-06 2011-10-06 Debashis Saha Method and system for synchronous and asynchronous monitoring
TW201202959A (en) * 2010-04-15 2012-01-16 Htc Corp Data synchronization methods for synchronizing data in communication systems and communication systems
TWM422693U (en) * 2011-04-26 2012-02-11 nai-yuan Shi Cloud data backup apparatus
CN102750266A (en) * 2011-03-28 2012-10-24 微软公司 Techniques to manage file conversions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201101066A (en) * 2009-06-30 2011-01-01 Alibaba Group Holding Ltd Method and device for data synchronization
US20110246640A1 (en) * 2010-04-06 2011-10-06 Debashis Saha Method and system for synchronous and asynchronous monitoring
TW201202959A (en) * 2010-04-15 2012-01-16 Htc Corp Data synchronization methods for synchronizing data in communication systems and communication systems
CN102750266A (en) * 2011-03-28 2012-10-24 微软公司 Techniques to manage file conversions
TWM422693U (en) * 2011-04-26 2012-02-11 nai-yuan Shi Cloud data backup apparatus

Also Published As

Publication number Publication date
TW201426363A (en) 2014-07-01

Similar Documents

Publication Publication Date Title
CN102546590B (en) Based on system and method from dynamic Service response time to server-assignment flow
US9229832B2 (en) Time monitor
CN107317879B (en) A kind of distribution method and system of user's request
US10135915B2 (en) System, method and apparatus of data interaction under load balancing
US20130336323A1 (en) Optimized bi-directional communication in an information centric network
NZ583300A (en) System for authentication of server and communications and protection against phishing
CN104158891A (en) Method, device and system of cross-regional data transmission, and server
WO2017092311A1 (en) Video data acquisition method, device and system
WO2013102347A1 (en) Load sharing method and device of data center communication apparatus
US20200110633A1 (en) Method and apparatus for enhanced assertion management in cloud media processing
CN109474838A (en) A kind of data processing method, equipment, system and storage medium
US20090144404A1 (en) Load management in a distributed system
CN103796046B (en) A kind of video source address detection method and device
US20130262625A1 (en) Pipelining for parallel network connections to transmit a digital content stream
CN103036885B (en) Sip server overload protective device and method
US20050281198A1 (en) Method and apparatus for ascertaining utilization state
WO2014067360A1 (en) Method and system for sending and receiving email in network application system
TWI463343B (en) Synchronous balancing system and method thereof
KR20180032917A (en) Client device and local clock skew compensation method thereof
US9258310B2 (en) Method and device for processing and tracking TACACS+ session
CN103856517B (en) Sync equalizing system and method
US20150256505A1 (en) Electronic mail monitoring
US11012488B2 (en) Content streaming redundancy architecture
CN106817364B (en) Brute force cracking detection method and device
CN107066373B (en) Control processing method and device

Legal Events

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