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

How can I get marathon to restart all services after reboot ? #306

Open
kopax opened this issue Sep 14, 2020 · 2 comments
Open

How can I get marathon to restart all services after reboot ? #306

kopax opened this issue Sep 14, 2020 · 2 comments

Comments

@kopax
Copy link
Contributor

kopax commented Sep 14, 2020

Hello all, and thanks for reading.

I am testing v0.4.3 in standalone mode.

After starting two services on marathon, I have tried to reboot the server with sudo reboot.

After reboot, PanteraS is starting but marathon is not restoring any services despites the following mounted volumes:

  volumes:
    - "/etc/resolv.conf:/etc/resolv.conf.orig"
    - "/var/run/docker.sock:/tmp/docker.sock"
    - "/var/run/docker.sock:/var/run/docker.sock"
    - "/var/lib/docker:/var/lib/docker"
    - "/sys:/sys"
    - "/tmp/mesos:/tmp/mesos"
    - "/tmp/supervisord:/tmp/supervisord"
    - "/tmp/consul/data:/opt/consul/data"
    - "/tmp/zookeeper:/var/lib/zookeeper/version-2"
    - "/proc:/host/proc:ro" 
    - "/sys:/host/sys:ro"
    - "./docker.tar.gz:/etc/docker.tar.gz"

I expected - "/tmp/mesos:/tmp/mesos" and - "/tmp/zookeeper:/var/lib/zookeeper/version-2" to save the state.

How can I get marathon to restart all services after reboot ?

@kopax kopax closed this as completed Sep 14, 2020
@RiRa12621
Copy link
Collaborator

hey @kopax did you get that fixed/done?
If so would you mind sharing your solution so others could find it in the future?

@kopax
Copy link
Contributor Author

kopax commented Sep 16, 2020

Hi @RiRa12621, no I did not fixed it.

People recommend to use a task scheduler like chronos. I personally use gitlab ci runner to deploy the image. If the server crash, app are not manually restarted and that is an issue. I must run the pipeline, but I can also schedule it as in chronos to have it run every 12h for example. I wish a better option exist and someone here car share it, having multiple runner for restoring the state seems a bit too heavy. You can also not use marathon and start the container with restart: always.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants