Skip to content

nuwang/tpv-db-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usegalaxy-federation-to-tpv-db

Generate updates for the TPV shared db based on usegalaxy.* federation stats

installation

virtualenv venv
. venv/bin/activate
pip install -r requirements.txt

usage

  1. Make sure that the views defined in views.py are already deployed in your database
  2. Run python mem-optimize.py "postgresql+asyncpg://username:password@localhost/galaxy" which will generate output.yaml. This file will contain wastage stats for each tool.
  3. Run python update-shared-db.py /path/to/tpv-shared-database/tools.yml output.yaml. This will update resource requirements in tpv's shared database based on the wastage stats in output.yaml.

About

Generate updates for the TPV shared db based on usegalaxy.* federation stats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages