mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "haosdent (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (MESOS-6617) mesos-execute does not support health-checks.
Date Wed, 23 Nov 2016 09:16:58 GMT

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

haosdent edited comment on MESOS-6617 at 11/23/16 9:16 AM:
-----------------------------------------------------------

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

{code}
{
	"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}} ?


was (Author: haosdent@gmail.com):
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)

Mime
View raw message