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

Persist Auctioneer Bid DB to S3 #2745

Open
wants to merge 5 commits into
base: express-lane-timeboost
Choose a base branch
from

Conversation

ganeshvanahalli
Copy link
Contributor

@ganeshvanahalli ganeshvanahalli commented Oct 18, 2024

This PR enables auctioneer to persist validated bids, that are currently stored in a local SQLite database to AWS S3.

We introduce S3StorageService configurable via --auctioneer-server.s3-storage.* config options, that when enabled, will periodically (via --auctioneer-server.s3-storage.upload-interval) upload validated bids from local db to the configured aws S3 bucket and upon success- removes these bids from the local db.

The bids are uploaded in batches in the form of csv files compressed with gzip. The file name would be

<--s3-storage.object-prefix>validated-timeboost-bids/<year>/<month>/<day>/<fist-round-number-in-batch>.csv.gzip

Resolves NIT-2783

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Oct 18, 2024
@ganeshvanahalli ganeshvanahalli marked this pull request as ready for review October 18, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant