TWI734744B - Method, device and system for synchronizing routing table - Google Patents

Method, device and system for synchronizing routing table Download PDF

Info

Publication number
TWI734744B
TWI734744B TW106104650A TW106104650A TWI734744B TW I734744 B TWI734744 B TW I734744B TW 106104650 A TW106104650 A TW 106104650A TW 106104650 A TW106104650 A TW 106104650A TW I734744 B TWI734744 B TW I734744B
Authority
TW
Taiwan
Prior art keywords
data management
routing table
management group
distributed file
file system
Prior art date
Application number
TW106104650A
Other languages
Chinese (zh)
Other versions
TW201735586A (en
Inventor
劉俊峰
姚文輝
朱家稷
Original Assignee
香港商阿里巴巴集團服務有限公司
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 香港商阿里巴巴集團服務有限公司 filed Critical 香港商阿里巴巴集團服務有限公司
Publication of TW201735586A publication Critical patent/TW201735586A/en
Application granted granted Critical
Publication of TWI734744B publication Critical patent/TWI734744B/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本發明公開了一種路由表的同步方法、裝置及系統。其中,該方法包括:如果檢測到預設的第一資料管理組中的路由表被修改,獲取修改後的路由表資料;將修改後的路由表資料同步至其他任意一個或多個非預設的第二資料管理組,以更新非預設的第二資料管理組中的路由表;其中,分散式檔案系統中部署唯一的第一資料管理組以及至少一個第二資料管理組。本發明解決了現有技術中分散式檔案系統中路由表為靜態表,因此在分散式檔案系統中的任意一個路由表發生變化時,會導致系統中的路由表不一致的技術問題。 The invention discloses a method, device and system for synchronizing a routing table. Wherein, the method includes: if it is detected that the routing table in the first data management group is modified, obtaining the modified routing table data; and synchronizing the modified routing table data to any one or more other non-default routing table data The second data management group is used to update the routing table in the non-default second data management group; wherein, a unique first data management group and at least one second data management group are deployed in the distributed file system. The invention solves the technical problem that the routing table in the distributed file system in the prior art is a static table. Therefore, when any routing table in the distributed file system changes, the technical problem that the routing table in the system will be inconsistent.

Description

路由表的同步方法、裝置及系統 Method, device and system for synchronizing routing table

本發明涉及資料同步領域,具體而言,涉及一種路由表的同步方法、裝置及系統。 The present invention relates to the field of data synchronization, and in particular to a method, device and system for synchronizing routing tables.

資料對於電腦和網際網路的應用具有至關重要的作用,隨著資訊爆炸性增長的時代的到來,使用者對於資料的儲存量以及讀寫速率都有了越來越高的要求,傳統的透過增加硬碟個數來拓展電腦檔案系統的儲存容量的方式,在容量大小、容量增長速度、資料讀寫速度以及資料安全方面都不能達到使用者的需求,為此,現有的網際網路行業多採用分散式檔案系統來進行資料的儲存和管理。 Data plays a vital role in the application of computers and the Internet. With the advent of the era of explosive growth of information, users have increasingly higher requirements for data storage and read and write speeds. The traditional Increasing the number of hard disks to expand the storage capacity of a computer file system cannot meet the needs of users in terms of capacity, capacity growth, data read and write speed, and data security. For this reason, there are many existing Internet industries. Use a distributed file system to store and manage data.

在網際網路應用中,路由表可以儲存於分散式檔案系統的位址解析伺服器中,並透過調度模組進行資料快取,由於路由表作為儲存路由器或其他網際網路設備上儲存的表,儲存有達到特定網路中斷的具體路徑,路由器透過路由表儲存的多個具體路徑為經過路由器的每個資料包在儲存的具體路徑中查找最佳的傳輸路徑。目前常用的儲存於分散式檔案系統中的路由表多為靜態的路由表,不能隨著 實際傳輸路徑的變化而進行修改,因此,導致當實際傳輸路徑發生變化時,資料包不能正常傳輸。 In Internet applications, the routing table can be stored in the address resolution server of the distributed file system, and the data can be cached through the dispatch module, because the routing table is used as a storage table stored on routers or other Internet devices , The specific path to reach a specific network interruption is stored, and the router finds the best transmission path among the specific paths stored for each data packet passing through the router through the multiple specific paths stored in the routing table. At present, the routing tables commonly used in distributed file systems are mostly static routing tables. The actual transmission path is modified due to changes. Therefore, when the actual transmission path changes, the data packet cannot be transmitted normally.

針對現有技術中分散式檔案系統中表為靜態表,導致的任意一個資料管理組中的表發生更改時,其餘資料管理組中的表不能同步進行更改的技術問題,目前尚未提出有效的解決方案。 Aiming at the technical problem that the tables in the distributed file system in the prior art are static tables, and the tables in any data management group are changed, the tables in the other data management groups cannot be changed synchronously, so far no effective solution has been proposed. .

本發明實施例提供了一種路由表的同步方法、裝置及系統,以至少解決現有技術中分散式檔案系統中表為靜態表,導致的任意一個資料管理組中的表發生更改時,其餘資料管理組中的表不能同步進行更改的技術問題。 The embodiment of the present invention provides a method, device and system for synchronizing routing tables, to at least solve the problem that when the tables in the distributed file system in the prior art are static tables, the rest of the data is managed when the tables in any data management group are changed. The technical problem that the tables in the group cannot be changed synchronously.

根據本發明實施例的一個態樣,提供了一種路由表的同步方法,該方法包括:如果檢測到預設的第一資料管理組中的路由表被修改,獲取修改後的路由表資料;將修改後的路由表資料同步至其他任意一個或多個非預設的第二資料管理組,以更新非預設的第二資料管理組中的路由表;其中,分散式檔案系統中部署唯一的第一資料管理組以及至少一個第二資料管理組。 According to one aspect of the embodiment of the present invention, a method for synchronizing a routing table is provided, the method includes: if it is detected that the routing table in the first data management group is modified, obtaining the modified routing table data; The modified routing table data is synchronized to any one or more non-default second data management group to update the routing table in the non-default second data management group; among them, the only one deployed in the distributed file system A first data management group and at least one second data management group.

根據本發明實施例的另一態樣,還提供了一種路由表的同步裝置,該裝置包括:第一獲取模組,用於如果檢測到預設的第一資料管理組中的路由表被修改,獲取修改後的路由表資料;同步模組,用於將修改後的路由表資料同步至其他任意一個或多個非預設的第二資料管理組,以更 新非預設的第二資料管理組中的路由表;其中,分散式檔案系統中部署唯一的第一資料管理組以及至少一個第二資料管理組。 According to another aspect of the embodiments of the present invention, a device for synchronizing a routing table is also provided. The device includes: a first acquisition module for detecting that the routing table in the preset first data management group is modified To obtain the modified routing table data; the synchronization module is used to synchronize the modified routing table data to any other one or more non-default second data management groups to update A new non-default routing table in the second data management group; wherein, a unique first data management group and at least one second data management group are deployed in the distributed file system.

根據本發明實施例的又一態樣,還提.供了一種路由表的同步系統,該系統包括:第一資料管理伺服器,用於如果檢測到本機存放區的路由表被修改,獲取修改後的路由表資料,並將修改後的路由表資料進行同步處理,其中,第一資料管理伺服器為分散式檔案系統中預設的第一資料管理組中包含的任意一個伺服器;一個或多個第二資料管理伺服器,與第一資料管理服務器具有通信關係,用於接收第一資料管理伺服器同步的修改後的路由表資料,以更新第二資料管理組中的路由表,其中,第二資料管理伺服器為分散式檔案系統中非預設的第二資料管理組中包含的任意一個伺服器。 According to another aspect of the embodiment of the present invention, there is also provided a routing table synchronization system, the system includes: a first data management server, if it is detected that the routing table in the local storage area is modified, obtain The modified routing table data, and the modified routing table data is synchronized, wherein the first data management server is any server included in the preset first data management group in the distributed file system; Or a plurality of second data management servers, which have a communication relationship with the first data management server, and are used to receive modified routing table data synchronized by the first data management server to update the routing table in the second data management group, Wherein, the second data management server is any server included in the non-default second data management group in the distributed file system.

此處需要說明的是,預設的第一資料管理組在路由表的同步方法中的主要用途在於檢測分散式檔案系統中的路由表的變更,即,分散式檔案系統中的路由表是否被更改,並在檢測到路由表發生更改的情況下,獲取更改後的最新的路由表。然後將最新的路由表同步至其餘的第二資料管理組中。在對分散式檔案系統中的多個資料管理組的路由表更新之後,client端(使用者終端)的介面可以分散式檔案系統中的每個資料管理組的路由表進行確認,以確保每個資料管理組中的路由表都為最新的路由表。 What needs to be explained here is that the main purpose of the default first data management group in the routing table synchronization method is to detect the change of the routing table in the distributed file system, that is, whether the routing table in the distributed file system is Change, and in the case of detecting a change in the routing table, obtain the latest routing table after the change. Then synchronize the latest routing table to the rest of the second data management group. After updating the routing tables of multiple data management groups in the distributed file system, the interface of the client (user terminal) can confirm the routing table of each data management group in the distributed file system to ensure that each The routing tables in the data management group are all the latest routing tables.

由此,本發明提供的上述實施例的方案解決了現有技 術中分散式檔案系統中表為靜態表,導致的任意一個資料管理組中的表發生更改時,其餘資料管理組中的表不能同步進行更改的技術問題。 Therefore, the solution of the above-mentioned embodiment provided by the present invention solves the problem of the prior art The table in the intra-operative distributed file system is a static table. When the table in any data management group is changed, the other data management group tables cannot be changed synchronously.

10‧‧‧電腦終端 10‧‧‧Computer terminal

102‧‧‧處理器 102‧‧‧Processor

104‧‧‧記憶體 104‧‧‧Memory

106‧‧‧傳輸模組 106‧‧‧Transmission Module

S21-S66‧‧‧步驟 S21-S66‧‧‧Step

120‧‧‧第一獲取模組 120‧‧‧First acquisition module

122‧‧‧同步模組 122‧‧‧Sync Module

80‧‧‧註冊模組 80‧‧‧Registration Module

90‧‧‧第二獲取模組 90‧‧‧Second acquisition module

92‧‧‧返回模組 92‧‧‧Return Module

100‧‧‧確定模組 100‧‧‧Determine the module

101‧‧‧執行模組 101‧‧‧Execution Module

103‧‧‧第三獲取模組 103‧‧‧Third acquisition module

110‧‧‧第一資料管理伺服器 110‧‧‧First Data Management Server

112‧‧‧第二資料管理伺服器 112‧‧‧Second Data Management Server

1201‧‧‧處理器 1201‧‧‧Processor

1203‧‧‧記憶體 1203‧‧‧Memory

1205‧‧‧傳輸裝置 1205‧‧‧Transmission device

1207‧‧‧請求終端 1207‧‧‧Request terminal

1209‧‧‧資料儲存伺服器 1209‧‧‧Data Storage Server

此處所說明的圖式用來提供對本發明的進一步理解,構成本發明的一部分,本發明的示意性實施例及其說明用於解釋本發明,並不構成對本發明的不當限定。在圖式中:圖1是根據本發明實施例1的一種路由表的同步方法的電腦終端的硬體結構方塊圖;圖2是根據本發明實施例1的一種可選的路由表同步方法的流程圖;圖3是根據本發明實施例1的一種可選的路由表同步方法的示意圖;圖4是根據本發明實施例1的請求終端向任意資料管理組發送路由表請求的示意圖;圖5是根據本發明實施例1的一種可選的向資料管理組中發送路由表請求的流程圖;圖6是根據本發明實施例1的一種可選的請求終端向資料儲存伺服器發送路由表請求的流程圖;圖7是根據本發明實施例2的一種可選的路由表的同步裝置的示意圖;圖8是根據本發明實施例2的一種可選的路由表的同 步裝置的示意圖;圖9是根據本發明實施例2的一種可選的路由表的同步裝置的示意圖;圖10是根據本發明實施例2的一種可選的路由表的同步裝置的示意圖;圖11是根據本發明實施例2的路由表的同步系統的結構示意圖;以及圖12是根據本發明實施例2的一種電腦終端的結構方塊圖。 The drawings described here are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments and descriptions of the present invention are used to explain the present invention, and do not constitute an improper limitation of the present invention. In the drawings: FIG. 1 is a block diagram of the hardware structure of a computer terminal according to a method for synchronizing a routing table according to Embodiment 1 of the present invention; FIG. 2 is a diagram of an optional method for synchronizing a routing table according to Embodiment 1 of the present invention Flow chart; Figure 3 is a schematic diagram of an optional routing table synchronization method according to Embodiment 1 of the present invention; Figure 4 is a schematic diagram of a requesting terminal according to Embodiment 1 of the present invention to send a routing table request to any data management group; Figure 5 It is an optional flow chart of sending a routing table request to the data management group according to Embodiment 1 of the present invention; Figure 6 is an optional requesting terminal to send a routing table request to the data storage server according to Embodiment 1 of the present invention Figure 7 is a schematic diagram of an optional routing table synchronization device according to Embodiment 2 of the present invention; Figure 8 is a synchronization of an optional routing table according to Embodiment 2 of the present invention Figure 9 is a schematic diagram of an optional routing table synchronization device according to Embodiment 2 of the present invention; Figure 10 is a schematic diagram of an optional routing table synchronization device according to Embodiment 2 of the present invention; 11 is a schematic structural diagram of a routing table synchronization system according to Embodiment 2 of the present invention; and FIG. 12 is a structural block diagram of a computer terminal according to Embodiment 2 of the present invention.

為了使本技術中具有通常知識者更好地理解本發明方案,下面將結合本發明實施例中的圖式,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分的實施例,而不是全部的實施例。基於本發明中的實施例,本領域中具有通常知識者在沒有做出創造性勞動前提下所獲得的所有其他實施例,都應當屬於本發明保護的範圍。 In order to enable those with ordinary knowledge in the technology to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described implementation The examples are only a part of the embodiments of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person with ordinary knowledge in the field without creative work shall fall within the protection scope of the present invention.

需要說明的是,本發明的說明書和申請專利範圍及上述圖式中的術語“第一”、“第二”等是用於區別類似的物件,而不必用於描述特定的順序或先後次序。應該理解這樣使用的資料在適當情況下可以互換,以便這裡描述的本發明的實施例能夠以除了在這裡圖示或描述的那些以外的順序實施。此外,術語“包括”和“具有”以及他們的任何變 形,意圖在於覆蓋不排他的包含,例如,包含了一系列步驟或單元的過程、方法、系統、產品或設備不必限於清楚地列出的那些步驟或單元,而是可包括沒有清楚地列出的或對於這些過程、方法、產品或設備固有的其它步驟或單元。 It should be noted that the terms "first" and "second" in the specification and patent application scope of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the materials used in this way can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations of them It is intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units need not be limited to those clearly listed steps or units, but may include Or other steps or units inherent in these processes, methods, products or equipment.

首先,在對本發明實施例進行描述的過程中出現的部分名詞或術語適用於如下解釋:Federation:將命名空間namespace進行分散式儲存,使其構成一個系統集群,從而實現分佈系統中的scalability。 First of all, some terms or terms appearing in the process of describing the embodiments of the present invention are applicable to the following explanations: Federation: The namespace is stored in a distributed manner to form a system cluster, thereby realizing scalability in a distributed system.

Volume:在Federation系統中,在進行命名空間namespace分組後,表示每一組namespace的稱謂。 Volume: In the Federation system, after namespace grouping, it represents the name of each group of namespaces.

MountTable,路由表,在盤古分散式檔案系統中,可以將系統內部中不同目錄下的資料放到不同的volume上的路由表。 MountTable, routing table, in the Pangu distributed file system, the data in different directories in the system can be placed in the routing table on different volumes.

Pangu Master:盤古分散式檔案系統中所包含的資料管理組,資料管理組的結構為資料管理和資料儲存的結構,資料管理組Master主要記錄資料的屬性meta資訊,資料儲存組主要用於資料data的儲存。 Pangu Master: The data management group included in the Pangu distributed file system. The structure of the data management group is the structure of data management and data storage. The data management group Master mainly records the attribute meta information of the data, and the data storage group is mainly used for data data Storage.

PanguDefaultVolume:在盤古分散式檔儲存系統中引入Federation的模式之後,可以實現在同一個伺服器集群內中劃分出多個資料管理組pangu master組,每一組資料管理伺服器構成的資料管理組都可以對應為一個volume,其中有一組資料管理組為分散式檔案系統預設 的,也是唯一的主資料管理組PanguDefaultVolume。 PanguDefaultVolume: After the introduction of the Federation mode in the Pangu distributed file storage system, multiple data management groups pangu master groups can be divided into the same server cluster. Each group of data management servers constitutes a data management group. Can be mapped to a volume, in which a group of data management groups is the default for the distributed file system , And the only master data management group PanguDefaultVolume.

實施例1 Example 1

根據本發明實施例,還提供了一種基於分庫分表的任務傳輸方法實施例,需要說明的是,在圖式的流程圖示出的步驟可以在諸如一組電腦可執行指令的電腦系統中執行,並且,雖然在流程圖中示出了邏輯順序,但是在某些情況下,可以以不同於此處的循序執行所示出或描述的步驟。 According to the embodiment of the present invention, there is also provided an embodiment of a task transmission method based on sub-library and sub-table. It should be noted that the steps shown in the schematic flowchart can be implemented in a computer system such as a set of computer-executable instructions. Execution, and although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than here.

本發明實施例一所提供的方法實施例可以在移動終端、電腦終端或者類似的運算裝置中執行。以運行在電腦終端上為例,圖1是根據本發明實施例1的一種路由表的同步方法的電腦終端的硬體結構方塊圖。如圖1所示,電腦終端10可以包括一個或多個(圖中僅示出一個)處理器102(處理器102可以包括但不限於微處理器MCU或現場可程式邏輯閘陣列FPGA等的處理裝置)、用於儲存資料的記憶體104、以及用於通信功能的傳輸模組106。本領域中具有通常知識者可以理解,圖1所示的結構僅為示意,其並不對上述電子裝置的結構造成限定。例如,電腦終端10還可包括比圖1中所示更多或者更少的元件,或者具有與圖1所示不同的配置。 The method embodiment provided in the first embodiment of the present invention may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a computer terminal as an example, FIG. 1 is a block diagram of the hardware structure of a computer terminal according to a method for synchronizing a routing table according to Embodiment 1 of the present invention. As shown in FIG. 1, the computer terminal 10 may include one or more (only one is shown in the figure) processor 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a field programmable logic gate array FPGA, etc.) Device), a memory 104 for storing data, and a transmission module 106 for communication. Those with ordinary knowledge in the art can understand that the structure shown in FIG. 1 is only for illustration, and does not limit the structure of the above electronic device. For example, the computer terminal 10 may also include more or fewer elements than those shown in FIG. 1, or have a configuration different from that shown in FIG.

