Add 'Fail' mode when no shard selected

This commit is contained in:
Vita Tauer
2024-11-06 16:40:24 +01:00
parent 0ee59c0c40
commit a1690a76c5
4 changed files with 7 additions and 1 deletions

View File

@@ -179,6 +179,7 @@ primary_reads_enabled = true
# `random`: picks a shard at random
# `random_healthy`: picks a shard at random favoring shards with the least number of recent errors
# `shard_<number>`: e.g. shard_0, shard_4, etc. picks a specific shard, everytime
# `fail`: fails to pick up shard. (require explicit shard setup)
# default_shard = "shard_0"
# So what if you wanted to implement a different hashing function,