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

Delete Analysis/project doesnt delete server stored datapoints #792

Open
Raul-Ciria-Aylagas opened this issue Sep 13, 2024 · 2 comments
Open

Comments

@Raul-Ciria-Aylagas
Copy link

Raul-Ciria-Aylagas commented Sep 13, 2024

Delete Project/Analysis doesn't delete server stored results

Description

When you complete an analysis that stores for example the .zip of the datapoint or the html reports of the datapoint in the server, those files are stored in osdata/server/assets/data_points. If the case is big enough, each datapoint can have about 5MB of storage. With a complete analysis of ~1000 datapoints, that is at least 5GB of storage just in datapoint files.
If you end up having a bunch of analyses and projects in your server, you might want to clean some of the analyses to save space, however if you Delete the project or Destroy the analysis, the analysis' datapoint files stored in osdata/server/assets/data_points are not deleted, clogging up the server.

Reproduction steps:

  1. Do an analysis with the options to load the result files to the server (i.e. using PAT)
  2. Delete the project or Destory the analysis by clicking that option in the server web.
  3. See that the datapoints files are still in the folder osdata/server/assets/data_points.

Actual outcome: Datapoint files are still ocupying disk space

Expected outcome: Analysis datapoints should be deleted together with the analysis

Openstudio Server version: v3.8.0

docker-compose.yml file used: local_setup_scripts/docker-compose.yml

@brianlball
Copy link
Contributor

Thank you for the detailed issue. One question, is this for a "remote" docker / k8s deployment or the local server that comes with PAT?

@Raul-Ciria-Aylagas
Copy link
Author

I used a remote docker deployment with the openstudio-server/local_setup_scripts/docker-compose.yml.

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

2 participants