記憶體104可用于儲存應用軟體的軟體程式以及模組,如本發明實施例中的路由表的同步方法和裝置對應的程式指令/模組,處理器102透過運行儲存在記憶體104 內的軟體程式以及模組,從而執行各種功能應用以及資料處理,即實現上述的應用程式的路由表的同步方法。記憶體104可包括高速隨機記憶體,還可包括非揮發性記憶體,如一個或者多個磁性儲存裝置、快閃記憶體、或者其他非揮發性固態記憶體。在一些實例中,記憶體104可進一步包括相對於處理器102遠端設置的記憶體,這些遠端存放器可以透過網路連接至電腦終端10。上述網路的實例包括但不限於網際網路、企業內部網路、區域網路、行動通信網及其組合。 The memory 104 can be used to store software programs and modules of application software, such as the routing table synchronization method and the corresponding program instructions/modules of the device in the embodiment of the present invention. The processor 102 is stored in the memory 104 by running The software programs and modules in the software program can execute various functional applications and data processing, that is, the synchronization method of the routing table of the above-mentioned application program is realized. The memory 104 may include a high-speed random memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory provided remotely with respect to the processor 102, and these remote storages may be connected to the computer terminal 10 via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

傳輸裝置106用於經由一個網路接收或者發送資料。上述的網路具體實例可包括電腦終端10的通信供應商提供的無線網路。在一個實例中,傳輸裝置106包括一個網路介面卡(Network Interface Controller,NIC),其可透過基站與其他網路設備相連從而可與網際網路進行通訊。在一個實例中,傳輸裝置106可以為射頻(Radio Frequency,RF)模組,其用於透過無線方式與網際網路進行通訊。 The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.

在上述運行環境下,本發明提供了如圖2所示的路由表的同步方法。圖2是根據本發明實施例1的一種可選的路由表的同步方法的流程圖,如圖2所示的方法可以包括如下步驟: In the above operating environment, the present invention provides a method for synchronizing the routing table as shown in FIG. 2. Fig. 2 is a flowchart of an optional routing table synchronization method according to Embodiment 1 of the present invention. The method shown in Fig. 2 may include the following steps:

步驟S21,如果檢測到預設的第一資料管理組中的路由表被修改,獲取修改後的路由表資料。 In step S21, if it is detected that the routing table in the preset first data management group is modified, obtain the modified routing table data.

在上述步驟中,預設的第一資料管理組可以是分散式 檔案系統中的任意一個資料管理組,在路由表的同步方法中,第一資料管理組用於實現將接收到的最新的路由表同步至分散式檔案系統中部署的其他資料管理組。 In the above steps, the preset first data management group can be distributed For any data management group in the file system, in the routing table synchronization method, the first data management group is used to synchronize the received latest routing table to other data management groups deployed in the distributed file system.

在一種可選的實施例中,預設的第一資料管理組可以是分散式檔案系統中儲存最重要的資料的資料管理組,或資料儲存量最大的資料管理組,但在實際應用中,具體講分散式檔案系統中的哪一個資料管理組作為預設的第一資料管理組,此處不做限定。 In an alternative embodiment, the preset first data management group may be the data management group storing the most important data in the distributed file system, or the data management group with the largest data storage capacity, but in practical applications, Specifically speaking, which data management group in the distributed file system serves as the default first data management group is not limited here.

此處需要說明的是,預設的第一資料管理組在路由表的同步方法中的主要用途在於檢測分散式檔案系統中的路由表的變更,即,分散式檔案系統中的路由表是否被更改,並在檢測到路由表發生更改的情況下,獲取更改後的最新的路由表。 What needs to be explained here is that the main purpose of the default first data management group in the routing table synchronization method is to detect the change of the routing table in the distributed file system, that is, whether the routing table in the distributed file system is Change, and in the case of detecting a change in the routing table, obtain the latest routing table after the change.

此處還需要說明的是,在本發明涉及到的分散式檔案系統中(例如盤古pangu分散式檔案系統),通常可以透過將Federation(聯盟)的模式引入來實現資料管理組的形成,即將Federation中採用的對資料的namespace(命名空間)進行分散式的劃分模式引入資料管理組的模式,從而使其構成一個包含了一個或多個資料管理伺服器構成的集合組,實現分散式系統中的儲存模式。在分散式檔案系統中透過Federation進行對namespace進行分組後,會構成多個master組,每一組都是一個資料管理組,而在上述分散式檔案系統中的多個資料管理組中,有且僅有一個資料管理組為預設的第一資料管理組。 It should also be noted here that in the distributed file system involved in the present invention (such as the Pangu pangu distributed file system), the formation of a data management group can usually be realized by introducing the Federation mode, that is, the Federation The decentralized partitioning mode of the data namespace (namespace) adopted in the NAS introduces the mode of data management group, so that it forms a collection group consisting of one or more data management servers, and realizes the distributed system. Storage mode. After the namespace is grouped through Federation in the distributed file system, multiple master groups are formed, each of which is a data management group, and among the multiple data management groups in the above-mentioned distributed file system, there are and Only one data management group is the default first data management group.

此處還需要說明的是,在分散式檔案系統為Master/Chunk server的結構時,資料管理伺服器Master用於儲存分散式檔案系統中的meta(標籤)資訊,即,資料的屬性資訊,例如:資料的索引、網頁數據的標題、關鍵字等資訊,Chunk server則提供資料的儲存服務。在上述路由表的同步方法中,路由表儲存於分散式檔案系統的Master中,上述資料管理組為對Master進行分組後得到的多組資料管理組。 It should also be noted here that when the distributed file system is a Master/Chunk server structure, the data management server Master is used to store the meta (tag) information in the distributed file system, that is, the attribute information of the data, for example :Data index, web page data title, keywords and other information, Chunk server provides data storage service. In the above method for synchronizing the routing table, the routing table is stored in the Master of the distributed file system, and the above-mentioned data management group is a group of data management groups obtained by grouping the Master.

步驟S23,將修改後的路由表資料同步至其他任意一個或多個非預設的第二資料管理組,以更新非預設的第二資料管理組中的路由表。 Step S23, synchronizing the modified routing table data to any one or more other non-predetermined second data management groups to update the routing table in the non-predetermined second data management group.

其中,分散式檔案系統中部署唯一的第一資料管理組以及至少一個第二資料管理組。 Among them, a unique first data management group and at least one second data management group are deployed in the distributed file system.

在一種可選的實施例中,以分散式檔案系統為阿里巴巴的盤古作為示例,盤古作為為阿里巴巴的雲計算平臺提供資料儲存服務的分散式檔案系統,包括多個資料管理組(例如,淘寶、淘點點、來往等),預設其中一個資料管理組作為PanguDefaultVolume(即預設第一資料管理組),該分散式檔案系統中的其餘資料管理組為第二資料管理組,例如,預設淘寶的資料管理組為第一資料管理組,則該分散式檔案系統中的其餘資料管理組(例如:淘點點、來往等)均為第二資料管理組;當路由表發生變更時,先由淘寶的資料管理組(預設的第一資料管理組)接收最新的路由表,在第一資料管理組獲取到最新的路由表 後,將最新的路由表同步至其餘的第二資料管理組中,即,其餘的資料管理組(第二資料管理組)中的路由表的修改均透過預設的第一資料管理組來完成。 In an alternative embodiment, taking the distributed file system as Alibaba's Pangu as an example, Pangu, as a distributed file system that provides data storage services for Alibaba's cloud computing platform, includes multiple data management groups (for example, Taobao, Taodiandian, Laixiang, etc.), one of the data management groups is preset as PanguDefaultVolume (that is, the first data management group is preset), and the rest of the data management groups in the distributed file system are the second data management groups, for example , Taobao’s data management group is preset as the first data management group, and the rest of the data management groups in the distributed file system (such as Taodiandian, Laixiang, etc.) are all the second data management group; when the routing table is generated When changing, the data management group of Taobao (the default first data management group) receives the latest routing table first, and the latest routing table is obtained from the first data management group After that, the latest routing table is synchronized to the rest of the second data management group, that is, the modification of the routing tables in the remaining data management group (second data management group) is completed through the default first data management group .

在對分散式檔案系統中的多個資料管理組的路由表更新之後,client端(使用者終端)的介面可以分散式檔案系統中的每個資料管理組的路由表進行確認,以確保每個資料管理組中的路由表都為最新的路由表。 After updating the routing tables of multiple data management groups in the distributed file system, the interface of the client (user terminal) can confirm the routing table of each data management group in the distributed file system to ensure that each The routing tables in the data management group are all the latest routing tables.

圖3是根據本發明實施例1的一種可選的路由表同步方法的示意圖,結合圖3所示,當路由表由於使用者修改等因素發生變化時,分散式檔案系統中的第一資料管理組首先接收修改後的新的路由表,然後將新的路由表同步至分散式檔案系統中的其餘的第二資料管理組。上述說明不限定實際應用中的第二資料管理組的數量,即,當分散式檔案系統中有多個第二資料管理組時,都透過第一資料管理組進行同步新的路由表。 3 is a schematic diagram of an optional routing table synchronization method according to Embodiment 1 of the present invention. As shown in FIG. 3, when the routing table changes due to user modification and other factors, the first data management in the distributed file system The group first receives the revised new routing table, and then synchronizes the new routing table to the rest of the second data management group in the distributed file system. The above description does not limit the number of second data management groups in practical applications, that is, when there are multiple second data management groups in the distributed file system, the new routing table is synchronized through the first data management group.

由此,本發明提供的上述實施例的方案解決了現有技術中分散式檔案系統中表為靜態表,導致的任意一個資料管理組中的表發生更改時,其餘資料管理組中的表不能同步進行更改的技術問題。 Therefore, the solution of the above-mentioned embodiment provided by the present invention solves the problem that the tables in the distributed file system in the prior art are static tables. When the tables in any data management group are changed, the tables in the other data management groups cannot be synchronized. The technical issue of making the change.

在本發明上述實施例中,當分散式檔案系統中部署新的第二資料管理組時,將新的第二資料管理組中的資料管理伺服器註冊至第一資料管理組上,並將第一資料管理組中的路由表同步至新的第二資料管理組中。 In the above-mentioned embodiment of the present invention, when a new second data management group is deployed in the distributed file system, the data management server in the new second data management group is registered to the first data management group, and the The routing table in the first data management group is synchronized to the new second data management group.

在上述步驟中,新的第二資料管理組是在原分散式檔 案系統中不存在資料管理組,在加入新的第二資料管理組後,為了使新的第二資料管理組能夠同步第一資料管理組中的最新的路由表,首先將第二資料管理組中的資料管理伺服器註冊至預設的第一資料管理組上。 In the above steps, the new second data management group is in the original distributed file There is no data management group in the case system. After adding a new second data management group, in order to enable the new second data management group to synchronize the latest routing table in the first data management group, first add the second data management group The data management server in is registered to the default first data management group.

可選的,上述資料管理伺服器可以是第二資料管理組中的任意一個資料管理伺服器Master。 Optionally, the aforementioned data management server may be any data management server Master in the second data management group.

在一種可選的實施例中,仍以上述分散式檔案系統為阿里巴巴的盤古作為示例,預設預設的第一資料管理組為淘寶的資料管理組,若需要在盤古分散式檔案系統中加入原分散式檔案系統中沒有的來往的資料管理組,先將來往的資料管理組的資料管理伺服器註冊至淘寶的資料管理組上,其中,上述資料管理伺服器可以是來往的資料管理組的Master,將來往的資料管理伺服器註冊至淘寶的資料管理組後,保證了來往的資料管理組和淘寶的資料管理組的通信,使得來往的資料管理組成為該分散式檔案系統中與其餘第二資料管理組相同的第二資料管理組,此時方可對來往的資料管理組進行路由表同步的步驟,以使得來往的資料管理組中包含最新的路由表。 In an alternative embodiment, still taking the above-mentioned distributed file system as Alibaba's Pangu as an example, the preset first data management group is Taobao's data management group by default. If necessary, the Pangu distributed file system Add the data management group that is not in the original distributed file system, and register the data management server of the future data management group to Taobao's data management group. The above-mentioned data management server can be the data management group. The Master of the management group, after the future data management server is registered to Taobao's data management group, it ensures the communication between the data management group and Taobao's data management group, so that the data management composition of the exchange is the distributed file The second data management group that is the same as the rest of the second data management group in the system can perform routing table synchronization steps for the data management group to and from, so that the data management group includes the latest routing table.

本發明上述實施例提供的方法解決了在新的資料管理組加入分散式檔案系統後的路由表難以統一的技術問題。 The method provided by the foregoing embodiment of the present invention solves the technical problem that the routing table is difficult to be unified after the new data management group is added to the distributed file system.

在本發明上述實施例中,上述方法還包括如下步驟: In the foregoing embodiment of the present invention, the foregoing method further includes the following steps:

步驟S23,在分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之後,從路由表請求中獲取請求終端中的路由表版本資訊。 Step S23: After any data management group in the distributed file system receives the routing table request initiated by the requesting terminal, it obtains the routing table version information in the requesting terminal from the routing table request.

步驟S25,如果路由表版本資訊與任意一個資料管理組中的路由表的版本資訊不一致的情況下,任意一個資料管理組向請求終端返回本機存放區的路由表,或者,請求終端透過訪問分散式檔案系統中部署的資料儲存伺服器來獲取最新的路由表。 Step S25, if the version information of the routing table is inconsistent with the version information of the routing table in any data management group, any data management group returns the routing table of the local storage area to the requesting terminal, or the requesting terminal distributes through access The data storage server deployed in the distributed file system to obtain the latest routing table.

圖4是根據本發明實施例1的請求終端向任意資料管理組發送路由表請求的示意圖。結合圖4所示,在一種可選的實施例中,仍以上述分散式檔案系統為阿里巴巴的盤古作為示例,預設預設的第一資料管理組為淘寶的資料管理組,請求終端向分散式檔案系統中的任意一個資料管理組發送更新路由表的請求,任意一個資料管理組獲取發起路由表請求的請求終端的路由表版本資訊,在版本資訊與接收到路由表請求的資料管理組中的路由表的版本資訊不一致時,向請求終端發送儲存的路由表。 Fig. 4 is a schematic diagram of a requesting terminal sending a routing table request to an arbitrary data management group according to Embodiment 1 of the present invention. As shown in FIG. 4, in an alternative embodiment, still taking the distributed file system of Alibaba's Pangu as an example, the preset first data management group is Taobao's data management group by default, and the terminal is requested Send a request to update the routing table to any data management group in the distributed file system, and any data management group obtains the routing table version information of the requesting terminal that initiated the routing table request, and manages the version information and the data that receives the routing table request When the version information of the routing table in the group is inconsistent, the stored routing table is sent to the requesting terminal.

在上述步驟中,路由表的版本資訊可以是用於表示新路由表與舊路由表的資訊,以使資料管理組來識別最新的路由表。 In the above steps, the version information of the routing table may be information used to indicate the new routing table and the old routing table, so that the data management group can identify the latest routing table.

此處需要說明的是,上述任意資料管理組可以是在分散式檔案系統隨機選擇的資料管理組,但在優選的情況下,任意一個資料管理組為分散式檔案系統中的第一資料管理組,由於第一資料管理組是分散式檔案系統中首個接收到最新路由表的資料管理組,因此為了保證請求終端接收到的路由表也為分散式檔案系統中最新的路由表,優選的方法是上述任意一個資料管理組為分散式系統中的第一 資料管理組。 It should be noted here that any of the above-mentioned data management groups can be randomly selected data management groups in the distributed file system, but in the preferred case, any data management group is the first data management group in the distributed file system Since the first data management group is the first data management group in the distributed file system that receives the latest routing table, in order to ensure that the routing table received by the requesting terminal is also the latest routing table in the distributed file system, the preferred method Is any of the above data management groups as the first in a distributed system Data management team.

在本發明上述實施例中,步驟S23,在從路由表請求中獲取請求終端中的路由表版本資訊之前,上述方法還包括: In the above embodiment of the present invention, in step S23, before obtaining the routing table version information in the requesting terminal from the routing table request, the above method further includes:

步驟S231,根據路由表請求中攜帶的待操作的檔或目錄的資訊,確定待操作的檔或目錄的許可權。 Step S231: Determine the permission of the file or directory to be operated according to the information of the file or directory to be operated carried in the routing table request.

步驟S233,如果許可權為允許操作,則繼續執行從路由表請求中獲取請求終端中的路由表版本資訊的步驟。 In step S233, if the permission is the permitted operation, continue to perform the step of obtaining the routing table version information in the requesting terminal from the routing table request.

步驟S235,如果許可權為禁止操作,則獲取最新的路由表失敗。 In step S235, if the permission is forbidden to operate, then obtaining the latest routing table fails.

在上述步驟中,路由表中待操作的檔或目錄可以是發起路由表請求的資料管理組的檔案名或檔目錄。 In the above steps, the file or directory to be operated in the routing table may be the file name or file directory of the data management group that initiated the routing table request.

在一種可選的實施例中,仍以上述分散式檔案系統為阿里巴巴的盤古作為示例,請求終端向分散式檔案系統中的第一資料管理組發送路由表請求,則第一資料管理組透過路由表中檔或者目錄資訊確定該請求終端是否有許可權獲取最新的路由表。 In an optional embodiment, still taking the above-mentioned distributed file system as Alibaba's Pangu as an example, the request terminal sends a routing table request to the first data management group in the distributed file system, and the first data management group passes The middle file or directory information of the routing table determines whether the requesting terminal has permission to obtain the latest routing table.

本發明上述步驟對獲取分散式檔案系統中的路由表的物件做了預設限定,使得具有獲取最新路由表許可權的請求終端才能從分散式檔案系統中獲得最新的路由表。 The above-mentioned steps of the present invention set a preset limit for obtaining the routing table in the distributed file system, so that the requesting terminal with the permission to obtain the latest routing table can obtain the latest routing table from the distributed file system.

