You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "haosdent (JIRA)" <ji...@apache.org> on 2016/11/23 09:16:58 UTC

[jira] [Commented] (MESOS-6617) mesos-execute does not support health-checks.

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

haosdent commented on MESOS-6617:
---------------------------------

Hi, [~alexr][~ArmandGrillet] After [~qianzhang] adding {{--task}} flag to {{mesos-execute}} in https://reviews.apache.org/r/53645/ . We could test this via 

{code|task.json}
{
	"name": "mesos-test-health",
	"task_id": {
		"value": "1"
	},
	"agent_id": {
		"value": "cffa32cc-9c69-4a6c-a70e-19331e9d71d5-S0"
	},
	"resources": [{
		"name": "cpus",
		"type": "SCALAR",
		"scalar": {
			"value": 2.0
		},
		"role": "*"
	}, {
		"name": "mem",
		"type": "SCALAR",
		"scalar": {
			"value": 1024.0
		},
		"role": "*"
	}],
	"command": {
		"shell": true,
		"value": "sleep 120"
	},
	"container": {
		"type": "MESOS"
	},
	"health_check": {
		"delay_seconds": 0.0,
		"interval_seconds": 0.0,
		"timeout_seconds": 1.0,
		"consecutive_failures": 1,
		"grace_period_seconds": 0.0,
		"type": "COMMAND",
		"command": {
			"shell": true,
			"value": "sleep 120"
		}
	}
}
{code}

{code}
 ./src/mesos-execute --task=/tmp/test.json --master=localhost:5050
{code}

Do you still think we need add an extra flag {{--health_check}} to {{mesos-execute}} ?

> mesos-execute does not support health-checks.
> ---------------------------------------------
>
>                 Key: MESOS-6617
>                 URL: https://issues.apache.org/jira/browse/MESOS-6617
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Armand Grillet
>            Assignee: haosdent
>            Priority: Minor
>              Labels: health-check, mesosphere
>
> In order to tests health-checks simply as it has already been done here https://gist.github.com/haosdent/577e4a527e2a80e2aa1b1eb783870f8d. It would be useful to support health-checks directly in {{mesos-execute}}.



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