[ 
https://issues.apache.org/jira/browse/MESOS-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14638981#comment-14638981
 ] 

Adam B edited comment on MESOS-3136 at 7/23/15 5:22 PM:
--------------------------------------------------------

The app was part of a bigger Marathon application groups. It essentially looks 
like this:

Note that for the health check to work the redis-tools package (Ubuntu) with 
the redis-cli must be installed on the slave.

{code}
{
        "id": "redis",
        "container": {
                "type": "DOCKER",
                "docker": {
                        "image": "redis:2.8",
                        "network": "HOST"
                }
        },
        "cmd": "touch /tmp/redis.conf; redis-server /tmp/redis.conf --dir /tmp 
--loglevel verbose",
        "cpus": 0.2,
        "mem": 256.0,
        "instances": 1,
        "maxLaunchDelaySeconds": 5,
        "healthChecks": [{
                "protocol": "COMMAND",
                "command": { "value": "env; redis-cli -h $HOST -n 1 info | 
egrep 'role:master|master_link_status:up'" },
                "gracePeriodSeconds": 20,
                "intervalSeconds": 20,
                "portIndex": 0,
                "timeoutSeconds": 10,
                "maxConsecutiveFailures": 3
        }]
}
{code}


was (Author: sttts):
The app was part of a bigger Marathon application groups. It essentially looks 
like this:

Note that for the health check to work the redis-tools package (Ubuntu) with 
the redis-cli must be installed on the slave.

```
{
        "id": "redis",
        "container": {
                "type": "DOCKER",
                "docker": {
                        "image": "redis:2.8",
                        "network": "HOST"
                }
        },
        "cmd": "touch /tmp/redis.conf; redis-server /tmp/redis.conf --dir /tmp 
--loglevel verbose",
        "cpus": 0.2,
        "mem": 256.0,
        "instances": 1,
        "maxLaunchDelaySeconds": 5,
        "healthChecks": [{
                "protocol": "COMMAND",
                "command": { "value": "env; redis-cli -h $HOST -n 1 info | 
egrep 'role:master|master_link_status:up'" },
                "gracePeriodSeconds": 20,
                "intervalSeconds": 20,
                "portIndex": 0,
                "timeoutSeconds": 10,
                "maxConsecutiveFailures": 3
        }]
}
```

> COMMAND health checks with Marathon 0.10.0rc3 are broken
> --------------------------------------------------------
>
>                 Key: MESOS-3136
>                 URL: https://issues.apache.org/jira/browse/MESOS-3136
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 0.23.0
>            Reporter: Dr. Stefan Schimanski
>
> When deploying Mesos 0.23rc4 with latest Marathon 0.10.0 RC3 command health 
> check stop working. Rolling back to Mesos 0.22.1 fixes the problem.
> Containerizer is Docker.
> All packages are from official Mesosphere Ubuntu 14.04 sources.
> The issue must be analyzed further.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to