在另一種可選的實施例中,接收到路由表請求的資料管理組在獲取到請求終端的路由表的版本後,經對比確認請求終端的路由表版本為最新的路由表版本,則可以認為請求終端的請求許可權被篡改,因此向請求終端返回錯誤 代碼,請求終端在接收到錯誤代碼後,會在預設時間進行重試請求,直至請求終端的路由表版本以不與接收路由表請求的資料管理組的路由表相同。 In another optional embodiment, after the information management group that has received the routing table request obtains the routing table version of the requesting terminal, it is confirmed by comparison that the routing table version of the requesting terminal is the latest routing table version, then it can be considered The request permission of the requesting terminal has been tampered with, so an error is returned to the requesting terminal Code. After receiving the error code, the requesting terminal will retry the request at a preset time until the routing table version of the requesting terminal is not the same as the routing table of the data management group receiving the routing table request.

圖5是根據本發明實施例1的一種可選的向資料管理組中發送路由表請求的流程圖,包括如下步驟: Fig. 5 is an optional flowchart of sending a routing table request to a data management group according to Embodiment 1 of the present invention, including the following steps:

步驟S51,請求終端發起路由表請求。 Step S51, request the terminal to initiate a routing table request.

在上述步驟中,請求終端向分散式檔案系統中的任意資料管理組發送路由表請求。 In the above steps, the request terminal sends a routing table request to any data management group in the distributed file system.

步驟S52,確定待操作的檔或目錄的許可權。 Step S52: Determine the permission of the file or directory to be operated.

在待操作的檔或目錄有操作許可權的情況下進入步驟S53,否則進入步驟S55。 If the file or directory to be operated has the operation permission, go to step S53, otherwise go to step S55.

步驟S53,判斷請求終端與任意資料管理組的路由表是否一致。 Step S53: It is judged whether the routing table of the requesting terminal is consistent with the routing table of any data management group.

在上述步驟中,如果請求終端與任意資料管理組的路由表一致,則進入步驟S55,否則進入步驟S54。 In the above steps, if the requesting terminal is consistent with the routing table of any data management group, then step S55 is entered, otherwise step S54 is entered.

步驟S54,向請求終端發送路由表。 Step S54: Send the routing table to the requesting terminal.

如果路由表版本資訊與任意一個資料管理組中的路由表的版本資訊不一致的情況下,任意一個資料管理組向請求終端返回本機存放區的路由表,或者,請求終端透過訪問分散式檔案系統中部署的資料儲存伺服器來獲取最新的路由表。 If the version information of the routing table is inconsistent with the version information of the routing table in any data management group, any data management group returns the routing table of the local storage area to the requesting terminal, or the requesting terminal accesses the distributed file system The data storage server deployed in to get the latest routing table.

步驟S55,返回錯誤代碼。 Step S55, an error code is returned.

在請求終端沒有獲取最新路由表的情況下,接收到資料管理組返回的錯誤代碼。 In the case that the requesting terminal has not obtained the latest routing table, the error code returned by the data management group is received.

在本發明上述實施例中,在分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之前,方法還包括: In the foregoing embodiment of the present invention, before any data management group in the distributed file system receives the routing table request initiated by the requesting terminal, the method further includes:

步驟S237,請求終端在調用訪問介面之後,解析得到分散式檔案系統中的每個資料管理組的訪問資訊。 Step S237: After calling the access interface, the request terminal parses to obtain the access information of each data management group in the distributed file system.

步驟S239,請求終端向任意一個資料管理組發送路由表請求,其中,如果請求終端從任意一個資料管理組獲取最新的路由表失敗,則向分散式檔案系統中的其他資料管理組發送路由表請求,直至獲取最新的路由表。 In step S239, the requesting terminal sends a routing table request to any data management group. If the requesting terminal fails to obtain the latest routing table from any data management group, it sends the routing table request to other data management groups in the distributed file system. Until the latest routing table is obtained.

具體的,在上述步驟中,上述訪問介面可以是API介面,分散式檔案系統中的每個資料管理組的訪問資訊可以是資料管理組的Master資訊。 Specifically, in the above steps, the access interface may be an API interface, and the access information of each data management group in the distributed file system may be the master information of the data management group.

在一種可選的實施例中,仍以上述分散式檔案系統為阿里巴巴的盤古作為示例,使用者調用API(Application Programming Interface,應用程式設計發展介面)後,利用阿里巴巴的address resolver(位址解析工具,例如:nuwa)解析出該分散式檔案系統中所有資料管理組的位址資訊(例如:tcp/ip位址),在解析出所有資料管理組的位址資訊後,隨機向其中的任意一個資料管理組發送請求獲取路由表的請求,如果請求失敗,則反復上述過程重試。 In an alternative embodiment, still taking the above-mentioned distributed file system as Alibaba's Pangu as an example, the user calls API (Application Programming Interface) and then uses Alibaba's address resolver (address resolver). Analysis tools, such as nuwa) parse out the address information of all data management groups in the distributed file system (for example: tcp/ip address), and after analyzing the address information of all data management groups, randomly send Any data management group sends a request to obtain a routing table. If the request fails, the above process is repeated and retryed.

此處需要說明的是,在請求終端請求失敗的情況下,需要判斷當前時間是否在預設的時間範圍內,如果當前時間在預設的時間範圍內,則向其他資料管理組重新發起獲 取路由表的情況下,如果當前時間已經超時了預設的時間範圍,則停止請求終端繼續發送獲取路由表的請求。 What needs to be explained here is that in the case that the request of the requesting terminal fails, it is necessary to determine whether the current time is within the preset time range. If the current time is within the preset time range, re-initiate the acquisition to other data management groups. In the case of obtaining the routing table, if the current time has exceeded the preset time range, stop requesting the terminal to continue sending the request for obtaining the routing table.

在本發明上述實施例中,步驟S237,在解析得到分散式檔案系統中的每個資料管理組的訪問資訊之前,上述方法還包括: In the above embodiment of the present invention, in step S237, before the access information of each data management group in the distributed file system is obtained by analyzing, the above method further includes:

步驟S2371,請求終端解析得到分散式檔案系統中部署的資料儲存伺服器的訪問資訊。 Step S2371, request the terminal to analyze and obtain the access information of the data storage server deployed in the distributed file system.

步驟S2373,請求終端向資料儲存伺服器發送路由表請求,其中,如果請求終端從資料儲存伺服器獲取最新的路由表失敗,或者資料儲存伺服器中儲存的路由表不是最新的路由表,則請求終端進入解析分散式檔案系統中的每個資料管理組的訪問資訊的步驟。 Step S2373: The requesting terminal sends a routing table request to the data storage server. If the requesting terminal fails to obtain the latest routing table from the data storage server, or the routing table stored in the data storage server is not the latest routing table, then the request The terminal enters the step of analyzing the access information of each data management group in the distributed file system.

在一種可選的實施例中,上述分散式檔案系統是Master,Slave結構,上述資料儲存伺服器可以是chunk server,請求終端首先向chunk server發送路由表請求,當向chunk server請求失敗,或chunk server中的路由表的版本資訊不是最新版本時,請求終端向分散式檔案系統中的任意一個資料管理組發送路由表請求。 In an alternative embodiment, the above-mentioned distributed file system is a Master, Slave structure, and the above-mentioned data storage server may be a chunk server. The requesting terminal first sends a routing table request to the chunk server. When the request to the chunk server fails, or chunk When the version information of the routing table in the server is not the latest version, request the terminal to send a routing table request to any data management group in the distributed file system.

在本發明上述實施例中,步驟S23,在分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之前,方法還包括: In the foregoing embodiment of the present invention, in step S23, before any data management group in the distributed file system receives the routing table request initiated by the requesting terminal, the method further includes:

步驟S25,請求終端在調用訪問介面之後,解析得到分散式檔案系統中預設的第一資料管理組的位址資訊。 Step S25: After calling the access interface, the request terminal parses to obtain the address information of the first data management group preset in the distributed file system.

步驟S27,請求終端向第一資料管理組發送路由表請 求,其中,如果請求終端從第一資料管理組獲取最新的路由表失敗,則向分散式檔案系統中的其他任意一個或多個第二資料管理組發送路由表請求,直至獲取最新的路由表。 Step S27, request the terminal to send a routing table request to the first data management group Wherein, if the requesting terminal fails to obtain the latest routing table from the first data management group, it will send a routing table request to any other one or more second data management groups in the distributed file system until the latest routing table is obtained .

在一種可選的實施例中,仍以上述分散式檔案系統為阿里巴巴的盤古作為示例,預設預設的第一資料管理組為淘寶的資料管理組,請求終端向淘寶的資料管理組發送更新路由表的請求,淘寶的資料管理組接收到路由表請求後,獲取請求終端中的路由表的版本資訊,在版本資訊與接收到路由表請求的資料管理組中的路由表的版本資訊不一致時,向請求終端發送儲存的路由表。 In an optional embodiment, still taking the above-mentioned distributed file system as Alibaba's Pangu as an example, the preset first data management group is the data management group of Taobao by default, and the terminal is requested to inform Taobao's data management The group sends a request to update the routing table. After receiving the routing table request, Taobao’s data management group obtains the version information of the routing table in the requesting terminal. When the version information is inconsistent, the stored routing table is sent to the requesting terminal.

在本發明上述實施例中,上述方法還包括:,在解析得到分散式檔案系統中預設的第一資料管理組的位址資訊之前,方法還包括: In the above embodiment of the present invention, the above method further includes: before the address information of the first data management group preset in the distributed file system is obtained by analyzing, the method further includes:

步驟S251,請求終端解析得到分散式檔案系統中部署的資料儲存伺服器的訪問資訊。 Step S251, request the terminal to analyze and obtain the access information of the data storage server deployed in the distributed file system.

步驟S253請求終端向資料儲存伺服器發送路由表請求,其中,如果請求終端從資料儲存伺服器獲取最新的路由表失敗,或者資料儲存伺服器中儲存的路由表不是最新的路由表,則請求終端進入解析分散式檔案系統中的第一資料管理組的訪問資訊的步驟。 Step S253 requests the terminal to send a routing table request to the data storage server. If the request terminal fails to obtain the latest routing table from the data storage server, or the routing table stored in the data storage server is not the latest routing table, the request terminal Enter the step of analyzing the access information of the first data management group in the distributed file system.

在一種可選的實施例中,上述分散式檔案系統是Master,Slave結構,請求終端首先向Master發送路由表請求,當向Master請求失敗返回的錯誤代碼,路由表的 版本資訊不正確時,請求終端向分散式檔案系統中的任意一個資料管理組發送路由表請求。 In an optional embodiment, the above-mentioned distributed file system is a Master, Slave structure, and the request terminal first sends a routing table request to the Master. When the request fails, the error code returned by the routing table is When the version information is incorrect, request the terminal to send a routing table request to any data management group in the distributed file system.

圖6是根據本發明實施例1的一種可選的請求終端向資料儲存伺服器發送路由表請求的流程圖,包括如下步驟: Fig. 6 is a flowchart of an optional requesting terminal to send a routing table request to a data storage server according to Embodiment 1 of the present invention, including the following steps:

S61,獲取資料儲存伺服器的訪問資訊。 S61: Obtain access information of the data storage server.

S62,向資料儲存伺服器發送路由表請求。 S62: Send a routing table request to the data storage server.

S63,請求是否失敗。 S63, whether the request fails.

S64,資料儲存伺服器中的路由表是否為最新路由表。 S64: Whether the routing table in the data storage server is the latest routing table.

S65,向請求終端發送路由表。 S65: Send the routing table to the requesting terminal.

S66,解析第一資料管理組的訪問資訊。 S66: Parse the access information of the first data management group.

在本發明上述實施例中,上述方法還包括:在請求終端發起路由表請求的過程中,如果檢測到第一資料管理組中的路由表被修改,則重新訪問分散式檔案系統中的任意一個資料管理組,來獲取最新的路由表。 In the above embodiment of the present invention, the above method further includes: in the process of requesting the terminal to initiate the routing table request, if it is detected that the routing table in the first data management group has been modified, revisiting any one of the distributed file systems Data management team to get the latest routing table.

在請求終端發起路由表請求的過程中檢測到第一資料管理組中的路由表被修改,如果繼續訪問分散式中的任意一個資料管理組,則獲取得到的路由表可能部位最新的路由表,因此本發明上述步驟在請求終端發起路由表請求的過程中檢測到第一資料管理組中的路由表被修改時,重新訪問分散式檔案系統中的任意資料管理組,以使得請求終端獲取得到的是最新的路由表。 In the process of initiating the routing table request by the requesting terminal, it is detected that the routing table in the first data management group is modified. If you continue to access any of the distributed data management groups, the latest routing table in the possible part of the routing table will be obtained. Therefore, when the above steps of the present invention detect that the routing table in the first data management group is modified during the process of initiating the routing table request by the requesting terminal, it revisits any data management group in the distributed file system so that the requesting terminal can obtain the information obtained Is the latest routing table.

在本發明上述實施例中,上述方法還包括:分散式檔 案系統中部署的第一資料管理組以及第二資料管理組設置有讀寫請求門限,其中,讀寫請求門限用於表徵對應的資料管理組中的資料管理伺服器的最大訪問次數,如果資料管理伺服器的訪問次數超過讀寫請求門限,則終止訪問資料管理伺服器。 In the above embodiment of the present invention, the above method further includes: distributed files The first data management group and the second data management group deployed in the project system are set with read and write request thresholds, where the read and write request thresholds are used to characterize the maximum access times of the data management server in the corresponding data management group. If the number of accesses to the management server exceeds the threshold for read and write requests, the access to the data management server is terminated.

在一種可選的實施例中,以線上生產集群AY75C及AY88B為例,當具有5000套資料管理伺服器時,在均值的讀寫次數為1萬次,峰值讀寫次數為10萬的情況下,當Master為3台時,平均每台資料管理伺服器最大需要承受3.3萬次的讀寫次數,未超出第一資料管理組以及第二資料管理組設置有讀寫請求門限。 In an alternative embodiment, taking the online production clusters AY75C and AY88B as an example, when there are 5000 sets of data management servers, the average number of reads and writes is 10,000, and the peak number of reads and writes is 100,000. When the number of Masters is 3, the average data management server needs to withstand a maximum of 33,000 reads and writes, which does not exceed the read and write request thresholds set by the first data management group and the second data management group.

在本發明上述實施例中,上述方法還包括:對第一資料管理組中包含的資料管理伺服器進行持久化處理,在第一資料管理組執行持久化處理完成之後,向至少一個第二資料管理組發送用於修改路由表的遠端程序呼叫協定,使得第二資料管理組執行持久化處理。 In the above embodiment of the present invention, the above method further includes: performing persistence processing on the data management server included in the first data management group, and after the first data management group has performed the persistence processing, send at least one second data The management group sends a remote program call agreement for modifying the routing table, so that the second data management group performs persistence processing.

在上述步驟中,對資料管理伺服器進行持久化處理可以是將資料管理伺服器終端資料儲存至可永久儲存的設備中。 In the above steps, the persistent processing of the data management server can be to store the terminal data of the data management server in a device that can be permanently stored.

此處需要說明的是,由於分散式檔案系統中所有路由表的更新都依賴於第一資料管理組更新,因此第二資料管理組對第一資料管理組具有很大的依賴性,如果第二資料管理組發生故障,則需要依賴於第一資料管理組進行修復,如果第一資料管理組也發生故障,則需要在第一資料 管理組修復完成後再依賴於第一資料管理組進行修復,從而使得第二資料管理組的修復進度遲緩,因此透過向第二資料管理組發送遠端調用協定對第二資料管理組中的資料伺服器進行持久化處理,從而當在第一資料管理組出現故障的情況下,第二資料管理組也發生故障時。由於第二資料管理組已經對路由表進行了持久化處理,因此第二資料管理組的恢復不依賴於第一資料管理組,進而提高了第二資料管理組的損毀修復效率。 What needs to be explained here is that since the updates of all routing tables in the distributed file system depend on the update of the first data management group, the second data management group has a great dependence on the first data management group. If the data management group fails, you need to rely on the first data management group to repair it. If the first data management group also fails, you need to After the restoration is completed, the management group relies on the first data management group to perform the restoration, which slows down the restoration progress of the second data management group. Therefore, the data in the second data management group is sent to the second data management group by a remote call protocol. The server performs persistence processing, so that when the first data management group fails, the second data management group also fails. Since the second data management group has performed persistent processing on the routing table, the recovery of the second data management group does not depend on the first data management group, thereby improving the damage repair efficiency of the second data management group.

需要說明的是,對於前述的各方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是本領域中具有通常知識者應該知悉,本發明並不受所描述的動作順序的限制,因為依據本發明,某些步驟可以採用其他順序或者同時進行。其次,本領域中具有通常知識者也應該知悉,說明書中所描述的實施例均屬於優選實施例,所涉及的動作和模組並不一定是本發明所必須的。 It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those with ordinary knowledge in the art should know that the present invention is not subject to the described sequence of actions. The limitation is because according to the present invention, certain steps can be performed in other order or simultaneously. Secondly, those with ordinary knowledge in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

透過以上的實施方式的描述,本領域的中具有通常知識者可以清楚地瞭解到根據上述實施例的基於分庫分表的任務傳輸方法可借助軟體加必需的通用硬體平臺的方式來實現,當然也可以透過硬體,但很多情況下前者是更佳的實施方式。基於這樣的理解,本發明的技術方案本質上或者說對現有技術做出貢獻的部分可以以軟體產品的形式體現出來,該電腦軟體產品儲存在一個儲存介質(如ROM/RAM、磁碟、光碟)中,包括若干指令用以使得一台終端設備(可以是手機,電腦,伺服器,或者網路設備 等)執行本發明各個實施例所述的方法。 Through the description of the above embodiments, those with ordinary knowledge in the field can clearly understand that the task transmission method based on the sub-library and sub-table according to the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, hardware can also be used, but in many cases the former is a better implementation. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) ), including several instructions to make a terminal device (can be a mobile phone, computer, server, or network device Etc.) Perform the methods described in the various embodiments of the present invention.

實施例2 Example 2

根據本發明實施例,還提供了一種路由表的同步裝置,如圖7所示,該裝置包括:第一獲取模組120和同步模組122。 According to an embodiment of the present invention, a device for synchronizing a routing table is also provided. As shown in FIG. 7, the device includes: a first obtaining module 120 and a synchronization module 122.

