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

Archive to cold storage #13

Open
mjaquiery opened this issue Feb 6, 2024 · 0 comments
Open

Archive to cold storage #13

mjaquiery opened this issue Feb 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mjaquiery
Copy link
Collaborator

mjaquiery commented Feb 6, 2024

Is your feature request related to a problem? Please describe.

Data always goes into galvanalyser but never comes out..... Eventually you'll either run out of disk space or end up paying a lot for disks

Describe the solution you'd like

Functionality to archive a dataset to cold storage.

  • This storage would just be an S3 bucket, defined in .env (url, username, password)
  • Button in UI to initiate archive for a given dataset
    • data for that dataset is written to a hdf5 file (or other suitable, compressible binary format suitable for long term storage)
    • file is written to S3 bucket to a filename based on the dataset id
    • dataset is deleted from database, but the metadata is retained. Add flag to metadata indicating that this dataset has been archived
  • Button in UI to initiate loading from archive
    • data is read from file in S3 bucket back into the database
    • archive flag cleared
  • General: there needs to be checks to handle archived data (e.g. don't plot datasets that have been archived). API endpoints to provide data error if the dataset has been archived.

Additional context

None.

Raised originally by @martinjrobins Battery-Intelligence-Lab/galv#79 (comment)

@mjaquiery mjaquiery added the enhancement New feature or request label Feb 6, 2024
@mjaquiery mjaquiery moved this to In review in Galv development Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant