superfly / litefs

FUSE-based file system for replicating SQLite databases across a cluster of machines
Apache License 2.0
3.97k stars 95 forks source link

Retry Fly.io environment metadata update on HTTP 429 #364

Closed benbjohnson closed 1 year ago

benbjohnson commented 1 year ago

The fly.Environment can fail to set the primary status if the state changes too quickly. For example, a node can startup as a "replica" and immediately get promoted to "primary" but this exceeds the rate limit of the API.

benbjohnson commented 1 year ago

Closed via https://github.com/superfly/litefs/pull/366