jogramming / dshardmanager

Simple shard manager for discordgo
26 stars 5 forks source link

Connection flickering #7

Closed bkuhl closed 6 years ago

bkuhl commented 6 years ago

I'm curious if anyone else is experiencing this as I'm unsure if it's an issue with my infrastructure, something on Discord's ends, or perhaps even something in the library. The shards seem to regularly refresh their connection.

My logs show:

3/28/2018 3:31:37 PM2018/03/28 19:31:37 [Shard Manager] [8/10] Disconnected
3/28/2018 3:31:37 PM2018/03/28 19:31:37 [Shard Manager] [8/10] Connected
3/28/2018 3:31:37 PM2018/03/28 19:31:37 [Shard Manager] [8/10] Resumed
3/28/2018 3:32:24 PM2018/03/28 19:32:24 [Shard Manager] [2/10] Disconnected
3/28/2018 3:32:24 PM2018/03/28 19:32:24 [Shard Manager] [2/10] Connected
3/28/2018 3:32:24 PM2018/03/28 19:32:24 [Shard Manager] [2/10] Resumed
3/28/2018 3:54:22 PM2018/03/28 19:54:22 [Shard Manager] [5/10] Disconnected
3/28/2018 3:54:22 PM2018/03/28 19:54:22 [Shard Manager] [5/10] Connected
3/28/2018 3:54:22 PM2018/03/28 19:54:22 [Shard Manager] [5/10] Resumed
3/28/2018 3:55:39 PM2018/03/28 19:55:39 [Shard Manager] [10/10] Disconnected
3/28/2018 3:55:39 PM2018/03/28 19:55:39 [Shard Manager] [10/10] Connected
3/28/2018 3:55:40 PM2018/03/28 19:55:40 [Shard Manager] [10/10] Resumed
3/28/2018 3:55:41 PM2018/03/28 19:55:41 [Shard Manager] [3/10] Disconnected
3/28/2018 3:55:42 PM2018/03/28 19:55:42 [Shard Manager] [3/10] Connected
3/28/2018 3:55:42 PM2018/03/28 19:55:42 [Shard Manager] [3/10] Resumed

There are no signs anywhere else in my infrastructure of any networking issues. This bot is deployed via Docker and many other services between a cluster of hosts. On this same host, we're also running redis with no issues.

Any input/feedback would be appreciated from anyone else using this.

jogramming commented 6 years ago

This is normal with discord. It's on their end. I can see they're all resuming there which means you're not missing any events.

jogramming commented 6 years ago

Additionally: you might find the reason if you turn the discordgo logging verbosity up