Files
deb-python-dcos/cli/tests/data/package/missing-package-json-directory/config.json
José Armando García Sancio d5366fcbdc dcos-3254 Implement package create
2015-11-11 16:06:46 -08:00

230 lines
8.0 KiB
JSON

{
"type": "object",
"properties": {
"mesos": {
"description": "Mesos specific configuration properties",
"type": "object",
"properties": {
"master": {
"default": "zk://master.mesos:2181/mesos",
"description": "The URL of the Mesos master. The format is a comma-delimited list of hosts like zk://host1:port,host2:port/mesos. If using ZooKeeper, pay particular attention to the leading zk:// and trailing /mesos! If not using ZooKeeper, standard host:port patterns, like localhost:5050 or 10.0.0.5:5050,10.0.0.6:5050, are also acceptable.",
"type": "string"
}
},
"required": [
"master"
]
},
"cassandra": {
"description": "Cassandra Framework Configuration Properties",
"type": "object",
"additionalProperties": false,
"properties": {
"framework": {
"description": "Framework Scheduler specific Configuration Properties",
"type": "object",
"additionalProperties": false,
"properties": {
"failover-timeout-seconds": {
"description": "The failover_timeout for Mesos in seconds. If the framework instance has not re-registered with Mesos this long after a failover, Mesos will shut down all running tasks started by the framework.",
"type": "integer",
"minimum": 0,
"default": 604800
},
"cpus": {
"default": 0.5,
"description": "CPU shares to allocate to each Cassandra framework instance.",
"type": "number"
},
"mem": {
"default": 512.0,
"description": "Memory (MB) to allocate to each Cassandra framework instance.",
"minimum": 512.0,
"type": "number"
},
"instances": {
"default": 1,
"description": "Number of Cassandra framework instances to run.",
"minimum": 0,
"type": "integer"
},
"role": {
"description": "Mesos role for this framework.",
"type": "string",
"default": "*"
},
"authentication": {
"description": "Framework Scheduler Authentication Configuration Properties",
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"description": "Whether framework authentication should be used",
"type": "boolean",
"default": false
},
"principal": {
"description": "The Mesos principal used for authentication.",
"type": "string"
},
"secret": {
"description": "The path to the Mesos secret file containing the authentication secret.",
"type": "string"
}
},
"required": [
"enabled"
]
}
},
"required": [
"instances",
"cpus",
"mem",
"failover-timeout-seconds",
"role",
"authentication"
]
},
"cluster-name": {
"description": "The name of the framework to register with mesos. Will also be used as the cluster name in Cassandra",
"type": "string",
"default": "dcos"
},
"zk": {
"description": "ZooKeeper URL for storing state. Format: zk://host1:port1,host2:port2,.../path (can have nested directories)",
"type": "string"
},
"zk-timeout-ms": {
"description": "Timeout for ZooKeeper in milliseconds.",
"type": "integer",
"minimum": 0,
"default": 10000
},
"node-count": {
"description": "The number of nodes in the ring for the framework to run.",
"type": "integer",
"minimum": 1,
"default": 3
},
"seed-count": {
"description": "The number of seed nodes in the ring for the framework to run.",
"type": "integer",
"minimum": 1,
"default": 2
},
"health-check-interval-seconds": {
"description": "The interval in seconds that the framework should check the health of each Cassandra Server instance.",
"type": "integer",
"minimum": 15,
"default": 60
},
"bootstrap-grace-time-seconds": {
"description": "The minimum number of seconds to wait between starting each node. Setting this too low could result in the ring not bootstrapping correctly.",
"type": "integer",
"minimum": 15,
"default": 120
},
"data-directory": {
"description": "The location on disk where Cassandra will be configured to write it's data.",
"type": "string",
"default": "."
},
"resources": {
"description": "Cassandra Server Resources Configuration Properties",
"type": "object",
"additionalProperties": false,
"properties": {
"cpus": {
"description": "CPU shares to allocate to each Cassandra Server Instance.",
"type": "number",
"minimum": 0.0,
"default": 0.1
},
"mem": {
"description": "Memory (MB) to allocate to each Cassandra Server instance.",
"type": "integer",
"minimum": 0,
"default": 768
},
"disk": {
"description": "Disk (MB) to allocate to each Cassandra Server instance.",
"type": "integer",
"minimum": 0,
"default": 16
},
"heap-mb": {
"description": "The amount of memory in MB that are allocated to each Cassandra Server Instance. This value should be smaller than 'cassandra.resources.mem'. The remaining difference will be used for memory mapped files and other off-heap memory requirements.",
"type": "integer",
"minimum": 0
}
},
"required": [
"cpus",
"mem",
"disk"
]
},
"dc": {
"description": "Cassandra multi Datacenter Configuration Properties",
"type": "object",
"additionalProperties": false,
"properties": {
"default-dc": {
"description": "Default value to be set for dc name in the GossipingPropertyFileSnitch",
"type": "string",
"default": "DC1"
},
"default-rack": {
"description": "Default value to be set for rack name in the GossipingPropertyFileSnitch",
"type": "string",
"default": "RAC1"
},
"external-dcs": {
"description": "Name and URL for another instance of Cassandra DCOS Service",
"type": "array",
"additionalProperties": false,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"name",
"url"
]
}
}
},
"required": [
"default-dc",
"default-rack"
]
}
},
"required": [
"framework",
"cluster-name",
"zk-timeout-ms",
"node-count",
"seed-count",
"health-check-interval-seconds",
"bootstrap-grace-time-seconds",
"data-directory",
"resources"
]
}
},
"required": [
"mesos",
"cassandra"
]
}