| CPC G06F 16/27 (2019.01) [G06F 9/4881 (2013.01)] | 20 Claims |

|
1. A method for scheduling a multi-node cluster of K-DB database, comprising following steps:
connecting an application terminal and a scheduler to a cluster of a K-DB database through a service extranet, and connecting respective database nodes in the cluster of the database to each other through an intranet;
in response to that an application request is received by the scheduler, determining whether the request is a table query, and in response to that the request is the table query, determining whether the request is a multi-table-joint query;
in response to that the request is the multi-table-joint query, determining tables to be queried in the request, and determining respective database nodes having a highest table version;
determining types of change values of the respective tables according to types of latest-update operations of the respective tables, and calculating amount of updated data of the respective tables according to the types of the change values; and
selecting a database node, the amount of updated data of which is the smallest, from the respective database nodes having the highest table version, as a computing node, synchronizing the tables of other database nodes having the highest table version to the computing node, and executing the multi-table-joint query by the computing node,
wherein the determining the respective database nodes having the highest table version, comprises: obtaining a version number of the table from information recorded in the scheduler, wherein each time a modifying operation is performed on the data of the table, the version of the table is added by one.
|