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

Add support for --health-start-period in Compose/Stack file #116

Closed
vide opened this issue May 22, 2017 · 17 comments
Closed

Add support for --health-start-period in Compose/Stack file #116

vide opened this issue May 22, 2017 · 17 comments

Comments

@vide
Copy link

vide commented May 22, 2017

Description

With Docker CE 17.05 there is the brand new --health-start-period option for a service, implemented with moby/moby#28938. But there is no such option available in a Compose/Stack file, so we can properly manage it with a YAML file.

I think I'm not qualified to propose the key name that should eventually implemented in theCompose file but I'd say that start_period, under healthcheck could be a good name.

@electrofelix
Copy link

Should this be against the docker/compose project as opposed to the docker/cli?

@vide
Copy link
Author

vide commented Jun 6, 2017

@electrofelix Don't know, @thaJeztah pointed me to this repo. My request is that this config should be implemented in Stack and should be gracefully ignored in Compose

@electrofelix
Copy link

Having see this appear in CE, I was going to open a request in the compose project for it to be supported when I stumbled across this issue. Noticed that the code in this repo already supports a --health-start-period, but couldn't find any connection between as to where issues belong, so just a little confused as to whether I should only track this issue or log a separate one for the behaviour to be added to compose ahead for the 17.06 release which I'm guessing will be the first stable release to include this?

@omerh
Copy link

omerh commented Jun 20, 2017

Is there an issue in compose project?

@thaJeztah
Copy link
Member

ping @shin- do you know? ^^

@shin-
Copy link
Contributor

shin- commented Jun 20, 2017

docker/compose#4646 is the closest we've had, but now that the feature's in engine we can open a new ticket.

@vide
Copy link
Author

vide commented Jun 21, 2017

@thaJeztah and what about Stack, which is where the issue is more relevant? Right now I have to deploy a stack with a yaml file and then issue a docker service update ASAP to update the healthcheck-start-period so my service can actually start and not be killed over and over by Swarm

@vdemeester vdemeester self-assigned this Jun 25, 2017
adriel added a commit to adriel/denyhosts-sync-docker that referenced this issue Jul 14, 2017
Seems it’s not yet supported docker/cli#116
but also don’t really need it with the 5min interval.
@Clcanny
Copy link

Clcanny commented Jul 16, 2017

  • 1
    I' m borther by this problem more than 48 hours.

@vide
Copy link
Author

vide commented Aug 8, 2017

@vdemeester Since you are the assignee, can you tell us if/when this is going to be implemented? Thanks :)

@vdemeester
Copy link
Collaborator

@vide ohh dang it I forgot about that one… 🤔 I'll try to work on sthg during August 👼 (so I'm hoping to get it in 17.08 or at least in 17.09 (stable)

@NicoTexas
Copy link

Still targeted for 17.08?

@denverdino
Copy link
Contributor

Submit the PR #475

@vdemeester vdemeester removed their assignment Aug 29, 2017
@vide
Copy link
Author

vide commented Sep 28, 2017

@denverdino thanks for the PR! I'll update my preprod cluster to 17.09 ASAP and try it out

@rdxmb
Copy link
Contributor

rdxmb commented Oct 13, 2017

as commented in the pull request:
Not working for me with 17.09 CE

tried with
start-period and start_period

@dnephin
Copy link
Contributor

dnephin commented Oct 13, 2017

It was added to v3.4 of the compose file, what version do you have in the file?

@rdxmb
Copy link
Contributor

rdxmb commented Oct 13, 2017

just updated to v3.4 . Looks good!
Started and could find the "StartPeriod" with docker inspect.

Thanks!

@fentas
Copy link

fentas commented Oct 27, 2017

Here is the corresponding pull docker/compose#5101

@vide vide closed this as completed Oct 27, 2017
trapier pushed a commit to trapier/cli that referenced this issue Sep 30, 2019
…-master-774d78fcb84053f7648fae2358d7657feeb6b03b

[master] sync to upstream master 774d78f
@thaJeztah thaJeztah added this to the 17.09.0 milestone Oct 4, 2019
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