-
Notifications
You must be signed in to change notification settings - Fork 77
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
Prod Burr using S3-backed API, initial scaffolding/implementation #288
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5487491
to
d7070be
Compare
d7070be
to
c909488
Compare
This way the user can write to s3 and have Burr server pick it up.
We need this to write the log files to s3 and index them properly.
High-level architecture: 1. Clients writes to s3 bucket 2. Server powers up with a SQLite(pluggable) db 3. Server indexes the s3 on a recurring job 4. We have pointers for everything in the UI stored in the db except the data for the traces 5. Server saves/loads sqlite database with highwatermark to s3 We have not implemented (5) yet, but the rest are done. Some specifics: 1. backend has been broken into mixins -- e.g. indexing backend, standard backend, etc... -- this allows us to have it implement classes and have that be called 2. If it's the indexing backend we have an admin view with jobs 3. We use tortoise ORM to make switching between DBs easy -- we will very likely enable postgres soon 4. The indexing function should be easy to invert control -- E.G. rather than writing to s3, we write to the server which logs to s3. 5. We store a high-watermark so we don't go over the same one twice
We also made it so we can wire through the s3 data through the command
This has pages on indexing jobs + a few other updates
This is a hack for the local version, soon we'll be using postgres/others and it will be less necessary.
You can now: 1. List all apps of a partition key 2. Navigate to a specific partition key Note that the file storage is still not distinct between partition keys. This will change stability of URL but that's OK for now. For null partition keys we just use __none__.
50369f5
to
3517328
Compare
skrawcz
approved these changes
Aug 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Will fill in with architecture later
Changes
How I tested this
Notes
Required for prod:
Checklist