第一獲取模組120用於如果檢測到預設的第一資料管理組中的路由表被修改,獲取修改後的路由表資料;同步模組122用於將修改後的路由表資料同步至其他任意一個或多個非預設的第二資料管理組,以更新非預設的第二資料管理組中的路由表;其中,分散式檔案系統中部署唯一的第一資料管理組以及至少一個第二資料管理組。 The first obtaining module 120 is used to obtain the modified routing table data if it is detected that the routing table in the first data management group is modified; the synchronization module 122 is used to synchronize the modified routing table data to other Any one or more non-default second data management groups to update the routing table in the non-default second data management group; wherein, a unique first data management group and at least one first data management group are deployed in the distributed file system 2. Data management team.

在一種可選的實施例中,預設的第一資料管理組可以是分散式檔案系統中儲存最重要的資料的資料管理組,或資料儲存量最大的資料管理組,但在實際應用中,具體將分散式檔案系統中的哪一個資料管理組作為預設的第一資料管理組,此處不做限定。 In an alternative embodiment, the preset first data management group may be the data management group storing the most important data in the distributed file system, or the data management group with the largest data storage capacity, but in practical applications, Specifically, which data management group in the distributed file system is used as the default first data management group is not limited here.

此處需要說明的是,預設的第一資料管理組在路由表的同步方法中的主要用途在於檢測分散式檔案系統中的路由表的變更,即,分散式檔案系統中的路由表是否被更改,並在檢測到路由表發生更改的情況下,獲取更改後的最新的路由表。 What needs to be explained here is that the main purpose of the default first data management group in the routing table synchronization method is to detect the change of the routing table in the distributed file system, that is, whether the routing table in the distributed file system is Change, and in the case of detecting a change in the routing table, obtain the latest routing table after the change.

此處還需要說明的是,在分散式檔案系統中,通常透 過Federation(聯盟)將資料的namespace(命名空間)進行分散式,從而使其構成一個聯盟,進而實現分散式系統中的儲存模式,在分散式檔案系統透過Federation進行對namespace進行分組後,會構成多個master組,每一組都是一個資料管理組,而在上述分散式檔案系統中的多個資料管理組中,有且僅有一個資料管理組為預設的第一資料管理組。 It should also be noted here that in a distributed file system, the Through the Federation, the namespace of the data is distributed, so that it forms a federation, and then realizes the storage mode in the distributed system. After the distributed file system groups the namespaces through the Federation, it will form There are multiple master groups, each of which is a data management group, and among the multiple data management groups in the above-mentioned distributed file system, there is one and only one data management group as the default first data management group.

此處還需要說明的是,在分散式檔案系統為Master/Chunk server的結構時,Master用於儲存分散式檔案系統中的meta(標籤)資訊,即,資料的屬性資訊,例如:資料的索引、網頁數據的標題、關鍵字等資訊,Chunk server則提供資料的儲存服務。在上述路由表的同步方法中,路由表儲存於分散式檔案系統的Master中,上述資料管理組為對Master進行分組後得到的多組資料管理組。 It should also be noted here that when the distributed file system is a Master/Chunk server structure, the Master is used to store meta (tag) information in the distributed file system, that is, the attribute information of the data, such as the index of the data , Web page data titles, keywords and other information, Chunk server provides data storage services. In the above method for synchronizing the routing table, the routing table is stored in the Master of the distributed file system, and the above-mentioned data management group is a group of data management groups obtained by grouping the Master.

在一種可選的實施例中,以分散式檔案系統為阿里巴巴的盤古作為示例,盤古作為為阿里巴巴的雲計算平臺提供資料儲存服務的分散式檔案系統,包括多個資料管理組(例如,淘寶、淘點點、來往等),預設其中一個資料管理組作為PanguDefaultVolume(預設第一資料管理組),該分散式檔案系統中的其餘資料管理組為第二資料管理組,例如,預設淘寶的資料管理組為第一資料管理組,則該分散式檔案系統中的其餘資料管理組(例如:淘點點、來往等)均為第二資料管理組;當路由表發生變更時,先 由淘寶的資料管理組(預設的第一資料管理組)接收最新的路由表,在第一資料管理組獲取到最新的路由表後,將最新的路由表同步至其餘的第二資料管理組中,即,其餘的資料管理組(第二資料管理組)中的路由表的修改均透過預設的第一資料管理組來完成。 In an alternative embodiment, taking the distributed file system as Alibaba's Pangu as an example, Pangu, as a distributed file system that provides data storage services for Alibaba's cloud computing platform, includes multiple data management groups (for example, Taobao, Taodiandian, Laixiang, etc.), one of the data management groups is preset as PanguDefaultVolume (default first data management group), and the rest of the data management groups in the distributed file system are second data management groups, for example, By default, Taobao’s data management group is the first data management group, and the rest of the data management groups in the distributed file system (such as Taodiandian, Laixiang, etc.) are the second data management group; when the routing table is changed When, first Taobao’s data management group (the default first data management group) receives the latest routing table, and after the first data management group obtains the latest routing table, the latest routing table is synchronized to the rest of the second data management In the group, that is, the modification of the routing table in the remaining data management group (the second data management group) is completed through the preset first data management group.

在對分散式檔案系統中的多個資料管理組的路由表更新之後,client端(使用者終端)的介面可以分散式檔案系統中的每個資料管理組的路由表進行確認,以確保每個資料管理組中的路由表都為最新的路由表。 After updating the routing tables of multiple data management groups in the distributed file system, the interface of the client (user terminal) can confirm the routing table of each data management group in the distributed file system to ensure that each The routing tables in the data management group are all the latest routing tables.

由此,本發明提供的上述實施例的方案解決了現有技術中分散式檔案系統中表為靜態表,導致的任意一個資料管理組中的表發生更改時,其餘資料管理組中的表不能同步進行更改的技術問題。 Therefore, the solution of the above-mentioned embodiment provided by the present invention solves the problem that the tables in the distributed file system in the prior art are static tables. When the tables in any data management group are changed, the tables in the other data management groups cannot be synchronized. The technical issue of making the change.

在本發明上述實施例中,結合圖8所示,上述裝置還包括:註冊模組80, 註冊模組80用於當分散式檔案系統中部署新的第二資料管理組時,將新的第二資料管理組中的資料管理伺服器註冊至第一資料管理組上,並將第一資料管理組中的路由表同步至新的第二資料管理組中。 In the above-mentioned embodiment of the present invention, as shown in FIG. 8, the above-mentioned device further includes: a registration module 80, The registration module 80 is used for registering the data management server in the new second data management group to the first data management group when the new second data management group is deployed in the distributed file system, and the first data The routing table in the management group is synchronized to the new second data management group.

在上述裝置中,新的第二資料管理組是在原分散式檔案系統中不存在資料管理組,在加入新的第二資料管理組後,為了使新的第二資料管理組能夠同步第一資料管理組中的最新的路由表,首先將第二資料管理組中的資料管理伺服器註冊至預設的第一資料管理組上。 In the above device, the new second data management group does not exist in the original distributed file system. After adding the new second data management group, in order to enable the new second data management group to synchronize the first data The latest routing table in the management group first registers the data management server in the second data management group to the preset first data management group.

可選的,上述資料管理伺服器可以是第二資料管理組的Master。 Optionally, the aforementioned data management server may be the Master of the second data management group.

在一種可選的實施例中,仍以上述分散式檔案系統為阿里巴巴的盤古作為示例,預設預設的第一資料管理組為淘寶的資料管理組,若需要在盤古分散式檔案系統中加入原分散式檔案系統中沒有的來往的資料管理組,先將來往的資料管理組的資料管理伺服器註冊至淘寶的資料管理組上,其中,上述資料管理伺服器可以是來往的資料管理組的Master,將來往的資料管理伺服器註冊至淘寶的資料管理組後,保證了來往的資料管理組和淘寶的資料管理組的通信,使得來往的資料管理組成為該分散式檔案系統中與其餘第二資料管理組相同的第二資料管理組,此時方可對來往的資料管理組進行路由表同步的步驟,以使得來往的資料管理組中包含最新的路由表。 In an alternative embodiment, still taking the above-mentioned distributed file system as Alibaba's Pangu as an example, the preset first data management group is Taobao's data management group by default. If necessary, the Pangu distributed file system Add the data management group that is not in the original distributed file system, and register the data management server of the future data management group to Taobao's data management group. The above-mentioned data management server can be the data management group. The Master of the management group, after the future data management server is registered to Taobao's data management group, it ensures the communication between the data management group and Taobao's data management group, so that the data management composition of the exchange is the distributed file The second data management group that is the same as the rest of the second data management group in the system can perform routing table synchronization steps for the data management group to and from, so that the data management group includes the latest routing table.

本發明上述實施例提供的方法解決了在新的資料管理組加入分散式檔案系統後的路由表難以統一的技術問題。 The method provided by the foregoing embodiment of the present invention solves the technical problem that the routing table is difficult to be unified after the new data management group is added to the distributed file system.

本發明上述實施例中,結合圖9所示,上述裝置還包括:第二獲取模組90和返回模組92, 第二獲取模組90用於在分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之後,從路由表請求中獲取請求終端中的路由表版本資訊;返回模組92用於如果路由表版本資訊與任意一個資料管理組中的路由表的版本資訊不一致的情況下,任意一個資料管理組向請求終端返回本機存放區的路由表,或者,請求終端 透過訪問分散式檔案系統中部署的資料儲存伺服器來獲取最新的路由表。 In the above-mentioned embodiment of the present invention, as shown in FIG. 9, the above-mentioned device further includes: a second obtaining module 90 and a returning module 92, The second obtaining module 90 is used to obtain the routing table version information in the requesting terminal from the routing table request after any data management group in the distributed file system receives the routing table request initiated by the requesting terminal; return module 92 If the version information of the routing table is inconsistent with the version information of the routing table in any data management group, any data management group returns the routing table of the local storage area to the requesting terminal, or the requesting terminal Get the latest routing table by accessing the data storage server deployed in the distributed file system.

結合圖4所示,在一種可選的實施例中,仍以上述分散式檔案系統為阿里巴巴的盤古作為示例,預設預設的第一資料管理組為淘寶的資料管理組,請求終端向分散式檔案系統中的任意一個資料管理組發送更新路由表的請求,任意一個資料管理組獲取發起路由表請求的請求終端的路由表版本資訊,在版本資訊與接收到路由表請求的資料管理組中的路由表的版本資訊不一致時,向請求終端發送儲存的路由表。 As shown in FIG. 4, in an alternative embodiment, still taking the distributed file system of Alibaba's Pangu as an example, the preset first data management group is Taobao's data management group by default, and the terminal is requested Send a request to update the routing table to any data management group in the distributed file system, and any data management group obtains the routing table version information of the requesting terminal that initiated the routing table request, and manages the version information and the data that receives the routing table request When the version information of the routing table in the group is inconsistent, the stored routing table is sent to the requesting terminal.

在上述裝置中,路由表的版本資訊可以是用於表示新路由表與舊路由表的資訊,以使資料管理組來識別最新的路由表。 In the above device, the version information of the routing table may be information used to indicate the new routing table and the old routing table, so that the data management group can identify the latest routing table.

此處需要說明的是,上述任意資料管理組可以是在分散式檔案系統隨機選擇的資料管理組,但在優選的情況下,任意一個資料管理組為分散式檔案系統中的第一資料管理組,由於第一資料管理組是分散式檔案系統中首個接收到最新路由表的資料管理組,因此為了保證請求終端接收到的路由表也為分散式檔案系統中最新的路由表,優選的方法是上述任意一個資料管理組為分散式系統中的第一資料管理組。 It should be noted here that any of the above-mentioned data management groups can be randomly selected data management groups in the distributed file system, but in the preferred case, any data management group is the first data management group in the distributed file system Since the first data management group is the first data management group in the distributed file system that receives the latest routing table, in order to ensure that the routing table received by the requesting terminal is also the latest routing table in the distributed file system, the preferred method Any one of the above-mentioned data management groups is the first data management group in the distributed system.

在本發明上述實施例中,結合圖10所示,上述述裝置還包括:確定模組100、執行模組101和第三獲取模組103。 In the foregoing embodiment of the present invention, as shown in FIG. 10, the foregoing apparatus further includes: a determination module 100, an execution module 101, and a third acquisition module 103.

確定模組100用於根據路由表請求中攜帶的待操作的檔或目錄的資訊,確定待操作的檔或目錄的許可權;執行模組101,用於如果許可權為允許操作,則繼續執行從路由表請求中獲取請求終端中的路由表版本資訊的步驟;第三獲取模組103用於如果許可權為禁止操作,則獲取最新的路由表失敗。 The determining module 100 is used to determine the permission of the file or directory to be operated according to the information of the file or directory to be operated carried in the routing table request; the execution module 101 is used to continue the execution if the permission is allowed to operate The step of obtaining the version information of the routing table in the requesting terminal from the routing table request; the third obtaining module 103 is configured to fail to obtain the latest routing table if the permission is forbidden to operate.

在本發明上述實施例中,分散式檔案系統中部署的第一資料管理組以及第二資料管理組設置有讀寫請求門限,其中,讀寫請求門限用於表徵對應的資料管理組中的資料管理伺服器的最大訪問次數,如果資料管理伺服器的訪問次數超過讀寫請求門限,則終止訪問資料管理伺服器。 In the above embodiment of the present invention, the first data management group and the second data management group deployed in the distributed file system are set with read and write request thresholds, where the read and write request thresholds are used to characterize the data in the corresponding data management group The maximum number of visits to the management server. If the number of visits to the data management server exceeds the threshold for read and write requests, the access to the data management server is terminated.

在本發明上述實施例中,持久化處理模組,用於對第一資料管理組中包含的資料管理伺服器進行持久化處理,並在第一資料管理組執行持久化處理完成之後,向至少一個第二資料管理組發送用於修改路由表的遠端程序呼叫協定,使得第二資料管理組執行持久化處理。 In the above-mentioned embodiment of the present invention, the persistence processing module is used to perform persistence processing on the data management server included in the first data management group, and after the first data management group executes the persistence processing, it sends at least A second data management group sends a remote program call protocol for modifying the routing table, so that the second data management group performs persistence processing.

在本發明上述實施例中,上述裝置還包括:解析模組用於請求終端在調用訪問介面之後,解析得到分散式檔案系統中預設的第一資料管理組的位址資訊;第三發送模組請求終端向第一資料管理組發送路由表請求,其中,如果請求終端從第一資料管理組獲取最新的路由表失敗,則向分散式檔案系統中的其他任意一個或多個第二資料管理組發送路由表請求,直至獲取最新的路由表。 In the above-mentioned embodiment of the present invention, the above-mentioned device further includes: a parsing module for requesting the terminal to parse and obtain the address information of the first data management group preset in the distributed file system after invoking the access interface; and a third sending module The group requesting terminal sends a routing table request to the first data management group, where if the requesting terminal fails to obtain the latest routing table from the first data management group, it will send to any one or more of the other second data management in the distributed file system The group sends routing table requests until the latest routing table is obtained.

在本發明上述實施例中,上述裝置還包括:第二處理模組用於請求終端解析得到分散式檔案系統中部署的資料儲存伺服器的訪問資訊;第四發送模組用於請求終端向資料儲存伺服器發送路由表請求,其中,如果請求終端從資料儲存伺服器獲取最新的路由表失敗,或者資料儲存伺服器中儲存的路由表不是最新的路由表,則請求終端進入解析分散式檔案系統中的第一資料管理組的訪問資訊的步驟。 In the above-mentioned embodiment of the present invention, the above-mentioned device further includes: the second processing module is used to request the terminal to analyze and obtain the access information of the data storage server deployed in the distributed file system; the fourth sending module is used to request the terminal to send the data to the data storage server. The storage server sends a routing table request. If the requesting terminal fails to obtain the latest routing table from the data storage server, or the routing table stored in the data storage server is not the latest routing table, the requesting terminal enters the analysis distributed file system Steps of accessing information in the first data management group.

本發明上述實施例中,上述裝置還包括:訪問模組,用於在請求終端發起路由表請求的過程中,如果檢測到第一資料管理組中的路由表被修改,則重新訪問分散式檔案系統中的任意一個資料管理組,來獲取最新的路由表。 In the above-mentioned embodiment of the present invention, the above-mentioned device further includes: an access module for re-visiting the distributed file if it is detected that the routing table in the first data management group has been modified during the process of the requesting terminal initiating the routing table request Any data management group in the system to obtain the latest routing table.

在本發明上述實施例中,上述分散式檔案系統中部署的第一資料管理組以及第二資料管理組設置有讀寫請求門限,其中,讀寫請求門限用於表徵對應的資料管理組中的資料管理伺服器的最大訪問次數,如果資料管理伺服器的訪問次數超過讀寫請求門限,則終止訪問資料管理伺服器。 In the above embodiment of the present invention, the first data management group and the second data management group deployed in the distributed file system are provided with read and write request thresholds, where the read and write request thresholds are used to characterize the corresponding data management group. The maximum number of visits to the data management server. If the number of visits to the data management server exceeds the read and write request threshold, the access to the data management server is terminated.

在本發明上述實施例中,上述裝置還包括:持久化模組,用於對第一資料管理組中包含的資料管理伺服器進行持久化處理,在第一資料管理組執行持久化處理完成之後,向至少一個第二資料管理組發送用於修改路由表的遠端程序呼叫協定,使得第二資料管理組執行持 久化處理。 In the above-mentioned embodiment of the present invention, the above-mentioned device further includes: a persistence module, configured to perform persistence processing on the data management server included in the first data management group, after the first data management group executes the persistence processing , Send the remote program call protocol for modifying the routing table to at least one second data management group, so that the second data management group executes the support Long treatment.

實施例3 Example 3

