Database fault handling method and apparatus, and database system
A fault handling method and database technology, which are applied in the fields of electrical digital data processing, special data processing applications, database distribution/replication, etc., can solve problems such as affecting the operation efficiency of Redis database and the quality of service provision.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0076] The embodiment of the present invention provides a database fault handling method, which can be implemented in a database cluster. When the primary database fails to provide services, a secondary database on a server with a strong business carrying capacity can be selected as the new primary database. , to ensure normal service.
[0077] figure 1 It is a schematic flowchart of a database fault handling method provided in this embodiment, and the method is applied to a database cluster with a master-slave structure, including steps S102 to S108.
[0078] S102: Collect usage status information of at least one server corresponding to the master database where a slave database is located when a failure of the master database is detected.
[0079] S104: Analyzing the use status information of the server where each slave database is located, and determining the available service carrying capacity of the server where each slave database is located.
[0080] S106: Compare the...
Embodiment 2
[0084] This embodiment is a specific application scenario of the first embodiment above. Through this embodiment, the method provided by the present invention can be described more clearly and specifically.
[0085] It should be understood that the present invention does not limit the type of the database, as long as the following solution of the present invention can be applied to achieve the purpose of switching from the database to the database applicable here. On the basis of reading the present invention, those skilled in the art can also realize the switching of the master-slave database through simple combination of steps and conversion between steps, which should be covered within the scope of the present invention.
[0086] In this embodiment, the technical solution of the present invention will be described by taking the Redis database as an example:
[0087] In order to describe the method provided by the embodiment of the present invention more clearly, in the seco...
Embodiment 3
[0126] Figure 5 It is a structural block diagram of a database fault processing device provided by an embodiment of the present invention, which is applied to a database cluster with a master-slave structure. The device 500 includes:
[0127] The information collection module 510 is adapted to collect the use status information of at least one slave database corresponding to the server where the master database is located when a fault occurs in the master database;
[0128] The information analysis module 520 is adapted to analyze the use status information of the server where each slave database is located, and determine the available service carrying capacity of the server where each slave database is located;
[0129] The slave database selection module 530 is adapted to compare the available service carrying capacity of the servers where the slave databases are located, and select the slave database with the largest available service carrying capacity; and
[0130] The r...
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