Move embright worker to be of the kind: StatefulSet as the openmp worker
Move the em_bright container to preserve data since a restar of the restart of the container would require to download 1GByte of data.
-
Change kind: from Deployment to StatefulSet -
Define an InitContainer stage that execute: python -c "from ligo.em_bright import em_bright"
. This commad should be re-runned since it is successful.
To operate em_bright, you need to download model files and sore them in the local cache.
- 963M /home/gwcelery/.ligo.em_bright/
This is achieved with the command (in the pod): python -c "from ligo.em_bright import em_bright"
The command (some time fails) may need to be rerun. The reson is possible timeout and error from the server:
- ligo.em_bright.PACKAGE_DATA_BASE_URL -> 'https://git.ligo.org/emfollow/em-properties/em-bright/-/raw/v1.2.2/ligo/em_bright/data'
- ligo.em_bright.PACKAGE_DATA_LINKS -> {'equil_2H.dat': 'https://git.ligo.org/emfollow/em-properties/em-bright/-/raw/v1.2.2/ligo/em_bright/data/equil_2H.dat', .... , 'MBTA_SSM.pickle': 'https://git.ligo.org/emfollow/em-properties/em-bright/-/raw/v1.2.2/ligo/em_bright/data/MBTA_SSM.pickle'}
Edited by Roberto DePietri