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
Example Embodiment
[0059] Example one
[0060] The first embodiment of the present invention discloses a method for implementing a database cluster function, wherein the database cluster includes a plurality of database nodes, and the plurality of database nodes respectively store first type data that are different from each other. 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] The present application solves the performance bottleneck problem caused by a single database node by expanding a 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 may be a corresponding application system.
[0064] This embodiment uses a ...
Example Embodiment
[0079] Example two
[0080] In the second embodiment, reference image 3 , The implementation method of the database cluster function may further include the following steps:
[0081] S104: Feed back the return result data generated by the target database node to the sender.
[0082] This embodiment specifically supplements the solution of Embodiment 1. 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 pass In the data connection established in the first embodiment, the returned data is fed back to the front-end application system via the SQL mapper and interceptor.
[0083] Among them, if the number of target database nodes is more than one, when the SQL mapper receives multiple copies of the result data returned by each target database node, it will integrate the data returned by each target database node into a result set ...
Example Embodiment
[0084] Example three
[0085] In the third embodiment, reference Figure 4 , The implementation method of the database cluster function may further 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 perform data processing on the target database node. 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 preliminarily backs up the first-type data of each database node in the database cluster, and By adding the relevant backup information of the database cluster in the configuration corpus of the interceptor and SQL mapper in advance, when the target database node fails, the intercepted first-type data service request is routed to the correspondin...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap