Client sharding for multiple node k8s cluster #2701
Unanswered
gurkanguran
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I currently use DiscordSocketClient which is being handled in each pod in my k8s cluster.
I am applying manual sharding by processing the interaction command only if it's the correct pod based on a sharding formula.
However, I'd like to switch to using DiscordShardedClient instead so I don't need to do this manual sharding by myself but i could not find any example which applies sharding correctly in .NET.
This is how I implemented but it didn't work, the interactions were received by all of the DiscordShardClient instances in multiple pods:
Is there anything else I need to set? Maybe some config?
Beta Was this translation helpful? Give feedback.
All reactions