# Slow down reconnects on collab \(\#32418\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ee2a3299815ea29770491b34592a448d95761cdb)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ee2a3299815ea29770491b34592a448d95761cdb

Requested commit: ee2a3299815ea29770491b34592a448d95761cdb

Commit: ee2a3299815ea29770491b34592a448d95761cdb

Tree: 58f7e5d6b6d6ed4bc7fd9efeed92c1c1db2cb75c

Author: Conrad Irwin

Committer: GitHub

## Message

```
Slow down reconnects on collab (#32418)

We believe that collab deploys currently cause outages because:

* All clients try to reconnect simultaneously
* This causes very high CPU usage on collab (and to some extent, the
database)
* This means that collab is slow to respond to clients
* So clients timeout and retry, over and over again.

We hope by letting clients in in buckets of 512, we can accept some
minor slowness to avoid
complete downtime, while we rewrite the system.

Release Notes:

- N/A
```

## Parents

- [6d64058fc61e58810c1e524ab99eafdd1d135a10](https://git.cafe/gitcafe/zed/commit/6d64058fc61e58810c1e524ab99eafdd1d135a10?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ee2a3299815ea29770491b34592a448d95761cdb?format=markdown)