根據本發明實施例,還提供了一種路由表的同步系統,結合圖11所示,該系統包括:第一資料管理伺服器110和一個或多個第二資料管理伺服器112,其中,第一資料管理伺服器110,用於如果檢測到本機存放區的路由表被修改,獲取修改後的路由表資料,並將修改後的路由表資料進行同步處理,其中,第一資料管理伺服器為分散式檔案系統中預設的第一資料管理組中包含的任意一個伺服器;一個或多個第二資料管理伺服器112,與第一資料管理服務器具有通信關係,用於接收第一資料管理伺服器同步的修改後的路由表資料,以更新第二資料管理組中的路由表,其中,第二資料管理伺服器為分散式檔案系統中非預設的第二資料管理組中包含的任意一個伺服器。 According to an embodiment of the present invention, there is also provided a routing table synchronization system. As shown in FIG. 11, the system includes: a first data management server 110 and one or more second data management servers 112, wherein the first The data management server 110 is configured to, if it is detected that the routing table in the local storage area is modified, obtain the modified routing table data, and synchronize the modified routing table data, where the first data management server is Any server included in the preset first data management group in the distributed file system; one or more second data management servers 112, which have a communication relationship with the first data management server, and are used to receive the first data management The server synchronizes the modified routing table data to update the routing table in the second data management group, where the second data management server is any of the non-default second data management groups included in the distributed file system A server.

在一種可選的實施例中,預設的第一資料管理組可以是分散式檔案系統中的任意一個資料管理組,在路由表的同步方法中,第一資料管理組用於實現將接收到的最新的路由表同步至分散式檔案系統中部署的其他資料管理組。 In an optional embodiment, the preset first data management group may be any data management group in the distributed file system. In the routing table synchronization method, the first data management group is used to implement The latest routing table is synchronized to other data management groups deployed in the distributed file system.

此處還需要說明的是,在本發明涉及到的分散式檔案系統中(例如盤古pangu分散式檔案系統),通常可以透過將Federation(聯盟)的模式引入來實現資料管理組的形成,即將Federation中採用的對資料的namespace(命 名空間)進行分散式的劃分模式引入資料管理組的模式,從而使其構成一個包含了一個或多個資料管理伺服器構成的集合組,實現分散式系統中的儲存模式。在分散式檔案系統中透過Federation進行對namespace進行分組後,會構成多個master組,每一組都是一個資料管理組,而在上述分散式檔案系統中的多個資料管理組中,有且僅有一個資料管理組為預設的第一資料管理組。 It should also be noted here that in the distributed file system involved in the present invention (such as the Pangu pangu distributed file system), the formation of a data management group can usually be realized by introducing the Federation mode, that is, the Federation The namespace for the data used in Name space) carries out distributed division mode and introduces the mode of data management group, so that it forms a set group consisting of one or more data management servers, and realizes the storage mode in the distributed system. After the namespace is grouped through Federation in the distributed file system, multiple master groups are formed, each of which is a data management group, and among the multiple data management groups in the above-mentioned distributed file system, there are and Only one data management group is the default first data management group.

此處還需要說明的是,在分散式檔案系統為Master/Chunk server的結構時,資料管理伺服器Master用於儲存分散式檔案系統中的meta(標籤)資訊,即,資料的屬性資訊,例如:資料的索引、網頁數據的標題、關鍵字等資訊,Chunk server則提供資料的儲存服務。在上述路由表的同步方法中,路由表儲存於分散式檔案系統的Master中,上述資料管理組為對Master進行分組後得到的多組資料管理組。 It should also be noted here that when the distributed file system is a Master/Chunk server structure, the data management server Master is used to store the meta (tag) information in the distributed file system, that is, the attribute information of the data, for example :Data index, web page data title, keywords and other information, Chunk server provides data storage service. In the above method for synchronizing the routing table, the routing table is stored in the Master of the distributed file system, and the above-mentioned data management group is a group of data management groups obtained by grouping the Master.

在一種可選的實施例中,以分散式檔案系統為阿里巴巴的盤古作為示例,盤古作為為阿里巴巴的雲計算平臺提供資料儲存服務的分散式檔案系統,包括多個資料管理組(例如,淘寶、淘點點、來往等),預設其中一個資料管理組作為PanguDefaultVolume(預設第一資料管理組),該分散式檔案系統中的其餘資料管理組為第二資料管理組,例如,預設淘寶的資料管理組為第一資料管理組,則該分散式檔案系統中的其餘資料管理組(例如:淘點點、來往等)均為第二資料管理組;當淘寶的資料管理組(預 設的第一資料管理組)檢測到本機存放區的路由表被修改,則淘寶的資料管理組接收最新的路由表,並將接收到的最新的路由表同步至其餘的第二資料管理組中,其餘的第二資料管理組接收淘寶的資料管理組同步的修改後的路由表,以使儲存在一個或多個第二資料管理組本地的路由表變更為修改後的路由表,即,其餘的資料管理組(第二資料管理組)中的路由表的修改均透過預設的第一資料管理組來完成。 In an alternative embodiment, taking the distributed file system as Alibaba's Pangu as an example, Pangu, as a distributed file system that provides data storage services for Alibaba's cloud computing platform, includes multiple data management groups (for example, Taobao, Taodiandian, Laixiang, etc.), one of the data management groups is preset as PanguDefaultVolume (default first data management group), and the rest of the data management groups in the distributed file system are second data management groups, for example, By default, Taobao’s data management group is the first data management group, and the rest of the data management groups in the distributed file system (such as Taodiandian, Laixiang, etc.) are the second data management group; when Taobao’s data Management group (pre The first data management group) detects that the routing table in the local storage area is modified, the Taobao data management group receives the latest routing table, and synchronizes the received latest routing table to the remaining second data management In the group, the remaining second data management group receives the modified routing table synchronized by Taobao’s data management group, so that the local routing table stored in one or more second data management groups is changed to the modified routing table, That is, the modification of the routing tables in the remaining data management group (the second data management group) is completed through the preset first data management group.

在對分散式檔案系統中的多個資料管理組的路由表更新之後,client端(使用者終端)的介面可以分散式檔案系統中的每個資料管理組的路由表進行確認,以確保每個資料管理組中的路由表都為最新的路由表。 After updating the routing tables of multiple data management groups in the distributed file system, the interface of the client (user terminal) can confirm the routing table of each data management group in the distributed file system to ensure that each The routing tables in the data management group are all the latest routing tables.

結合圖3所示,當路由表由於使用者修改等因素發生變化時,分散式檔案系統中的第一資料管理組首先接收修改後的路由表,然後將修改後的路由表同步至分散式檔案系統中的其餘的第二資料管理組。上述實施例不限定實際應用中的第二資料管理組的數量,即,當分散式檔案系統中有多個第二資料管理組時,都透過第一資料管理組進行同步新的路由表。 As shown in Figure 3, when the routing table changes due to user modification and other factors, the first data management group in the distributed file system first receives the modified routing table, and then synchronizes the modified routing table to the distributed file The rest of the second data management group in the system. The foregoing embodiment does not limit the number of second data management groups in practical applications, that is, when there are multiple second data management groups in the distributed file system, the new routing table is synchronized through the first data management group.

由此,本發明提供的上述實施例的方案解決了現有技術中分散式檔案系統中表為靜態表,導致的任意一個資料管理組中的表發生更改時,其餘資料管理組中的表不能同步進行更改的技術問題。 Therefore, the solution of the above-mentioned embodiment provided by the present invention solves the problem that the tables in the distributed file system in the prior art are static tables. When the tables in any data management group are changed, the tables in the other data management groups cannot be synchronized. The technical issue of making the change.

在本發明上述實施例中,上述系統還可以包括:請求 終端,與第一資料管理伺服器和一個或多個第二資料管理服務器具有通信關係,用於向分散式檔案系統中的任意一個資料管理組發送路由表請求,並接收任意一個資料管理組返回的路由表,或者,請求終端透過訪問分散式檔案系統中部署的資料儲存伺服器來獲取最新的路由表。 In the foregoing embodiment of the present invention, the foregoing system may further include: request The terminal has a communication relationship with the first data management server and one or more second data management servers, and is used to send a routing table request to any data management group in the distributed file system, and receive any data management group return Or, request the terminal to obtain the latest routing table by accessing the data storage server deployed in the distributed file system.

在上述系統中,當請求終端向分散式檔案系統中的任意一個資料管理組發送路由表請求時,接收路由表請求的資料管理組可以獲取路由表請求中的路由表版本資訊,當路由表請求中的路由表版本資訊與接收路由表請求的資料管理組的路由表版本資訊不一致時,接收路由表請求的資料管理組向請求終端回饋本機存放區的路由表。 In the above system, when the requesting terminal sends a routing table request to any data management group in the distributed file system, the data management group receiving the routing table request can obtain the routing table version information in the routing table request. When the routing table version information in the routing table is inconsistent with the routing table version information of the data management group receiving the routing table request, the data management group receiving the routing table request returns the routing table in the local storage area to the requesting terminal.

在一種可選的實施例中,仍以上述分散式檔案系統為阿里巴巴的盤古作為示例,預設預設的第一資料管理組為淘寶的資料管理組,請求終端向分散式檔案系統中的任意一個資料管理組發送更新路由表的請求,任意一個資料管理組獲取發起路由表請求的請求終端的路由表版本資訊,在版本資訊與接收到路由表請求的資料管理組中的路由表的版本資訊不一致時,向請求終端發送儲存的路由表。 In an alternative embodiment, still taking the above-mentioned distributed file system as Pangu of Alibaba as an example, the preset first data management group is the data management group of Taobao by default, and the terminal is requested to send information to the distributed file system. Any data management group sends a request to update the routing table, and any data management group obtains the routing table version information of the requesting terminal that initiated the routing table request. When the version information is inconsistent, the stored routing table is sent to the requesting terminal.

在上述實施例中,路由表的版本資訊可以是用於表示新路由表與舊路由表的資訊,以使資料管理組來識別最新的路由表。 In the above embodiment, the version information of the routing table may be information used to indicate the new routing table and the old routing table, so that the data management group can identify the latest routing table.

此處需要說明的是,上述任意資料管理組可以是在分散式檔案系統隨機選擇的資料管理組,但在由於第一資料管理組是分散式檔案系統中首個接收到最新路由表的資料 管理組,因此為了保證請求終端接收到的路由表也為分散式檔案系統中最新的路由表,優選的方法是上述任意一個資料管理組為分散式系統中的第一資料管理組。 It should be noted here that any of the above-mentioned data management groups can be randomly selected data management groups in the distributed file system, but because the first data management group is the first to receive the latest routing table data in the distributed file system Therefore, in order to ensure that the routing table received by the requesting terminal is also the latest routing table in the distributed file system, the preferred method is that any one of the above-mentioned data management groups is the first data management group in the distributed system.

在本發明上述實施例中,請求終端還用於在調用訪問介面之後,解析得到分散式檔案系統中的每個資料管理組的訪問資訊,並向任意一個資料管理組發送路由表請求;其中,如果請求終端從任意一個資料管理組獲取最新的路由表失敗,則向分散式檔案系統中的其他資料管理組發送路由表請求,直至獲取最新的路由表。 In the above embodiment of the present invention, the requesting terminal is also used to parse the access information of each data management group in the distributed file system after invoking the access interface, and send a routing table request to any data management group; wherein, If the requesting terminal fails to obtain the latest routing table from any data management group, it will send a routing table request to other data management groups in the distributed file system until the latest routing table is obtained.

具體的,在上述系統中,上述訪問介面可以是API(Application Programming Interface,應用程式設計發展介面)介面,分散式檔案系統中的每個資料管理組的訪問資訊可以是資料管理組的Master資訊。 Specifically, in the aforementioned system, the aforementioned access interface can be an API (Application Programming Interface) interface, and the access information of each data management group in the distributed file system can be the master information of the data management group.

在本發明上述實施例中,請求終端還用於在無法解析得到分散式檔案系統中的任意一個資料管理組的訪問資訊的情況下,解析得到分散式檔案系統中部署的資料儲存伺服器的訪問資訊,並向資料儲存伺服器發送路由表請求;其中,如果請求終端從資料儲存伺服器獲取最新的路由表失敗,或者資料儲存伺服器中儲存的路由表不是最新的路由表,則請求終端開始解析分散式檔案系統中的每個資料管理組的訪問資訊。 In the above-mentioned embodiment of the present invention, the request terminal is also used to analyze and obtain access to the data storage server deployed in the distributed file system when the access information of any data management group in the distributed file system cannot be obtained. Information, and send a routing table request to the data storage server; among them, if the requesting terminal fails to obtain the latest routing table from the data storage server, or the routing table stored in the data storage server is not the latest routing table, the request terminal starts Analyze the access information of each data management group in the distributed file system.

在一種可選的實施例中,上述分散式檔案系統是Master,Slave結構,上述任意一個資料管理組可以是Master,上述資料儲存伺服器可以是chunk server,當請 求終端在無法解析Maste的訪問資訊的情況下,解析chunk server的訪問資訊,並向chunk server發送路由表請求。 In an alternative embodiment, the aforementioned distributed file system is a Master, Slave structure, any of the aforementioned data management groups can be a Master, and the aforementioned data storage server can be a chunk server. Ask the terminal to parse the access information of the chunk server and send a routing table request to the chunk server when it cannot parse the access information of Maste.

在本發明上述實施例中,請求終端還用於在調用訪問介面之後,解析得到分散式檔案系統中預設的第一資料管理組的位址資訊,並向第一資料管理組發送路由表請求;其中,如果請求終端從第一資料管理組獲取最新的路由表失敗,則向分散式檔案系統中的其他任意一個或多個第二資料管理組發送路由表請求,直至獲取最新的路由表。 In the above-mentioned embodiment of the present invention, the requesting terminal is also used to analyze and obtain the address information of the first data management group preset in the distributed file system after invoking the access interface, and send a routing table request to the first data management group ; Wherein, if the requesting terminal fails to obtain the latest routing table from the first data management group, it sends a routing table request to any other one or more second data management groups in the distributed file system until the latest routing table is obtained.

在一種可選的實施例中,仍以上述分散式檔案系統為阿里巴巴的盤古作為示例,使用者調用API後,利用阿里巴巴的address resolver(位址解析工具,例如:nuwa)解析出該分散式檔案系統中所有資料管理組的位址資訊(例如:tcp/ip位址),在解析出所有資料管理組的位址資訊後,隨機向其中的任意一個資料管理組發送請求獲取路由表的請求,如果請求失敗,則反復上述過程重試,直至成功獲取到最新的路由表。 In an alternative embodiment, still taking the above-mentioned distributed file system as Alibaba's Pangu as an example, after the user calls the API, the user uses Alibaba's address resolver (address resolution tool, such as nuwa) to resolve the distributed file system. The address information of all data management groups in the file system (for example: tcp/ip address), after analyzing the address information of all data management groups, randomly send a request to any one of the data management groups to obtain the routing table Request, if the request fails, repeat the above process and try again until the latest routing table is successfully obtained.

此處需要說明的是,在請求終端請求失敗的情況下,需要判斷當前時間是否在預設的時間範圍內,如果當前時間在預設的時間範圍內,則向其他資料管理組重新發起獲取路由表的情況下,如果當前時間已經超時了預設的時間範圍,則停止請求終端繼續發送獲取路由表的請求。 What needs to be explained here is that in the case that the request of the request terminal fails, it is necessary to determine whether the current time is within the preset time range. If the current time is within the preset time range, re-initiate the acquisition route to other data management groups In the case of a table, if the current time has exceeded the preset time range, stop requesting the terminal to continue sending the request for obtaining the routing table.

在本發明上述實施例中,請求終端還用於在無法解析得到分散式檔案系統中預設的第一資料管理組的訪問資訊 的情況下,解析得到分散式檔案系統中部署的資料儲存伺服器的訪問資訊,並向資料儲存伺服器發送路由表請求;其中,如果請求終端從資料儲存伺服器獲取最新的路由表失敗,或者資料儲存伺服器中儲存的路由表不是最新的路由表,則請求終端開始解析分散式檔案系統中的第一資料管理組的訪問資訊。 In the above-mentioned embodiment of the present invention, the requesting terminal is also used to obtain access information of the first data management group preset in the distributed file system if it cannot be parsed. In the case of, the access information of the data storage server deployed in the distributed file system is parsed, and a routing table request is sent to the data storage server; among them, if the request terminal fails to obtain the latest routing table from the data storage server, or If the routing table stored in the data storage server is not the latest routing table, the terminal is requested to start analyzing the access information of the first data management group in the distributed file system.

在一種可選的實施例中,上述分散式檔案系統是Master,Slave結構,上述預設的第一資料管理組可以是預設的第一資料管理組中的Master,上述資料儲存伺服器可以是chunk server,當請求終端在無法解析Maste的訪問資訊的情況下,解析chunk server的訪問資訊,並向chunk server發送路由表請求。 In an optional embodiment, the distributed file system is a Master, Slave structure, the preset first data management group may be the Master in the preset first data management group, and the data storage server may be Chunk server, when the requesting terminal cannot parse the access information of Maste, it parses the access information of the chunk server and sends a routing table request to the chunk server.

在本發明上述實施例中請求終端還用於在發起路由表請求的過程中,如果檢測到第一資料管理組中的路由表被修改,則重新訪問分散式檔案系統中的任意一個資料管理組,來獲取最新的路由表。 In the above embodiment of the present invention, the requesting terminal is also used for initiating the routing table request, if it is detected that the routing table in the first data management group has been modified, then revisit any data management group in the distributed file system To get the latest routing table.

在請求終端發起路由表請求的過程中檢測到第一資料管理組中的路由表被修改,如果繼續訪問分散式檔案系統中的任意一個資料管理組,則獲取得到的路由表可能部位最新的路由表,因此本發明上述步驟在請求終端發起路由表請求的過程中檢測到第一資料管理組中的路由表被修改時,重新訪問分散式檔案系統中的任意資料管理組,以使得請求終端獲取得到的是最新的路由表。 In the process of initiating the routing table request by the requesting terminal, it is detected that the routing table in the first data management group has been modified. If you continue to access any data management group in the distributed file system, the latest route in the possible part of the routing table will be obtained. Therefore, when the above steps of the present invention detect that the routing table in the first data management group is modified during the process of initiating the routing table request by the requesting terminal, it revisits any data management group in the distributed file system so that the requesting terminal can obtain What you get is the latest routing table.

實施例4 Example 4

本發明的實施例可以提供一種電腦終端,該電腦終端可以是電腦終端群中的任意一個電腦終端設備。可選地,在本實施例中,上述電腦終端也可以替換為行動終端等終端設備。 The embodiments of the present invention may provide a computer terminal, and the computer terminal may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the above-mentioned computer terminal can also be replaced with a terminal device such as a mobile terminal.

可選地,在本實施例中,上述電腦終端可以位於電腦網路的多個網路設備中的至少一個網路設備。 Optionally, in this embodiment, the above-mentioned computer terminal may be located in at least one network device among a plurality of network devices in a computer network.

