Capacity expansion method and device for distributed database and electronic equipment
An expansion method and database technology, which are applied in the field of capacity expansion methods, devices and electronic equipment of distributed databases, and can solve problems such as adverse effects on availability of distributed databases.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] This embodiment provides a method for capacity expansion of a distributed database. The distributed database includes a scheduling node (which may be called a CN node) and a plurality of existing first data nodes (which may be called a DB node). refer to figure 1 The flow chart of the capacity expansion method of the distributed database shown in the flow chart, the method is applied to the scheduling node, may include the following steps S102 to S108:
[0038] Step S102, when a second data node is newly added to the database, notify the first data node to migrate the target fragment data to be migrated to the second data node.
[0039] In this embodiment, when the user initiates a data node increase request to the scheduling node through the client, the scheduling node obtains the number and address of the newly added second data node according to the increase request, combined with the number of existing first data nodes , the address and the shard data it undertakes...
Embodiment 2
[0073] In combination with the foregoing first embodiment, this embodiment provides a method for capacity expansion of a distributed database. The database includes a scheduling node and a plurality of existing first data nodes. The method is applied to the first data nodes, and the method includes:
[0074] Step (1), when the database adds a second data node, migrate the target fragment data to be migrated to the second data node according to the notification of the scheduling node; during the process of migrating the target fragment data to the second data node , assigning a unique LSN to each target shard data; among them, LSN is used to determine the table lock of the shard table, and the table lock is used to limit or respond to the operation of the shard table; the shard table is used for distributed storage database Shard data in .
[0075] Step (2), delete the target fragmented data that has been migrated to the second data node.
[0076] In the capacity expansion met...
Embodiment 3
[0086] According to the method for expanding the capacity of a distributed database provided in the foregoing embodiments, this embodiment provides a device for expanding the capacity of a distributed database. see Figure 4 Shown is a structural block diagram of a capacity expansion device for a distributed database, the database includes a scheduling node and a plurality of existing first data nodes, the device is applied to a scheduling node, and includes:
[0087] The first data migration module 402 is configured to notify the first data node to migrate the target fragment data to be migrated to the second data node when a second data node is added to the database;
[0088] The first LSN acquisition module 404 is configured to acquire the LSN corresponding to the second data node; wherein, the LSN is a unique identifier assigned to each target shard data in the process of migrating the target shard data to the second data node;
[0089] The operation restriction module 40...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com