From 061e111f8f06d6c0c194bc8360d8c509b895cf2c Mon Sep 17 00:00:00 2001 From: skelmis Date: Thu, 4 Jan 2024 18:26:15 +1300 Subject: [PATCH] chore: move to 5 shards per cluster --- suggestions/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/suggestions/main.py b/suggestions/main.py index 976b637..0998a43 100644 --- a/suggestions/main.py +++ b/suggestions/main.py @@ -28,12 +28,13 @@ async def create_bot(database_wrapper=None) -> SuggestionsBot: is_prod: bool = True if os.environ.get("PROD", None) else False if is_prod: + # TODO Fix this # request = httpx.get("http://localhost:7878/shard-count") # total_shards = int(request.text) total_shards = 70 cluster_id = int(os.environ["CLUSTER"]) offset = cluster_id - 1 - number_of_shards_per_cluster = 10 + number_of_shards_per_cluster = 5 shard_ids = [ i for i in range(