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

Unify experiment state #1

Open
jonakarl opened this issue Apr 11, 2019 · 0 comments
Open

Unify experiment state #1

jonakarl opened this issue Apr 11, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@jonakarl
Copy link
Collaborator

The Scheduler, the container-deploy/start/stop monroe-sync-experiments /experiments should have a common way to see the state of a experiment (ie deployed/started/running/stopped etc).

Currently the these component detect experiment status via (possibly not complete) :
Scheduler (afaik) :

  • return codes from container-* scripts
  • ${schedid}.status file

container-deploy:

  • /usr/bin/experiments (to see if any experiment is running)
  • ps ax|grep docker|grep pull (to see if any container is being download)

container-start:

  • docker ps | grep $CONTAINER_NAME) . #!!!Will fail on virtual machines

container-stop:

  • docker inspect $CONTAINER_NAME
  • ${schedid}.pid . (what process to kill)

monroe-sync-experiments:

  • /usr/bin/experiments -a (to list all experiments)
  • ${schedid}.stopped . (to see if the experiment is stopped by the container-stop script)
  • $SCHEDID.pid . (to see what to kill if over qouta)
  • The contents of /$SCHEDID . (if it is empty and .stopped it deltes all files)

experiments:

  • directories existing in $USERDIR
  • SCHEDID.pid
@jonakarl jonakarl added the enhancement New feature or request label Apr 11, 2019
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
None yet
Development

No branches or pull requests

1 participant