Patent ID: 11914624
Assignee: COUPANG CORP.
Field: Computer technology (Electrical engineering)
Classification: CPC G  H | IPC G

Claim 0:
1. A method for managing cluster workloads, the method comprising:
receiving, from a user device, a query;
parsing, at a parsing module, a table property from the query;
determining whether a time complexity of the query is above an execution time threshold;
based on determining that the time complexity of the query is above the execution time threshold:
sending a message to the user device comprising at least one of an indication of longer execution time, a suggestion of revisions to the query, or a notification that the query will not be sent for execution;

based on determining that the time complexity of the query is below the execution time threshold:
sending a message to the user device wherein the message comprises at least one of an indication of an estimated query execution time or a notification that the query will be sent for execution;
determining that the parsed table property is associated with a stored table;
identifying at least one cluster from among a plurality of clusters including the stored table;
identifying, using a polling module, an optimal cluster from among the at least one cluster by:
determining, for each cluster of the at least one cluster, an execution lead time, a number of connections, a network latency, and an associated power consumption,
wherein the optimal cluster comprises a cluster with at least one of a least execution time, a least number of connections, a least network latency, or an associated power consumption; and
sending the query to the optimal cluster for execution.