Skip to content

Instantly share code, notes, and snippets.

@gkleiman
Created March 16, 2016 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gkleiman/670909bc2aa6bd824285 to your computer and use it in GitHub Desktop.
Save gkleiman/670909bc2aa6bd824285 to your computer and use it in GitHub Desktop.
Marathon-on-Marathon
{
"id": "/marathon-test",
"cmd": "LIBPROCESS_PORT=$PORT1 && ./bin/start --checkpoint --decline_offer_duration 120000 --event_stream_max_outstanding_messages 50 --executor //cmd --failover_timeout 604800 --framework_name marathon-test --ha --http_event_callback_slow_consumer_timeout 10000 --http_port $PORT0 --launch_token_refresh_interval 30000 --launch_tokens 100 --leader_proxy_connection_timeout 5000 --leader_proxy_read_timeout 10000 --local_port_max 20000 --local_port_min 10000 --master zk://master.mesos:2181/mesos --max_tasks_per_offer 1 --mesos_leader_ui_url /mesos --metrics --min_revive_offers_interval 5000 --offer_matching_timeout 1000 --on_elected_prepare_timeout 180000 --reconciliation_initial_delay 15000 --reconciliation_interval 600000 --revive_offers_repetitions 3 --save_tasks_to_launch_timeout 3000 --scale_apps_initial_delay 15000 --scale_apps_interval 300000 --store_cache --task_launch_confirm_timeout 300000 --task_launch_timeout 300000 --disable_tracing --zk zk://master.mesos:2181/universe/marathon-test --zk_compression --zk_compression_threshold 65536 --zk_max_versions 25 --zk_session_timeout 10000 --zk_timeout 10000",
"env": {
"JVM_OPTS": "-Xms256m -Xmx768m"
},
"instances": 1,
"cpus": 2,
"mem": 1536,
"disk": 0,
"executor": "",
"ports": [0, 0],
"requirePorts": false,
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"container": {
"type": "DOCKER",
"docker": {
"image": "mesosphere/marathon:latest-dev",
"network": "HOST",
"forcePullImage": true
}
},
"healthChecks": [
{
"path": "/ping",
"protocol": "HTTP",
"portIndex": 0,
"gracePeriodSeconds": 120,
"intervalSeconds": 10,
"timeoutSeconds": 5,
"maxConsecutiveFailures": 3,
"ignoreHttp1xx": false
}
],
"upgradeStrategy": {
"minimumHealthCapacity": 1,
"maximumOverCapacity": 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment