| CPC G06F 11/1435 (2013.01) [G06F 9/5022 (2013.01); G06F 9/5038 (2013.01); G06F 9/505 (2013.01); G06F 16/245 (2019.01); G06F 16/256 (2019.01)] | 30 Claims |

|
1. A network-based database system comprising:
at least one hardware processor; and
a memory storing instructions that cause the at least one hardware processor to perform operations comprising:
determining, from a set of instances of compute service managers, a set of candidate compute service managers that are safe from quiescing, the determining based at least in part on determining that each of the set of candidate compute service managers has yet to undergo upgrading, downgrading, rebalancing for clusters, cluster scaling, or a cluster instance type change;
selecting a candidate compute service manager from the set of candidate compute service managers to issue a query restart by selecting an execution node, the execution node being included in a particular virtual warehouse associated with the candidate compute service manager;
receiving a notification indicating that a particular compute service manager has been quiesced;
determining a set of jobs that are not yet scheduled for execution and eligible for query retry;
determining a second set of jobs from the set of jobs to send at least another compute service manager for execution, the at least another compute service manager being selected based on an amount of resources that at least another compute service manager is currently utilizing;
sending the second set of jobs to the at least another compute service manager for execution, the sending enabling better utilization of cluster resources; and
executing, by the at least another compute service manager, the second set of jobs.
|