Skip to content

When to use restarts unlimited? #30

@leoj3n

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions