WO2016141702A1 - Distributed system metadata migration method and device - Google Patents

Distributed system metadata migration method and device Download PDF

Info

Publication number
WO2016141702A1
WO2016141702A1 PCT/CN2015/089679 CN2015089679W WO2016141702A1 WO 2016141702 A1 WO2016141702 A1 WO 2016141702A1 CN 2015089679 W CN2015089679 W CN 2015089679W WO 2016141702 A1 WO2016141702 A1 WO 2016141702A1
Authority
WO
WIPO (PCT)
Prior art keywords
metadata
node
migration
migrating
data
Prior art date
Application number
PCT/CN2015/089679
Other languages
French (fr)
Chinese (zh)
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 WO2016141702A1 publication Critical patent/WO2016141702A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the main purpose of the embodiments of the present invention is to provide a method and an apparatus for migrating metadata in a distributed system, so as to solve the problem of adjusting metadata routing rules in the related art, part of the metadata needs to be split or migrated to one or more other ones.
  • the metadata server clusters and synchronizes the issue of modifying the affected metadata routing rules.
  • the device before the migrating node copies the content of the metadata to the migrating node, the device further includes: a recording module, configured to record migration startup information of migrating the metadata,
  • the startup information includes: a startup time, and a last write operation information of the distributed system before starting the data migration, where the write operation information includes: a time when the write operation occurs, a content of the write operation, and a write operation.
  • the first notification module is configured to notify the migrating node to apply for the first lock, where the first lock is used to lock a write operation of all migrated data in the migrating node.
  • the device further includes: a second copying module, configured to record the metadata in the After the migration startup information, all the write operation information before copying the metadata to the migration node is written to the synchronization queue; or, after notifying the migration node to apply for the first lock, and copying Before the metadata is sent to the ingress node, the device further includes: a prohibiting module, configured to prohibit the ejecting node from performing the writing operation.
  • the second notification module includes: a first notification unit, configured to notify the distributed system of completion of current data migration flow replication when the migration node and the migration node complete data replication; a first receiving unit, configured to receive the indication to delete the copied metadata in the migrating node;
  • the third notification module includes: a first sending unit, configured to send, to the egress node and the ingress node, a query instruction for querying a migration status of the migrated data stream; and the second receiving unit is configured to receive the And a response instruction sent by the migrating node and the migrating node in response to the query instruction, where the response instruction is used to indicate the migration data migration state; and the second notification unit is configured to be in the response When the instruction indicates that the migration data stream is successfully migrated, the distributed system is notified to enable a new metadata distribution routing rule, and the mobile node is notified to delete the content of the metadata.
  • FIG. 6 is an execution sequence of metadata redistribution in a metadata server cluster in accordance with an alternate embodiment of the present invention.
  • a device for migrating metadata in a distributed system is also provided.
  • the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term “module” "unit” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the device may further include: a third notification module 46 coupled to the forbidden module 44, configured to notify the deletion of the copied metadata in the migrating node, and Release the first lock.
  • a third notification module 46 coupled to the forbidden module 44, configured to notify the deletion of the copied metadata in the migrating node, and Release the first lock.
  • the metadata redistribution control device After the rollback operation is started, the metadata redistribution control device sends a fallback request to the inbound and outbound servers involved in each metadata migration data flow, and moves into and out of the server after receiving the fallback request to perform the following operations. :
  • Step S730 After the metadata migration server removes the metadata, the metadata synchronization mechanism deployed in the cluster is used to delete the migrated metadata of other servers in the cluster.
  • the metadata redistribution device can trigger the rollback process by the following steps:
  • step S708 the metadata redistribution device cannot select a migration or migration server that is in a normal state from the system.
  • FIG. 10 is a flowchart of a method for completing replication of data redistribution according to an alternative embodiment of the present invention. As shown in FIG. 10, the steps of the method include:
  • Step S1020 The control device for metadata redistribution enters a waiting state, waiting for the next check whether the metadata migration data stream is all ended.

Abstract

Provided are a distributed system metadata migration method and device. The method comprises: receiving a notification message from a distributed system, wherein the notification message is used to instruct a metadata distribution routing rule to change; and comparing, according to the notification message, a metadata distribution routing rule before an adjustment and that after an adjustment to obtain a migration data stream of the metadata between nodes of a metadata server cluster, wherein the migration data stream is used to instruct a metadata migration process. The present invention addresses a problem in the related art in which upon adjusting a metadata routing rule it is necessary to split or migrate part of the metadata to one or more other metadata server clusters and synchronously modify the affected metadata routing rule.

Description

