Method and system for implementing database clustering function
An implementation method and database technology, which are applied in the field of database cluster function implementation methods and systems, can solve problems such as single database performance bottlenecks, and achieve the effect of realizing database expansion and solving performance bottlenecks
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] Embodiment 1 of the present invention discloses a method for realizing the function of a database cluster, wherein the database cluster includes a plurality of database nodes, and the plurality of database nodes respectively store different first-type data, refer to figure 1 , the method may include the following steps:
[0061] S101: Receive a first-type data service request from a sender, where the first-type data service request includes a first service element and a first-type data operation task.
[0062] This application solves the performance bottleneck problem caused by a single database node by extending the database system including only a single database node in the prior art to a database cluster including multiple database nodes, and realizing an effective database cluster function.
[0063] Wherein, the sender may be an ordinary user or a corresponding application system.
[0064] The present embodiment takes the bank system as an example to describe the ...
Embodiment 2
[0080] In the second embodiment, refer to image 3 The method for realizing the database cluster function may also include the following steps:
[0081] S104: Feed back the returned result data generated by the target database node to the sender.
[0082] This embodiment specifically supplements the solution of Embodiment 1, wherein, if the target database node generates corresponding result data that needs to be returned to the front-end application system after executing the SQL statement (such as query) submitted by the SQL mapper, it can be passed The data connection established in the first embodiment feeds back the returned data to the front-end application system via the SQL mapper and the interceptor.
[0083] Among them, if there are multiple target database nodes, the SQL mapper will integrate the data returned by each target database node into a result set and return it to the front-end application system when receiving multiple copies of result data returned by ea...
Embodiment 3
[0085] In the third embodiment, refer to Figure 4 The method for realizing the database cluster function may also include the following steps:
[0086] S105: When the target database node fails, allocate the first type of data service request to the target backup database node corresponding to the target database node, and the target backup database node is used to The first type of data is backed up.
[0087] Since each database node in the database cluster stores different first-type data, such as transactional data, etc., based on this, this embodiment backs up the first-type data of each database node in the database cluster in advance, and By pre-adding the relevant backup information of the database cluster in the configuration files of the interceptor and the SQL mapper, when the target database node fails, the intercepted first type of data service request is routed to the corresponding backup database node, thereby ensuring The first type of data is still available...
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