在本實施例中,上述電腦終端可以執行路由表的同步方法中以下步驟的程式碼:如果檢測到預設的第一資料管理組中的路由表被修改,獲取修改後的路由表資料;將修改後的路由表資料同步至其他任意一個或多個非預設的第二資料管理組,以更新非預設的第二資料管理組中的路由表;其中,分散式檔案系統中部署唯一的第一資料管理組以及至少一個第二資料管理組。 In this embodiment, the aforementioned computer terminal can execute the code of the following steps in the routing table synchronization method: if it is detected that the routing table in the preset first data management group is modified, obtain the modified routing table data; The modified routing table data is synchronized to any one or more non-default second data management group to update the routing table in the non-default second data management group; among them, the only one deployed in the distributed file system A first data management group and at least one second data management group.

可選地,圖12是根據本發明實施例的一種電腦終端的結構方塊圖。如圖12所示,該電腦終端A可以包括:一個或多個(圖中僅示出一個)處理器1201、記憶體1203、傳輸裝置1205、請求終端1207以及資料儲存伺服器1209。 Optionally, FIG. 12 is a structural block diagram of a computer terminal according to an embodiment of the present invention. As shown in FIG. 12, the computer terminal A may include: one or more (only one shown in the figure) processor 1201, memory 1203, transmission device 1205, request terminal 1207, and data storage server 1209.

其中,記憶體可用於儲存軟體程式以及模組,如本發明實施例中的路由表的同步方法和裝置對應的程式指令/模組,處理器透過運行儲存在記憶體內的軟體程式以及模組,從而執行各種功能應用以及資料處理,即實現上述的路由表的同步方法。記憶體可包括高速隨機記憶體,還可 以包括非揮發性記憶體,如一個或者多個磁性儲存裝置、快閃記憶體、或者其他非揮發性固態記憶體。在一些實例中,記憶體可進一步包括相對于處理器遠端設置的記憶體,這些遠端存放器可以透過網路連接至終端A。上述網路的實例包括但不限於網際網路、企業內部網、區域網路、行動通信網及其組合。 Among them, the memory can be used to store software programs and modules, such as the routing table synchronization method and the program instructions/modules corresponding to the device in the embodiment of the present invention. The processor runs the software programs and modules stored in the memory, So as to perform various functional applications and data processing, that is, to achieve the above-mentioned synchronization method of the routing table. The memory can include high-speed random memory, but also It may include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include a memory provided remotely with respect to the processor, and these remote storages may be connected to the terminal A via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranet, local area network, mobile communication network, and combinations thereof.

處理器可以透過傳輸裝置調用記憶體儲存的資訊及應用程式,以執行下述步驟:如果檢測到預設的第一資料管理組中的路由表被修改,獲取修改後的路由表資料;將修改後的路由表資料同步至其他任意一個或多個非預設的第二資料管理組,以更新非預設的第二資料管理組中的路由表;其中,分散式檔案系統中部署唯一的第一資料管理組以及至少一個第二資料管理組。 The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: if it is detected that the routing table in the first data management group has been modified, obtain the modified routing table data; The subsequent routing table data is synchronized to any other one or more non-default second data management group to update the routing table in the non-default second data management group; among them, the only second data management group is deployed in the distributed file system A data management group and at least one second data management group.

可選的,上述處理器還可以執行如下步驟的程式碼:當路由表的同步方法分散式檔案系統中部署新的第二資料管理組時,將路由表的同步方法新的第二資料管理組中的資料管理伺服器註冊至路由表的同步方法第一資料管理組上,並將路由表的同步方法第一資料管理組中的路由表同步至路由表的同步方法新的第二資料管理組中。 Optionally, the above-mentioned processor may also execute the code of the following steps: when a new second data management group is deployed in the distributed file system for the synchronization method of the routing table, the synchronization method of the routing table is changed to a new second data management group Register the data management server in the routing table synchronization method to the first data management group, and synchronize the routing table in the first data management group of the routing table synchronization method to the synchronization method of the routing table new second data management group middle.

可選的,上述處理器還可以執行如下步驟的程式碼:在路由表的同步方法分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之後,從路由表的同步方法路由表請求中獲取路由表的同步方法請求終端中的路由表版本資訊;如果路由表的同步方法路由表版本資 訊與路由表的同步方法任意一個資料管理組中的路由表的版本資訊不一致的情況下,路由表的同步方法任意一個資料管理組向路由表的同步方法請求終端返回本機存放區的路由表,或者,路由表的同步方法請求終端透過訪問路由表的同步方法分散式檔案系統中部署的資料儲存伺服器來獲取最新的路由表。 Optionally, the above-mentioned processor may also execute the program code of the following steps: after any data management group in the distributed file system of the routing table synchronization method receives the routing table request initiated by the requesting terminal, the synchronization method from the routing table The synchronization method of obtaining the routing table in the routing table request requests the routing table version information in the terminal; if the routing table synchronization method is the routing table version data If the version information of the routing table in any data management group is inconsistent with the synchronization method of the routing table, any data management group of the routing table synchronization method requests the terminal to return the routing table in the local storage area to the synchronization method of the routing table. Or, the synchronization method of the routing table requests the terminal to obtain the latest routing table by accessing the data storage server deployed in the distributed file system of the synchronization method of the routing table.

可選的,上述處理器還可以執行如下步驟的程式碼:根據路由表的同步方法路由表請求中攜帶的待操作的檔或目錄的資訊,確定路由表的同步方法待操作的檔或目錄的許可權;如果路由表的同步方法許可權為允許操作,則繼續執行從路由表的同步方法路由表請求中獲取路由表的同步方法請求終端中的路由表版本資訊的步驟;如果路由表的同步方法許可權為禁止操作,則獲取路由表的同步方法最新的路由表失敗。 Optionally, the above-mentioned processor may also execute the program code of the following steps: according to the information of the file or directory to be operated carried in the routing table request for the synchronization method of the routing table, determine the file or directory to be operated by the synchronization method of the routing table Permission; if the synchronization method permission of the routing table is allowed to operate, continue to execute the step of obtaining the routing table synchronization method requesting the routing table version information in the terminal from the routing table synchronization method routing table request; if the routing table synchronization If the method permission is forbidden to operate, the synchronization method for obtaining the latest routing table of the routing table fails.

可選的,上述處理器還可以執行如下步驟的程式碼:路由表的同步方法請求終端在調用訪問介面之後,解析得到路由表的同步方法分散式檔案系統中的每個資料管理組的訪問資訊;路由表的同步方法請求終端向路由表的同步方法任意一個資料管理組發送路由表的同步方法路由表請求,其中,如果路由表的同步方法請求終端從路由表的同步方法任意一個資料管理組獲取路由表的同步方法最新的路由表失敗,則向路由表的同步方法分散式檔案系統中的其他資料管理組發送路由表的同步方法路由表請求,直至獲取路由表的同步方法最新的路由表。 Optionally, the above-mentioned processor may also execute the program code of the following steps: the synchronization method of the routing table requests the terminal to parse the access information of each data management group in the distributed file system after invoking the access interface. ; The routing table synchronization method requests the terminal to send a routing table synchronization method routing table request to any data management group The synchronization method of obtaining the routing table The latest routing table fails, the synchronization method routing table request of the routing table is sent to the other data management group in the distributed file system of the synchronization method of the routing table until the synchronization method of the routing table is obtained the latest routing table .

可選的,上述處理器還可以執行如下步驟的程式碼:請求終端解析得到分散式檔案系統中部署的資料儲存伺服器的訪問資訊;請求終端向資料儲存伺服器發送路由表請求,其中,如果請求終端從資料儲存伺服器獲取最新的路由表失敗,或者資料儲存伺服器中儲存的路由表不是最新的路由表,則請求終端進入解析分散式檔案系統中的每個資料管理組的訪問資訊的步驟。 Optionally, the above-mentioned processor may also execute the program code of the following steps: request the terminal to parse and obtain the access information of the data storage server deployed in the distributed file system; request the terminal to send a routing table request to the data storage server, where, if If the requesting terminal fails to obtain the latest routing table from the data storage server, or the routing table stored in the data storage server is not the latest routing table, request the terminal to enter and analyze the access information of each data management group in the distributed file system step.

可選的,上述處理器還可以執行如下步驟的程式碼:在分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之前,方法還包括:請求終端在調用訪問介面之後,解析得到分散式檔案系統中預設的第一資料管理組的位址資訊;請求終端向第一資料管理組發送路由表請求,其中,如果請求終端從第一資料管理組獲取最新的路由表失敗,則向分散式檔案系統中的其他任意一個或多個第二資料管理組發送路由表請求,直至獲取最新的路由表。 Optionally, the above-mentioned processor may also execute the program code of the following steps: before any data management group in the distributed file system receives the routing table request initiated by the requesting terminal, the method further includes: requesting the terminal to call the access interface after , Parse and obtain the address information of the first data management group preset in the distributed file system; request the terminal to send a routing table request to the first data management group, wherein, if the request terminal obtains the latest routing table from the first data management group If it fails, send a routing table request to any other one or more second data management groups in the distributed file system until the latest routing table is obtained.

可選的,上述處理器還可以執行如下步驟的程式碼:在解析得到分散式檔案系統中預設的第一資料管理組的位址資訊之前,方法還包括:請求終端解析得到分散式檔案系統中部署的資料儲存伺服器的訪問資訊;請求終端向資料儲存伺服器發送路由表請求,其中,如果請求終端從資料儲存伺服器獲取最新的路由表失敗,或者資料儲存伺服器中儲存的路由表不是最新的路由表,則請求終端進入解析分散式檔案系統中的第一資料管理組的訪問資訊的步 驟。 Optionally, the above-mentioned processor may also execute the program code of the following steps: before the address information of the first data management group preset in the distributed file system is obtained by parsing, the method further includes: requesting the terminal to analyze and obtain the distributed file system Access information of the data storage server deployed in the data storage server; the requesting terminal sends a routing table request to the data storage server, where if the requesting terminal fails to obtain the latest routing table from the data storage server, or the routing table stored in the data storage server If it is not the latest routing table, request the terminal to enter the step of parsing the access information of the first data management group in the distributed file system Sudden.

可選的,上述處理器還可以執行如下步驟的程式碼:請求終端發起路由表的同步方法路由表請求的過程中,如果檢測到路由表的同步方法第一資料管理組中的路由表被修改,則重新訪問路由表的同步方法分散式檔案系統中的任意一個資料管理組,來獲取路由表的同步方法最新的路由表。 Optionally, the above-mentioned processor may also execute the program code of the following steps: in the process of requesting the terminal to initiate the routing table synchronization method routing table request, if the routing table synchronization method is detected, the routing table in the first data management group is modified , Then revisit any data management group in the distributed file system of the synchronization method of the routing table to obtain the latest routing table of the synchronization method of the routing table.

可選的,上述處理器還可以執行如下步驟的程式碼:路由表的同步方法布式檔案系統中部署的路由表的同步方法第一資料管理組以及路由表的同步方法第二資料管理組設置有讀寫請求門限,其中,路由表的同步方法讀寫請求門限用於表徵對應的資料管理組中的資料管理伺服器的最大訪問次數,如果路由表的同步方法資料管理伺服器的訪問次數超過路由表的同步方法讀寫請求門限,則終止訪問路由表的同步方法資料管理伺服器。 Optionally, the above-mentioned processor may also execute the code of the following steps: the synchronization method of the routing table, the synchronization method of the routing table deployed in the distributed file system, the first data management group and the synchronization method of the routing table, the second data management group setting There is a read and write request threshold. The read and write request threshold of the synchronization method of the routing table is used to characterize the maximum access times of the data management server in the corresponding data management group. If the synchronization method of the routing table has more than the access times of the data management server The synchronization method of the routing table reads and writes the request threshold, then the access to the synchronization method data management server of the routing table is terminated.

可選的,上述處理器還可以執行如下步驟的程式碼:第一資料管理組中包含的資料管理伺服器進行持久化處理,在路由表的同步方法第一資料管理組執行持久化處理完成之後,向至少一個路由表的同步方法第二資料管理組發送用於修改路由表的遠端程序呼叫協議,使得路由表的同步方法第二資料管理組執行持久化處理。 Optionally, the above-mentioned processor may also execute the code of the following steps: the data management server included in the first data management group performs the persistence processing, and after the synchronization method of the routing table, the first data management group performs the persistence processing. , To send a remote program call protocol for modifying the routing table to the second data management group of the synchronization method of at least one routing table, so that the second data management group of the synchronization method of the routing table executes persistence processing.

由此,本發明提供的上述實施例的方案解決了現有技術中分散式檔案系統中表為靜態表,導致的任意一個資料管理組中的表發生更改時,其餘資料管理組中的表不能同 步進行更改的技術問題。 Therefore, the solution of the above-mentioned embodiment provided by the present invention solves the problem that the tables in the distributed file system in the prior art are static tables. When the tables in any data management group are changed, the tables in the other data management groups cannot be the same. Technical issues for step-by-step changes.

本領域中具有通常知識者可以理解,圖12所示的結構僅為示意,電腦終端也可以是智慧型手機(如Android 手機、iOS手機等)、平板電腦、掌上型電腦以及行動網際網路設備(Mobile Internet Devices,MID)、PAD等終端設備。圖12其並不對上述電子裝置的結構造成限定。例如,電腦終端10還可包括比圖12中所示更多或者更少的元件(如網路介面、顯示裝置等),或者具有與圖12所示不同的配置。 Those with ordinary knowledge in the field can understand that the structure shown in Figure 12 is only for illustration, and the computer terminal can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, and a mobile Internet device (Mobile Internet Devices, MID), PAD and other terminal devices. FIG. 12 does not limit the structure of the above electronic device. For example, the computer terminal 10 may also include more or fewer components (such as a network interface, a display device, etc.) than that shown in FIG. 12, or may have a different configuration from that shown in FIG.

本領域中具有通常知識者可以理解上述實施例的各種方法中的全部或部分步驟是可以透過程式來指令終端設備相關的硬體來完成,該程式可以儲存於一電腦可讀儲存介質中,儲存介質可以包括:快閃記憶體盤、唯讀記憶體(Read-Only Memory,ROM)、隨機存取器(Random Access Memory,RAM)、磁片或光碟等。 Those with ordinary knowledge in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing the hardware related to the terminal device through a program. The program can be stored in a computer-readable storage medium. The medium may include: a flash memory disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a floppy disk or an optical disk, etc.

實施例5 Example 5

本發明的實施例還提供了一種儲存介質。可選地,在本實施例中,上述儲存介質可以用於儲存上述實施例一所提供的基於分庫分表的任務傳輸方法所執行的程式碼。 The embodiment of the present invention also provides a storage medium. Optionally, in this embodiment, the storage medium described above may be used to store the program code executed by the task transmission method based on sub-library and sub-table provided in the first embodiment.

可選地,在本實施例中,上述儲存介質可以位於電腦網路中電腦終端群中的任意一個電腦終端中,或者位於行動終端群中的任意一個行動終端中。 Optionally, in this embodiment, the above-mentioned storage medium may be located in any computer terminal in the computer terminal group in the computer network, or located in any mobile terminal in the mobile terminal group.

可選地,在本實施例中,儲存介質被設置為儲存用於 執行以下步驟的程式碼:如果檢測到預設的第一資料管理組中的路由表被修改,獲取修改後的路由表資料;將修改後的路由表資料同步至其他任意一個或多個非預設的第二資料管理組,以更新非預設的第二資料管理組中的路由表;其中,分散式檔案系統中部署唯一的第一資料管理組以及至少一個第二資料管理組。 Optionally, in this embodiment, the storage medium is configured to store The code that executes the following steps: If it is detected that the routing table in the first data management group is modified by default, obtain the modified routing table data; synchronize the modified routing table data to any one or more other non-prepared A second data management group is set to update the routing table in the non-preset second data management group; wherein, a unique first data management group and at least one second data management group are deployed in the distributed file system.

可選地,在本實施例中,儲存介質被設置為儲存用於執行以下步驟的程式碼:當路由表的同步方法分散式檔案系統中部署新的第二資料管理組時,將路由表的同步方法新的第二資料管理組中的資料管理伺服器註冊至路由表的同步方法第一資料管理組上,並將路由表的同步方法第一資料管理組中的路由表同步至路由表的同步方法新的第二資料管理組中。 Optionally, in this embodiment, the storage medium is configured to store the code used to perform the following steps: when the routing table synchronization method deploys a new second data management group in the distributed file system, the routing table Synchronization method The data management server in the new second data management group is registered to the first data management group of the synchronization method of the routing table, and the routing table in the first data management group is synchronized to the routing table of the synchronization method of the routing table The synchronization method is in the new second data management group.

可選地,在本實施例中,儲存介質被設置為儲存用於執行以下步驟的程式碼:在路由表的同步方法分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之後,從路由表的同步方法路由表請求中獲取路由表的同步方法請求終端中的路由表版本資訊;如果路由表的同步方法路由表版本資訊與路由表的同步方法任意一個資料管理組中的路由表的版本資訊不一致的情況下,路由表的同步方法任意一個資料管理組向路由表的同步方法請求終端返回本機存放區的路由表,或者,路由表的同步方法請求終端透過訪問路由表的同步方法分散式檔案系統中部署的資料儲存伺服器來獲取最新的路由表。 Optionally, in this embodiment, the storage medium is configured to store the code used to perform the following steps: any data management group in the distributed file system of the routing table synchronization method receives the routing table initiated by the requesting terminal After the request, obtain the synchronization method of the routing table from the routing table request of the routing table and request the version information of the routing table in the terminal; if the synchronization method of the routing table, the routing table version information and the synchronization method of the routing table are in any data management group If the version information of the routing table in the routing table is inconsistent, any data management group of the routing table synchronization method requests the terminal to return the routing table in the local storage area to the routing table synchronization method request terminal, or the routing table synchronization method requests the terminal to access the routing Table synchronization method The data storage server deployed in the distributed file system obtains the latest routing table.