分布式系统中元数据的迁移方法及装置Metadata migration method and device in distributed system 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种分布式系统中元数据的迁移方法及装置。The present invention relates to the field of communications, and in particular to a method and apparatus for migrating metadata in a distributed system.
背景技术Background technique
客户请求消息到达的分布式系统中处理客户请求消息的边界网关后,边界网关需要根据某种方法首先定位元数据服务器,之后由元数据服务器查询自身数据库将消息路由给下一级元数据服务器或路由给存储真实数据的服务器。在上述定位元数据服务器的过程中,相关技术中通常采用两种方案:预先配置元数据的路由信息或系统创建内部数据库以维护查询条件与元数据服务器的路由对照关系。但随着存储数据的增多,查询对照关系的操作将成为系统的瓶颈,并导致此方案将不再可行,因此在大容量数据库的方案中多采用预先配置元数据路由信息的方案。After the border gateway that processes the client request message in the distributed system where the client requests the message arrives, the border gateway needs to first locate the metadata server according to a certain method, and then the metadata server queries the database to route the message to the next-level metadata server or Routed to a server that stores real data. In the process of locating the metadata server, two technologies are generally used in the related art: pre-configuring the routing information of the metadata or the system to create an internal database to maintain the routing relationship between the query condition and the metadata server. However, with the increase of stored data, the operation of querying the comparison relationship will become the bottleneck of the system, and this solution will no longer be feasible. Therefore, in the scheme of large-capacity database, the scheme of pre-configuring metadata routing information is adopted.
针对预先配置元数据路由的方案,相关技术中存在的问题是:在该方案中,路由规则一旦确定,元数据的分布即与元数据的路由信息产生绑定。因此当系统需要调整元数据路由规则时,需要首先将元数据从现有某一个元数据服务器群集迁移到另外一个群集,并确保在元数据迁移完成后控制系统切换到新的元数据分布路由方案,例如,系统中需要修改一个用户号码段的路由信息到新的元数据服务器群集时,或者当某一个元数据服务器群集中元数据的增长达到系统瓶颈时,系统需要将部分元数据拆分到其他一个或多个元数据服务器群集,并同步修改受影响的元数据路由规则。For the scheme of pre-configuring metadata routing, the related problem in the related art is: in this scheme, once the routing rule is determined, the distribution of the metadata is bound to the routing information of the metadata. Therefore, when the system needs to adjust the metadata routing rules, it is necessary to first migrate the metadata from one of the existing metadata server clusters to another cluster, and ensure that the control system switches to the new metadata distribution routing scheme after the metadata migration is completed. For example, when the system needs to modify the routing information of a user number segment to a new metadata server cluster, or when the growth of metadata in a certain metadata server cluster reaches a system bottleneck, the system needs to split part of the metadata into One or more other metadata server clusters and synchronously modify the affected metadata routing rules.
针对相关技术中调整元数据路由规则时,需要将部分元数据拆分或迁移到其它一个或多个元数据服务器群集,并同步修改受影响的元数据路由规则的问题,业界尚未提出有效的解决方案。When adjusting the metadata routing rules in the related art, it is necessary to split or migrate part of the metadata to another one or more metadata server clusters, and simultaneously modify the affected metadata routing rules. The industry has not proposed an effective solution. Program.
发明内容Summary of the invention
本发明实施例的主要目的在于提供一种分布式系统中元数据的迁移方法及装置,以解决相关技术中调整元数据路由规则时,需要将部分元数据拆分或迁移到其它一个或多个元数据服务器群集,并同步修改受影响的元数据路由规则的问题。The main purpose of the embodiments of the present invention is to provide a method and an apparatus for migrating metadata in a distributed system, so as to solve the problem of adjusting metadata routing rules in the related art, part of the metadata needs to be split or migrated to one or more other ones. The metadata server clusters and synchronizes the issue of modifying the affected metadata routing rules.
根据本发明实施例的一个方面,提供了一种分布式系统中元数据的迁移方法,包括:接收来自分布式系统的通知消息,其中,该通知消息用于指示元数据分布路由规 则发生了变化;依据所述通知消息比较调整前与调整后的所述元数据分布路由规则,得到所述元数据在元数据服务器集群的节点之间的迁移数据流,其中,所述迁移数据流用于指示所述元数据的迁移过程,所述迁移数据流包括:第一服务器集群中迁出所述元数据的迁出节点、第二服务器集群中迁入所述元数据的迁入节点、所述元数据的内容;依据所述迁移数据流通知所述迁出节点将所述元数据的内容复制到所述迁入节点中。According to an aspect of an embodiment of the present invention, a method for migrating metadata in a distributed system includes: receiving a notification message from a distributed system, wherein the notification message is used to indicate a metadata distribution routing rule And changing the metadata distribution rule before and after the adjustment according to the notification message, to obtain a migration data flow of the metadata between nodes of the metadata server cluster, where the migration data The flow is used to indicate the migration process of the metadata, where the migration data flow includes: an migration node that migrates the metadata in the first server cluster, and an migration node that migrates the metadata in the second server cluster, And the content of the metadata is sent to the egress node to copy the content of the metadata to the embedding node according to the migrated data stream.
可选地,在依据所述迁移数据流通知所述迁出节点将所述元数据的内容复制到所述迁入节点之前,所述方法还包括:记录迁出所述元数据的迁移启动信息,其中,所述启动信息包括:启动时间、所述分布式系统在启动数据迁移前最近一次的写操作信息,其中,所述写操作信息包括:写操作发生的时间、写操作的内容、写操作的序号;或,通知所述迁出节点申请第一锁,其中,所述第一锁用于锁住所述迁出节点中所有迁移数据的写操作。Optionally, before the migrating data stream is notified to the egress node to copy the content of the metadata to the migrating node, the method further includes: recording migration startup information of migrating the metadata The startup information includes: a startup time, a last write operation information of the distributed system before starting data migration, wherein the write operation information includes: a time when the write operation occurs, a content of the write operation, and a write The serial number of the operation; or, the notification, is sent to the eviction node to apply for the first lock, wherein the first lock is used to lock the write operation of all the migrated data in the migrating node.
可选地,在所述迁移数据流启动后,并在复制所述元数据到所述迁入节点前,所述方法还包括:在所述记录所述元数据的所述迁移启动信息后,将在复制所述元数据到所述迁入节点前的所有写操作信息写入到同步队列;或,在通知所述迁出节点申请第一锁后,并在复制所述元数据到所述迁入节点前,所述方法还包括:禁止所述迁出节点执行所述写操作。Optionally, after the migrating data stream is started, and before copying the metadata to the migrating node, the method further includes: after the migrating startup information of the metadata is recorded, All write operation information before copying the metadata to the move-in node is written to the synchronization queue; or, after notifying the move-out node to apply for the first lock, and copying the metadata to the Before moving to the node, the method further includes: prohibiting the egress node from performing the write operation.
可选地,在依据所述迁移数据流通知所述迁出节点将所述元数据的内容复制到所述迁入节点之后,包括:通知所述迁出节点申请第二锁,其中,所述第二锁用于锁住迁出的所述元数据的写操作;并向所述迁入节点发送所述同步队列中的所述写操作信息;在所述元数据的内容复制完成后,通知删除所述迁出节点中已复制的所述元数据,并释放所述第二锁;或,通知删除所述迁出节点中已复制的所述元数据,并释放所述第一锁。Optionally, after the migrating data stream is notified to the migrating node to copy the content of the metadata to the migrating node, the method includes: notifying the migrating node to apply for a second lock, where a second lock is configured to lock a write operation of the migrated metadata; and send the write operation information in the synchronization queue to the move node; after the content copy of the metadata is completed, notify Deleting the metadata that has been copied in the migrating node, and releasing the second lock; or notifying, deleting the metadata that has been copied in the migrating node, and releasing the first lock.
可选地,通知删除所述迁出节点中已复制的所述元数据包括:在所述迁入节点和所述迁出节点完成数据复制时,通知所述分布式系统当前数据迁移流复制的完成,并接收所述通知删除所述迁出节点中已复制的所述元数据的指示;或,向所述迁出节点和所述迁入节点发送用于查询所述迁移数据流的迁移状态的查询指令;接收所述迁出节点和所述迁入节点发送的响应于所述查询指令的响应指令,其中,所述响应指令用于指示所述迁移数据流迁移状态;在所述响应指令指示所述迁移数据流迁移成功时,通知所述分布式系统启用新的元数据分布路由规则,并通知所述迁出节点删除所述元数据的内容。Optionally, the deleting the metadata that is copied in the migrating node includes: notifying, when the migrating node and the migrating node complete data replication, the current data migration stream replication of the distributed system. Completing, and receiving the notification to delete the indication of the copied metadata in the migrating node; or sending a migration status for querying the migrating data stream to the migrating node and the migrating node And the response instruction sent by the migration node and the migration node in response to the query instruction, wherein the response instruction is used to indicate the migration data flow state; When the migration of the migration data stream is successful, the distributed system is notified to enable a new metadata distribution routing rule, and the mobile node is notified to delete the content of the metadata.
可选地,所述方法还包括:在所述查询指令指示所述迁移数据流迁移异常时,向所述迁出节点和所述迁入节点发送回退请求,其中,所述回退请求用于指示通知所述 迁出节点和所述迁入节点终止所述迁移流数据的复制操作,以及通知所述迁入节点删除已复制的所述元数据的内容。Optionally, the method further includes: when the query instruction indicates that the migration data flow is abnormal, sending a fallback request to the migrating node and the migrating node, where the back request is As stated in the instructions The eviction node and the migrating node terminate the copy operation of the migrating stream data, and notify the migrating node to delete the content of the copied metadata.
可选地,所述第一服务集群或所述第二服务集群可同时作为多个迁移数据流的迁入和迁出服务集群。Optionally, the first service cluster or the second service cluster may serve as an inbound and outbound service cluster of multiple migrated data streams at the same time.
根据本发明实施例的另一个方面,提供了一种分布式系统中元数据的迁移装置,包括:接收模块,设置为接收来自分布式系统的通知消息,其中,该通知消息用于指示元数据分布路由规则发生了变化;比较模块,设置为依据所述通知消息比较调整前与调整后的所述元数据分布路由规则,得到所述元数据在元数据服务器集群的节点之间的迁移数据流,其中,所述迁移数据流用于指示所述元数据的迁移过程,所述迁移数据流包括:第一服务器集群中迁出所述元数据的迁出节点、第二服务器集群中迁入所述元数据的迁入节点、所述元数据的内容;第一复制模块,设置为依据所述迁移数据流通知所述迁出节点将所述元数据的内容复制到所述迁入节点中。According to another aspect of the embodiments of the present invention, there is provided a metadata migration apparatus in a distributed system, comprising: a receiving module configured to receive a notification message from a distributed system, wherein the notification message is used to indicate metadata The distribution routing rule is changed; the comparison module is configured to compare the pre-adjusted and adjusted metadata distribution routing rules according to the notification message, to obtain a migration data flow of the metadata between nodes of the metadata server cluster. The migration data stream is used to indicate a migration process of the metadata, where the migration data flow includes: an migration node in the first server cluster that migrates the metadata, and a migration in the second server cluster The migration node of the metadata and the content of the metadata; the first replication module is configured to notify the migration node to copy the content of the metadata to the migration node according to the migration data flow.
可选地,在所述迁出节点将所述元数据的内容复制到所述迁入节点中之前,所述装置还包括:记录模块,设置为记录迁出所述元数据的迁移启动信息,其中,所述启动信息包括:启动时间、所述分布式系统在启动数据迁移前最近一次的写操作信息,其中,所述写操作信息包括:写操作发生的时间、写操作的内容、写操作的序号;或,第一通知模块,设置为通知所述迁出节点申请第一锁,其中,所述第一锁用于锁住所述迁出节点中所有迁移数据的写操作。Optionally, before the migrating node copies the content of the metadata to the migrating node, the device further includes: a recording module, configured to record migration startup information of migrating the metadata, The startup information includes: a startup time, and a last write operation information of the distributed system before starting the data migration, where the write operation information includes: a time when the write operation occurs, a content of the write operation, and a write operation. Or the first notification module is configured to notify the migrating node to apply for the first lock, where the first lock is used to lock a write operation of all migrated data in the migrating node.
可选地,在所述迁移数据流启动后,并在复制所述元数据到所述迁入节点前,所述装置还包括:第二复制模块,设置为在所述记录所述元数据的所述迁移启动信息后,将在复制所述元数据到所述迁入节点前的所有写操作信息写入到同步队列;或,在通知所述迁出节点申请第一锁后,并在复制所述元数据到所述迁入节点前,所述装置还包括:禁止模块,设置为禁止所述迁出节点执行所述写操作。Optionally, after the migrating data stream is started, and before copying the metadata to the migrating node, the device further includes: a second copying module, configured to record the metadata in the After the migration startup information, all the write operation information before copying the metadata to the migration node is written to the synchronization queue; or, after notifying the migration node to apply for the first lock, and copying Before the metadata is sent to the ingress node, the device further includes: a prohibiting module, configured to prohibit the ejecting node from performing the writing operation.
可选地,在所述迁出节点将所述元数据的内容复制到所述迁入节点中之后,所述装置还包括:第二通知模块,设置为通知所述迁出节点申请第二锁,其中,所述第二锁用于锁住迁出的所述元数据的写操作;并向所述迁入节点发送所述同步队列中的所述写操作信息;在所述元数据的内容复制完成后,通知删除所述迁出节点中已复制的所述元数据,并释放所述第二锁;或,第三通知模块,设置为通知删除所述迁出节点中已复制的所述元数据,并释放所述第一锁。Optionally, after the migrating node copies the content of the metadata to the migrating node, the device further includes: a second notification module, configured to notify the migrating node to apply for the second lock The second lock is used to lock a write operation of the migrated metadata; and the write operation information in the synchronization queue is sent to the move node; the content of the metadata After the copying is completed, the notification deletes the copied metadata in the migrating node, and releases the second lock; or the third notification module is configured to notify the deletion of the copied copy in the migrating node. Metadata and release the first lock.
可选地,所述第二通知模块包括:第一通知单元,设置为在所述迁入节点和所述迁出节点完成数据复制时,通知所述分布式系统当前数据迁移流复制的完成;第一接收单元,设置为接收所述通知删除所述迁出节点中已复制的所述元数据的指示;所述 第三通知模块包括:第一发送单元,设置为向所述迁出节点和所述迁入节点发送用于查询所述迁移数据流的迁移状态的查询指令;第二接收单元,设置为接收所述迁出节点和所述迁入节点发送的响应于所述查询指令的响应指令,其中,所述响应指令用于指示所述迁移数据流迁移状态;第二通知单元,设置为在所述响应指令指示所述迁移数据流迁移成功时,通知所述分布式系统启用新的元数据分布路由规则,并通知所述迁出节点删除所述元数据的内容。Optionally, the second notification module includes: a first notification unit, configured to notify the distributed system of completion of current data migration flow replication when the migration node and the migration node complete data replication; a first receiving unit, configured to receive the indication to delete the copied metadata in the migrating node; The third notification module includes: a first sending unit, configured to send, to the egress node and the ingress node, a query instruction for querying a migration status of the migrated data stream; and the second receiving unit is configured to receive the And a response instruction sent by the migrating node and the migrating node in response to the query instruction, where the response instruction is used to indicate the migration data migration state; and the second notification unit is configured to be in the response When the instruction indicates that the migration data stream is successfully migrated, the distributed system is notified to enable a new metadata distribution routing rule, and the mobile node is notified to delete the content of the metadata.
可选地,所述第三通知模块还包括:第二发送单元,设置为在所述查询指令指示所述迁移数据流迁移异常时,向所述迁出节点和所述迁入节点发送回退请求,其中,所述回退请求用于指示通知所述迁出节点和所述迁入节点终止所述迁移流数据的复制操作,以及通知所述迁入节点删除已复制的所述元数据的内容。Optionally, the third notification module further includes: a second sending unit, configured to send a fallback to the migrating node and the migrating node when the query instruction indicates that the migration data flow is abnormal a request, wherein the fallback request is used to indicate that the migrating node and the migrating node terminate the copy operation of the migrated stream data, and notify the migrating node to delete the copied metadata. content.
可选地,所述第一服务集群或所述第二服务集群可同时作为多个迁移数据流的迁入和迁出服务集群。Optionally, the first service cluster or the second service cluster may serve as an inbound and outbound service cluster of multiple migrated data streams at the same time.
通过本发明实施例,采用在接收到分布式系统中的元数据的分布路由规则发生变化之后,通过比较调整前与调整后的元数据分布路由规则,得到元数据在元数据服务器集群的节点之间的迁移数据流,据迁移数据流通知迁出节点将元数据的内容复制到迁入节点中的方式,即通过用于指示元数据的迁移过程的移数据流,将需要迁移的元数据复制到需要迁入的节点,实现元数据的迁移,同时也不用改变其他元数据的路由规则,解决了相关技术中调整元数据路由规则时,需要将部分元数据拆分或迁移到其它一个或多个元数据服务器群集,并同步修改受影响的元数据路由规则的问题,进而达到了元数据平滑移动的效果。According to the embodiment of the present invention, after the distribution routing rule of the metadata received in the distributed system is changed, the metadata distribution rule in the metadata server cluster is obtained by comparing the pre-adjusted and adjusted metadata distribution routing rules. The migration data stream, according to the migration data flow, informs the migration node to copy the content of the metadata to the migration node, that is, the metadata that needs to be migrated is copied by the mobile data flow for indicating the migration process of the metadata. To the nodes that need to be moved, the metadata migration is realized, and the routing rules of other metadata are not changed at the same time. When the metadata routing rules are adjusted in the related art, some metadata needs to be split or migrated to one or more other ones. The metadata server clusters, and the problem of modifying the affected metadata routing rules is synchronously modified, thereby achieving the effect of smooth movement of metadata.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的分布式系统中元数据的迁移方法的流程图;1 is a flow chart of a method for migrating metadata in a distributed system according to an embodiment of the present invention;
图2是根据本发明实施例的分布式系统中元数据的迁移装置结构框图;2 is a structural block diagram of a metadata migration apparatus in a distributed system according to an embodiment of the present invention;
图3是根据本发明实施例的分布式系统中元数据的迁移装置可选结构框图一;3 is a block diagram 1 of an optional structure of a metadata migration apparatus in a distributed system according to an embodiment of the present invention;
图4是根据本发明实施例的分布式系统中元数据的迁移装置可选结构框图二;4 is a block diagram 2 of an optional structure of a metadata migration apparatus in a distributed system according to an embodiment of the present invention;
图5是根据本发明实施例的分布式系统中元数据的迁移装置可选结构框图三;5 is a block diagram 3 of an optional structure of a metadata migration apparatus in a distributed system according to an embodiment of the present invention;
图6是根据本发明可选实施例的元数据在元数据服务器群集重新分布的执行顺序 示意图;6 is an execution sequence of metadata redistribution in a metadata server cluster in accordance with an alternate embodiment of the present invention. schematic diagram;
图7是根据本发明可选实施例的2个元数据群集之间的元数据调整方法流程图;7 is a flow chart of a metadata adjustment method between two metadata clusters in accordance with an alternative embodiment of the present invention;
图8是根据本发明可选实施例的元数据重新分布的方法流程图;8 is a flow chart of a method for metadata redistribution in accordance with an alternate embodiment of the present invention;
图9是根据本发明可选实施例的待迁移元数据从迁出群集到迁入群集的复制方法的流程图;9 is a flowchart of a method for copying metadata to be migrated from a migration cluster to an migration cluster according to an alternative embodiment of the present invention;
图10是根据本发明可选实施例的数据重新分布的复制完成的方法流程图;10 is a flow chart of a method for completing replication of data redistribution in accordance with an alternative embodiment of the present invention;
图11是根据本发明可选实施例的回退处理方法的流程图;11 is a flowchart of a fallback processing method according to an alternative embodiment of the present invention;
图12是根据本发明可选实施例的元数据的迁移完成处理方法流程图。FIG. 12 is a flowchart of a method for processing migration completion of metadata according to an alternative embodiment of the present invention.
具体实施方式detailed description
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, may differ from this The steps shown are performed in the order shown or described.
本实施例提供了一种分布式系统中元数据的迁移方法,图1是根据本发明实施例的分布式系统中元数据的迁移方法的流程图,如图1所示,该流程包括以下步骤:This embodiment provides a method for migrating metadata in a distributed system. FIG. 1 is a flowchart of a method for migrating metadata in a distributed system according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps. :
步骤S102:接收来自分布式系统的通知消息;Step S102: Receive a notification message from a distributed system.
其中,该通知消息用于指示元数据分布路由规则发生了变化;The notification message is used to indicate that the metadata distribution routing rule has changed;
步骤S104:依据通知消息比较调整前与调整后的元数据分布路由规则,得到元数据在元数据服务器集群的节点之间的迁移数据流;Step S104: Comparing the pre-adjusted and adjusted metadata distribution routing rules according to the notification message to obtain a migration data flow of metadata between nodes of the metadata server cluster;
其中,迁移数据流用于指示元数据的迁移过程,迁移数据流包括:第一服务器集群中迁出元数据的迁出节点、第二服务器集群中迁入元数据的迁入节点、迁移涉及的元数据的内容;The migration data flow is used to indicate the migration process of the metadata, and the migration data flow includes: the migration node that migrates the metadata in the first server cluster, the migration node that migrates the metadata in the second server cluster, and the element involved in the migration. The content of the data;
步骤S106:依据迁移数据流通知迁出节点将元数据的内容复制到迁入节点中。Step S106: The migration node is notified according to the migration data stream to copy the content of the metadata to the migration node.
通过本实施例,采用在接收到分布式系统中的元数据的分布路由规则发生变化之后,通过比较调整前与调整后的元数据分布路由规则,得到元数据在元数据服务器集群的节点之间的迁移数据流,据迁移数据流通知迁出节点将元数据的内容复制到迁入 节点中的方式,即通过用于指示元数据的迁移过程的移数据流,将需要迁移的元数据复制到需要迁入的节点,实现元数据的迁移,同时也不用改变其他元数据的路由规则,解决了相关技术中调整元数据路由规则时,需要将部分元数据拆分或迁移到其它一个或多个元数据服务器群集,并同步修改受影响的元数据路由规则的问题,进而达到了元数据平滑移动的效果。In this embodiment, after the distribution routing rule of the metadata received in the distributed system is changed, the metadata is distributed between the nodes of the metadata server cluster by comparing the pre-adjusted and adjusted metadata distribution routing rules. The migrated data stream, according to the migrated data stream, informs the evicted node to copy the contents of the metadata to the migrated The way in the node, that is, through the mobile data flow for indicating the migration process of the metadata, the metadata that needs to be migrated is copied to the node that needs to be migrated, the metadata is migrated, and the routing rules of other metadata are not changed. When the adjustment of the metadata routing rule in the related art is solved, the partial metadata needs to be split or migrated to another one or more metadata server clusters, and the affected metadata routing rules are synchronously modified, thereby achieving the meta The effect of smooth data movement.
在本实施例的可选实施例中,在上述步骤S106中依据迁移数据流通知迁出节点将元数据的内容复制到迁入节点之前,本实施例还可以包括:在依据迁移数据流通知迁出节点将元数据的内容复制到迁入节点之前,本实施例可以包括如下两种方式:In an optional embodiment of the present embodiment, before the migrating data stream is notified to the migrating node to copy the content of the metadata to the migrating node according to the migrating data stream, the embodiment may further include: Before the egress node copies the content of the metadata to the embedding node, the embodiment may include the following two methods:
方式一:记录迁出元数据的迁移启动信息,其中,启动信息包括:启动时间、分布式系统在启动数据迁移前最近一次的写操作信息,其中,写操作信息包括:写操作发生的时间、写操作的内容、写操作的序号;Method 1: Recording the migration startup information of the migrated metadata, where the startup information includes: a startup time, a last write operation information of the distributed system before starting the data migration, wherein the write operation information includes: a time when the write operation occurs, The content of the write operation, the serial number of the write operation;
此外,在迁移数据流启动后,并在复制元数据到迁入节点前,方法还包括:在记录元数据的迁移启动信息后,将在复制元数据到迁入节点前的所有写操作信息写入到同步队列;In addition, after the migration data stream is started, and before the metadata is copied to the migration node, the method further includes: after recording the migration startup information of the metadata, writing all the write operation information before copying the metadata to the migration node. Enter the synchronization queue;
方式二:通知迁出节点申请第一锁,其中,第一锁用于锁住迁出节点中所有迁移数据的写操作。Manner 2: The mobile node is notified to apply for the first lock, where the first lock is used to lock the write operation of all the migrated data in the migrated node.
此外,在通知迁出节点申请第一锁后,并在复制元数据到迁入节点前,方法还包括:禁止迁出节点执行写操作。In addition, after notifying the migrating node to apply for the first lock, and before copying the metadata to the migrating node, the method further includes: prohibiting the escaping node from performing a write operation.
而在本实施例的一个可选实施方式中,基于上述方式一,在依据迁移数据流通知迁出节点将元数据的内容复制到迁入节点之后,本实施例的方法还可以包括:通知迁出节点申请第二锁,其中,第二锁用于锁住迁出的元数据的写操作;并向迁入节点发送同步队列中的写操作信息;在元数据的内容复制完成后,通知删除迁出节点中已复制的元数据,并释放第二锁。In an optional implementation manner of this embodiment, the method in this embodiment may further include: notifying the migration after the content of the metadata is copied to the migration node according to the migration data flow. The exit node applies for the second lock, wherein the second lock is used to lock the write operation of the migrated metadata; and the write operation information in the synchronization queue is sent to the migrated node; after the content copy of the metadata is completed, the notification is deleted. Migrate the copied metadata in the node and release the second lock.
基于上述方式二,在依据迁移数据流通知迁出节点将元数据的内容复制到迁入节点之后,本实施例的方法还可以包括:通知删除迁出节点中已复制的元数据,并释放第一锁。The method of this embodiment may further include: notifying the deletion of the copied metadata in the migrated node, and releasing the first, after the second embodiment is configured to notify the migrating node to copy the content of the metadata to the migrating node according to the migrating data stream. A lock.
也即,通过上述方式一同步需要迁移的元数据之后锁住同步之后的对迁移的元数据的写操作,或者通过上述方式二锁住迁出节点所有迁移数据的写操作,进而可以阻止迁出节点继续处理针对待迁移元数据或全部数据的写操作。也就是说,在迁移之前锁住需要迁移的元数据的写操作或者锁住迁出节点所有迁移数据的写操作,进而可以实现元数据更加平滑的迁移。需要说明的是,上述两种方式仅仅是本发明实施例的可选实施方式,并不构成对本发明的限定。 That is, in the above manner, after the metadata that needs to be migrated is synchronized, the write operation of the migrated metadata after the synchronization is locked, or the write operation of all the migrated data of the migrated node is locked by the above manner, thereby preventing the migration. The node continues to process writes for the metadata to be migrated or all of the data. That is to say, before the migration, the write operation of the metadata to be migrated or the write operation of all the migrated data of the migrated node is locked, thereby achieving a smoother migration of the metadata. It should be noted that the above two modes are merely optional embodiments of the embodiments of the present invention, and do not constitute a limitation of the present invention.
针对本实施例中上述通知删除迁出节点中已复制的元数据的内容的方式,可以通过如下方式来实现,下面将通过本实施例中的两种可选实施方式进行举例说明:The manner of deleting the content of the copied metadata in the migrating node in the foregoing embodiment may be implemented in the following manner. The following two exemplary implementation manners in this embodiment are used to illustrate:
可选实施方式一:在迁入节点和迁出节点完成数据复制时,通知分布式系统当前数据迁移流复制的完成,并接收通知删除迁出节点中已复制的元数据的指示。Optional Embodiment 1: When the mobile node and the egress node complete data replication, notify the distributed system of the completion of the current data migration flow replication, and receive an indication to delete the copied metadata in the migrated node.
可选实施方式二:向迁出节点和迁入节点发送用于查询迁移数据流的迁移状态的查询指令;接收迁出节点和迁入节点发送的响应于查询指令的响应指令,其中,响应指令用于指示迁移数据流迁移状态;在响应指令指示迁移数据流迁移成功时,通知分布式系统启用新的元数据分布路由规则,并通知迁出节点删除元数据的内容。Optional implementation manner 2: sending, to the migrating node and the migrating node, a query instruction for querying a migration state of the migrated data stream; receiving a response instruction sent by the migrating node and the migrating node in response to the query instruction, where the response instruction It is used to indicate the migration data flow migration state; when the response instruction indicates that the migration data flow migration is successful, the distributed system is notified to enable the new metadata distribution routing rule, and the migration node is notified to delete the content of the metadata.
需要说明的是,上述两种可选实施方式中,可选实施方式一为迁入和迁出节点完成数据复制后会主动通知复制完成的方式;可选实施方式二维系统主动查询复制的完成状态的方式。It should be noted that, in the foregoing two optional implementation manners, the optional implementation manner 1 is a method for actively informing the replication completion after the data migration and the migration node completes the data replication; the optional implementation manner is completed by the two-dimensional system active query replication. The way the state is.
此外,在上述可选实施方式二中在查询指令指示迁移数据流迁移异常时,本实施例的方法还包括:需要向迁出节点和迁入节点发送回退请求,其中,回退请求用于指示通知迁出节点和迁入节点终止迁移流数据的复制操作,以及通知迁入节点删除已复制的元数据的内容。In addition, in the foregoing optional embodiment 2, when the query instruction indicates that the migration data stream migration is abnormal, the method in this embodiment further includes: sending a fallback request to the egress node and the ingress node, where the back request is used for Instructing the eviction node and the migrating node to terminate the copy operation of the migrating stream data, and notifying the migrating node to delete the content of the copied metadata.
可选地,对于本实施例中涉及到的第一服务集群或第二服务集群可同时作为多个迁移数据流的迁入和迁出服务集群。Optionally, the first service cluster or the second service cluster involved in this embodiment may serve as an inbound and outbound service cluster of multiple migrated data flows at the same time.
在本实施例中还提供了一种分布式系统中元数据的迁移装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”“单元”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device for migrating metadata in a distributed system is also provided. The device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" "unit" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的分布式系统中元数据的迁移装置结构框图,如图2所示,该装置包括:接收模块22,设置为接收来自分布式系统的通知消息,其中,该通知消息用于指示元数据分布路由规则发生了变化;比较模块24,与接收模块22耦合连接,设置为依据通知消息比较调整前与调整后的元数据分布路由规则,得到元数据在元数据服务器集群的节点之间的迁移数据流,其中,迁移数据流用于指示元数据的迁移过程,迁移数据流包括:第一服务器集群中迁出元数据的迁出节点、第二服务器集群中迁入元数据的迁入节点、元数据的内容;第一复制模块26,与比较模块24耦合连接,设置为依据迁移数据流通知迁出节点将元数据的内容复制到迁入节点中。2 is a structural block diagram of a metadata migration apparatus in a distributed system according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a receiving module 22 configured to receive a notification message from a distributed system, where the notification is The message is used to indicate that the metadata distribution routing rule has changed; the comparing module 24 is coupled to the receiving module 22, and is configured to compare the pre-adjusted and adjusted metadata distribution routing rules according to the notification message to obtain metadata in the metadata server cluster. The migrated data stream between the nodes, wherein the migrated data stream is used to indicate the migration process of the metadata, and the migrated data stream includes: the migrated node that migrates the metadata in the first server cluster, and the migrated metadata in the second server cluster The content of the migration node and the metadata; the first replication module 26 is coupled to the comparison module 24, and is configured to notify the migration node to copy the content of the metadata to the migration node according to the migration data flow.
图3是根据本发明实施例的分布式系统中元数据的迁移装置可选结构框图一,如图3所示,在迁出节点将元数据的内容复制到迁入节点中之前,该装置还可以包括: 记录模块32,与比较模块24耦合连接,设置为记录迁出元数据的迁移启动信息,其中,启动信息包括:启动时间、分布式系统在启动数据迁移前最近一次的写操作信息,其中,写操作信息包括:写操作发生的时间、写操作的内容、写操作的序号;在迁移数据流启动后,并在复制元数据到迁入节点前,该装置还可以包括:第二复制模块34,与记录模块32耦合连接,设置为在记录元数据的迁移启动信息后,将在复制元数据到迁入节点前的所有写操作信息写入到同步队列。3 is a block diagram of an optional structure of a metadata migration apparatus in a distributed system according to an embodiment of the present invention. As shown in FIG. 3, before the migration node copies the content of the metadata to the migration node, the apparatus further Can include: The recording module 32 is coupled to the comparison module 24 and configured to record migration boot information of the migrated metadata, where the startup information includes: a startup time, and a last write operation information of the distributed system before starting the data migration, where The operation information includes: a time when the write operation occurs, a content of the write operation, and a sequence number of the write operation; after the migration of the data stream is started, and before the metadata is copied to the migrating node, the device may further include: a second copy module 34, Coupled with the recording module 32, it is set to write all the write operation information before copying the metadata to the migrating node to the synchronization queue after recording the migration start information of the metadata.
在本实施例中,在迁出节点将元数据的内容复制到迁入节点中之后,该装置包括:第二通知模块36,与第二复制模块34耦合连接并与第一复制模块耦合连接,设置为通知迁出节点申请第二锁,其中,第二锁用于锁住迁出的元数据的写操作;并向迁入节点发送同步队列中的写操作信息;在元数据的内容复制完成后,通知删除迁出节点中已复制的元数据,并释放第二锁。In this embodiment, after the migrating node copies the content of the metadata to the migrating node, the device includes: a second notification module 36 coupled to the second replication module 34 and coupled to the first replication module. Set to notify the eviction node to apply for the second lock, wherein the second lock is used to lock the write operation of the migrated metadata; and send the write operation information in the synchronization queue to the migrating node; the content of the metadata is copied. After that, the notification deletes the copied metadata in the migrated node and releases the second lock.
可选地,该第二通知模块36包括:第一通知单元,设置为在迁入节点和迁出节点完成数据复制时,通知分布式系统当前数据迁移流复制的完成;第一接收单元,设置为接收通知删除迁出节点中已复制的元数据的指示;Optionally, the second notification module 36 includes: a first notification unit, configured to notify the distributed system of completion of current data migration flow replication when the migration node and the migration node complete data replication; the first receiving unit, setting An indication to delete the copied metadata in the evicted node in order to receive the notification;
在本实施例的另一个可选结构框图中,图4是根据本发明实施例的分布式系统中元数据的迁移装置可选结构框图二,如图4所示,在迁出节点将元数据的内容复制到迁入节点中之前,该装置还可以包括:第一通知模块42,与比较模块24耦合连接,设置为通知迁出节点申请第一锁,其中,第一锁用于锁住迁出节点中所有迁移数据的写操作;在通知迁出节点申请第一锁后,并在复制元数据到迁入节点前,该装置还可以包括:禁止模块44,与第一通知模块42耦合连接,设置为禁止迁出节点执行写操作。In another optional structural block diagram of the embodiment, FIG. 4 is a block diagram 2 of an optional structure of a metadata migration apparatus in a distributed system according to an embodiment of the present invention. As shown in FIG. 4, the metadata is removed from the node. Before the content is copied to the migrating node, the device may further include: a first notification module 42 coupled to the comparison module 24, configured to notify the escaping node to apply for the first lock, wherein the first lock is used to lock the migrating The write operation of all the migrated data in the egress node; after notifying the egress node to apply for the first lock, and before copying the metadata to the embedding node, the device may further include: a disabling module 44 coupled to the first notification module 42 , set to prohibit the move out node from performing write operations.
在迁出节点将元数据的内容复制到迁入节点中之后,装置还可以包括:第三通知模块46,与禁止模块44耦合连接,设置为通知删除迁出节点中已复制的元数据,并释放第一锁。After the migrating node copies the content of the metadata to the migrating node, the device may further include: a third notification module 46 coupled to the forbidden module 44, configured to notify the deletion of the copied metadata in the migrating node, and Release the first lock.
图5是根据本发明实施例的分布式系统中元数据的迁移装置可选结构框图三,如图5所示,第三通知模块46包括:第一发送单元52,设置为向迁出节点和迁入节点发送用于查询迁移数据流的迁移状态的查询指令;第二接收单元54,与第一发送单元52耦合连接,设置为接收迁出节点和迁入节点发送的响应于查询指令的响应指令,其中,响应指令用于指示迁移数据流迁移状态;第二通知单元56,与第二接收单元54耦合连接,设置为在响应指令指示迁移数据流迁移成功时,通知分布式系统启用新的元数据分布路由规则,并通知迁出节点删除元数据的内容。FIG. 5 is a block diagram 3 of an optional structure of a metadata migration apparatus in a distributed system according to an embodiment of the present invention. As shown in FIG. 5, the third notification module 46 includes: a first sending unit 52, configured to move to and from the node. The migrating node sends a query instruction for querying the migration status of the migrating data stream; the second receiving unit 54 is coupled to the first sending unit 52, and is configured to receive the response sent by the migrating node and the migrating node in response to the query instruction. An instruction, wherein the response instruction is used to indicate a migration data flow migration state; the second notification unit 56 is coupled to the second receiving unit 54 and configured to notify the distributed system to enable the new one when the response instruction indicates that the migration data flow migration is successful. Metadata distributes routing rules and notifies the evicted node to delete the contents of the metadata.
而在查询指令指示迁移数据流迁移异常时,该第三通知模块46还可以包括:第二 发送单元58,与第二接收单元54耦合连接,设置为在查询指令指示迁移数据流迁移异常时,向迁出节点和迁入节点发送回退请求,其中,回退请求用于指示通知迁出节点和迁入节点终止迁移流数据的复制操作,以及通知迁入节点删除已复制的元数据的内容。When the query instruction indicates that the migration data flow is abnormal, the third notification module 46 may further include: The sending unit 58 is coupled to the second receiving unit 54 and configured to send a fallback request to the migrating node and the migrating node when the query instruction indicates that the migration data flow is abnormal, wherein the back request is used to indicate the notification migrating The node and the ingress node terminate the copy operation of the migrated stream data, and notify the inmigrated node to delete the contents of the copied metadata.
需要说明的是,对于本实施例迁移装置中涉及到的第一服务集群或第二服务集群可同时作为多个迁移数据流的迁入和迁出服务集群。It should be noted that, for the first service cluster or the second service cluster involved in the migration apparatus of this embodiment, the migration and migration service clusters of multiple migration data flows can be simultaneously performed.
下面结合附图以及可选实施例对本发明进行举例说明。The invention is illustrated by the following figures in conjunction with the accompanying drawings and alternative embodiments.
本可选实施例提供了一种基于规划调整分布式系统中元数据分布的方法,图6是根据本发明可选实施例的元数据在元数据服务器群集重新分布的执行顺序示意图,如图6所示,按照执行的业务逻辑先后顺序,该方法的顺序包括:The present embodiment provides a method for adjusting metadata distribution in a distributed system based on a plan. FIG. 6 is a schematic diagram of an execution sequence of metadata redistribution in a metadata server cluster according to an alternative embodiment of the present invention, as shown in FIG. As shown, the order of the methods is in accordance with the order of execution of the business logic:
步骤S1、元数据路由重新分布后的准备工作;Step S1: preparation after redistribution of the metadata route;
步骤S2、待迁移元数据从迁出群集到迁入群集的复制;Step S2: copying the metadata to be migrated from the migrated cluster to the migrated cluster;
步骤S3、元数据重新分布的数据复制完成;Step S3, the data reproduction of the metadata redistribution is completed;
步骤S4、元数据重新分布的完成;Step S4, completion of metadata redistribution;
步骤S5、在上述步骤中可能出现的异常流程或人工干预时,触发系统执行回退操作。Step S5: When an abnormal process or manual intervention may occur in the above steps, the system is triggered to perform a rollback operation.
下面针对上述步骤S1~S5进行一一的解释,首先针对本可选实施例中上述元数据重新分布的准备工作的过程进行相应的解释;The following steps are explained for the above steps S1 to S5. First, the process of preparing the metadata redistribution in the alternative embodiment is explained correspondingly;
元数据重新分布的准备工作可以在每次管理员调整元数据分布规则后自动/手工触发,也可以由管理员设置执行计划在预定的时候自动执行。The preparation of metadata redistribution can be automatically/manually triggered each time the administrator adjusts the metadata distribution rules, or can be automatically executed by the administrator when the execution plan is scheduled.
本可选实施例在元数据分配规则发生变化后,分布式系统中存在一个元数据重新分布的控制装置(其后简称装置),此装置将对比变化前与变化后的元数据分布路由规则,得到元数据在元数据服务器群集之间的迁移数据流集合,每个元数据迁移数据流用于定义一个元数据的迁移过程,该迁移数据流中包括:元数据迁出服务器群集,迁入服务器群集以及迁移元数据的内容。由于元数据分布的调整可能涉及同时向一个元数据服务器群集迁入部分数据和迁出数据,因此一个元数据服务器群集可能同时作为某一个迁移数据流的迁入服务器群集和另外一个迁移数据流的迁出服务器群集。In the optional embodiment, after the metadata distribution rule is changed, there is a metadata redistribution control device (hereinafter referred to as a device) in the distributed system, and the device compares the pre-change and changed metadata distribution routing rules. Obtaining a collection of metadata flows between metadata server clusters, each metadata migration data flow is used to define a metadata migration process, including: metadata migration out of the server cluster, migration into the server cluster And the content of the migration metadata. Since the adjustment of metadata distribution may involve moving part of the data and migrating data to a cluster of metadata servers at the same time, a cluster of metadata servers may serve as both a migration server cluster and another migration data stream for one migration data stream. Move out of the server cluster.
确定迁入迁出元数据群集后,装置针对每个迁移数据流,从迁出群集中选择一个可以处理写操作的正常服务器作为迁出节点,从迁入群集中选择一个可以处理写操作的正常服务器作为迁入节点。 After determining the migration to and from the metadata cluster, the device selects a normal server that can handle the write operation from the migrated cluster as the migration node for each migrated data stream, and selects one that can handle the write operation from the migrated cluster. The server acts as an ingress node.
所有迁移数据流的迁出节点和迁入节点确定后,装置将控制每个元数据迁移流的迁入和迁出节点启动数据迁移流程,或按照操作员的指示取消操作。After all the migrated nodes and the migrated nodes of the migrated data stream are determined, the device controls the inbound and outbound nodes of each metadata migration flow to start the data migration process, or cancels the operation according to the operator's instructions.
针对本可选实施例中待迁移元数据从迁出群集到迁入群集的复制的过程:For the process of copying the metadata to be migrated from the migrated cluster to the migrated cluster in this alternative embodiment:
每个元数据迁移数据流,当元数据重新分布的控制装置通知迁出和迁入服务器启动元数据分布调整后,为实现系统的平滑迁移,元数据迁出服务器可记录启动数据复制的开始状态,例如开始时间,开始日志序号等信息,并将开始操作后发生的针对待迁移数据或本节点的所有写操作记录到同步队列中。此后元数据将持续从迁出节点流向迁入节点,当待迁移的元数据复制到迁入节点并保存成功后,迁入节点将通过本群集内部署的数据同步功能自动同步变化数据到本群集内的其他服务器节点;Each metadata migration data stream, when the metadata redistribution control device notifies the migration and migration server to start the metadata distribution adjustment, in order to achieve smooth migration of the system, the metadata migration server can record the start state of the startup data replication. For example, the start time, start the log sequence number and other information, and record all the write operations for the data to be migrated or the local node that occurred after the start of the operation to the synchronization queue. After that, the metadata will continue to flow from the migrating node to the migrating node. When the metadata to be migrated is copied to the migrating node and saved successfully, the migrating node will automatically synchronize the changed data to the cluster through the data synchronization function deployed in the cluster. Other server nodes within;
当迁入服务器判断待迁移的数据全部复制完成后,可向系统申请写操作锁,锁定迁移的数据或整个节点的写操作,阻止迁出元数据服务器继续处理针对待迁移元数据或全部数据的写操作,之后开始同步缓存在同步队列中的操作信息。After the migration server determines that all the data to be migrated is copied, the system may apply for a write operation lock, lock the migrated data or the write operation of the entire node, and prevent the migrated metadata server from continuing to process the metadata or all the data to be migrated. Write operation, then start synchronizing the operation information cached in the synchronization queue.
当迁出和迁入服务器确定迁出服务器中的同步队列同步完成后,迁入服务器向元数据重新分布的控制装置上报当前处理的元数据迁移数据流。迁出元数据服务器释放本服务器申请的写操作锁,并向元数据重新分布的控制装置上报当前处理的元数据迁移数据流完成。After the migration and migration server determines that the synchronization queue synchronization in the migration server is completed, the migration server reports the currently processed metadata migration data flow to the control device for redistributing the metadata. The migration metadata server releases the write operation lock applied by the server, and reports the metadata migration data stream currently processed to the control device for redistributing the metadata.
针对本可选实施例中待迁移元数据的数据复制完成的过程进行相应的解释:The process of data replication completion of the metadata to be migrated in this alternative embodiment is interpreted accordingly:
装置收到元数据服务器通知后更新元数据迁移数据流的状态。为避免由于网络瞬时故障而引起的消息丢失,元数据重新分布的控制装置可启动查询机制,向涉及的元数据服务器查询每个迁移数据流的迁移状态。The device updates the state of the metadata migration data stream after receiving the metadata server notification. In order to avoid message loss due to transient failure of the network, the metadata redistribution control device may initiate a query mechanism to query the involved metadata server for the migration status of each migrated data stream.
当元数据重新分布的控制装置确认本次调整所涉及的元数据迁移数据流均迁移成功后,即可断定待迁移元数据的数据复制完成。当其中任何一个元数据迁移数据流执行异常终止后元数据重新分布的控制装置即判定本次元数据调整失败,系统可进入退回流程,或等待人工干预并解决故障后继续数据复制流程。After the metadata redistribution control device confirms that the metadata migration data flow involved in the adjustment is successfully migrated, it can be concluded that the data replication of the metadata to be migrated is completed. When any one of the metadata migration data streams performs abnormal termination of the metadata, the control device determines that the current metadata adjustment fails, and the system may enter the return flow, or wait for manual intervention and resolve the failure to continue the data replication process.
针对本可选实施例中涉及到的元数据重新分布的数据迁移完成实现过程进行相应的解释:The data migration completion implementation process for the metadata redistribution involved in the alternative embodiment is interpreted accordingly:
当元数据重新分布的控制装置确认本次调整涉及的所有元数据迁移数据流均完成后,系统将执行如下操作:After the metadata redistribution control device confirms that all metadata migration data flows involved in this adjustment are completed, the system performs the following operations:
步骤A:向系统内负责元数据路由的网关或客户端发送通知,通知启用新的元数据分布、路由规则。 Step A: Send a notification to the gateway or client responsible for metadata routing in the system to notify the new metadata distribution and routing rules.
步骤B:向数据迁出群集发送通知消息,通知迁出元数据群集删除已复制并待删除的迁移元数据。Step B: Send a notification message to the data migration out cluster to notify the migrated metadata cluster to delete the migrated metadata that has been copied and is to be deleted.
处理元数据路由的网关、客户端以及迁出服务器删除数据结束后向元数据重新分布的控制装置确认处理结果,本次元数据分布调整正确结束。The gateway that processes the metadata routing, the client, and the control device that redistributes the metadata after the data is deleted by the migration server confirms the processing result, and the current metadata distribution adjustment ends correctly.
为提供系统稳定性,装置可启动定时查询机制向处理元数据路由的网关、客户端以及迁出服务器查询处理状态。To provide system stability, the device can initiate a timing query mechanism to query the processing status of the gateway, client, and eviction server that handles metadata routing.
针对本可选实施例中的元数据重新分布的回退实现过程进行相应的解释:The fallback implementation process of the metadata redistribution in the alternative embodiment is interpreted accordingly:
元数据重新分布过程中在如下场景可触发回退操作,条件判断不分先后:In the process of redistribution of metadata, the rollback operation can be triggered in the following scenarios, and the condition is judged in no particular order:
场景一:待迁移的元数据复制过程中,针对元数据迁移数据流,无法找合适的迁入和迁出元数据服务器。Scenario 1: During the metadata replication process to be migrated, it is impossible to find a suitable migration and migration metadata server for the metadata migration data stream.
场景二:待迁移的元数据复制过程中,数据复制失败。Scenario 2: During the metadata replication process to be migrated, data replication fails.
场景三:元数据重新分布控制装置在元数据重新分布过程中与至少一个迁入,迁出元数据服务器群集失去通讯。Scenario 3: The metadata redistribution control device loses communication with the at least one migrated, migrated metadata server cluster during the metadata redistribution process.
场景四:人工操作设置操作回退。Scene 4: Manual operation setting operation is rolled back.
其中,回退操作的执行可支持如下方式:(1):系统立即执行;(2):申请人工干预,需要人工选择执行回退或选择继续尝试直到故障消除。The execution of the rollback operation can support the following methods: (1): the system executes immediately; (2): applying for manual intervention, manually selecting to perform the rollback or selecting to continue the attempt until the fault is eliminated.
回退操作启动后,元数据重新分布的控制装置向每个元数据迁移数据流涉及的迁入和迁出服务器发送回退请求,当收到回退请求后迁入和迁出服务器执行如下操作:After the rollback operation is started, the metadata redistribution control device sends a fallback request to the inbound and outbound servers involved in each metadata migration data flow, and moves into and out of the server after receiving the fallback request to perform the following operations. :
迁出服务器:按照要求终止对应的元数据迁移数据流的复制流程,清空同步队列。如已申请写操作锁,则释放操作锁。Move out of the server: terminate the replication process of the corresponding metadata migration data stream as required, and clear the synchronization queue. If you have applied for a write lock, release the operation lock.
迁入服务器:按照要求停止对应的元数据迁移数据流复制过程,删除已经复制的数据。Move to the server: Stop the corresponding metadata migration data stream replication process as required, and delete the copied data.
通过本可选实施例,当系统需要调整元数据的分布规则时,基于对比更新前后的元数据路由规则变化,确定需要执行数据迁移的元数据服务器群集,协作和控制元数据在元数据群集之间的迁移,实现元数据分布随着路由信息的调整而在系统中的平滑迁移。同时可以在控制系统调整完成后自动切换到新的元数据分布规则避免业务中断。With the optional embodiment, when the system needs to adjust the distribution rule of the metadata, the metadata server cluster that needs to perform data migration is determined based on the change of the metadata routing rules before and after the comparison update, and the collaboration and control metadata are in the metadata cluster. The migration between the metadata enables smooth distribution of the metadata distribution in the system as the routing information is adjusted. At the same time, after the control system adjustment is completed, it can automatically switch to the new metadata distribution rule to avoid business interruption.
下面结合附图和具体实施例对本可选实施例进行详细的说明;The optional embodiment will be described in detail below with reference to the accompanying drawings and specific embodiments;
实施例一 Embodiment 1
图7是根据本发明可选实施例的2个元数据群集之间的元数据调整方法流程图,如图7所示,以2个元数据群集的系统为例,基于规划的元数据调整方法的步骤包括:7 is a flowchart of a metadata adjustment method between two metadata clusters according to an alternative embodiment of the present invention. As shown in FIG. 7, a system based on two metadata clusters is used as an example, and a metadata adjustment method based on a plan is used. The steps include:
步骤S702~S704:客户端或负责分发客户消息的网关依照元数据分布的规则,访问元数据群集1和元数据群集2中的服务器节点。Steps S702-S704: The client or the gateway responsible for distributing the client message accesses the server node in the metadata cluster 1 and the metadata cluster 2 according to the rules of metadata distribution.
步骤S706:系统管理员调整了元数据的分布规则,并根据系统触发的方式:自动、手动、定时在触发后;由分布规则调整后向系统中元数据重新分布装置提起元数据重新分布请求。Step S706: The system administrator adjusts the distribution rule of the metadata, and according to the manner triggered by the system: automatic, manual, and timing are triggered; after the distribution rule is adjusted, the metadata redistribution request is initiated to the metadata redistribution device in the system.
步骤S708:元数据重分布装置分析调整前和调整后的元数据分布规则,得到本次调整的变化内容:确认将部分元数据服务器群集1中的元数据调整到元数据服务器群集2中。同时,元数据重分布装置根据服务器的状态选取元数据服务器1-1作为迁出服务器,元数据服务器2-1作为迁入服务器。Step S708: The metadata redistribution device analyzes the pre-adjusted and adjusted metadata distribution rules to obtain the changed content of the current adjustment: confirming that the metadata in the partial metadata server cluster 1 is adjusted into the metadata server cluster 2. At the same time, the metadata redistribution device selects the metadata server 1-1 as the migration server according to the state of the server, and the metadata server 2-1 serves as the migration server.
步骤S710:元数据重分布装置请求元数据的迁出服务器需要执行数据迁出操作;Step S710: The metadata re-distribution device requests the migration server of the metadata to perform a data migration operation;
步骤S712:元数据重分布装置请求元数据的迁入服务器需要执行数据迁出操作;Step S712: The metadata re-distribution device requests the migration server of the metadata to perform a data migration operation;
步骤S714:元数据启动迁移,迁入和迁出服务器将按照元数据重分布装置给出的指示,将待迁移的元数据从迁出服务器向迁入服务器复制;Step S714: The metadata starts migration, and the migration and migration server will copy the metadata to be migrated from the migration server to the migration server according to the instruction given by the metadata redistribution device;
步骤S716:迁移的元数据进入迁入服务器并成功保存后,元数据迁入服务器将通过本群集中部署的数据同步机制将迁入的数据同步到本群集的其他节点;Step S716: After the migrated metadata enters the migration server and is successfully saved, the metadata migration server synchronizes the migrated data to other nodes of the cluster through the data synchronization mechanism deployed in the cluster;
步骤S718:元数据迁出服务器确认待迁出的元数据已完成向迁入元服务器的复制后,向元数据重分布装置上报完成状态;Step S718: The metadata migration server confirms that the metadata to be migrated has been copied to the migration meta-server, and reports the completion status to the metadata redistribution device.
步骤S720:元数据迁出服务器确认待迁入的数据已成功保存并向元数据重分布装置上报完成状态;Step S720: The metadata migration server confirms that the data to be migrated has been successfully saved and reports the completion status to the metadata redistribution device;
步骤S722:元数据重分布装置根据迁入和迁出服务器的确认消息,确认本次调整涉及的元数据迁移操作均已完成,向系统负责路由客户请求到元数据服务器的网关(或客户端,当客户端负责数据路由时)同步变化后的元数据分布规则。Step S722: The metadata redistribution device confirms that the metadata migration operations involved in the adjustment have been completed according to the confirmation message of the migration and migration server, and is responsible for routing the client request to the gateway (or the client of the metadata server). When the client is responsible for data routing, the metadata distribution rules are synchronized.
步骤S724:路由客户请求的元数据服务器的网关或客户端生效新的元数据分布规则;Step S724: The gateway or the client of the metadata server that requests the client request takes effect a new metadata distribution rule;
步骤S726:路由客户请求的元数据服务器的网关或客户端向元数据重分布装置确认新的元数据分布规则生效;Step S726: The gateway or client of the metadata server that requests the client request confirms to the metadata redistribution device that the new metadata distribution rule takes effect;
步骤S728:元数据重分布装置通知迁出服务器删除迁出数据,迁出服务器执行数 据删除操作,删除已迁出的元数据;Step S728: The metadata redistribution device notifies the migration server to delete the migrated data, and the number of the migrated server executions Delete the migrated metadata according to the delete operation;
步骤S730:元数据迁出服务器删除元数据后,通过本群集中部署的数据同步机制实现在本群集中其它服务器删除迁出的元数据;Step S730: After the metadata migration server removes the metadata, the metadata synchronization mechanism deployed in the cluster is used to delete the migrated metadata of other servers in the cluster.
在本实施例一中,元数据重分布装置可通过如下步骤的方式触发回退流程:In the first embodiment, the metadata redistribution device can trigger the rollback process by the following steps:
方式一:在步骤S708:中,元数据重分布装置无法从系统中选择状态正常的迁入或迁出服务器。Manner 1: In step S708:, the metadata redistribution device cannot select a migration or migration server that is in a normal state from the system.
方式二:在步骤S710,S712中,迁出或迁入服务器确认无法执行数据迁移。Manner 2: In step S710, in S712, the migration or migration server confirms that data migration cannot be performed.
方式三:在步骤S714中元数据重分布装置失去与迁入或迁出服务器的通讯。Manner 3: The metadata redistribution device loses communication with the migrating or migrating server in step S714.
方式四:在步骤S718,S720中,迁出服务器上报数据迁出或迁入异常。Manner 4: In step S718, in S720, the migration server reports the data migration or migration abnormality.
方式五:在步骤S720前,操作员提交回退请求。Mode 5: Before step S720, the operator submits a fallback request.
其中,对本实施一涉及的回退流程的处理方式为:A:元数据重分布装置请求元数据迁出服务器停止数据迁出;B:元数据重分布装置请求元数据迁入服务器停止数据迁入,迁入服务器收到请求后将删除已复制的元数据,删除操作将通过本群集内部署的同步机制同步到本群集中的其它服务器。The processing manner of the fallback process related to the first embodiment is: A: the metadata redistribution device requests the metadata migration server to stop the data migration; B: the metadata redistribution device requests the metadata migration server to stop the data migration. The migrated server will delete the copied metadata after receiving the request, and the delete operation will be synchronized to other servers in the cluster through the synchronization mechanism deployed in the cluster.
图8是根据本发明可选实施例的元数据重新分布的方法流程图,如图8所示,本实施例中元数据重新分布的准备工作的步骤包括:FIG. 8 is a flowchart of a method for redistributing metadata according to an alternative embodiment of the present invention. As shown in FIG. 8, the steps of preparing for metadata redistribution in this embodiment include:
步骤S802:修改元数据分布路由规则;Step S802: Modify a metadata distribution routing rule.
步骤S804:向分布式系统确认修改并设置系统的执行方式;Step S804: confirming the modification to the distributed system and setting the execution mode of the system;
其中,该执行方式可以立即执行:系统将立即执行元数据重新分布的准备工作;或,定时执行:管理员希望系统在将来的某个时间点执行;Wherein, the execution mode can be executed immediately: the system will immediately perform preparation for metadata redistribution; or, timing execution: the administrator wants the system to execute at some point in the future;
步骤S806:设置执行方式,立即执行则进入步骤S810,否则进入步骤S808;Step S806: setting the execution mode, if it is executed immediately, proceeding to step S810, otherwise proceeding to step S808;
步骤S808:系统等待管理员设置的时间到达;Step S808: The system waits for the time set by the administrator to arrive;
步骤S810:元数据重新分布控制装置对比变化前后的元数据路由规则,获得需要迁出和迁入的元数据服务器群集信息以及需要调整的元数据信息;Step S810: The metadata redistribution control device compares the metadata routing rules before and after the change, obtains the metadata server cluster information that needs to be moved out and moved in, and the metadata information that needs to be adjusted;
其中,由于元数据的分布规则调整,一个元数据节点在元数据分布调整过程中可能同时本发明在元数据分配规则发生变化后,分布式系统中存在一个元数据重新分布的控制装置,此装置将对比变化前与变化后的元数据分布规则,得到元数据在元数据服务器群集之间的迁移数据流,针对每个元数据迁移数据流,包含迁出服务器的群集 以及迁入服务器的群集。Wherein, due to the adjustment of the distribution rules of the metadata, a metadata node may have a metadata redistribution control device in the distributed system after the metadata distribution rule changes in the metadata distribution adjustment process. The metadata distribution rules before and after the change will be compared to obtain the migrated data stream of the metadata between the metadata server clusters, and the migration data stream for each metadata, including the cluster of the migrated server And the cluster that moved into the server.
步骤S812:元数据重新分布控制装置检查本次调整是否需要执行数据迁移,需要则执行步骤S814,否则执行结束;Step S812: The metadata redistribution control device checks whether the current adjustment needs to perform data migration, and if necessary, performs step S814; otherwise, the execution ends;
步骤S814:分别从每个迁移数据流涉及的迁入和迁出元数据服务器群集中,选择一个能够处理写操作的服务器;Step S814: Select a server capable of processing a write operation from each of the migrated and migrated metadata server clusters involved in each migrated data stream;
其中,元数据重新分布控制装置针对每个迁移数据流,从迁出群集中选择一个可以处理写操作的正常服务器作为迁出节点,从迁出群集中选择一个可以处理写操作的正常服务器作为迁入节点。The metadata redistribution control device selects a normal server that can handle the write operation from the migrated cluster as the migration node for each migrated data stream, and selects a normal server that can handle the write operation from the migrated cluster as the migration. Into the node.
步骤S816:检查所有迁移数据流均操作成功;如果成功,则执行步骤S818;如果失败,则执行步骤S820;Step S816: Check all the migrated data streams are successfully operated; if successful, proceed to step S818; if not, proceed to step S820;
步骤S818:待迁移元数据从迁出群集到迁入群集的复制,执行结束;Step S818: the metadata to be migrated is copied from the migrated cluster to the migrated cluster, and the execution ends;
步骤S820:系统进入回退流程判断。Step S820: The system enters a fallback process judgment.
图9是根据本发明可选实施例的待迁移元数据从迁出群集到迁入群集的复制方法的流程图,如图9所示,该方法的步骤包括:9 is a flowchart of a method for copying metadata to be migrated from an eviction cluster to an migrating cluster according to an alternative embodiment of the present invention. As shown in FIG. 9, the steps of the method include:
步骤S902:元数据重新分布控制装置向每个迁移数据流的迁入和迁出服务器发起数据迁移请求;Step S902: The metadata redistribution control device initiates a data migration request to the migration and migration server of each migration data stream;
步骤S904:迁入服务器记录数据迁移开始,其后所有涉及到待迁移数据的写操作或全部写操作将被记录同步队列;Step S904: the migration to the server records the data migration start, after which all the write operations or all write operations involving the data to be migrated will be recorded in the synchronization queue;
步骤S906:迁入服务器根据指示,将待迁出的元数据发送到迁入服务器;Step S906: The migration server sends the metadata to be migrated to the migration server according to the indication;
其中,数据迁移启动后,元数据将持续从迁出节点拷贝到迁入节点,当拷贝的元数据到达迁入节点并保存成功后,迁入节点将通过本群集内已存在的数据同步功能自动同步变化数据到本群集内的其他服务器节点。由于系统客户端在数据迁移完成后才会生效新的元数据分布规则,为保证业务的连续性,待迁出元数据从迁出元服务器群集复制到迁入元服务器群集后不能立即删除数据,必须得到元数据重新分布控制装置的确认或手工确认后迁出元数据库服务器才能执行删除操作。After the data migration is started, the metadata will continue to be copied from the migrating node to the migrating node. When the copied metadata reaches the migrating node and is saved successfully, the migrating node will automatically pass the existing data synchronization function in the cluster. Synchronize changes to other server nodes within the cluster. The system client does not take effect immediately after the data migration is completed. To ensure the continuity of the service, the metadata to be migrated cannot be deleted immediately after being copied from the migrated meta-server cluster to the migrated meta-server cluster. You must obtain confirmation from the metadata redistribution control device or manually confirm and move out of the metabase server to perform the delete operation.
步骤S908:迁出节点判断待迁移的数据是否全部拷贝到迁入服务器,如果是,则执行S910,否则继续执行步骤S906;Step S908: The egress node determines whether all the data to be migrated is copied to the migration server, and if yes, execute S910, otherwise proceed to step S906;
步骤S910:迁出服务器锁住待迁移元数据的写操作,向迁入服务器同步缓存在同步队列中的操作; Step S910: The migration operation locks the write operation of the metadata to be migrated, and synchronously caches the operation in the synchronization queue to the migration server;
步骤S912:迁出服务器判断同步队列中的操作是否全部拷贝到迁入服务器,如果是,则执行S914:否则继续执行S910;Step S912: The migration server determines whether all the operations in the synchronization queue are copied to the migration server, and if yes, execute S914: otherwise, continue to execute S910;
步骤S914:迁入和迁出服务器向“元数据重新分布控制装置”上报当前处理的元数据迁移数据流完成。Step S914: The migration and migration server reports to the "metadata redistribution control device" that the currently processed metadata migration data stream is completed.
步骤S916:进入“元数据重新分布的数据迁移完成”流程,等待系统判定数据迁移完成;Step S916: Enter the “data migration completion of metadata redistribution” process, and wait for the system to determine that the data migration is completed;
图10是根据本发明可选实施例的数据重新分布的复制完成的方法流程图,如图10所示,该方法的步骤包括:FIG. 10 is a flowchart of a method for completing replication of data redistribution according to an alternative embodiment of the present invention. As shown in FIG. 10, the steps of the method include:
步骤S1002:元数据重新分布的控制装置判定装置内部的事件类型:Step S1002: The control device for metadata redistribution determines the type of event inside the device:
其中,A,如果是迁入和迁出服务器上报的状态信息或状态查询应答消息,则执行步骤S1004;Wherein, A, if it is the status information or status query response message reported by the migrating and migrating server, step S1004 is performed;
B,如果是元数据重新分布的控制装置内部的定时检查任务,则行步骤S1006;B, if it is a timing check task inside the control device of metadata redistribution, then step S1006;
步骤S1004:元数据重新分布的控制装置更新对应的元数据迁移数据流状态,流程结束;Step S1004: The control device of the metadata redistribution updates the state of the corresponding metadata migration data stream, and the process ends;
步骤S1006:元数据重新分布的控制装置需要获得元数据迁移数据流的列表;Step S1006: The control device for metadata redistribution needs to obtain a list of metadata migration data streams;
步骤S1008:元数据重新分布的控制装置检查元数据迁移数据流列表中的每个迁移数据流状态并检查是否存在执行状态异常的数据流;Step S1008: The metadata redistribution control device checks each migrated data flow state in the metadata migration data flow list and checks whether there is a data flow in which the execution state is abnormal;
A,如果存在,则进入步骤S1010的回退流程;A, if yes, proceeds to the fallback process of step S1010;
B,如果没有,则进入步骤S1012继续执行;B, if not, proceed to step S1012 to continue execution;
步骤S1010:装置执行回退流程处理;Step S1010: The device performs a rollback process;
步骤S1012:元数据重新分布的控制装置继续检查是否所有的迁移数据流均成功完成,并根据检查结果进行判断:如果全部执行完成,则进入步骤S1014执行;如果存在未完成的迁移数据流,则进入步骤S1016执行;Step S1012: The control device for metadata redistribution continues to check whether all the migrated data streams are successfully completed, and judges according to the check result: if all the execution is completed, the process proceeds to step S1014; if there is an uncompleted migrated data stream, Go to step S1016 to execute;
步骤S1014:进入“元数据重新分布的数据迁移完成”流程,参见本发明“元数据重新分布的数据迁移完成”流程描述,处理结束;Step S1014: Enter the process of “data migration completion of metadata redistribution”, refer to the description of the “data migration completion of metadata redistribution” process of the present invention, and the process ends;
步骤S1016:检查是否存在元数据迁移数据流的迁入和迁出服务器未能在约定时间向元数据重新分布的控制装置上报状态:如果是,则执行步骤S1018;如果否,则执行步骤S1020; Step S1016: Check whether there is a migration and migration server of the metadata migration data flow failed to report the status to the control device redistributed at the appointed time: if yes, proceed to step S1018; if not, proceed to step S1020;
步骤S1018:元数据重新分布的控制装置向迁移数据流的迁入和迁出服务器发起状态查询请求并等待应答,流程处理结束;Step S1018: The control device for redistributing the metadata initiates a status query request to the migration and migration server of the migrated data stream and waits for the response, and the process ends;
步骤S1020:元数据重新分布的控制装置进入等待状态,等待下一次检查元数据迁移数据流是否全部结束。Step S1020: The control device for metadata redistribution enters a waiting state, waiting for the next check whether the metadata migration data stream is all ended.
需要说明的是上述涉及到的回退处理过程都是涉及到的图11中的回退处理过程。It should be noted that the fallback processing procedure mentioned above is all related to the backoff processing procedure in FIG.
图11是根据本发明可选实施例的回退处理方法的流程图,如图11所示,该回退处理方法的步骤包括:FIG. 11 is a flowchart of a method for processing a rollback according to an alternative embodiment of the present invention. As shown in FIG. 11, the steps of the method for processing the rollback include:
步骤S1102:回退流程启动后首先检查本次回退流程是否为人工干预的回退:如果是,装置将立即执行回退操作,进入步骤S1104执行;如果否,则装置进入S1104执行根据系统的设置决定是立即回退或需要人工确认后才能执行回退。Step S1102: After the rollback process is started, it is first checked whether the current fallback process is a manual intervention rollback: if yes, the device will immediately perform the rollback operation, and proceeds to step S1104; if not, the device proceeds to S1104 to perform the setting according to the system. The decision is to roll back immediately or require manual confirmation before the rollback can be performed.
步骤S1104:装置针对每一个元数据迁移数据流,向其中的迁入和迁出服务器节点发送回退请求;Step S1104: The device migrates the data stream for each metadata, and sends a fallback request to the inbound and outbound server nodes therein;
步骤S1106:迁出服务器收到回退请求后清空复制队列,停止复制数据的发送,如已申请操作锁,则需要执行锁释放操作。迁入服务器收到回退请求后删除已复制的元数据,流程执行结束;Step S1106: After the migration server receives the fallback request, the replication queue is cleared, and the transmission of the replication data is stopped. If the operation lock has been applied, the lock release operation needs to be performed. After the migration server receives the fallback request, the copied metadata is deleted, and the process execution ends;
步骤S1108:装置需要检查系统设置的处理方式:如果系统设置为自动回退,则进入步骤S1104处理;如果系统设置为需要人工干预确认是否回退,则执行步骤S1110;Step S1108: The device needs to check the processing mode of the system setting: if the system is set to automatically roll back, the process proceeds to step S1104; if the system is set to require manual intervention to confirm whether to roll back, step S1110 is performed;
步骤S1110:检查人工干预的结果:如果人工确认结果为执行回退,则进入步骤S1104处理;如果人工确认结果为不执行退回,则装置判断结束,装置会通过图11中的定时检测流程等待故障消除后继续数据迁移。Step S1110: Check the result of the manual intervention: if the manual confirmation result is the execution of the retreat, the process proceeds to step S1104; if the manual confirmation result is that the retreat is not performed, the device judgment ends, and the device waits for the failure through the timing detection process in FIG. Continue the data migration after elimination.
图12是根据本发明可选实施例的元数据的迁移完成处理方法流程图,如图12所示,本实施例的元数据的迁移完成的处理方法的步骤包括:FIG. 12 is a flowchart of a method for processing migration completion of metadata according to an alternative embodiment of the present invention. As shown in FIG. 12, the steps of the method for processing metadata migration completion in this embodiment include:
步骤S1202:装置判断当前是否为定时检查消息:Step S1202: The device determines whether it is a timing check message:
如果是,则进入步骤S1216处理,定时检查系统中使用元数据分布规则的消息分发网关/客户端和涉及的迁移元数据服务器状态。If yes, proceed to step S1216 to periodically check the status of the message distribution gateway/client and the involved migration metadata server in the system using the metadata distribution rules.
如果否,进入步骤S1204处理,通知系统完成元数据迁移操作。If no, the process proceeds to step S1204 to notify the system to complete the metadata migration operation.
步骤S1204:装置向元数据路由网关/系统客户端发出通知,要求其切换为新的元数据路由规则;Step S1204: The device sends a notification to the metadata routing gateway/system client, requesting it to switch to a new metadata routing rule;
步骤S1206:装置判断是否收到元数据路由网关/系统客户端返回的确认消息:如 果是,则执行步骤S1208;如果否,则执行步骤S1214继续等待;Step S1206: The device determines whether a confirmation message returned by the metadata routing gateway/system client is received: If yes, go to step S1208; if no, go to step S1214 to continue waiting;
步骤S1208:向每个元数据迁移流中的迁出服务器发送请求,删除迁移数据。Step S1208: Send a request to the migration server in each metadata migration stream to delete the migration data.
步骤S1210:装置判断迁出服务器是否执行结束并向装置返回处理结果:如果是,执行步骤S1212,如果否,执行步骤S1214;Step S1210: The device determines whether the migration server finishes execution and returns a processing result to the device: if yes, step S1212 is performed, and if no, step S1214 is performed;
步骤S1212:更新元数据操作状态为完成,处理结束;Step S1212: the update metadata operation state is completed, and the process ends;
步骤S1214:设置定时状态查询,查询迁出服务器和元数据分发网关/客户端的执行状态,流程处理结束;Step S1214: setting a timing status query, querying an execution status of the migration server and the metadata distribution gateway/client, and the process ends;
步骤S1216:判断为定时器操作,装置向元数据分发网关/客户端和迁出元数据服务器查询执行操作的结果;Step S1216: determining that the timer is operating, the device queries the metadata distribution gateway/client and the migration metadata server for the result of performing the operation;
步骤S1218:检查元数据分发网关/客户端是否完成路由规则切换:如果是,执行步骤S1220;如果否,处理流程结束;Step S1218: Check whether the metadata distribution gateway/client completes the routing rule switching: if yes, execute step S1220; if not, the processing flow ends;
步骤S1220:检查迁出服务器是否完成迁出数据删除:如果是,执行步骤S1212;如果否,流程处理结束。Step S1220: It is checked whether the migration out server completes the migration data deletion: if yes, step S1212 is performed; if not, the flow processing ends.
通过本可选实施例,当系统需要调整元数据的分布规则时,基于对比更新前后的元数据路由规则变化,确定需要执行数据迁移的元数据服务器群集,协作和控制元数据在元数据群集之间的迁移,实现元数据分布随着路由信息的调整而在系统中的平滑迁移。同时可以在控制系统调整完成后自动切换到新的元数据分布规则避免业务中断。With the optional embodiment, when the system needs to adjust the distribution rule of the metadata, the metadata server cluster that needs to perform data migration is determined based on the change of the metadata routing rules before and after the comparison update, and the collaboration and control metadata are in the metadata cluster. The migration between the metadata enables smooth distribution of the metadata distribution in the system as the routing information is adjusted. At the same time, after the control system adjustment is completed, it can automatically switch to the new metadata distribution rule to avoid business interruption.
以上仅为本发明的可选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above is only an alternative embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
通过本发明,采用在接收到分布式系统中的元数据的分布路由规则发生变化之后,通过比较调整前与调整后的元数据分布路由规则,得到元数据在元数据服务器集群的节点之间的迁移数据流,据迁移数据流通知迁出节点将元数据的内容复制到迁入节点中的方式,即通过用于指示元数据的迁移过程的移数据流,将需要迁移的元数据复制到需要迁入的节点,实现元数据的迁移,同时也不用改变其他元数据的路由规则,解决了相关技术中调整元数据路由规则时,需要将部分元数据拆分或迁移到其它一个或多个元数据服务器群集,并同步修改受影响的元数据路由规则的问题,进而达到了元数据平滑移动的效果。 According to the present invention, after the distribution routing rule of the metadata received in the distributed system is changed, the metadata is distributed between the nodes of the metadata server cluster by comparing the pre-adjusted and adjusted metadata distribution routing rules. Migrating the data stream, according to the way in which the migrated data stream notifies the evicted node to copy the content of the metadata to the embedding node, that is, the metadata that needs to be migrated is copied to the required manner by the mobile data stream for indicating the migration process of the metadata. The migrated node realizes the migration of metadata and does not need to change the routing rules of other metadata. It solves the problem of splitting or migrating part of the metadata to other one or more elements when adjusting the metadata routing rules in the related art. The data server clusters and synchronizes the problem of modifying the affected metadata routing rules, thereby achieving the effect of smooth data movement.

