Database-based management method, platform, electronic device and storage medium
Patent Information
- Application Number
- CN202010618456.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-06-30
AI Technical Summary
In the existing technology, the architectures of different database products in different cloud scenarios are inconsistent, resulting in the need to maintain a variety of different database management platforms for R&D. Repeated development of the same functions is not conducive to technical iteration and architectural innovation of the management platform, and management efficiency is low.
Provide a database-based management method and platform that monitors multiple nodes accessed by applications. If an abnormal node is found, a request is sent to the task management platform to create a replacement node and update management information to achieve centralized management of all applications, regardless of the same architecture. Or different.
It improves the efficiency of database management, saves development costs, facilitates the iteration and innovation of the management platform, and avoids the need to develop different management platforms for different architectures.
Smart Images

Figure CN111858628B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, specifically to the field of database technology, and can be used in cloud computing scenarios, and in particular to a management method, platform, electronic device and storage medium based on a database. Background Art
[0002] In the prior art, the same database service provider may provide dozens of database products, each of which requires a management platform to implement daily management operations and high availability of the database product. Each database product designs and implements its own management platform, and the architecture of the same database product is different in different cloud scenarios, within the company, public cloud or private cloud scenarios, and different management platforms may be required to manage the database product. The database product can be a database or database cluster used to provide database services for applications.
[0003] Based on the above existing technologies, different database products, or even the same database product, have inconsistent architectures in different cloud scenarios, which leads to the need for R&D to maintain various database management platforms and repeatedly develop the same functions. At the same time, operation and maintenance must adapt to the operation and maintenance differences brought about by different architectures. At the same time, it is not conducive to the technical iteration and architectural innovation of the management platform itself. Therefore, the existing solutions based on database management have low efficiency. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a management method, platform, electronic device and storage medium based on a database.
[0005] According to one aspect of the present application, a database-based management method is provided, wherein the method comprises:
[0006] Based on the management information of the pre-established database cluster of the application, multiple nodes through which the application accesses the corresponding database cluster are monitored;
[0007] If there is an abnormal node among the multiple nodes, a node creation request carrying information of the abnormal node is sent to the task management platform to create a replacement node with the same function to replace the abnormal node;
[0008] Receiving information of the created replacement node returned by the task management platform;
[0009] Based on the information of the replacement node and the information of the abnormal node, the management information of the database cluster of the application is updated.
[0010] According to another aspect of the present application, a database-based management method is provided, wherein the method comprises:
[0011] Receive a node creation request carrying information of an abnormal node sent by a database management platform; the node creation request is sent by the database management platform when it is determined that an abnormal node exists when monitoring multiple nodes through which the application accesses the corresponding database cluster based on management information of a pre-established application database cluster;
[0012] Creating a replacement node with the same function for the application according to the information of the abnormal node to replace the abnormal node;
[0013] The information of the created replacement node is returned to the database management platform so that the database management platform can update the management information of the database cluster of the application.
[0014] According to another aspect of the present application, a database management platform is provided, wherein the platform includes:
[0015] A monitoring module, for monitoring a plurality of nodes through which an application accesses a corresponding database cluster based on management information of a pre-established database cluster of the application;
[0016] a transceiver module, configured to, if there is an abnormal node among the plurality of nodes, send a node creation request carrying information of the abnormal node to the task management platform, so as to create a replacement node with the same function to replace the abnormal node;
[0017] The transceiver module is further used to receive the information of the created replacement node returned by the task management platform;
[0018] An updating module is used to update the management information of the database cluster of the application based on the information of the replacement node and the information of the abnormal node.
[0019] According to another aspect of the present application, a task management platform is provided, wherein the platform includes:
[0020] A transceiver module, configured to receive a node creation request carrying information of an abnormal node sent by a database management platform; the node creation request is sent by the database management platform when it is determined that an abnormal node exists when monitoring multiple nodes through which the application accesses the corresponding database cluster based on management information of a pre-established database cluster of the application;
[0021] A creation module, used to create a replacement node with the same function for the application according to the information of the abnormal node to replace the abnormal node;
[0022] The transceiver module is further used to return the information of the created replacement node to the database management platform, so that the database management platform can update the management information of the database cluster of the application.
[0023] According to yet another aspect of the present application, there is provided an electronic device, including:
[0024] at least one processor; and
[0025] a memory communicatively connected to the at least one processor; wherein,
[0026] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described above.
[0027] According to yet another aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method as described above.
[0028] According to yet another aspect of the present application, a computer program product is provided, comprising a computer program, wherein the computer program implements the method described above when executed by a processor.
[0029] According to the technology of the present application, it is possible to monitor multiple nodes through which all applications access their corresponding database clusters, and when an abnormal node appears, it is possible to timely update the management information of the application's database cluster based on the information of the replacement node created to replace the abnormal node, so as to continue to monitor the multiple nodes through which the application accesses the corresponding database cluster, and ensure that the application can access its corresponding database cluster normally. In the present application, regardless of whether the architecture of the database cluster corresponding to each application is the same, only one set of database management platform is required, and the above solution can be used to manage all applications at the same time, which can effectively improve the management efficiency of the database. Moreover, different database architectures do not require the development of different database management platforms, which can effectively save development costs and is also very convenient for iteration and innovation of the database management platform.
[0030] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0032] Figure 1 is a schematic diagram according to the first embodiment of the present application;
[0033] Figure 2 is a schematic diagram according to a second embodiment of the present application;
[0034] Figure 3 is a schematic diagram according to a third embodiment of the present application;
[0035] Figure 4 is a schematic diagram according to a fourth embodiment of the present application;
[0036] Figure 5 is a schematic diagram according to a fifth embodiment of the present application;
[0037] Figure 6 is a schematic diagram according to a sixth embodiment of the present application;
[0038] Figure 7 is a schematic diagram according to a seventh embodiment of the present application;
[0039] Figure 8 is a schematic diagram according to an eighth embodiment of the present application;
[0040] Fig. 9 is a schematic diagram according to a ninth embodiment of the present application;
[0041] Fig.10 is a schematic diagram according to the tenth embodiment of the present application;
[0042] Fig.11 It is a block diagram of an electronic device used to implement the database-based management method of an embodiment of the present application. DETAILED DESCRIPTION
[0043] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0044] Figure 1 is a schematic diagram according to the first embodiment of the present application; Figure 1 As shown, this embodiment provides a management method based on a database, which may specifically include the following steps:
[0045] S101, based on pre-established management information of a database cluster of an application, monitoring multiple nodes through which an application accesses a corresponding database cluster;
[0046] S102: If an abnormal node appears among the multiple nodes, a node creation request carrying information of the abnormal node is sent to the task management platform to create a replacement node with the same function to replace the abnormal node;
[0047] S103, receiving information of the created replacement node returned by the task management platform;
[0048] S104: Based on the information of the replacement node and the information of the abnormal node, update the management information of the database cluster of the application.
[0049] The execution subject of the database-based management method of this embodiment is a database management platform. The database management platform can uniformly manage the database information of all applications, and can effectively improve the management efficiency of the database regardless of the architecture of the database.
[0050] Specifically, the database is used to provide database services for applications. Based on the needs of the applications, a database cluster of the required size can be configured for each application to store all the information of the application. Specifically, when the application accesses the corresponding database cluster, it does not access it directly, but needs to go through multiple nodes in the middle to access the stored database cluster. Based on this, the information of each node accessing the application can be stored in the management information of the pre-established database cluster of the application. In this way, the database management platform can monitor the multiple nodes passed by the application when accessing the corresponding database cluster based on the management information of the database cluster of the application. For example, the monitoring of this embodiment is mainly to monitor whether each node has an abnormality. If an abnormality occurs, the application cannot access the corresponding database cluster through the node.
[0051] The database management platform of this embodiment only implements the management function of the database, and if the database management platform detects that an operation task needs to be performed, the database management platform sends a task operation request to the task management platform, and the task management platform performs the corresponding operation task. For example, when the database management platform of this embodiment is monitoring, if it is determined that there is an abnormal node among multiple nodes, it can send a node creation request carrying the information of the abnormal node to the task management platform to create a replacement node with the same function to replace the abnormal node.
[0052] Furthermore, in order to ensure timely and accurate update of the management information of the application's database cluster, in this embodiment, after the task management platform creates a replacement node with the same function to replace the normal node, it is also necessary to promptly return the information of the created replacement node to the database management platform. Correspondingly, on the database management platform side, the information of the created replacement node returned by the task management platform is received; based on the information of the replacement node and the information of the abnormal node, the management information of the application's database cluster is updated, so that the multiple nodes passed by the application when accessing the corresponding database cluster can be monitored based on the management information of the application's database cluster in the future.
[0053] In this embodiment, any application is taken as an example to describe the management of the database cluster of the application by the database management platform. Taking this as an example, according to the method of this embodiment, the database management platform can realize the centralized management of the database clusters of all applications, that is, only one database management platform is needed to realize the management of the databases of all applications, which can effectively save management costs and effectively improve the management efficiency of the database.
[0054] The database-based management method of this embodiment monitors multiple nodes that the application passes through when accessing the corresponding database cluster based on the management information of the pre-established application database cluster; if an abnormal node appears in the multiple nodes, a node creation request carrying the information of the abnormal node is sent to the task management platform to create a replacement node with the same function to replace the abnormal node; the information of the replacement node created returned by the task management platform is received; based on the information of the replacement node and the information of the abnormal node, the management information of the application database cluster is updated. The technical solution of this embodiment can monitor multiple nodes that all applications pass through when accessing their corresponding database clusters, and when an abnormal node appears, the management information of the application database cluster can be updated in time based on the information of the replacement node created to replace the abnormal node, so as to continue to monitor multiple nodes that the application passes through when accessing the corresponding database cluster, and ensure that the application can normally access its corresponding database cluster. In this embodiment, regardless of whether the architecture of the database cluster corresponding to each application is the same, only one set of database management platform is required, and the above scheme can be used to manage all applications at the same time, which can effectively improve the management efficiency of the database. Moreover, different database architectures do not need to develop different database management platforms, which can effectively save development costs and is very convenient for iteration and innovation of the database management platform.
[0055] Further optionally, in the above Figure 1In the illustrated embodiment, step S101 may include, before monitoring multiple nodes that the application passes through when accessing the corresponding database cluster based on the pre-established management information of the application's database cluster, establishing the management information of the application's database cluster based on the information of multiple nodes that the application passes through when accessing the corresponding database cluster configured. That is, this step is used to implement the creation of the management information of the application's database cluster. This solution corresponds to the scenario where the node information that the application passes through when accessing the corresponding database cluster has been configured offline.
[0056] In addition, optionally, in this embodiment, the multiple nodes through which the application accesses the corresponding database cluster may include an access portal, an access middleware, storage slices, and storage nodes in each storage slice.
[0057] The access entry may be an entry configured for the application to access the corresponding database cluster, for example, the access entry may be a VIP provided to the application's business. For example, for internal services, it may be a border gateway (BGW) or a domain name system (DNS); for public and private clouds, it may be a load balancing (LB) device or DNS.
[0058] One access entry information may correspond to a set of access middleware (Proxy), and the relationship between each access middleware in the set of access middleware is a peer relationship.
[0059] A database cluster can be divided into multiple storage shards. Each storage shard can have multiple storage nodes. The data stored in each storage node is consistent. One storage node is the master node, and the other storage nodes are slave nodes. A storage shard can be described by a binary tuple:<nodes,nodes_relation> , that is, the set of storage nodes and the relationship between storage nodes, where the relationship between storage nodes is a master-slave relationship. The binary description of the storage shard is called a topology, which can be recorded in the configuration file of the access portal.
[0060] In addition, optionally, for the database cluster corresponding to the application, it is also necessary to configure the authorization information on the account accessing the database cluster, for example, it may include: account information such as account name and password, etc.; permission information, such as authorization information reading and writing of entities, etc.; whitelist information, which may be IP, BNS, etc. For example, these authorization information may also be stored in the management information.
[0061] At this time, correspondingly, the management information of the database cluster of the application is established, which can be specifically: based on the access entry, middleware, storage shards and storage node information configured for the application to access the corresponding database cluster, the management information of the database cluster of the application is established.
[0062] At this time, correspondingly, step S101 may specifically monitor the access portal, middleware, storage shards, and storage nodes through which the application accesses the corresponding database cluster based on the management information of the pre-established application database cluster.
[0063] By adopting the above technical solution, it is possible to create management information of the database cluster of the application based on the node information that has been configured offline for the application to access the corresponding database cluster. This can facilitate monitoring of multiple nodes passed by the application when accessing the corresponding database cluster based on the management information of the database cluster of the application, thereby managing the process of the application accessing the database cluster, and effectively improving management efficiency.
[0064] Figure 2 is a schematic diagram according to the second embodiment of the present application; Figure 2 As shown, the database-based management method of this embodiment, in the above Figure 1 Based on the technical solutions of the embodiments shown, the technical solutions of the present application are further described in more detail. Figure 2 As shown, the database-based management method of this embodiment may specifically include the following steps:
[0065] S201, receiving a database cluster service creation request sent by an application;
[0066] S202, sending a database cluster creation request carrying an application identifier to the task management platform, so that the task management platform can configure and access multiple nodes through which the application accesses the corresponding database cluster;
[0067] S203, receiving information of multiple nodes configured for the application when accessing the corresponding database cluster, returned by the task management platform;
[0068] For example, the multiple nodes of this embodiment are the same as those of the above embodiment, and correspondingly receive the information of the access portal, middleware, storage shards, and storage nodes returned by the task management platform and configured for the application when accessing the corresponding database cluster.
[0069] S204: Establish management information of the database cluster of the application based on information of multiple nodes configured for the application and passed through when accessing the corresponding database cluster.
[0070] The execution subject of the database-based management method of this embodiment is still the database management platform.
[0071] The technical solution of this embodiment is specifically a scenario in which a database cluster service is configured online for each application through a database management platform.
[0072] Specifically, when an application wants to apply for a database cluster service, the application can send a database cluster service creation request to the database management platform. Similarly, in this embodiment, the database management platform also only implements management and does not perform task operations, such as database cluster service creation. At this time, after receiving the database cluster service creation request, the database management platform sends a database cluster creation request carrying the application's identifier to the task management platform, so that the task management platform can configure the application and access the corresponding database cluster through multiple nodes. In order to facilitate the database management platform to establish the management information of the application's database cluster, after the task management platform configures the application and accesses the corresponding database cluster through multiple nodes, it is also necessary to return to the database management platform the information of the multiple nodes configured for the application and passed through when accessing the corresponding database cluster. In this way, the database management platform can establish the management information of the application's database cluster based on the information of the multiple nodes configured for the application and passed through when accessing the corresponding database cluster, and then realize the monitoring and management of the process of the application accessing the database cluster.
[0073] In addition, it should be noted that, in this embodiment, the database cluster service creation request sent by the application can carry the number of access portals, middleware, storage shards and / or storage nodes. Correspondingly, in step S202, when the database management platform sends a database cluster creation request carrying the application identifier to the task management platform, it needs to carry the number of access portals, middleware, storage shards and / or storage nodes, so that the task management platform can configure the application based on these numbers and pass through the information of multiple nodes when accessing the corresponding database cluster.
[0074] In addition, optionally, if the database cluster business creation request sent by the application does not carry these quantities, the task management platform can configure a default number of access portals, middleware, storage shards and storage nodes for the application based on preset rules, and the application can further increase, delete or modify the number and information of nodes in the future.
[0075] The database-based management method of this embodiment, by adopting the above-mentioned technical solution, can process the database cluster business creation request of the application, and establish the management information of the database cluster of the application after the task management platform configures the information of multiple nodes passed when accessing the corresponding database cluster. Then, based on the management information of the database cluster of the application, it is possible to effectively manage the process of the application accessing its database cluster.
[0076] Figure 3 is a schematic diagram according to the third embodiment of the present application; Figure 3 As shown, the database-based management method of this embodiment, in the above Figure 1 Based on the technical solutions of the embodiments shown, the technical solutions of the present application are further described in more detail. Figure 3 As shown, the database-based management method of this embodiment may specifically include the following steps:
[0077] S301, receiving an add, delete, search or modify operation sent by an application;
[0078] S302: Based on the application adding, deleting, searching or modifying operation, a corresponding task execution operation request is sent to the task management platform;
[0079] S303, receiving the execution result of the task execution operation returned by the task management platform;
[0080] S304: Return the execution result of the task execution operation to the application.
[0081] In this embodiment, step S304 and step S305 may not be restricted in the order of the letters.
[0082] The adding, deleting, searching or modifying operation in this embodiment may be an adding, deleting, searching or modifying operation performed on a database or a database table item in the database cluster of the application.
[0083] Similarly, in this embodiment, the database management platform is only used to manage the database clusters of each application, and does not perform any operation processing. For example, when the database management platform receives an add, delete, search or modify operation sent by an application, it sends a corresponding task execution operation request to the task management platform, and the task management platform executes the task operation based on the task execution operation request and returns the execution result of the task execution operation to the database management platform; the database management platform returns the execution result of the task execution operation to the application.
[0084] In addition, optionally, the adding, deleting, searching or modifying operation of this embodiment can also be the adding, deleting, searching or modifying operation of the node through which the application accesses the corresponding database cluster. It should be noted that if the adding, deleting or modifying operation of the node through which the application accesses the corresponding database cluster is involved, the management information of the database cluster of the application can be further updated according to the execution result of the task execution operation to ensure that the management information of the database cluster of each application stored in the database management platform is always accurate.
[0085] Specifically, if the execution result indicates that a node has been deleted, added, or modified, the management information of the application database cluster needs to be updated in a timely manner so that Figure 1 The technical solution of the illustrated embodiment monitors multiple nodes through which an application accesses a corresponding database cluster based on the management information of the application's database cluster.
[0086] The database-based management method of this embodiment, by adopting the above technical solution, can process the addition, deletion, search or modification operation of the application, and after the task management platform processes it, obtain the execution result of the task execution operation returned by the task management platform, and return it to the application. Further, in this embodiment, when the addition, deletion, search or modification operation of the application involves the addition, deletion, or modification operation of the node through which the application accesses the corresponding database cluster, the management information of the database cluster of the application can be updated according to the execution result of the task execution operation, so as to ensure that the management information of the database cluster of each application stored in the database management platform is always accurate, thereby effectively improving the management efficiency of the database.
[0087] Figure 4 is a schematic diagram according to the fourth embodiment of the present application; Figure 4 As shown, this embodiment provides a management method based on a database, which may specifically include the following steps:
[0088] S401, receiving a node creation request carrying information of an abnormal node sent by a database management platform; the node creation request is sent by the database management platform when it is determined that an abnormal node exists when monitoring multiple nodes through which an application accesses a corresponding database cluster based on management information of a pre-established application database cluster;
[0089] S402: Create a replacement node with the same function for the application according to the information of the abnormal node to replace the abnormal node;
[0090] S403: Return the information of the created replacement node to the database management platform so that the database management platform can update the management information of the database cluster of the application.
[0091] The execution subject of the database-based management method of this embodiment is the task management platform. Figure 1 The difference of the embodiment shown is that: Figure 1 The embodiment shown in the figure describes the technical solution of the present application on the database management platform side, while the present embodiment describes the technical solution of the present application on the task management platform side, and its specific implementation method is completely the same as the above Figure 1 The embodiments shown are the same, and the details can be referred to above Figure 1 The description of the illustrated embodiments will not be repeated here.
[0092] The database-based management method of this embodiment, by adopting the above-mentioned technical solution, can assist the database management platform to process task operations, and feed back the execution results of the task operations to the database management platform, so that the data management platform can manage the database more effectively, thereby effectively improving the management efficiency of the database.
[0093] For example, the above Figure 4 Step S402 of the illustrated embodiment may specifically include at least one of the following:
[0094] (1) Creating a replacement access entry for the application based on the information of the abnormal access entry to replace the abnormal access entry;
[0095] When creating an access entry, you need to create an access entry of the same type as the abnormal access entry. If the abnormal access entry is a DSN, the replacement access entry created must also be a DSN to ensure that the created replacement access entry has the same function as the abnormal access entry and can replace the abnormal access entry.
[0096] (2) According to the information of the abnormal access middleware, a middleware is selected from the access middleware set to which the abnormal access middleware belongs as a replacement middleware to replace the abnormal access middleware;
[0097] In actual applications, each access entry corresponds to an access middleware set, and the access middleware configured for a certain application is one, two, or more of the access middleware set. In this embodiment, since the functions of multiple access middlewares in the same access middleware set are similar, when an abnormality is detected in a certain access middleware set, it is preferred to obtain another one from the access middleware set to which the abnormal middleware belongs as a replacement middleware to replace the abnormal access middleware.
[0098] (3) Reconstructing a storage shard identical to the abnormal storage shard based on the information of the abnormal storage shard as a replacement storage shard to replace the abnormal storage shard;
[0099] Specifically, the application data is stored on a storage node in the storage shard. Therefore, in actual scenarios, the probability of a storage shard being abnormal is low. If a storage shard is abnormal, the information of the abnormal storage shard can be used to reconstruct a storage shard that is the same as the abnormal storage shard as a replacement storage shard.
[0100] (4) If a storage node that serves as a master node in a storage shard is abnormal, a slave node is obtained from the storage shard and upgraded to a new master node to replace the abnormal master node; and
[0101] (5) If a storage node that serves as a slave node in a storage shard is abnormal, a slave node is reconstructed in the storage shard to replace the abnormal slave node.
[0102] That is, when creating a replacement node, if the master node in the storage shard is abnormal, the slave node of the storage shard is upgraded to the master node to replace the master node. If the slave node is abnormal, another slave node is reconstructed to replace the abnormal slave node.
[0103] By adopting the above technical solution, when an abnormality occurs in each node, a replacement node with the same function can be created to ensure that the application can normally access its corresponding database cluster.
[0104] Figure 5 is a schematic diagram according to the fifth embodiment of the present application; Figure 5 As shown, the database-based management method of this embodiment, in the above Figure 4 Based on the technical solutions of the embodiments shown, the technical solutions of the present application are further described in more detail. Figure 5 As shown, the database-based management method of this embodiment may specifically include the following steps:
[0105] S501, receiving a database cluster creation request carrying an application identifier sent by a database management platform;
[0106] S502, configuring and accessing a corresponding database cluster for an application through multiple nodes;
[0107] S503: Return information about multiple nodes configured for the application and passed through when accessing the corresponding database cluster to the database management platform, so that the database management platform can establish management information of the database cluster of the application.
[0108] For example, step S502 may specifically include: configuring for the application an access entry, middleware, storage shards, and storage nodes through which the application accesses the corresponding database cluster.
[0109] It should be noted that in step S502, when configuring the access portal, middleware, storage shards and storage nodes through which the application accesses the corresponding database cluster, the number of each node such as the access portal, middleware, storage shards and storage nodes can be configured.
[0110] For example, according to the preset rules, a first preset number of access portals, a second preset number of middlewares, a third preset number of storage shards, and a fourth preset number of storage nodes in each storage allocation may be configured for the application when accessing the corresponding database cluster. That is, the first preset number, the second preset number, the third preset number, and the fourth preset number are all default numbers.
[0111] In addition, optionally, the database cluster creation request received from the database management platform in step S501 may also carry access entries, middleware, storage shards, and the number of storage nodes in each storage allocation. In this case, when configuring step S502, the corresponding number of access entries, middleware, storage shards, and storage nodes in each storage allocation that are configured for the application when accessing the corresponding database cluster may be configured based on the access entries, middleware, storage shards, and the number of storage nodes in each storage allocation carried in the database cluster creation request.
[0112] The execution subject of the database-based management method of this embodiment is still the task management platform. Figure 2 The difference of the embodiment shown is that: Figure 2 The embodiment shown in the figure describes the technical solution of the present application on the database management platform side, while the present embodiment describes the technical solution of the present application on the task management platform side, and its specific implementation method is completely the same as the above Figure 2 The embodiments shown are the same, and the details can be referred to above Figure 2 The description of the illustrated embodiment will not be repeated here.
[0113] The database-based management method of this embodiment, by adopting the above-mentioned technical solution, can assist the database management platform to configure and access multiple nodes through the corresponding database cluster for the application, and after the configuration is completed, return the information of the multiple nodes configured for the application and passed through when accessing the corresponding database cluster to the database management platform, so that the data management platform can manage the database more effectively, thereby effectively improving the management efficiency of the database.
[0114] Figure 6 is a schematic diagram according to the sixth embodiment of the present application; Figure 6 As shown, the database-based management method of this embodiment, in the above Figure 4 Based on the technical solutions of the embodiments shown, the technical solutions of the present application are further described in more detail. Figure 6 As shown, the database-based management method of this embodiment may specifically include the following steps:
[0115] S601, receiving a task execution operation request carrying an application identifier sent by a database management platform; the task execution operation request is used to instruct to perform an add, delete, search or modify operation based on an application;
[0116] S602: Based on the application and the corresponding database cluster, perform an add, delete, search or modify operation;
[0117] S603, returning the execution result to the database management platform.
[0118] The execution subject of the database-based management method of this embodiment is still the task management platform. Figure 3 The difference of the embodiment shown is that: Figure 3 The embodiment shown in the figure describes the technical solution of the present application on the database management platform side, while the present embodiment describes the technical solution of the present application on the task management platform side, and its specific implementation method is completely the same as the above Figure 3 The embodiments shown are the same, and the details can be referred to above Figure 3 The description of the illustrated embodiments will not be repeated here.
[0119] For example, when the number of multiple nodes configured in step S502 for accessing the corresponding database cluster is not appropriate, adjustment can be made based on the adding, deleting, searching or modifying operation of this embodiment.
[0120] The database-based management method of this embodiment, by adopting the above-mentioned technical solution, can assist the database management platform to perform task execution operations such as adding, deleting, searching or modifying, and after the operation, return the execution result to the database management platform, so that the data management platform can manage the database more effectively, thereby effectively improving the management efficiency of the database.
[0121] Figure 7 is a schematic diagram according to the seventh embodiment of the present application; Figure 7 As shown, this embodiment provides a database management platform 700, including:
[0122] The monitoring module 701 is used to monitor multiple nodes through which an application accesses a corresponding database cluster based on pre-established management information of the application's database cluster;
[0123] The transceiver module 702 is used to send a node creation request carrying information of the abnormal node to the task management platform if there is an abnormal node among the multiple nodes, so as to create a replacement node with the same function to replace the abnormal node;
[0124] The transceiver module 702 is also used to receive the information of the created replacement node returned by the task management platform;
[0125] The updating module 703 is used to update the management information of the database cluster of the application based on the information of the replacement node and the information of the abnormal node.
[0126] The database management platform 700 of this embodiment, by adopting the above modules, realizes the realization principle and technical effect of database-based management, which is the same as that of the above-mentioned related method embodiments. For details, please refer to the records of the above-mentioned related method embodiments, which will not be repeated here.
[0127] Figure 8 is a schematic diagram according to the eighth embodiment of the present application; Figure 8 As shown, the database management platform 700 of this embodiment, in the above Figure 7 Based on the technical solution of the illustrated embodiment, the technical solution of the present application is further described in more detail.
[0128] like Figure 8 As shown, the database management platform 700 of this embodiment further includes:
[0129] The establishing module 704 is used to establish the management information of the database cluster of the application based on the information of multiple nodes configured for the application to access the corresponding database cluster.
[0130] Further optionally, a module 704 is established, specifically for:
[0131] Based on the access entry, access middleware, storage shards, and storage node information configured for the application to access the corresponding database cluster, management information of the application's database cluster is established.
[0132] Further optionally, in the database management platform 700 of this embodiment, the monitoring module 701 is specifically used for:
[0133] Based on the management information of the pre-established application database cluster, the access portal, access middleware, storage shards, and storage nodes through which the application accesses the corresponding database cluster are monitored.
[0134] Further optionally, in the database management platform 700 of this embodiment:
[0135] The transceiver module 702 is also used to receive a database cluster service creation request sent by an application;
[0136] The transceiver module 702 is further used to send a database cluster creation request carrying the identification of the application to the task management platform, so that the task management platform can configure and access the corresponding database cluster through multiple nodes for the application;
[0137] The transceiver module 702 is also used to receive information of multiple nodes configured for the application when accessing the corresponding database cluster, which is returned by the task management platform;
[0138] The establishing module 704 is further used to establish management information of the database cluster of the application based on information of multiple nodes configured for the application and passed through when accessing the corresponding database cluster.
[0139] Further optionally, in the database management platform 700 of this embodiment, the transceiver module 702 is specifically used for:
[0140] Receive the information returned by the task management platform, configured for the application, about the access entry, access middleware, storage shards, and storage nodes through which the corresponding database cluster is accessed.
[0141] Further optionally, the database cluster service creation request sent by the application carries the number of access portals, access middleware, storage shards and / or storage nodes.
[0142] Further optionally, in the database management platform 700 of this embodiment, the transceiver module 702 is further used for:
[0143] Receive add, delete, search or modify operations sent by the application;
[0144] Based on the application's add, delete, search or modify operation, send the corresponding task execution operation request to the task management platform;
[0145] Receive the execution result of the task execution operation returned by the task management platform;
[0146] Returns the result of the task execution operation to the application.
[0147] Further optionally, in the database management platform 700 of this embodiment, the update module 703 is further used to:
[0148] If the addition, deletion, or modification operation of the application involves accessing the node through which the corresponding database cluster is passed, the management information of the database cluster of the application is updated according to the execution result of the task execution operation.
[0149] The database management platform 700 of this embodiment, by adopting the above modules, realizes the realization principle and technical effect of database-based management, which is the same as that of the above-mentioned related method embodiments. For details, please refer to the records of the above-mentioned related method embodiments, which will not be repeated here.
[0150] Fig. 9 is a schematic diagram according to the ninth embodiment of the present application; Fig. 9 As shown, this embodiment provides a task management platform 900, including:
[0151] The transceiver module 901 is used to receive a node creation request carrying information of an abnormal node sent by a database management platform; the node creation request is sent by the database management platform when it is determined that an abnormal node exists when monitoring multiple nodes through which an application accesses a corresponding database cluster based on management information of a pre-established database cluster of an application;
[0152] A creation module 902, configured to create a replacement node with the same function for the application according to the information of the abnormal node, so as to replace the abnormal node;
[0153] The transceiver module 901 is further used to return the information of the created replacement node to the database management platform, so that the database management platform can update the management information of the database cluster of the application.
[0154] The task management platform 900 of this embodiment, by adopting the above modules to realize the implementation principle and technical effect of database-based management, is the same as that of the above-mentioned related method embodiments. For details, please refer to the records of the above-mentioned related method embodiments, which will not be repeated here.
[0155] Fig.10 is a schematic diagram according to the tenth embodiment of the present application; Fig.10 As shown, the task management platform 900 of this embodiment, in the above Fig. 9 Based on the technical solution of the illustrated embodiment, the technical solution of the present application is further described in more detail.
[0156] In the task management platform 900 of this embodiment, the creation module 902 is used to perform at least one of the following:
[0157] According to the information of the abnormal access entry, a replacement access entry is created for the application to replace the abnormal access entry;
[0158] According to the information of the abnormal access middleware, an access middleware is selected from the access middleware set to which the abnormal access middleware belongs as a replacement access middleware to replace the abnormal access middleware;
[0159] According to the information of the abnormal storage shard, reconstruct a storage shard identical to the abnormal storage shard as a replacement storage shard to replace the abnormal storage shard;
[0160] If a storage node that is a master node in a storage shard is abnormal, a slave node is obtained from the storage shard and upgraded to a new master node to replace the abnormal master node; and
[0161] If a storage node that serves as a slave node in a storage shard is abnormal, a slave node is reconstructed in the storage shard to replace the abnormal slave node.
[0162] Further optionally, if Fig.10 As shown, the task management platform 900 of this embodiment further includes a configuration module 903;
[0163] The transceiver module 901 is further configured to receive a database cluster creation request carrying an application identifier sent by the database management platform;
[0164] Configuration module 903, used for configuring multiple nodes for applications to access corresponding database clusters;
[0165] The transceiver module 901 is also used to return information about multiple nodes configured for the application and passed through when accessing the corresponding database cluster to the database management platform, so that the database management platform can establish management information of the database cluster of the application.
[0166] Further optionally, the configuration module 903 is specifically configured to:
[0167] The access entry, access middleware, storage shards, and storage nodes configured for the application to access the corresponding database cluster.
[0168] Further optionally, the configuration module 903 is specifically configured to:
[0169] According to preset rules, a first preset number of access portals, a second preset number of access middlewares, a third preset number of storage shards, and a fourth preset number of storage nodes in each storage allocation are configured for the application to access the corresponding database cluster through;
[0170] According to the access entries, access middleware, storage shards, and the number of storage nodes in each storage allocation carried in the database cluster creation request, the corresponding number of access entries, the corresponding number of access middleware, the corresponding number of storage shards, and the corresponding number of storage nodes in each storage allocation are configured for the application to access the corresponding database cluster.
[0171] Further optionally, if Fig.10 As shown, the task management platform 900 of this embodiment further includes an execution module 904:
[0172] The transceiver module 901 is also used to receive a task execution operation request carrying an application identifier sent by the database management platform; the task execution operation request is used to instruct to perform an add, delete, search or modify operation based on the application;
[0173] An execution module 904 is used to perform an add, delete, search or modify operation based on the application and the corresponding database cluster;
[0174] The transceiver module 901 is also used to return the execution result to the database management platform.
[0175] The task management platform 900 of this embodiment, by adopting the above modules to realize the implementation principle and technical effect of database-based management, is the same as that of the above-mentioned related method embodiments. For details, please refer to the records of the above-mentioned related method embodiments, which will not be repeated here.
[0176] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0177] like Fig.11, is a block diagram of an electronic device for implementing a database-based management method according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described herein and / or required.
[0178] like Fig.11 As shown, the electronic device includes: one or more processors 1101, a memory 1102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.11 A processor 1101 is taken as an example.
[0179] The memory 1102 is a non-transient computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to execute the database-based management method provided in the present application. The non-transient computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to execute the database-based management method provided in the present application.
[0180] The memory 1102 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the database-based management method in the embodiment of the present application (for example, the attached Figure 7 -Attached Fig.10 The processor 1101 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1102, that is, implements the database-based management method in the above method embodiment.
[0181] The memory 1102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of an electronic device that implements a database-based management method, etc. In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1102 may optionally include a memory remotely arranged relative to the processor 1101, and these remote memories may be connected to the electronic device that implements the database-based management method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0182] The electronic device implementing the database-based management method may further include: an input device 1103 and an output device 1104. The processor 1101, the memory 1102, the input device 1103 and the output device 1104 may be connected via a bus or other means. Fig.11 The example of connecting through bus is taken in the following.
[0183] The input device 1103 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device implementing the database-based management method, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 1104 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0184] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0185] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0186] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0187] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0188] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0189] According to the technical solution of the embodiment of the present application, it is possible to monitor multiple nodes through which all applications access their corresponding database clusters, and when an abnormal node appears, it is possible to timely update the management information of the application's database cluster based on the information of the replacement node created to replace the abnormal node, so as to continue to monitor the multiple nodes through which the application accesses the corresponding database cluster, and ensure that the application can access its corresponding database cluster normally. In this embodiment, regardless of whether the architecture of the database cluster corresponding to each application is the same, only one set of database management platform is required, and the above solution can be used to manage all applications at the same time, which can effectively improve the management efficiency of the database. Moreover, different database architectures do not require the development of different database management platforms, which can effectively save development costs and is very convenient for iteration and innovation of the database management platform.
[0190] According to the technical solution of the embodiment of the present application, the database management platform can be assisted to process task operations and the execution results of the task operations can be fed back to the database management platform, so that the data management platform can manage the database more effectively, thereby effectively improving the management efficiency of the database.
[0191] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0192] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A management method based on a database, wherein: The execution subject of the method is a database management platform, which is used to uniformly manage the database information of all applications; the method includes: Establishing management information of the database cluster of the application based on information of multiple nodes configured for the application to access the corresponding database cluster; Based on the management information of the pre-established database cluster of the application, multiple nodes through which the application accesses the corresponding database cluster are monitored; If there is an abnormal node among the multiple nodes, a node creation request carrying information of the abnormal node is sent to the task management platform to create a replacement node with the same function to replace the abnormal node; the task management platform is used to perform operation tasks on the database cluster, including multiple nodes configured for the application to access the corresponding database cluster, and adding, deleting, searching or modifying operations on the nodes passed by the application when accessing the corresponding database cluster; the task management platform creates a replacement node with the same function to replace the abnormal node, including at least one of the following: creating a replacement access entry for the application according to the information of the abnormal access entry to replace the abnormal access entry; entry; according to the information of the abnormal access middleware, select an access middleware from the access middleware set to which the abnormal access middleware belongs as a replacement access middleware to replace the abnormal access middleware; according to the information of the abnormal storage shard, reconstruct a storage shard identical to the abnormal storage shard as a replacement storage shard to replace the abnormal storage shard; if the storage node as the master node in the storage shard is abnormal, obtain a slave node from the storage shard and upgrade it to a new master node to replace the abnormal master node; and if the storage node as the slave node in the storage shard is abnormal, reconstruct a slave node in the storage shard to replace the abnormal slave node; Receiving information of the created replacement node returned by the task management platform; Based on the information of the replacement node and the information of the abnormal node, updating the management information of the database cluster of the application; Wherein, establishing management information of the database cluster of the application based on information of the plurality of nodes configured for the application when accessing the corresponding database cluster includes: Based on the information of the access entry, access middleware, storage shards and storage nodes configured for the application to access the corresponding database cluster, the management information of the database cluster of the application is established; the access entry is the entry configured for the application to access the corresponding database cluster, the access entry information corresponds to the set of access middleware, and the relationship between the access middleware in the set of access middleware is a peer relationship; the database cluster is divided into multiple storage shards, each storage shard is provided with multiple storage nodes, and the data stored in each storage node is consistent; Wherein, based on the management information of the pre-established database cluster of the application, multiple nodes through which the application accesses the corresponding database cluster are monitored, including: Based on the pre-established management information of the database cluster of the application, the access portal, access middleware, storage shards and storage nodes through which the application accesses the corresponding database cluster are monitored.
2. The method according to claim 1, wherein: Based on the pre-established management information of the database cluster of the application, before monitoring the multiple nodes through which the application accesses the corresponding database cluster, the method further includes: Receiving a database cluster service creation request sent by the application; Sending a database cluster creation request carrying the identification of the application to the task management platform, so that the task management platform can configure and access the corresponding database cluster for the application through the multiple nodes; receiving information of the plurality of nodes configured for the application and passed through when accessing the corresponding database cluster, returned by the task management platform; Management information of the database cluster of the application is established based on information of the plurality of nodes configured for the application and passed through when accessing the corresponding database cluster.
3. The method according to claim 2, wherein: Receiving information of the plurality of nodes returned by the task management platform and configured for the application through which the corresponding database cluster is accessed, including: Receive information returned by the task management platform, configured for the application, about the access entry, access middleware, storage shards, and storage nodes through which the corresponding database cluster is accessed.
4. The method according to claim 3, wherein: The database cluster service creation request sent by the application carries the number of access portals, access middleware, storage shards and / or storage nodes.
5. The method according to any one of claims 1 to 4, wherein: The method further comprises: Receiving an add, delete, search or modify operation sent by the application; Based on the adding, deleting, searching or modifying operation of the application, a corresponding task execution operation request is sent to the task management platform; Receiving the execution result of the task execution operation returned by the task management platform; The execution result of the task execution operation is returned to the application.
6. The method according to claim 5, wherein: If the adding, deleting, or modifying operation of the application involves accessing the corresponding node of the database cluster, after receiving the execution result of the task execution operation returned by the task management platform, the method further includes: According to the execution result of the task execution operation, the management information of the database cluster of the application is updated.
7. A management method based on a database, wherein: The execution subject of the method is a task management platform, which is used to execute operation tasks on the database cluster, including configuring multiple nodes for applications to access the corresponding database cluster, and adding, deleting, searching or modifying the nodes passed by the application when accessing the corresponding database cluster; the method includes: receiving a node creation request carrying information of abnormal nodes sent by a database management platform; the node creation request is sent by the database management platform when it is determined that an abnormal node exists when monitoring multiple nodes through which the application accesses the corresponding database cluster based on management information of a pre-established database cluster of the application; the database management platform is used to uniformly manage database information of all applications; Creating a replacement node with the same function for the application according to the information of the abnormal node to replace the abnormal node; Returning information of the created replacement node to the database management platform so that the database management platform can update management information of the database cluster of the application; Before receiving a node creation request carrying information of abnormal nodes sent by a database management platform, the method further includes: Receiving a database cluster creation request carrying the identification of the application sent by the database management platform; The multiple nodes through which the application is configured to access the corresponding database cluster; Returning information of the plurality of nodes configured for the application and passed through when accessing the corresponding database cluster to the database management platform, so that the database management platform can establish management information of the database cluster of the application; The multiple nodes through which the application is configured and accesses the corresponding database cluster include: The access entry, access middleware, storage shards and storage nodes configured for the application to access the corresponding database cluster; the access entry is the entry configured for the application to access the corresponding database cluster, the access entry information corresponds to the set of access middleware, and the relationship between the access middleware in the set of access middleware is a peer relationship; the database cluster is divided into multiple storage shards, each storage shard is provided with multiple storage nodes, and the data stored in each storage node is consistent; The step of creating a replacement node with the same function for the application to replace the abnormal node according to the information of the abnormal node includes at least one of the following: Creating a replacement access entry for the application according to the information of the abnormal access entry to replace the abnormal access entry; According to the information of the abnormal access middleware, selecting an access middleware from the access middleware set to which the abnormal access middleware belongs as a replacement access middleware to replace the abnormal access middleware; Reconstructing a storage slice identical to the abnormal storage slice according to the information of the abnormal storage slice as a replacement storage slice to replace the abnormal storage slice; If a storage node that serves as a master node in a storage shard is abnormal, a slave node is obtained from the storage shard and upgraded to a new master node to replace the abnormal master node; and If a storage node serving as a slave node in a storage shard is abnormal, a slave node is reconstructed in the storage shard to replace the abnormal slave node.
8. The method according to claim 7, wherein: The access entry, access middleware, storage shards, and storage nodes configured for the application to access the corresponding database cluster include: According to the preset rules, a first preset number of access entries, a second preset number of access middlewares, a third preset number of storage shards, and a fourth preset number of storage nodes in each of the storage allocations configured for the application when accessing the corresponding database cluster; According to the access entries, access middleware, storage shards and the number of storage nodes in each storage allocation carried in the database cluster creation request, a corresponding number of access entries, a corresponding number of access middleware, a corresponding number of storage shards and a corresponding number of storage nodes in each storage allocation are configured for the application to access the corresponding database cluster.
9. The method according to any one of claims 7-8, wherein: The method further comprises: Receiving a task execution operation request carrying the application identifier sent by the database management platform; the task execution operation request is used to instruct to perform an add, delete, search or modify operation based on the application; Based on the application and the corresponding database cluster, perform adding, deleting, searching or modifying operations; And return the execution result to the database management platform.
10. A database management platform, wherein: The database management platform is used to uniformly manage the database information of all applications; the platform includes: An establishment module, used to establish management information of the database cluster of the application based on information of multiple nodes configured for the application to access the corresponding database cluster; A monitoring module, for monitoring multiple nodes through which an application accesses a corresponding database cluster based on management information of a pre-established application database cluster; a transceiver module, for sending a node creation request carrying information of the abnormal node to a task management platform if an abnormal node exists among the multiple nodes, so as to create a replacement node with the same function to replace the abnormal node; the task management platform is used to perform operation tasks on the database cluster, including configuring multiple nodes for the application to access the corresponding database cluster, and adding, deleting, searching or modifying the nodes passed by the application when accessing the corresponding database cluster; the task management platform creates a replacement node with the same function to replace the abnormal node, including at least one of the following: creating a replacement access entry for the application according to the information of the abnormal access entry to replace the abnormal node; A normal access entrance; according to the information of the abnormal access middleware, selecting an access middleware from the access middleware set to which the abnormal access middleware belongs as a replacement access middleware to replace the abnormal access middleware; according to the information of the abnormal storage slice, reconstructing a storage slice that is the same as the abnormal storage slice as a replacement storage slice to replace the abnormal storage slice; if the storage node that serves as the master node in the storage slice is abnormal, obtaining a slave node from the storage slice and upgrading it to a new master node to replace the abnormal master node; and if the storage node that serves as the slave node in the storage slice is abnormal, reconstructing a slave node in the storage slice to replace the abnormal slave node; The transceiver module is further used to receive the information of the created replacement node returned by the task management platform; An updating module, configured to update the management information of the database cluster of the application based on the information of the replacement node and the information of the abnormal node; Wherein, the establishment module is specifically used for: Based on the information of the access entry, access middleware, storage shards and storage nodes configured for the application to access the corresponding database cluster, the management information of the database cluster of the application is established; the access entry is the entry configured for the application to access the corresponding database cluster, the access entry information corresponds to the set of access middleware, and the relationship between the access middleware in the set of access middleware is a peer relationship; the database cluster is divided into multiple storage shards, each storage shard is provided with multiple storage nodes, and the data stored in each storage node is consistent; Wherein, the monitoring module is specifically used for: Based on the pre-established management information of the database cluster of the application, the access portal, access middleware, storage shards and storage nodes through which the application accesses the corresponding database cluster are monitored.
11. The platform of claim 10, wherein: The transceiver module is further used to receive a database cluster service creation request sent by the application; The transceiver module is further used to send a database cluster creation request carrying the identification of the application to the task management platform, so that the task management platform can configure and access the corresponding database cluster through the multiple nodes for the application; The transceiver module is further used to receive information of the multiple nodes configured for the application when accessing the corresponding database cluster, which is returned by the task management platform; The establishment module is further used to establish management information of the database cluster of the application based on information of the multiple nodes configured for the application and passed through when accessing the corresponding database cluster.
12. The platform according to claim 11, wherein: The transceiver module is specifically used for: Receive information returned by the task management platform, configured for the application, about the access entry, access middleware, storage shards, and storage nodes through which the corresponding database cluster is accessed.
13. The platform according to claim 12, wherein: The database cluster service creation request sent by the application carries the number of access portals, access middleware, storage shards and / or storage nodes.
14. The platform according to any one of claims 10 to 13, wherein: The transceiver module is also used for: Receiving an add, delete, search or modify operation sent by the application; Based on the adding, deleting, searching or modifying operation of the application, a corresponding task execution operation request is sent to the task management platform; Receiving the execution result of the task execution operation returned by the task management platform; The execution result of the task execution operation is returned to the application.
15. The platform according to claim 14, wherein: The update module is further used for: If the adding, deleting, or modifying operation of the application involves accessing a node through which the corresponding database cluster is passed, the management information of the database cluster of the application is updated according to the execution result of the task execution operation.
16. A task management platform, wherein: The task management platform is used to perform operation tasks on the database; the platform includes: A transceiver module, used to receive a node creation request carrying information of an abnormal node sent by a database management platform; the node creation request is sent by the database management platform when it is determined that an abnormal node exists when monitoring multiple nodes through which the application accesses the corresponding database cluster based on management information of a pre-established application database cluster; the database management platform is used to uniformly manage database information of all applications; A creation module, used to create a replacement node with the same function for the application according to the information of the abnormal node to replace the abnormal node; The transceiver module is further used to return the information of the created replacement node to the database management platform, so that the database management platform can update the management information of the database cluster of the application; Wherein, the platform also includes a configuration module; The transceiver module is further configured to receive a database cluster creation request sent by the database management platform and carrying the identification of the application; The configuration module is used to configure the application to access the corresponding database cluster through the multiple nodes; The transceiver module is further used to return information about the multiple nodes configured for the application and passed through when accessing the corresponding database cluster to the database management platform, so that the database management platform can establish management information of the database cluster of the application; Wherein, the configuration module is specifically used for: The access entry, access middleware, storage shards and storage nodes configured for the application to access the corresponding database cluster; the access entry is the entry configured for the application to access the corresponding database cluster, the access entry information corresponds to the set of access middleware, and the relationship between the access middleware in the set of access middleware is a peer relationship; the database cluster is divided into multiple storage shards, each storage shard is provided with multiple storage nodes, and the data stored in each storage node is consistent; The creation module is used to perform at least one of the following: Creating a replacement access entry for the application according to the information of the abnormal access entry to replace the abnormal access entry; According to the information of the abnormal access middleware, selecting an access middleware from the access middleware set to which the abnormal access middleware belongs as a replacement access middleware to replace the abnormal access middleware; Reconstructing a storage slice identical to the abnormal storage slice according to the information of the abnormal storage slice as a replacement storage slice to replace the abnormal storage slice; If a storage node that serves as a master node in a storage shard is abnormal, a slave node is obtained from the storage shard and upgraded to a new master node to replace the abnormal master node; and If a storage node serving as a slave node in a storage shard is abnormal, a slave node is reconstructed in the storage shard to replace the abnormal slave node.
17. The platform according to claim 16, wherein: The configuration module is specifically used for: According to the preset rules, a first preset number of access entries, a second preset number of access middlewares, a third preset number of storage shards, and a fourth preset number of storage nodes in each of the storage allocations configured for the application when accessing the corresponding database cluster; According to the access entries, access middleware, storage shards and the number of storage nodes in each storage allocation carried in the database cluster creation request, a corresponding number of access entries, a corresponding number of access middleware, a corresponding number of storage shards and a corresponding number of storage nodes in each storage allocation are configured for the application to access the corresponding database cluster.
18. The platform according to any one of claims 16-17, wherein: The platform also includes an execution module; The transceiver module is further used to receive a task execution operation request carrying the application identifier sent by the database management platform; the task execution operation request is used to instruct to perform an add, delete, search or modify operation based on the application; The execution module is used to perform an add, delete, search or modify operation based on the application and the corresponding database cluster; The transceiver module is also used to return the execution result to the database management platform.
19. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6 or 7-9.
20. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6 or 7-9.
21. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1-6, or 7-9.
