Skip to content

When to use restarts unlimited? #30

Open

Description

@leoj3n

For the frontend/containerpilot.json5, the consul-agent and memory-sensor jobs have restarts: 'unlimited', but the frontend job doesn't:

{
name: 'frontend',
port: {{.PORT}},
exec: 'node /opt/app/',
health: {
exec: '/usr/bin/curl -o /dev/null --fail -s http://localhost:{{.PORT}}/check-it-out',
interval: 2,
ttl: 5
},
tags: [
'traefik.backend=frontend',
'traefik.frontend.rule=Path: /,/lib/{[a-z]+},/js/{[a-z]+}',
'traefik.frontend.entryPoints=http,ws,wss'
]
},

I'm trying to understand when restarts: 'unlimited' should be used.

Can someone explain to me why the frontend job is not restarts: 'unlimited' while the consul-agent and memory-sensor jobs are?

Activity

  1. leoj3n commented on Apr 26, 2019

    @leoj3n
    ContributorAuthor

    Is it because you want to know when there's been a critical failure in the frontend, and if there was it should probably be restarted manually, whereas the agent and sensor are less critical?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions