Method, device and system for expanding and shrinking capacity of database cluster
A database and cluster technology, applied in the Internet field, can solve problems such as data loss, inability to write, and adverse effects on the system, so as to achieve smooth expansion and solve the effect of data loss.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] According to an aspect of the embodiments of the present invention, there is also provided a capacity expansion and contraction system, figure 1 It is a structural diagram of a system for expanding and contracting a database cluster according to Embodiment 1 of the present invention. include:
[0043] The server 10 is used to store the fragmentation information of the database cluster; the access agent 12 is connected to the server 10 and the database cluster 14 respectively, and is used to proxy the access request to the corresponding database node in the database cluster 14 according to the access request; The device 16 is connected to the server 10 and the database cluster 14 respectively, and is used to expand or shrink the database nodes in the database cluster 14, and update the fragmentation information changed after the database node expands or shrinks to the server 10.
[0044] Optionally, the scaling system provided in this application further includes: a loa...
Embodiment 2
[0088] According to an embodiment of the present invention, an embodiment of a method for expanding the capacity of a database cluster is also provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
[0089] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Take running on a computer terminal as an example, Figure 5 It is a block diagram of the hardware structure of a computer terminal according to a method for expanding the capacity of a database cluster in an embodiment of the present invention. like Figure 5 As shown, the computer terminal 50 may include on...
Embodiment 3
[0122] According to another aspect of the embodiments of the present invention, a method for reducing the capacity of a database cluster is also provided, Figure 7 is a flowchart of a method for shrinking a database cluster according to Embodiment 3 of the present invention. include:
[0123] Step S702, merging the synchronization information of at least one node to be offline through the proxy device;
[0124] Step S704, judging whether the synchronization difference between at least one node to be offline and the proxy device, and whether the synchronization difference between the target shrinking node and the proxy device is greater than a preset threshold;
[0125] Step S706, if the judgment result is no, control at least one node to be offline to prohibit writing, obtain synchronization information from at least one node to be offline, and send the synchronization information to a target that replaces at least one node to be offline Shrink nodes.
[0126] Specifically...
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