CPC G06F 16/2453 (2019.01) [G06F 11/3006 (2013.01); G06F 11/3495 (2013.01)] | 20 Claims |
1. A method, comprising:
periodically retrieving, by a distributed database node, health metrics from mirror hosts, values of the health metrics summarizing database activity on a respective mirror host since previous values of the health metrics were retrieved;
receiving, by the distributed database node, a database query for an entry previously inserted during a specified time period; and
in response to receiving the database query:
generating, at the distributed database node, respective health scores for the mirror hosts based on the health metrics retrieved from respective mirror hosts for the specified time period, the respective health scores for the mirror hosts corresponding to the specified time period during which the entry of the database query was previously inserted;
selecting, by the distributed database node, one of the mirror hosts to perform the database query based on the respective health scores of the mirror hosts relative to a threshold health score; and
forwarding the database query from the distributed database node to the selected one of the mirror hosts.
|