The smaller the value, the more often data is flushed into the table. Setting the value too low leads to poor performance.
## load_balancing
## load_balancing {#settings-load_balancing}
Specifies the algorithm of replicas selection that is used for distributed query processing.
Performing the distributed query in replicated setup, ClickHouse should define an order that will be used for sending the query to replicas. ClickHouse supports the following algorithms of choosing replicas:
ClickHouse supports the following algorithms of choosing replicas:
@@ -551,6 +551,17 @@ This algorithm chooses the first replica in order or a random replica if the fir
The `first or random` algorithm solves the problem of the `in order` algorithm. The problem is: if one replica goes down, the next one handles twice the usual load while remaining ones handle usual traffic. When using the `first or random` algorithm, the load on replicas is leveled.