可選地,在本實施例中,儲存介質被設置為儲存用於執行以下步驟的程式碼:根據路由表的同步方法路由表請求中攜帶的待操作的檔或目錄的資訊,確定路由表的同步方法待操作的檔或目錄的許可權;如果路由表的同步方法許可權為允許操作,則繼續執行從路由表的同步方法路由表請求中獲取路由表的同步方法請求終端中的路由表版本資訊的步驟;如果路由表的同步方法許可權為禁止操作,則獲取路由表的同步方法最新的路由表失敗。 Optionally, in this embodiment, the storage medium is configured to store the code used to perform the following steps: according to the routing table synchronization method routing table request, the information of the file or directory to be operated carried in the routing table is determined, The synchronization method is the permission of the file or directory to be operated; if the synchronization method permission of the routing table is allowed to operate, continue to execute the synchronization method of obtaining the routing table from the routing table synchronization method routing table request. Request the routing table version in the terminal Information step; if the synchronization method permission of the routing table is forbidden operation, then obtaining the latest routing table of the synchronization method of the routing table fails.

可選地,在本實施例中,儲存介質被設置為儲存用於執行以下步驟的程式碼:路由表的同步方法請求終端在調用訪問介面之後,解析得到路由表的同步方法分散式檔案系統中的每個資料管理組的訪問資訊;路由表的同步方法請求終端向路由表的同步方法任意一個資料管理組發送路由表的同步方法路由表請求,其中,如果路由表的同步方法請求終端從路由表的同步方法任意一個資料管理組獲取路由表的同步方法最新的路由表失敗,則向路由表的同步方法分散式檔案系統中的其他資料管理組發送路由表的同步方法路由表請求,直至獲取路由表的同步方法最新的路由表。 Optionally, in this embodiment, the storage medium is configured to store the code used to perform the following steps: the synchronization method of the routing table requests the terminal to parse the synchronization method of the routing table after invoking the access interface in the distributed file system The access information of each data management group; the routing table synchronization method request terminal sends a routing table synchronization method routing table request to any data management group of the routing table synchronization method, where, if the routing table synchronization method requests the terminal from the routing table Table synchronization method Any data management group obtains the synchronization method of the routing table. If the latest routing table fails, the synchronization method of the routing table is sent to other data management groups in the distributed file system. The routing table request is sent until it is obtained. The synchronization method of the routing table is the latest routing table.

可選地,在本實施例中,儲存介質被設置為儲存:請求終端解析得到分散式檔案系統中部署的資料儲存伺服器的訪問資訊;請求終端向資料儲存伺服器發送路由表請求,其中,如果請求終端從資料儲存伺服器獲取最新的路由表失敗,或者資料儲存伺服器中儲存的路由表不是最新 的路由表,則請求終端進入解析分散式檔案系統中的每個資料管理組的訪問資訊的步驟。 Optionally, in this embodiment, the storage medium is set to store: request the terminal to parse and obtain access information of the data storage server deployed in the distributed file system; request the terminal to send a routing table request to the data storage server, where, If the request terminal fails to obtain the latest routing table from the data storage server, or the routing table stored in the data storage server is not the latest In the routing table, the terminal is requested to enter the step of parsing the access information of each data management group in the distributed file system.

可選地,在本實施例中,儲存介質被設置為儲存:在分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之前,方法還包括:請求終端在調用訪問介面之後,解析得到分散式檔案系統中預設的第一資料管理組的位址資訊;請求終端向第一資料管理組發送路由表請求,其中,如果請求終端從第一資料管理組獲取最新的路由表失敗,則向分散式檔案系統中的其他任意一個或多個第二資料管理組發送路由表請求,直至獲取最新的路由表。 Optionally, in this embodiment, the storage medium is set to store: before any data management group in the distributed file system receives the routing table request initiated by the requesting terminal, the method further includes: requesting the terminal to call the access interface After that, the address information of the first data management group preset in the distributed file system is obtained by analysis; the request terminal sends a routing table request to the first data management group, wherein, if the request terminal obtains the latest route from the first data management group If the table fails, a routing table request is sent to any other one or more second data management groups in the distributed file system until the latest routing table is obtained.

可選地,在本實施例中,儲存介質被設置為儲存:請求終端解析得到分散式檔案系統中部署的資料儲存伺服器的訪問資訊;請求終端向資料儲存伺服器發送路由表請求,其中,如果請求終端從資料儲存伺服器獲取最新的路由表失敗,或者資料儲存伺服器中儲存的路由表不是最新的路由表,則請求終端進入解析分散式檔案系統中的每個資料管理組的訪問資訊的步驟。 Optionally, in this embodiment, the storage medium is set to store: request the terminal to parse and obtain access information of the data storage server deployed in the distributed file system; request the terminal to send a routing table request to the data storage server, where, If the requesting terminal fails to obtain the latest routing table from the data storage server, or the routing table stored in the data storage server is not the latest routing table, the requesting terminal enters to analyze the access information of each data management group in the distributed file system A step of.

可選地,在本實施例中,儲存介質被設置為儲存:在分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之前,方法還包括:請求終端在調用訪問介面之後,解析得到分散式檔案系統中預設的第一資料管理組的位址資訊;請求終端向第一資料管理組發送路由表請求,其中,如果請求終端從第一資料管理組獲取最新 的路由表失敗,則向分散式檔案系統中的其他任意一個或多個第二資料管理組發送路由表請求,直至獲取最新的路由表。 Optionally, in this embodiment, the storage medium is set to store: before any data management group in the distributed file system receives the routing table request initiated by the requesting terminal, the method further includes: requesting the terminal to call the access interface After that, the address information of the first data management group preset in the distributed file system is obtained by analysis; the request terminal sends a routing table request to the first data management group, wherein, if the terminal is requested to obtain the latest information from the first data management group If the routing table fails, a routing table request is sent to any other one or more second data management groups in the distributed file system until the latest routing table is obtained.

可選地,在本實施例中,儲存介質被設置為儲存:在解析得到分散式檔案系統中預設的第一資料管理組的位址資訊之前,方法還包括:請求終端解析得到分散式檔案系統中部署的資料儲存伺服器的訪問資訊;請求終端向資料儲存伺服器發送路由表請求,其中,如果請求終端從資料儲存伺服器獲取最新的路由表失敗,或者資料儲存伺服器中儲存的路由表不是最新的路由表,則請求終端進入解析分散式檔案系統中的第一資料管理組的訪問資訊的步驟。 Optionally, in this embodiment, the storage medium is set to store: before the address information of the first data management group preset in the distributed file system is obtained by analyzing, the method further includes: requesting the terminal to analyze and obtain the distributed file Access information of the data storage server deployed in the system; the requesting terminal sends a routing table request to the data storage server, where if the requesting terminal fails to obtain the latest routing table from the data storage server, or the route stored in the data storage server If the table is not the latest routing table, the terminal is requested to enter the step of parsing the access information of the first data management group in the distributed file system.

可選地,在本實施例中,儲存介質被設置為儲存:請求終端解析得到分散式檔案系統中部署的資料儲存伺服器的訪問資訊;請求終端向資料儲存伺服器發送路由表請求,其中,如果請求終端從資料儲存伺服器獲取最新的路由表失敗,或者資料儲存伺服器中儲存的路由表不是最新的路由表,則請求終端進入解析分散式檔案系統中的第一資料管理組的訪問資訊的步驟。 Optionally, in this embodiment, the storage medium is set to store: request the terminal to parse and obtain access information of the data storage server deployed in the distributed file system; request the terminal to send a routing table request to the data storage server, where, If the requesting terminal fails to obtain the latest routing table from the data storage server, or the routing table stored in the data storage server is not the latest routing table, the requesting terminal enters to analyze the access information of the first data management group in the distributed file system A step of.

可選地,在本實施例中,儲存介質被設置為儲存:在路由表的同步方法請求終端發起路由表的同步方法路由表請求的過程中,如果檢測到路由表的同步方法第一資料管理組中的路由表被修改,則重新訪問路由表的同步方法分散式檔案系統中的任意一個資料管理組,來獲取路由表的 同步方法最新的路由表。 Optionally, in this embodiment, the storage medium is set to store: during the routing table synchronization method requesting the terminal to initiate the routing table synchronization method routing table request process, if the routing table synchronization method is detected, the first data management If the routing table in the group is modified, the synchronization method of the routing table is revisited to any data management group in the distributed file system to obtain the routing table Synchronize the latest routing table.

可選地,在本實施例中,儲存介質被設置為儲存:路由表的同步方法分散式檔案系統中部署的路由表的同步方法第一資料管理組以及路由表的同步方法第二資料管理組設置有讀寫請求門限,其中,路由表的同步方法讀寫請求門限用於表徵對應的資料管理組中的資料管理伺服器的最大訪問次數,如果路由表的同步方法資料管理伺服器的訪問次數超過路由表的同步方法讀寫請求門限,則終止訪問路由表的同步方法資料管理伺服器。 Optionally, in this embodiment, the storage medium is set to store: the synchronization method of the routing table, the synchronization method of the routing table deployed in the distributed file system, the first data management group and the synchronization method of the routing table, the second data management group A read and write request threshold is set. The read and write request threshold of the synchronization method of the routing table is used to represent the maximum access times of the data management server in the corresponding data management group. If the synchronization method of the routing table is the access times of the data management server If the synchronization method read and write request threshold of the routing table is exceeded, the access to the synchronization method data management server of the routing table is terminated.

可選地,在本實施例中,儲存介質被設置為儲存:對路由表的同步方法第一資料管理組中包含的資料管理伺服器進行持久化處理,在路由表的同步方法第一資料管理組執行持久化處理完成之後,向至少一個路由表的同步方法第二資料管理組發送用於修改路由表的遠端程序呼叫協議,使得路由表的同步方法第二資料管理組執行持久化處理。 Optionally, in this embodiment, the storage medium is set to store: the data management server included in the first data management group of the synchronization method of the routing table is persisted, and the first data management of the synchronization method of the routing table is After the group performs the persistence processing, the remote program call protocol for modifying the routing table is sent to the second data management group of the synchronization method of at least one routing table, so that the second data management group of the synchronization method of the routing table executes the persistence processing.

上述本發明實施例序號僅僅為了描述,不代表實施例的優劣。 The sequence numbers of the foregoing embodiments of the present invention are only for description, and do not represent the superiority or inferiority of the embodiments.

在本發明的上述實施例中,對各個實施例的描述都各有側重,某個實施例中沒有詳述的部分,可以參見其他實施例的相關描述。 In the above-mentioned embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.

在本發明所提供的幾個實施例中,應該理解到,所揭露的技術內容,可透過其它的方式實現。其中,以上所描述的裝置實施例僅僅是示意性的,例如所述單元的劃分, 僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式,例如多個單元或元件可以結合或者可以集成到另一個系統,或一些特徵可以忽略,或不執行。另一點,所顯示或討論的相互之間的耦合或直接耦合或通信連接可以是透過一些介面,單元或模組的間接耦合或通信連接,可以是電性或其它的形式。 In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Wherein, the device embodiment described above is only illustrative, for example, the division of the unit, It is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or elements may be combined or integrated into another system, or some features may be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, units or modules, and may be in electrical or other forms.

所述作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部單元來實現本實施例方案的目的。 The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

另外,在本發明各個實施例中的各功能單元可以集成在一個處理單元中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元集成在一個單元中。上述集成的單元既可以採用硬體的形式實現,也可以採用軟體功能單元的形式實現。 In addition, the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be realized either in the form of hardware or in the form of software functional unit.

所述集成的單元如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以儲存在一個電腦可讀取儲存介質中。基於這樣的理解,本發明的技術方案本質上或者說對現有技術做出貢獻的部分或者該技術方案的全部或部分可以以軟體產品的形式體現出來,該電腦軟體產品儲存在一個儲存介質中,包括若干指令用以使得一台電腦設備(可為個人電腦、伺服器或者網路設備等)執行本發明各個實施例所述方法的全部或部分步驟。而前述的儲存 介質包括:U盤、唯讀記憶體(ROM,Read-Only Memory)、隨機存取記憶體(RAM,Random Access Memory)、行動硬碟、磁碟或者光碟等各種可以儲存程式碼的介質。 If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium. It includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. And the aforementioned storage The medium includes: U disk, Read-Only Memory (ROM), Random Access Memory (RAM), mobile hard disk, floppy disk or CD-ROM and other media that can store program codes.

以上所述僅是本發明的優選實施方式,應當指出,對於本技術領域的中具有通常知識者來說,在不脫離本發明原理的前提下,還可以做出若干改進和潤飾,這些改進和潤飾也應視為本發明的保護範圍。 The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can be made. These improvements and Retouching should also be regarded as the protection scope of the present invention.

Claims (22)