Claims (14)

  1. 一种分布式系统中元数据的迁移方法,包括:A method for migrating metadata in a distributed system, comprising:
    接收来自分布式系统的通知消息,其中,该通知消息用于指示元数据分布路由规则发生了变化;Receiving a notification message from a distributed system, wherein the notification message is used to indicate that a metadata distribution routing rule has changed;
    依据所述通知消息比较调整前与调整后的所述元数据分布路由规则,得到所述元数据在元数据服务器集群的节点之间的迁移数据流,其中,所述迁移数据流用于指示所述元数据的迁移过程,所述迁移数据流包括:第一服务器集群中迁出所述元数据的迁出节点、第二服务器集群中迁入所述元数据的迁入节点、所述元数据的内容;Comparing the pre-adjusted and adjusted metadata distribution routing rules according to the notification message, to obtain a migration data flow of the metadata between nodes of the metadata server cluster, wherein the migration data flow is used to indicate the a migration process of the metadata, the migration data stream includes: an migration node that migrates the metadata in the first server cluster, an migration node that migrates the metadata in the second server cluster, and the metadata content;
    依据所述迁移数据流通知所述迁出节点将所述元数据的内容复制到所述迁入节点中。Notifying the egress node to copy the content of the metadata to the embedding node according to the migrated data stream.
  2. 根据权利要求1所述的方法,其中,在依据所述迁移数据流通知所述迁出节点将所述元数据的内容复制到所述迁入节点之前,所述方法还包括:The method according to claim 1, wherein, before the migrating data stream is notified to the migrating node to copy the content of the metadata to the migrating node, the method further includes:
    记录迁出所述元数据的迁移启动信息,其中,所述启动信息包括:启动时间、所述分布式系统在启动数据迁移前最近一次的写操作信息,其中,所述写操作信息包括:写操作发生的时间、写操作的内容、写操作的序号;或,Recording the migration startup information of the metadata, wherein the startup information includes: a startup time, a last write operation information of the distributed system before starting the data migration, wherein the write operation information includes: writing The time when the operation occurred, the content of the write operation, the serial number of the write operation; or,
    通知所述迁出节点申请第一锁,其中,所述第一锁用于锁住所述迁出节点中所有迁移数据的写操作。Notifying the vacating node to apply for the first lock, wherein the first lock is used to lock a write operation of all migrated data in the migrating node.
  3. 根据权利要求2所述的方法,其中,The method of claim 2, wherein
    在所述迁移数据流启动后,并在复制所述元数据到所述迁入节点前,所述方法还包括:在所述记录所述元数据的所述迁移启动信息后,将在复制所述元数据到所述迁入节点前的所有写操作信息写入到同步队列;或,After the migrating data stream is started, and before copying the metadata to the migrating node, the method further includes: after the migrating boot information of the metadata is recorded, at the copying station All write operation information before the metadata is forwarded to the synchronization node is written to the synchronization queue; or
    在通知所述迁出节点申请第一锁后,并在复制所述元数据到所述迁入节点前,所述方法还包括:禁止所述迁出节点执行所述写操作。After notifying the vacating node to apply for the first lock, and before copying the metadata to the migrating node, the method further includes: prohibiting the escaping node from performing the write operation.
  4. 根据权利要求3所述的方法,其中,在依据所述迁移数据流通知所述迁出节点将所述元数据的内容复制到所述迁入节点之后,包括:The method of claim 3, wherein after the migrating data stream is notified to the migrating node to copy the content of the metadata to the migrating node, the method comprises:
    通知所述迁出节点申请第二锁,其中,所述第二锁用于锁住迁出的所述元数据的写操作;并向所述迁入节点发送所述同步队列中的所述写操作信息;在所述元数据的内容复制完成后,通知删除所述迁出节点中已复制的所述元数据,并释放所述第二锁;或, Notifying the vacating node to apply for a second lock, wherein the second lock is used to lock a write operation of the migrated metadata; and send the write in the synchronization queue to the migrating node After the content of the metadata is copied, the metadata of the copied node is deleted and the second lock is released; or
    通知删除所述迁出节点中已复制的所述元数据,并释放所述第一锁。Notifying the deletion of the metadata copied in the migrating node and releasing the first lock.
  5. 根据权利要求4所述的方法,其中,通知删除所述迁出节点中已复制的所述元数据包括:The method according to claim 4, wherein the notifying the deletion of the metadata copied in the migrating node comprises:
    在所述迁入节点和所述迁出节点完成数据复制时,通知所述分布式系统当前数据迁移流复制的完成,并接收所述通知删除所述迁出节点中已复制的所述元数据的指示;或,Notifying the completion of the current data migration flow replication of the distributed system when the migration node and the migration node complete data replication, and receiving the notification to delete the copied metadata in the migration node Instructions; or,
    向所述迁出节点和所述迁入节点发送用于查询所述迁移数据流的迁移状态的查询指令;接收所述迁出节点和所述迁入节点发送的响应于所述查询指令的响应指令,其中,所述响应指令用于指示所述迁移数据流迁移状态;在所述响应指令指示所述迁移数据流迁移成功时,通知所述分布式系统启用新的元数据分布路由规则,并通知所述迁出节点删除所述元数据的内容。Sending, to the egress node and the embedding node, a query instruction for querying a migration status of the migrated data stream; receiving a response sent by the egress node and the emigment node in response to the query instruction An instruction, wherein the response instruction is used to indicate the migration data flow migration state; and when the response instruction indicates that the migration data flow migration is successful, notifying the distributed system to enable a new metadata distribution routing rule, and Notifying the migrating node to delete the content of the metadata.
  6. 根据权利要求5所述的方法,其中,所述方法还包括:The method of claim 5 wherein the method further comprises:
    在所述查询指令指示所述迁移数据流迁移异常时,向所述迁出节点和所述迁入节点发送回退请求,其中,所述回退请求用于指示通知所述迁出节点和所述迁入节点终止所述迁移流数据的复制操作,以及通知所述迁入节点删除已复制的所述元数据的内容。When the query instruction indicates that the migration data flow is abnormal, sending a fallback request to the migrating node and the migrating node, where the back request is used to notify the migrating node and the The moving in node terminates the copying operation of the migrated stream data, and notifies the ingress node to delete the content of the copied metadata.
  7. 根据权利要求1所述的方法,其中,所述第一服务集群或所述第二服务集群可同时作为多个迁移数据流的迁入和迁出服务集群。The method of claim 1, wherein the first service cluster or the second service cluster can simultaneously serve as an inbound and outbound service cluster of a plurality of migrated data streams.
  8. 一种分布式系统中元数据的迁移装置,包括:A metadata migration device in a distributed system, comprising:
    接收模块,设置为接收来自分布式系统的通知消息,其中,该通知消息用于指示元数据分布路由规则发生了变化;a receiving module, configured to receive a notification message from the distributed system, where the notification message is used to indicate that the metadata distribution routing rule has changed;
    比较模块,设置为依据所述通知消息比较调整前与调整后的所述元数据分布路由规则,得到所述元数据在元数据服务器集群的节点之间的迁移数据流,其中,所述迁移数据流用于指示所述元数据的迁移过程,所述迁移数据流包括:第一服务器集群中迁出所述元数据的迁出节点、第二服务器集群中迁入所述元数据的迁入节点、所述元数据的内容;a comparison module, configured to compare the pre-adjusted and adjusted metadata distribution routing rules according to the notification message, to obtain a migration data flow of the metadata between nodes of the metadata server cluster, where the migration data The flow is used to indicate the migration process of the metadata, where the migration data flow includes: an migration node that migrates the metadata in the first server cluster, and an migration node that migrates the metadata in the second server cluster, The content of the metadata;
    第一复制模块,设置为依据所述迁移数据流通知所述迁出节点将所述元数据的内容复制到所述迁入节点中。And the first copying module is configured to notify the ejecting node to copy the content of the metadata to the embedding node according to the migrated data stream.
  9. 根据权利要求8所述的装置,其中,在所述迁出节点将所述元数据的内容复制到所述迁入节点中之前,所述装置还包括: The apparatus of claim 8, wherein before the migrating node copies the content of the metadata into the migrating node, the apparatus further comprises:
    记录模块,设置为记录迁出所述元数据的迁移启动信息,其中,所述启动信息包括:启动时间、所述分布式系统在启动数据迁移前最近一次的写操作信息,其中,所述写操作信息包括:写操作发生的时间、写操作的内容、写操作的序号;或,a recording module, configured to record migration startup information for migrating the metadata, where the startup information includes: a startup time, a last write operation information of the distributed system before starting data migration, wherein the writing The operation information includes: the time when the write operation occurs, the content of the write operation, the serial number of the write operation; or
    第一通知模块,设置为通知所述迁出节点申请第一锁,其中,所述第一锁用于锁住所述迁出节点中所有迁移数据的写操作。The first notification module is configured to notify the migrating node to apply for the first lock, where the first lock is used to lock a write operation of all migrated data in the migrating node.
  10. 根据权利要求9所述的装置,其中,The apparatus according to claim 9, wherein
    在所述迁移数据流启动后,并在复制所述元数据到所述迁入节点前,所述装置还包括:第二复制模块,设置为在所述记录所述元数据的所述迁移启动信息后,将在复制所述元数据到所述迁入节点前的所有写操作信息写入到同步队列;或,After the migrating data stream is started, and before copying the metadata to the migrating node, the apparatus further includes: a second copying module, configured to start the migration in the recording the metadata After the information, all the write operation information before copying the metadata to the migrating node is written to the synchronization queue; or
    在通知所述迁出节点申请第一锁后,并在复制所述元数据到所述迁入节点前,所述装置还包括:禁止模块,设置为禁止所述迁出节点执行所述写操作。After notifying the migrating node to apply for the first lock, and before copying the metadata to the migrating node, the apparatus further includes: a prohibiting module, configured to prohibit the escaping node from performing the write operation .
  11. 根据权利要求10所述的装置,其中,在所述迁出节点将所述元数据的内容复制到所述迁入节点中之后,所述装置还包括:The apparatus of claim 10, wherein after the migrating node copies the content of the metadata to the migrating node, the apparatus further comprises:
    第二通知模块,设置为通知所述迁出节点申请第二锁,其中,所述第二锁用于锁住迁出的所述元数据的写操作;并向所述迁入节点发送所述同步队列中的所述写操作信息;在所述元数据的内容复制完成后,通知删除所述迁出节点中已复制的所述元数据,并释放所述第二锁;或,a second notification module, configured to notify the migrating node to apply for a second lock, where the second lock is used to lock a write operation of the migrated metadata; and send the The write operation information in the synchronization queue; after the content copy of the metadata is completed, notifying the deletion of the copied metadata in the migrating node, and releasing the second lock; or
    第三通知模块,设置为通知删除所述迁出节点中已复制的所述元数据,并释放所述第一锁。The third notification module is configured to notify the deletion of the copied metadata in the migrating node, and release the first lock.
  12. 根据权利要求11所述的装置,其中,The apparatus according to claim 11, wherein
    所述第二通知模块包括:第一通知单元,设置为在所述迁入节点和所述迁出节点完成数据复制时,通知所述分布式系统当前数据迁移流复制的完成;第一接收单元,设置为接收所述通知删除所述迁出节点中已复制的所述元数据的指示;The second notification module includes: a first notification unit, configured to notify the distributed system of completion of current data migration flow replication when the migration node and the migration node complete data replication; and the first receiving unit Providing, by receiving the notification, an indication to delete the copied metadata in the migrating node;
    所述第三通知模块包括:第一发送单元,设置为向所述迁出节点和所述迁入节点发送用于查询所述迁移数据流的迁移状态的查询指令;第二接收单元,设置为接收所述迁出节点和所述迁入节点发送的响应于所述查询指令的响应指令,其中,所述响应指令用于指示所述迁移数据流迁移状态;第二通知单元,设置为在所述响应指令指示所述迁移数据流迁移成功时,通知所述分布式系统启用新的元数据分布路由规则,并通知所述迁出节点删除所述元数据的内容。 The third notification module includes: a first sending unit, configured to send, to the egress node and the ingress node, a query instruction for querying a migration status of the migrated data stream; and the second receiving unit is configured to Receiving, by the migrating node and the migrating node, a response instruction in response to the query instruction, where the response instruction is used to indicate the migration data flow transition state; and the second notification unit is configured to When the response instruction indicates that the migration data stream is successfully migrated, the distributed system is notified to enable a new metadata distribution routing rule, and the migration node is notified to delete the content of the metadata.
  13. 根据权利要求12所述的装置,其中,所述第三通知模块还包括:The apparatus of claim 12, wherein the third notification module further comprises:
    第二发送单元,设置为在所述查询指令指示所述迁移数据流迁移异常时,向所述迁出节点和所述迁入节点发送回退请求,其中,所述回退请求用于指示通知所述迁出节点和所述迁入节点终止所述迁移流数据的复制操作,以及通知所述迁入节点删除已复制的所述元数据的内容。a second sending unit, configured to send a fallback request to the migrating node and the migrating node when the query instruction indicates that the migrating data stream is abnormal, wherein the back request is used to indicate a notification The migrating node and the migrating node terminate the copy operation of the migrating stream data, and notify the migrating node to delete the content of the copied metadata.
  14. 根据权利要求8所述的装置,其中,所述第一服务集群或所述第二服务集群可同时作为多个迁移数据流的迁入和迁出服务集群。 The apparatus according to claim 8, wherein the first service cluster or the second service cluster can simultaneously serve as an inbound and outbound service cluster of a plurality of migrated data streams.
