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

Reschedule and relocate container that won't start on a host #3015

Closed
samart opened this issue Aug 12, 2017 · 2 comments
Closed

Reschedule and relocate container that won't start on a host #3015

samart opened this issue Aug 12, 2017 · 2 comments

Comments

@samart
Copy link

samart commented Aug 12, 2017

nomad 0.6

In this test case, we have a host that cannot schedule containers since docker engine's cert is bad . But nomad retries only in the same host which is pointless in this case.

2017/08/09 02:28:25.025425 [ERR] driver.docker: failed pulling container registry:5000/org/fam/app/service:v0.4: API error (500): {"message":"Get https://registry:5000/v1/_ping: x509: certificate signed by unknown authority"}

our mesos/marathon cluster will select a different host (usually) and chances are the service will then be up an running on another host, as opposed to being down. This might be due to bin packing vs spread.

Perhaps there could be a restart mode for this behavior:

restart {
  mode = "relocate"  # this is a specialization of "delay". 
}

If constrained to the host, then this is equivalent to delay. This will allow nomad to still schedule successfully even when hosts are not fully functional for some reason.

@samart samart changed the title Reschedule container that won't start on a host Reschedule and relocate container that won't start on a host Aug 12, 2017
@dadgar
Copy link
Contributor

dadgar commented Aug 14, 2017

Hey @samart,

Closing in favor of #1461

@dadgar dadgar closed this as completed Aug 14, 2017
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants