Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

traefik: wait for marathon before starting (smlr) #1281

Merged
merged 3 commits into from
Mar 28, 2016

Conversation

ryane
Copy link
Contributor

@ryane ryane commented Mar 16, 2016

  • Installs cleanly on a fresh build of most recent master branch
  • Upgrades cleanly from the most recent release
  • Updates documentation relevant to the changes (n/a)

fixes #1073

@ryane ryane added the bug label Mar 16, 2016
@ryane ryane added this to the 1.0.4 milestone Mar 16, 2016
@@ -49,6 +58,7 @@
- jq
- java-1.8.0-openjdk
- chrony
- smlr
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put this in the common role b/c I think we'll be able to use it in other services (marathon waiting for zookeeper, for example) in future PRs. Let me know if anyone thinks this is a bad idea.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me.

@langston-barrett
Copy link
Contributor

LGTM!

@ryane
Copy link
Contributor Author

ryane commented Mar 16, 2016

smlr packaging is actually not quite right... we are ending up with /usr/bin/smlr_0.0.1_linux_amd64 instead of just /usr/bin/smlr

@ryane
Copy link
Contributor Author

ryane commented Mar 16, 2016

waiting on mantl/mantl-packaging#66

@ryane ryane modified the milestones: 1.0.4, 1.1 Mar 17, 2016
@BrianHicks
Copy link
Contributor

merged mantl/mantl-packaging#66

@ryane
Copy link
Contributor Author

ryane commented Mar 22, 2016

@sehqlr ready to test.

the problem it solves is intermittent so just verify that the traefik* services are healthy in consul after a build and that there is an entry for smlr in the traefik logs. Something like:

sudo journalctl -lu traefik
...
Mar 22 20:49:07 ip-10-1-2-98.ec2.internal smlr[6827]: time="2016-03-22T20:49:07Z" level=info msg=update done=true message="service available"
...

dest: /etc/systemd/system/traefik.service.d/marathon.conf
content: |
[Service]
ExecStartPre=-/usr/bin/smlr http {{ traefik_marathon_endpoint }}/v2/leader
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the convenience of having this inline, but most everything else we do like this is rendered as a template. Should this be as well for consistency's sake?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switched to a template in d5635d5

@BrianHicks
Copy link
Contributor

LGTM! ⛵

@sehqlr sehqlr self-assigned this Mar 26, 2016
@ryane ryane merged commit c94b82d into master Mar 28, 2016
@ryane ryane deleted the fix/traefik-startup-race branch March 28, 2016 13:38
@ryane ryane unassigned sehqlr Nov 7, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Traefik health check warning
5 participants