Skip to content

Instantly share code, notes, and snippets.

@tuxity
Created January 28, 2017 22:25
Show Gist options
  • Save tuxity/8029735f73ba3a5003f4d61dd662a845 to your computer and use it in GitHub Desktop.
Save tuxity/8029735f73ba3a5003f4d61dd662a845 to your computer and use it in GitHub Desktop.
{
"volumes": null,
"id": "/mariadb/node",
"cmd": null,
"args": [
"--binlog-format=row",
"--wsrep_on",
"--wsrep_cluster_name",
"fathosting_wsrep_cluster",
"--wsrep_provider",
"/usr/lib/galera/libgalera_smm.so",
"--wsrep_node_address",
"node.mariadb.marathon.mesos",
"--wsrep_cluster_address",
"gcomm://node.mariadb.marathon.mesos,seed.mariadb.marathon.mesos"
],
"user": null,
"env": {
"MYSQL_DATABASE": "defaultdb",
"MYSQL_PASSWORD": "password",
"MYSQL_INITDB_SKIP_TZINFO": "yes",
"MYSQL_USER": "admin",
"MYSQL_ROOT_PASSWORD": "root"
},
"instances": 0,
"cpus": 0.3,
"mem": 512,
"disk": 0,
"gpus": 0,
"executor": null,
"constraints": [
[
"hostname",
"UNIQUE"
]
],
"fetch": null,
"storeUrls": null,
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"container": {
"docker": {
"image": "mariadb:10.1.20",
"forcePullImage": true,
"privileged": false,
"network": "HOST"
},
"type": "DOCKER",
"volumes": [
{
"containerPath": "/var/lib/mysql",
"hostPath": "/home/mariadb/node",
"mode": "RW"
}
]
},
"healthChecks": [
{
"protocol": "TCP",
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 3
}
],
"readinessChecks": null,
"dependencies": null,
"upgradeStrategy": {
"minimumHealthCapacity": 0,
"maximumOverCapacity": 0
},
"labels": {
"DCOS_PACKAGE_RELEASE": "2",
"DCOS_PACKAGE_SOURCE": "http://universe.marathon.l4lb.thisdcos.directory/repo",
"DCOS_PACKAGE_METADATA": "eyJwYWNrYWdpbmdWZXJzaW9uIjoiMy4wIiwibmFtZSI6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uZyIsImljb24tbGFyZ2UiOiJodHRwczovL2Nsb3VkLmdpdGh1YnVzZXJjb250ZW50LmNvbS9hc3NldHMvNDEwMTQ3LzE3NzI2MjY2LzkxOWQ4MWNhLTY0NmYtMTFlNi04YzdjLTdiYzkxYzExZDFmNS5wbmcifX0=",
"DCOS_PACKAGE_REGISTRY_VERSION": "3.0",
"DCOS_SERVICE_NAME": "mariadb-node",
"DCOS_PACKAGE_VERSION": "10.1.20",
"DCOS_PACKAGE_NAME": "mariadb",
"DCOS_PACKAGE_IS_FRAMEWORK": "false"
},
"acceptedResourceRoles": null,
"residency": null,
"secrets": null,
"taskKillGracePeriodSeconds": null,
"portDefinitions": [
{
"protocol": "udp,tcp",
"port": 4567,
"name": "galera-cluster"
},
{
"protocol": "tcp",
"port": 4568,
"name": "galera-ist"
},
{
"protocol": "tcp",
"port": 4444,
"name": "galera-sst"
},
{
"protocol": "tcp",
"port": 3306,
"name": "mysql"
}
],
"requirePorts": true
}
{
"volumes": null,
"id": "/mariadb/seed",
"cmd": null,
"args": [
"--binlog-format=row",
"--wsrep_on",
"--wsrep-new-cluster",
"--wsrep_cluster_name",
"fathosting_wsrep_cluster",
"--wsrep_provider",
"/usr/lib/galera/libgalera_smm.so",
"--wsrep_node_address",
"seed.mariadb.marathon.mesos",
"--wsrep_cluster_address",
"gcomm://seed.mariadb.marathon.mesos,node.mariadb.marathon.mesos"
],
"user": null,
"env": {
"MYSQL_DATABASE": "defaultdb",
"MYSQL_PASSWORD": "password",
"MYSQL_INITDB_SKIP_TZINFO": "yes",
"MYSQL_USER": "admin",
"MYSQL_ROOT_PASSWORD": "root"
},
"instances": 0,
"cpus": 0.3,
"mem": 512,
"disk": 0,
"gpus": 0,
"executor": null,
"constraints": [
[
"hostname",
"UNIQUE"
]
],
"fetch": null,
"storeUrls": null,
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"container": {
"docker": {
"image": "mariadb:10.1.20",
"forcePullImage": true,
"privileged": false,
"network": "HOST"
}
},
"healthChecks": [
{
"protocol": "TCP",
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 3
}
],
"readinessChecks": null,
"dependencies": null,
"upgradeStrategy": {
"minimumHealthCapacity": 0,
"maximumOverCapacity": 0
},
"labels": {
"DCOS_PACKAGE_RELEASE": "2",
"DCOS_PACKAGE_SOURCE": "http://universe.marathon.l4lb.thisdcos.directory/repo",
"DCOS_PACKAGE_METADATA": "eyJwYWNrYWdpbmdWZXJzaW9uIjoiMy4wIiwibmFtZSI6Im1hcmlhZGIiLCJ2ZXJzaW9uIjoiMTAuMS4yMCIsIm1haW50YWluZXIiOiJjb250YWN0QGZhdC5zaCIsImRlc2NyaXB0aW9uIjoiTWFyaWFEQiBpcyBvbmUgb2YgdGhlIG1vc3QgcG9wdWxhciBkYXRhYmFzZSBzZXJ2ZXJzIGluIHRoZSB3b3JsZC4gSXTigJlzIG1hZGUgYnkgdGhlIG9yaWdpbmFsIGRldmVsb3BlcnMgb2YgTXlTUUwgYW5kIGd1YXJhbnRlZWQgdG8gc3RheSBvcGVuIHNvdXJjZS4gTm90YWJsZSB1c2VycyBpbmNsdWRlIFdpa2lwZWRpYSwgRmFjZWJvb2sgYW5kIEdvb2dsZS4gTWFyaWFEQiBpcyBkZXZlbG9wZWQgYXMgb3BlbiBzb3VyY2Ugc29mdHdhcmUgYW5kIGFzIGEgcmVsYXRpb25hbCBkYXRhYmFzZSBpdCBwcm92aWRlcyBhbiBTUUwgaW50ZXJmYWNlIGZvciBhY2Nlc3NpbmcgZGF0YS4gVGhlIGxhdGVzdCB2ZXJzaW9ucyBvZiBNYXJpYURCIGFsc28gaW5jbHVkZSBHSVMgYW5kIEpTT04gZmVhdHVyZXMuIiwidGFncyI6WyJkYXRhYmFzZSIsIm15c3FsIiwibWFyaWFkYiIsInNxbCJdLCJzZWxlY3RlZCI6ZmFsc2UsInNjbSI6Imh0dHBzOi8vZ2l0aHViL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Z2VzIjp7Imljb24tc21hbGwiOiJodHRwczovL2Nsb3VkLmdpdGh1YnVzZXJjb250ZW50LmNvbS9hc3NldHMvNDEwMTQ3LzE3NzI2MjY5LzkzNmZkMDdhLTY0NmYtMTFlNi04ZmZhLWZmM2QwYTFiNGIxNS5wbmciLCJpY29uLW1lZGl1bSI6Imh0dHBzOi8vY2xvdWQuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2Fzc2V0cy80MTAxNDcvMTc3MjYyNjUvOTE5Y2JhZjYtNjQ2Zi0xMWU2LThmM2MtMTE0MjQ1YzRiN2Y0LnBuZyIsImljb24tbGFyZ2UiOiJodHRwczovL2Nsb3VkLmdpdGh1YnVzZXJjb250ZW50LmNvbS9hc3NldHMvNDEwMTQ3LzE3NzI2MjY2LzkxOWQ4MWNhLTY0NmYtMTFlNi04YzdjLTdiYzkxYzExZDFmNS5wbmcifX0=",
"DCOS_PACKAGE_REGISTRY_VERSION": "3.0",
"DCOS_SERVICE_NAME": "mariadb-seed",
"DCOS_PACKAGE_VERSION": "10.1.20",
"DCOS_PACKAGE_NAME": "mariadb",
"MARATHON_SINGLE_INSTANCE_APP": "true",
"DCOS_PACKAGE_IS_FRAMEWORK": "false"
},
"acceptedResourceRoles": null,
"residency": null,
"secrets": null,
"taskKillGracePeriodSeconds": null,
"portDefinitions": [
{
"protocol": "udp,tcp",
"port": 4567,
"name": "galera-cluster"
},
{
"protocol": "tcp",
"port": 4568,
"name": "galera-ist"
},
{
"protocol": "tcp",
"port": 4444,
"name": "galera-sst"
},
{
"protocol": "tcp",
"port": 3306,
"name": "mysql"
}
],
"requirePorts": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment