Skip to content

Commit

Permalink
chore: move to 5 shards per cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
Skelmis committed Jan 4, 2024
1 parent cc4fcee commit 061e111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion suggestions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 061e111

Please sign in to comment.