PCT/CN2015/089679 2015-03-10 2015-09-15 Distributed system metadata migration method and device WO2016141702A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510105459.2 2015-03-10
CN201510105459.2A CN106034080A (en) 2015-03-10 2015-03-10 Metadata migration method and metadata migration device in distributed system

Publications (1)

Publication Number Publication Date
WO2016141702A1 true WO2016141702A1 (en) 2016-09-15

Family

ID=56879903

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/089679 WO2016141702A1 (en) 2015-03-10 2015-09-15 Distributed system metadata migration method and device

Country Status (2)

Country Link
CN (1) CN106034080A (en)
WO (1) WO2016141702A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798104A (en) * 2017-10-31 2018-03-13 郑州云海信息技术有限公司 A kind of catalog management method, device, equipment and computer-readable recording medium
CN111625498A (en) * 2020-05-28 2020-09-04 浪潮电子信息产业股份有限公司 Data migration method, system, electronic equipment and storage medium
CN111694517A (en) * 2020-05-28 2020-09-22 新浪网技术(中国)有限公司 Distributed data migration method and system and electronic equipment
CN113076187A (en) * 2020-01-03 2021-07-06 阿里巴巴集团控股有限公司 Distributed lock management method and device

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106599046B (en) * 2016-11-09 2020-06-30 北京同有飞骥科技股份有限公司 Writing method and device of distributed file system
CN107832461B (en) * 2017-11-28 2021-11-23 中国银行股份有限公司 Data migration method and system
CN110309224B (en) * 2018-03-14 2021-08-31 华为技术有限公司 Data copying method and device
CN109388610A (en) * 2018-08-30 2019-02-26 中国科学院计算技术研究所 A kind of distributed meta data services migrating method and system of low latency
CN112347036B (en) * 2019-08-09 2023-03-14 浙江宇视科技有限公司 Inter-cloud migration method and device of cloud storage system
CN110572451B (en) * 2019-09-04 2021-04-30 腾讯科技(深圳)有限公司 Data processing method, device and storage medium
CN111447146B (en) * 2020-03-20 2022-04-29 上海中通吉网络技术有限公司 Method, device, equipment and storage medium for dynamically updating physical routing information
CN111858541A (en) * 2020-06-29 2020-10-30 广东浪潮大数据研究有限公司 Data migration control method and related device of distributed file system
CN113225576B (en) * 2021-04-30 2023-03-21 广州虎牙科技有限公司 Service migration system and method based on live broadcast platform edge computing scene
CN115952005B (en) * 2023-02-24 2023-05-30 浪潮电子信息产业股份有限公司 Metadata load balancing method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6889229B1 (en) * 2001-09-28 2005-05-03 Oracle International Corporation Techniques for peer-to-peer replication of objects in a relational database
CN102831211A (en) * 2012-08-14 2012-12-19 中山大学 Data sheet migration method based on sheet relation analysis
CN103793424A (en) * 2012-10-31 2014-05-14 阿里巴巴集团控股有限公司 Database data migration method and database data migration system
CN103810265A (en) * 2014-01-27 2014-05-21 南京邮电大学 Database optimization method based on WiMAX local routing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997911B (en) * 2010-10-21 2015-07-22 中兴通讯股份有限公司 Data migration method and system
CN102739704A (en) * 2011-04-02 2012-10-17 中兴通讯股份有限公司 Method and system for data migration in peer-to-peer network
CN104348862B (en) * 2013-07-31 2018-03-16 华为技术有限公司 Data Migration processing method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6889229B1 (en) * 2001-09-28 2005-05-03 Oracle International Corporation Techniques for peer-to-peer replication of objects in a relational database
CN102831211A (en) * 2012-08-14 2012-12-19 中山大学 Data sheet migration method based on sheet relation analysis
CN103793424A (en) * 2012-10-31 2014-05-14 阿里巴巴集团控股有限公司 Database data migration method and database data migration system
CN103810265A (en) * 2014-01-27 2014-05-21 南京邮电大学 Database optimization method based on WiMAX local routing

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798104A (en) * 2017-10-31 2018-03-13 郑州云海信息技术有限公司 A kind of catalog management method, device, equipment and computer-readable recording medium
CN113076187A (en) * 2020-01-03 2021-07-06 阿里巴巴集团控股有限公司 Distributed lock management method and device
CN113076187B (en) * 2020-01-03 2024-01-09 阿里巴巴集团控股有限公司 Distributed lock management method and device
CN111625498A (en) * 2020-05-28 2020-09-04 浪潮电子信息产业股份有限公司 Data migration method, system, electronic equipment and storage medium
CN111694517A (en) * 2020-05-28 2020-09-22 新浪网技术(中国)有限公司 Distributed data migration method and system and electronic equipment
CN111625498B (en) * 2020-05-28 2022-06-07 浪潮电子信息产业股份有限公司 Data migration method, system, electronic equipment and storage medium
CN111694517B (en) * 2020-05-28 2024-02-13 新浪技术(中国)有限公司 Distributed data migration method, system and electronic equipment

