BM-613: Use postgres by default in the broker #397
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently we use sqlite, but we've consistently been seeing issues of the form:
A change was made to reduce max connections to 1 to combat this. This likely helped, but the issue has actually still been occurring- just with not enough frequency to trigger alarms until earlier this week.
We are unable to reproduce the issue which makes this hard to fix, even with custom built db fuzz testing. Additionally Sqlite is not recommended for use cases that perform concurrent writes as the entire database is locked on every write. Since we have multiple tasks trying to update rows for different orders and different tables, it might just be a case of us using the wrong DB for the job.
This PR changes the default DB to postgres. Sqlite support is left for ease of running tests.
Currently draft as the docker compose setup needs to be updated, and needs manual testing