Capacity expansion method and device, electronic equipment and computer readable medium
A database and cluster technology, applied in computing, database design/maintenance, electrical digital data processing, etc., can solve problems such as key value loss, timeout failure, failure to ensure safe and stable expansion, etc., to facilitate storage and avoid timeout failure , to ensure the effect of safe, controllable and smooth operation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0083] figure 1 is a schematic diagram of main steps of the method for expanding the capacity of a database cluster according to Embodiment 1 of the present invention. like figure 1 As shown, the expansion method of the database cluster in Embodiment 1 of the present invention mainly includes the following steps:
[0084] Step S101: Find the big key data stored in the original database cluster, export the big key data to a local file, and delete the big key data in the original database cluster after the export is successful. Execute the bigkeys command on the slave nodes of the original database cluster to obtain big Key data of various data types. Then export the big key data to a local file. After the export is successful, delete the big key data of the original database cluster.
[0085] Among them, the syntax format of the bigkeys command is: redis-cli-h{ip}-p{port}bigkeys, ip is the host IP address, and port is the port. After executing the bigkeys command, you can g...
Embodiment 2
[0091] figure 2 is a schematic diagram of the main flow of the method for expanding the capacity of a database cluster according to Embodiment 2 of the present invention. like figure 2 As shown, the expansion method of the database cluster in the second embodiment of the present invention mainly includes the following steps:
[0092] Step S201: Find the large Key data stored in the original database cluster, and back up the AOF file and RDB file generated by the original database cluster during persistent storage. By executing the bigkeys command, you can find out the big key data of various data types stored in the original database cluster. In order to increase security and rollback, on the premise of ensuring that the data will not change, the AOF file and RDB file of the original database cluster can be backed up.
[0093] Step S202: Export the big key data to a local file. After the export is successful, delete the big key data of the original database cluster accord...
Embodiment 3
[0102] image 3 is a schematic diagram of the main flow of the method for expanding the capacity of a database cluster according to Embodiment 3 of the present invention. like image 3 As shown, the expansion method of the database cluster in the third embodiment of the present invention mainly includes the following steps:
[0103] Step S301: Execute the bigkeys command to find the big key data stored in the original Redis cluster, and back up the AOF file and RDB file generated by the original Redis cluster during persistent storage. By executing the bigkeys command, you can find out the big key data of various data types stored in the original Redis cluster. The bigkeys command can be as follows: . / redis-cli-c-p 7001 --bigkeys
[0104] In the embodiment, in order to avoid occupying the master node for a long time and causing other business requests to be blocked, the bigkeys command can be executed on the slave node of the original Redis cluster to reduce network overhea...
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