Also Published As

Publication number Publication date
CN106034080A (en) 2016-10-19

Similar Documents

Publication Publication Date Title
WO2016141702A1 (en) Distributed system metadata migration method and device
US9934242B2 (en) Replication of data between mirrored data sites
CN104486319B (en) Suitable for the configuration file real-time synchronization method and its system of high-availability system
US9274906B2 (en) Implementing failover processes between storage stamps
WO2017182000A1 (en) Method and device for migration of application instance and computer storage medium
WO2016070375A1 (en) Distributed storage replication system and method
CN108964948A (en) Principal and subordinate's service system, host node fault recovery method and device
US20090070337A1 (en) Apparatus and method for a distributed storage global database
US20220103622A1 (en) Commissioning and decommissioning metadata nodes in a running distributed data storage system
US20140019495A1 (en) Processing a file system operation in a distributed file system
JP2005535241A (en) Method of moving application software in multicomputer architecture, multicomputer method and apparatus for realizing continuity of operation using the moving method
US11934670B2 (en) Performing various operations at the granularity of a consistency group within a cross-site storage solution
JP2006011848A (en) Replication system, apparatus, method, and program
KR20140038450A (en) Automatic configuration of a recovery service
US11537314B1 (en) Resynchronization of individual volumes of a consistency group (CG) within a cross-site storage solution while maintaining synchronization of other volumes of the CG
CN113010496B (en) Data migration method, device, equipment and storage medium
CN106603725A (en) Implementation method for enterprise cloud service virtual mirror image management service
KR20190095443A (en) Methods, systems, and devices for managing primary and secondary databases
US10891308B2 (en) Automated self-scaling database system for automatically scaling out write operations and method for implementing the same in a multi-tenant, cloud-based computing environment
CN113114777B (en) Disaster recovery method and device for multi-node high-availability cluster
JP2013246676A (en) Database management apparatus and database management method
CN107438092B (en) Method and apparatus for data processing in a distributed scenario
CN104811348A (en) Availability device, storage area network system with availability device and methods for operation thereof
JP2014016953A (en) Unshared type database system, synchronizing device, database server, its synchronizing method, and synchronizing program
CN104468674B (en) Data migration method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15884381

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15884381

Country of ref document: EP

Kind code of ref document: A1