Master selection method and system of ha component in distributed database system
A database and distributed technology, applied in the field of distributed databases, can solve problems such as reducing efficiency and usability, and achieve the effect of improving efficiency and preventing split-brain
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0068] Please refer to figure 1 , Embodiment 1 of the present invention is: a method for selecting masters of HA components of a distributed database system, please refer to figure 2 , the distributed database system includes a database cluster 1 , an HA component cluster 2 , a database agent 3 and a coordination component 4 . The database cluster 1 is composed of at least one database group, and one database group includes one primary database node and at least one standby database node. The HA components in the HA component cluster 2 provide the high availability function of the database cluster 1 . The coordination component 4 saves the information of the database cluster 1, including all database groups and the primary and backup information of the database nodes therein, and actively notifies the database agent 3 and the HA component when the information of the database cluster 1 changes. The database agent 3 reads the information of the entire database cluster 1 from ...
Embodiment 2
[0094] Please refer to Figure 5 , this embodiment is an HA component selection master system of a distributed database system corresponding to the method of Embodiment 1, including:
[0095] The sending module 101 is used for each HA component to send a write request to the coordination component;
[0096] The assigning module 102 is used for the coordinating component to assign a unique identifier to each HA component according to the write request, and obtain the association information between each HA component and its corresponding identifier; the write request includes HA component data uniquely corresponding to the HA component. Optionally, the assigning module 102 is specifically used to assign each HA component a sequentially increasing serial number according to the time sequence in which the write request of each HA component is received by the coordinating component, and obtain the association of each HA component with its serial number information.
[0097] The ...
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