一種路由表的同步方法,其特徵在於,包括:如果檢測到預設的第一資料管理組中的路由表被修改,獲取修改後的路由表資料;將該修改後的路由表資料同步至其他任意一個或多個非預設的第二資料管理組,以更新該非預設的第二資料管理組中的路由表;其中,分散式檔案系統中部署唯一的該第一資料管理組以及至少一個該第二資料管理組,其中,該分散式檔案系統中部署的該第一資料管理組以及該第二資料管理組設置有讀寫請求門限,其中,該讀寫請求門限用於表徵對應的資料管理組中的資料管理伺服器的最大訪問次數,如果該資料管理伺服器的訪問次數超過該讀寫請求門限,則終止訪問該資料管理伺服器。 A method for synchronizing a routing table, which is characterized in that it includes: if it is detected that the routing table in the first data management group preset is modified, obtaining the modified routing table data; and synchronizing the modified routing table data to other Any one or more non-default second data management groups to update the routing table in the non-default second data management group; wherein, the only first data management group and at least one first data management group are deployed in the distributed file system The second data management group, wherein the first data management group and the second data management group deployed in the distributed file system are set with read and write request thresholds, wherein the read and write request thresholds are used to characterize corresponding data The maximum number of accesses to the data management server in the management group. If the number of accesses of the data management server exceeds the threshold of the read and write request, the access to the data management server is terminated. 根據請求項1所述的方法,其中,當該分散式檔案系統中部署新的第二資料管理組時,將該新的第二資料管理組中的資料管理伺服器註冊至該第一資料管理組上,並將該第一資料管理組中的路由表同步至該新的第二資料管理組中。 The method according to claim 1, wherein when a new second data management group is deployed in the distributed file system, the data management server in the new second data management group is registered to the first data management And synchronize the routing table in the first data management group to the new second data management group. 根據請求項1或2所述的方法,其中,該方法還包括:在該分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之後,從該路由表請求中獲取該請求終端中的路由表版本資訊; 在該路由表版本資訊與該任意一個資料管理組中的路由表的版本資訊不一致的情況下,該任意一個資料管理組向該請求終端返回本機存放區的路由表,或者,該請求終端透過訪問該分散式檔案系統中部署的資料儲存伺服器來獲取最新的路由表。 The method according to claim 1 or 2, wherein the method further comprises: after any one of the data management groups in the distributed file system receives the routing table request initiated by the requesting terminal, obtaining the routing table request from the routing table request Request the routing table version information in the terminal; In the case that the version information of the routing table is inconsistent with the version information of the routing table in any one of the data management groups, the any one of the data management groups returns the routing table of the local storage area to the requesting terminal, or the requesting terminal passes through Visit the data storage server deployed in the distributed file system to obtain the latest routing table. 根據請求項3所述的方法,其中,在從該路由表請求中獲取該請求終端中的路由表版本資訊之前,該方法還包括:根據該路由表請求中攜帶的待操作的檔或目錄的資訊,確定該待操作的檔或目錄的許可權;如果該許可權為允許操作,則繼續執行從該路由表請求中獲取該請求終端中的路由表版本資訊的步驟;如果該許可權為禁止操作,則獲取該最新的路由表失敗。 The method according to claim 3, wherein, before obtaining the routing table version information in the requesting terminal from the routing table request, the method further includes: according to the file or directory to be operated carried in the routing table request Information, determine the permission of the file or directory to be operated; if the permission is allowed, continue to perform the step of obtaining the routing table version information in the requesting terminal from the routing table request; if the permission is forbidden Operation, then obtaining the latest routing table fails. 根據請求項3所述的方法,其中,在該分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之前,該方法還包括:該請求終端在調用訪問介面之後,解析得到該分散式檔案系統中的每個資料管理組的訪問資訊;該請求終端向該任意一個資料管理組發送該路由表請求,其中,如果該請求終端從該任意一個資料管理組獲取該最新的路由表失敗,則向該分散式檔案系統中的其他資料管理組發送該路由表請求,直至獲取該最新的路由表。 The method according to claim 3, wherein, before any data management group in the distributed file system receives the routing table request initiated by the requesting terminal, the method further includes: after the requesting terminal invokes the access interface, parsing Obtain the access information of each data management group in the distributed file system; the requesting terminal sends the routing table request to any one of the data management groups, wherein, if the requesting terminal obtains the latest data from any one of the data management groups If the routing table fails, the routing table request is sent to other data management groups in the distributed file system until the latest routing table is obtained. 根據請求項5所述的方法,其中,在解析得到該分 散式檔案系統中的每個資料管理組的訪問資訊之前,該方法還包括:該請求終端解析得到該分散式檔案系統中部署的該資料儲存伺服器的訪問資訊;該請求終端向該資料儲存伺服器發送該路由表請求,其中,如果該請求終端從該資料儲存伺服器獲取該最新的路由表失敗,或者該資料儲存伺服器中儲存的路由表不是該最新的路由表,則該請求終端進入解析該分散式檔案系統中的每個資料管理組的訪問資訊的步驟。 The method according to claim 5, wherein the score is obtained after parsing Before the access information of each data management group in the distributed file system, the method further includes: the requesting terminal parses to obtain the access information of the data storage server deployed in the distributed file system; and the requesting terminal stores the data to the data The server sends the routing table request, where, if the requesting terminal fails to obtain the latest routing table from the data storage server, or the routing table stored in the data storage server is not the latest routing table, the requesting terminal Enter the step of analyzing the access information of each data management group in the distributed file system. 根據請求項3所述的方法,其中,在該分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之前,該方法還包括:該請求終端在調用訪問介面之後,解析得到該分散式檔案系統中該預設的第一資料管理組的位址資訊;該請求終端向該第一資料管理組發送該路由表請求,其中,如果該請求終端從該第一資料管理組獲取該最新的路由表失敗,則向該分散式檔案系統中的其他任意一個或多個第二資料管理組發送該路由表請求,直至獲取該最新的路由表。 The method according to claim 3, wherein, before any data management group in the distributed file system receives the routing table request initiated by the requesting terminal, the method further includes: after the requesting terminal invokes the access interface, parsing Obtain the address information of the preset first data management group in the distributed file system; the requesting terminal sends the routing table request to the first data management group, wherein, if the requesting terminal is from the first data management group If obtaining the latest routing table fails, the routing table request is sent to any other one or more second data management groups in the distributed file system until the latest routing table is obtained. 根據請求項7所述的方法,其中,在解析得到該分散式檔案系統中該預設的第一資料管理組的位址資訊之前,該方法還包括:該請求終端解析得到該分散式檔案系統中部署的該資料儲存伺服器的訪問資訊; 該請求終端向該資料儲存伺服器發送該路由表請求,其中,如果該請求終端從該資料儲存伺服器獲取該最新的路由表失敗,或者該資料儲存伺服器中儲存的路由表不是該最新的路由表,則該請求終端進入解析該分散式檔案系統中的該第一資料管理組的訪問資訊的步驟。 The method according to claim 7, wherein, before the address information of the preset first data management group in the distributed file system is obtained by analyzing, the method further includes: the requesting terminal analyzes to obtain the distributed file system Access information of the data storage server deployed in; The requesting terminal sends the routing table request to the data storage server, where if the requesting terminal fails to obtain the latest routing table from the data storage server, or the routing table stored in the data storage server is not the latest Routing table, the requesting terminal enters the step of analyzing the access information of the first data management group in the distributed file system. 根據請求項3所述的方法,其中,在該請求終端發起該路由表請求的過程中,如果檢測到該第一資料管理組中的路由表被修改,則重新訪問該分散式檔案系統中的任意一個資料管理組或該第一資料管理組,來獲取該最新的路由表。 The method according to claim 3, wherein, in the process of the requesting terminal initiating the routing table request, if it is detected that the routing table in the first data management group has been modified, revisiting the distributed file system Any data management group or the first data management group can obtain the latest routing table. 根據請求項1所述的方法,其中,對該第一資料管理組中包含的資料管理伺服器進行持久化處理,在該第一資料管理組執行持久化處理完成之後,向至少一個該第二資料管理組發送用於修改路由表的遠端程序呼叫協議,使得該第二資料管理組執行持久化處理。 The method according to claim 1, wherein the data management server included in the first data management group is subjected to persistence processing, and after the first data management group executes the persistence processing, it sends at least one second data management group to at least one of the second data management servers. The data management group sends a remote program call protocol for modifying the routing table, so that the second data management group executes persistence processing. 一種路由表的同步裝置,其特徵在於,包括:第一獲取模組,用於如果檢測到預設的第一資料管理組中的路由表被修改,獲取修改後的路由表資料;同步模組,用於將該修改後的路由表資料同步至其他任意一個或多個非預設的第二資料管理組,以更新該非預設的第二資料管理組中的路由表;其中,分散式檔案系統中部署唯一的該第一資料管理組以及至少一個該第二資料管理組,其中,該分散式檔案系統中部署的該第一資料管理組 以及該第二資料管理組設置有讀寫請求門限,其中,該讀寫請求門限用於表徵對應的資料管理組中的資料管理伺服器的最大訪問次數,如果該資料管理伺服器的訪問次數超過該讀寫請求門限,則終止訪問該資料管理伺服器。 A device for synchronizing a routing table is characterized by comprising: a first obtaining module for obtaining modified routing table data if it is detected that the routing table in the preset first data management group is modified; and the synchronization module , Used for synchronizing the modified routing table data to any one or more non-default second data management group to update the routing table in the non-default second data management group; wherein, the distributed file The only first data management group and at least one second data management group deployed in the system, wherein the first data management group deployed in the distributed file system And the second data management group is set with a read and write request threshold, where the read and write request threshold is used to characterize the maximum number of accesses of the data management server in the corresponding data management group, if the number of accesses of the data management server exceeds The read and write request threshold will terminate the access to the data management server. 根據請求項11所述的裝置,其中,該裝置還包括:註冊模組,用於當該分散式檔案系統中部署新的第二資料管理組時,將該新的第二資料管理組中的資料管理伺服器註冊至該第一資料管理組上,並將該第一資料管理組中的路由表同步至該新的第二資料管理組中。 The device according to claim 11, wherein the device further includes: a registration module for when a new second data management group is deployed in the distributed file system, the new second data management group The data management server is registered to the first data management group, and the routing table in the first data management group is synchronized to the new second data management group. 根據請求項11或12所述的裝置,其中,該裝置還包括:第二獲取模組,用於在該分散式檔案系統中的任意一個資料管理組接收到請求終端發起的路由表請求之後,從該路由表請求中獲取該請求終端中的路由表版本資訊;返回模組,用於如果該路由表版本資訊與該任意一個資料管理組中的路由表的版本資訊不一致的情況下,該任意一個資料管理組向該請求終端返回本機存放區的路由表,或者,該請求終端透過訪問該分散式檔案系統中部署的資料儲存伺服器來獲取最新的路由表。 The device according to claim 11 or 12, wherein the device further comprises: a second acquisition module, which is used to, after any data management group in the distributed file system receives a routing table request initiated by the requesting terminal, Obtain the routing table version information in the request terminal from the routing table request; the return module is used if the routing table version information is inconsistent with the version information of the routing table in any one of the data management groups, the arbitrary A data management group returns the routing table of the local storage area to the requesting terminal, or the requesting terminal obtains the latest routing table by accessing the data storage server deployed in the distributed file system. 根據請求項13所述的裝置,其中,該裝置還包括:確定模組,用於根據該路由表請求中攜帶的待操作的檔或目錄的資訊,確定該待操作的檔或目錄的許可權; 執行模組,用於如果該許可權為允許操作,則繼續執行從該路由表請求中獲取該請求終端中的路由表版本資訊的步驟;第三獲取模組,用於如果該許可權為禁止操作,則獲取該最新的路由表失敗。 The device according to claim 13, wherein the device further includes: a determining module for determining the permission of the file or directory to be operated based on the information of the file or directory to be operated carried in the routing table request ; The execution module is used to continue to execute the step of obtaining the routing table version information in the requesting terminal from the routing table request if the permission is allowed operation; the third obtaining module is used to if the permission is forbidden Operation, then obtaining the latest routing table fails. 根據請求項11所述的裝置,其中,該裝置還包括:持久化處理模組,用於對該第一資料管理組中包含的資料管理伺服器進行持久化處理,並在該第一資料管理組執行持久化處理完成之後,向至少一個該第二資料管理組發送用於修改路由表的遠端程序呼叫協議,使得該第二資料管理組執行持久化處理。 The device according to claim 11, wherein the device further comprises: a persistence processing module, configured to perform persistence processing on the data management server included in the first data management group, and perform the persistence processing in the first data management group. After the group executes the persistence processing, the remote program call protocol for modifying the routing table is sent to at least one of the second data management groups, so that the second data management group executes the persistence processing. 一種路由表的同步系統,其特徵在於,包括:第一資料管理伺服器,用於如果檢測到本機存放區的路由表被修改,獲取修改後的路由表資料,並將該修改後的路由表資料進行同步處理,其中,該第一資料管理伺服器為分散式檔案系統中預設的第一資料管理組中包含的任意一個伺服器;一個或多個第二資料管理伺服器,與該第一資料管理服務器具有通信關係,用於接收該第一資料管理伺服器同步的該修改後的路由表資料,以更新該第二資料管理組中的路由表,其中,該第二資料管理伺服器為該分散式檔案系統中非預設的第二資料管理組中包含的任意一個伺服器。 A routing table synchronization system, which is characterized by comprising: a first data management server, which is used to obtain the modified routing table data if it is detected that the routing table in the local storage area is modified, and the modified routing Table data is synchronized, wherein the first data management server is any server included in the first data management group preset in the distributed file system; one or more second data management servers are connected to the The first data management server has a communication relationship and is used to receive the modified routing table data synchronized by the first data management server to update the routing table in the second data management group, wherein the second data management server The server is any server included in the non-default second data management group in the distributed file system. 根據請求項16所述的系統,其中,該系統還包括:請求終端,與該第一資料管理伺服器和該一個或多個第二資料管理服務器具有通信關係,用於向該分散式檔案系統中的任意一個資料管理組發送路由表請求,並接收該任意一個資料管理組返回的路由表,或者,該請求終端透過訪問該分散式檔案系統中部署的資料儲存伺服器來獲取最新的路由表。 The system according to claim 16, wherein the system further comprises: a requesting terminal, which has a communication relationship with the first data management server and the one or more second data management servers, and is used to communicate with the distributed file system Any data management group in the data management group sends a routing table request and receives the routing table returned by any data management group, or the requesting terminal obtains the latest routing table by accessing the data storage server deployed in the distributed file system . 根據請求項17所述的系統,其中,該請求終端還用於在調用訪問介面之後,解析得到該分散式檔案系統中的每個資料管理組的訪問資訊,並向該任意一個資料管理組發送該路由表請求;其中,如果該請求終端從該任意一個資料管理組獲取該最新的路由表失敗,則向該分散式檔案系統中的其他資料管理組發送該路由表請求,直至獲取該最新的路由表。 The system according to claim 17, wherein the requesting terminal is also used to parse the access information of each data management group in the distributed file system after invoking the access interface, and send it to any one of the data management groups The routing table request; wherein, if the requesting terminal fails to obtain the latest routing table from any one of the data management groups, the routing table request is sent to other data management groups in the distributed file system until the latest one is obtained Routing table. 根據請求項18所述的系統,其中,該請求終端還用於在無法解析得到該分散式檔案系統中的任意一個資料管理組的訪問資訊的情況下,解析得到該分散式檔案系統中部署的該資料儲存伺服器的訪問資訊,並向該資料儲存伺服器發送該路由表請求;其中,如果該請求終端從該資料儲存伺服器獲取該最新的路由表失敗,或者該資料儲存伺服器中儲存的路由表不是該最新的路由表,則該請求終端開始解析該分散式檔案系統中的每個資料管理組的訪問資訊。 The system according to claim 18, wherein the requesting terminal is also used to parse the distributed file system to obtain the access information of any data management group in the distributed file system. The access information of the data storage server, and the routing table request is sent to the data storage server; wherein, if the requesting terminal fails to obtain the latest routing table from the data storage server, or the data storage server stores If the routing table of is not the latest routing table, the requesting terminal starts to analyze the access information of each data management group in the distributed file system. 根據請求項17所述的系統,其中,該請求終端還用於在調用訪問介面之後,解析得到該分散式檔案系統中該預設的第一資料管理組的位址資訊,並向該第一資料管理組發送該路由表請求;其中,如果該請求終端從該第一資料管理組獲取該最新的路由表失敗,則向該分散式檔案系統中的其他任意一個或多個第二資料管理組發送該路由表請求,直至獲取該最新的路由表。 The system according to claim 17, wherein the requesting terminal is further configured to parse and obtain the address information of the preset first data management group in the distributed file system after invoking the access interface, and send the address information to the first data management group. The data management group sends the routing table request; wherein, if the requesting terminal fails to obtain the latest routing table from the first data management group, it will send to any other one or more second data management groups in the distributed file system Send the routing table request until the latest routing table is obtained. 根據請求項20所述的系統,其中,該請求終端還用於在無法解析得到該分散式檔案系統中該預設的第一資料管理組的訪問資訊的情況下,解析得到該分散式檔案系統中部署的該資料儲存伺服器的訪問資訊,並向該資料儲存伺服器發送該路由表請求;其中,如果該請求終端從該資料儲存伺服器獲取該最新的路由表失敗,或者該資料儲存伺服器中儲存的路由表不是該最新的路由表,則該請求終端開始解析該分散式檔案系統中的該第一資料管理組的訪問資訊。 The system according to claim 20, wherein the requesting terminal is further configured to obtain the distributed file system by analyzing the access information of the preset first data management group in the distributed file system. The access information of the data storage server deployed in, and send the routing table request to the data storage server; wherein, if the requesting terminal fails to obtain the latest routing table from the data storage server, or the data storage server If the routing table stored in the device is not the latest routing table, the requesting terminal starts to analyze the access information of the first data management group in the distributed file system. 根據請求項17所述的系統,其中,該請求終端還用於在發起該路由表請求的過程中,如果檢測到該第一資料管理組中的路由表被修改,則重新訪問該分散式檔案系統中的任意一個資料管理組,來獲取該最新的路由表。 The system according to claim 17, wherein the requesting terminal is also used to revisit the distributed file if it is detected that the routing table in the first data management group has been modified during the process of initiating the routing table request Any data management group in the system can obtain the latest routing table.
TW106104650A 2016-03-09 2017-02-13 Method, device and system for synchronizing routing table TWI734744B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610133755.8 2016-03-09
CN201610133755.8A CN107181686B (en) 2016-03-09 2016-03-09 Method, device and system for synchronizing routing table

Publications (2)

Publication Number Publication Date
TW201735586A TW201735586A (en) 2017-10-01
TWI734744B true TWI734744B (en) 2021-08-01

Family

ID=59790033

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106104650A TWI734744B (en) 2016-03-09 2017-02-13 Method, device and system for synchronizing routing table

Country Status (4)

Country Link
US (1) US10826817B2 (en)
CN (1) CN107181686B (en)
TW (1) TWI734744B (en)
WO (1) WO2017152768A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181686B (en) 2016-03-09 2020-06-23 阿里巴巴集团控股有限公司 Method, device and system for synchronizing routing table
CN107682261B (en) * 2017-10-24 2020-04-03 新华三技术有限公司 Flow forwarding method and device
US10630571B1 (en) * 2017-11-16 2020-04-21 Amazon Technologies, Inc. Fault-tolerant request routing
US10411990B2 (en) * 2017-12-18 2019-09-10 At&T Intellectual Property I, L.P. Routing stability in hybrid software-defined networking networks
CN110071870B (en) * 2018-01-24 2022-03-18 苏宁云商集团股份有限公司 Alluxio-based routing method and device for multiple HDFS clusters
CN109885550B (en) * 2018-12-28 2022-09-13 安徽维德工业自动化有限公司 File storage system based on all-connected routing layer
CN111431805B (en) * 2020-03-27 2021-01-12 上海天好信息技术股份有限公司 Internet of things multi-channel signal multiplexing synchronization strategy method
US11704033B1 (en) * 2021-09-30 2023-07-18 Amazon Technologies, Inc. Request routing management for a distributed storage system
CN114650251B (en) * 2022-03-18 2024-02-20 北京百度网讯科技有限公司 Routing table construction method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731400A (en) * 2005-08-16 2006-02-08 杭州华为三康技术有限公司 Method of data query and method of inter-board data synchronization in distributed system
CN104050249A (en) * 2011-12-31 2014-09-17 北京奇虎科技有限公司 Distributed query engine system and method and metadata server
CN104283906A (en) * 2013-07-02 2015-01-14 华为技术有限公司 Distributed storage system, cluster nodes and range management method of cluster nodes

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004013215A (en) * 2002-06-03 2004-01-15 Hitachi Ltd Storage system, storage sub-system, and information processing system including them
US8874974B2 (en) * 2011-11-15 2014-10-28 International Business Machines Corporation Synchronizing a distributed communication system using diagnostic heartbeating
CN103139081B (en) * 2011-11-28 2017-08-11 中兴通讯股份有限公司 Distributed hashtable routing table update method and node
CN103259824B (en) * 2012-02-21 2016-03-09 深圳市腾讯计算机系统有限公司 The synchronous method of data route and device in distributed data-storage system
US10135732B2 (en) * 2012-12-31 2018-11-20 Juniper Networks, Inc. Remotely updating routing tables
CN104468364B (en) * 2013-09-18 2018-02-13 华为技术有限公司 route synchronization method and device
CN104253748B (en) * 2014-09-24 2017-10-03 大唐移动通信设备有限公司 Method for routing and system based on distributed structure/architecture
CN107181686B (en) 2016-03-09 2020-06-23 阿里巴巴集团控股有限公司 Method, device and system for synchronizing routing table

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731400A (en) * 2005-08-16 2006-02-08 杭州华为三康技术有限公司 Method of data query and method of inter-board data synchronization in distributed system
CN100442282C (en) * 2005-08-16 2008-12-10 杭州华三通信技术有限公司 Method of data query and method of inter-board data synchronization in distributed system
CN104050249A (en) * 2011-12-31 2014-09-17 北京奇虎科技有限公司 Distributed query engine system and method and metadata server
CN104283906A (en) * 2013-07-02 2015-01-14 华为技术有限公司 Distributed storage system, cluster nodes and range management method of cluster nodes

Also Published As

Publication number Publication date
TW201735586A (en) 2017-10-01
CN107181686A (en) 2017-09-19
US10826817B2 (en) 2020-11-03
CN107181686B (en) 2020-06-23
WO2017152768A1 (en) 2017-09-14
US20180367441A1 (en) 2018-12-20

Similar Documents

Publication Publication Date Title
TWI734744B (en) Method, device and system for synchronizing routing table
WO2017167171A1 (en) Data operation method, server, and storage system
US8321503B2 (en) Context-specific network resource addressing model for distributed services
TWI724095B (en) Method, device and system for migrating physical machine data to cloud
US20170244596A1 (en) Configuration Information Management Method, Device, Network Element Management System and Storage Medium
CN106484820B (en) Renaming method, access method and device
US20150143065A1 (en) Data Processing Method and Apparatus, and Shared Storage Device
CN106302595B (en) Method and equipment for carrying out health check on server
WO2018058949A1 (en) Data storage method, device and system
WO2020063763A1 (en) Data storage method, apparatus and system, and server, control node and medium
WO2016066108A1 (en) Route access method, route access system and user terminal
WO2015043455A1 (en) Data transmission method, device, and system
CN103631820A (en) Metadata management method and device of distributed file system
EP2991280A1 (en) Content sharing method and social synchronizing apparatus
CN110737663A (en) data storage method, device, equipment and storage medium
US20160308871A1 (en) Network element data access method and apparatus, and network management system
US8380806B2 (en) System and method for absolute path discovery by a storage virtualization system
US11128622B2 (en) Method for processing data request and system therefor, access device, and storage device
WO2014190700A1 (en) Method of memory access, buffer scheduler and memory module
US9648103B2 (en) Non-uniform file access in a distributed file system
WO2021008550A1 (en) Method, device, and system for remote disaster tolerance
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
WO2017028721A1 (en) Data update method and device in distributed file system
EP3058455A1 (en) Methods for monitoring and controlling a storage environment and devices thereof
WO2012152024A1 (en) System and method for storing usage information about mobile terminal