{
    "properties": {
        "database": {
            "description": "MySQL database configuration properties",
            "properties": {
                "name": {
                    "default": "defaultdb",
                    "description": "The name of a database to be created on startup.",
                    "type": "string"
                },
                "password": {
                    "default": "password",
                    "description": "The password for a user to be created with superuser access to this database only.",
                    "type": "string"
                },
                "root_password": {
                    "default": "root",
                    "description": "Specifies the password that will be set for the MySQL root superuser account.",
                    "type": "string"
                },
                "username": {
                    "default": "admin",
                    "description": "The username of a user to be created with superuser access to this database only.",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "mysql": {
            "description": "MySQL service configuration properties",
            "properties": {
                "cpus": {
                    "default": 0.3,
                    "description": "CPU shares to allocate to each MySQL node.",
                    "minimum": 0.3,
                    "type": "number"
                },
                "mem": {
                    "default": 512.0,
                    "description": "Memory to allocate to each MySQL node.",
                    "minimum": 512.0,
                    "type": "number"
                }
            },
            "required": [
                "cpus",
                "mem"
            ],
            "type": "object"
        },
        "networking": {
            "description": "MySQL networking configuration properties",
            "properties": {
                "external_access": {
                    "description": "Enable access from outside the cluster through Marathon-LB.\nNOTE: this connection is unencrypted.",
                    "properties": {
                        "enable": {
                            "default": false,
                            "description": "Enable or disable creating a VIP for external access through a public node running Marathon-LB. Defaults to FALSE.",
                            "type": "boolean"
                        },
                        "external_port": {
                            "default": 13306,
                            "description": "For external access, port number to be used for clear communication in the external Marathon-LB load balancer",
                            "type": "number"
                        }
                    },
                    "type": "object"
                },
                "port": {
                    "default": 3306,
                    "description": "Port number to be used for clear communication internally to the cluster. Currently unused and fixed to be 3306.",
                    "type": "number"
                }
            },
            "type": "object"
        },
        "service": {
            "description": "DC/OS service configuration properties",
            "properties": {
                "name": {
                    "default": "mysql",
                    "description": "Name of this service instance",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "storage": {
            "description": "MySQL storage configuration properties",
            "properties": {
                "host_volume": {
                    "default": "/tmp",
                    "description": "The location of a volume on the host to be used for persisting MySQL data. The final location will be derived from this value plus the name set in `name` (e.g. `/mnt/host_volume/mysql`). This can be a mounted NFS drive. Note that this path must be the same on all DC/OS agents.",
                    "type": "string"
                },
                "persistence": {
                    "description": "Enable persistent storage.",
                    "properties": {
                        "enable": {
                            "default": false,
                            "description": "Enable or disable persistent storage.",
                            "type": "boolean"
                        },
                        "volume_size": {
                            "default": 256,
                            "description": "If a new volume is to be created, this controls its size in MBs. Defaults to 64MBs",
                            "type": "number"
                        }
                    },
                    "type": "object"
                }
            },
            "type": "object"
        }
    }
}