Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graceful error handling #2

Open
riptl opened this issue Jan 13, 2022 · 0 comments
Open

Graceful error handling #2

riptl opened this issue Jan 13, 2022 · 0 comments

Comments

@riptl
Copy link

riptl commented Jan 13, 2022

The plugin currently has two error handling modes: panic_on_db_errors or "log error and ignore".

Occasional errors sending data to PostgreSQL are expected however, e.g. when the DB host reboots or if there is a network blip.
Therefore in production "log error and ignore" is the only choice.

Since Solana mainnet does several thousand updates per second to accounts this results in a flood of error messages in the log in the case of downtime.

To reduce the error rate, I suggest the workers should back off exponentially with writes until Postgres is back up by introducing sleeps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant