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

Viacheslav Valyavskiy commented on MESOS-8359:
----------------------------------------------

[~bennoe] 

I exported my marathon for you:

{code}
{
  "id": "/newappmv/qagame/testapp.green/csahttp",
  "cmd": null,
  "cpus": 0.1,
  "mem": 32,
  "disk": 0,
  "instances": 1,
  "acceptedResourceRoles": [
    "*"
  ],
  "container": {
    "type": "DOCKER",
    "volumes": [],
    "docker": {
      "image": "vvalyavskiy/csa-http",
      "network": "HOST",
      "portMappings": [],
      "privileged": false,
      "parameters": [
        {
          "key": "net",
          "value": "bridge"
        },
        {
          "key": "memory",
          "value": "32m"
        }
      ],
      "forcePullImage": true
    }
  },
  "env": {
    "JAVA_TOOL_OPTIONS": "-Xmx32m"
  },
  "healthChecks": [
    {
      "gracePeriodSeconds": 30,
      "intervalSeconds": 60,
      "timeoutSeconds": 10,
      "maxConsecutiveFailures": 10,
      "port": 8080,
      "path": "/",
      "protocol": "MESOS_HTTP",
      "delaySeconds": 15
    }
  ],
  "portDefinitions": [],
  "backoffSeconds": 0,
  "maxLaunchDelaySeconds": 0
}
{code}

You should:
1. to be sure that you have docker network with name 'bridge' on slave node
2. bring up marathon
3. push button in the marathon UI 'Create application'
4. switch to json mode in top right corner of popup window
5. paste provided json into popup window
6. push 'Create application' button on popup window

{code}
I'm also wondering which command was actually used for the command health 
check, and if the executor and/or master logs at the time the bug is observed 
show anything interesting? 
{code}

Unfortunately no. It looks like all is ok with mesos slave <-> master 
interaction. Also, it does not look like something is wrong with mesos 
executor(I didn't find something interesting in log file attached to the task).

{code}
>From what I gather, the following conditions need to be met to reproduce:
    1. The other tasks on the slave need to be health-checked by a 
`COMMAND`-type health check
    2. Docker executor must be used for all launched tasks
{code}

1 - didn't check it. Does it make sense?
2 - correct. we are using docker executor only.

> Health checks are flapping for all tasks on the slave if one task has no 
> enough resources to run
> ------------------------------------------------------------------------------------------------
>
>                 Key: MESOS-8359
>                 URL: https://issues.apache.org/jira/browse/MESOS-8359
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 1.3.2
>            Reporter: Viacheslav Valyavskiy
>         Attachments: logs2
>
>
> I have attached some logs from the affected 
> slave(newappmv_qagame_testapp.green_csahttp - name of the 'bad' application)
> Steps to reproduce:
> 1. Run multiple tasks on the slave
> 2. Create marathon application from our image ( docker pull 
> vvalyavskiy/csa-http ) and set memory limit to 16MB for it.
> 3. Wait some time and then observe flapping of all tasks on the slave where 
> our task is started



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to