diff --git a/utils/cluster/README.md b/utils/cluster/README.md index 25541fe..05e7b93 100644 --- a/utils/cluster/README.md +++ b/utils/cluster/README.md @@ -14,6 +14,15 @@ The goal of this fabric script is to setup a test cluster on baremetal leveragin - nodes data bag - From the utils directory (or specifying that fabfile) start the install script - `fab cluster.setup -H host1,host2,host3` -- Setup the Vertica database schema -- Setup the mysql database schema -- Restart any services which require vertica or mysql +- create kafka topics - kafka::create_topics recipe can be run on 1 machine +- Setup the Vertica database schema - the vertica::create_db recipe and scripts can be used for reference but won't work for a cluster + - The problems with the script are: + - The create_db command needs all ips specified for the -s arg, they are comma seperated + - The symbolic linking of ssl cert/key needs to be done on each node + - The restart policy should be set to ksafe rather than always +- Setup the mysql database schema - the mini-mon::mysql_schema tecipe can be run on 1 machine +- Restart any services which require vertica, mysql or kafka + + +## Optional Configuration +- Add in the Vertica Console to one of the machines. This can be done with vertica::console recipe diff --git a/utils/cluster/roles/Mon-Node.json b/utils/cluster/roles/Mon-Node.json index a07aeff..8349184 100644 --- a/utils/cluster/roles/Mon-Node.json +++ b/utils/cluster/roles/Mon-Node.json @@ -10,10 +10,10 @@ "cluster": "mon", "listen_address": "127.0.0.1", "topics": { - "metrics": { "replicas": 1, "partitions": 4 }, - "events": { "replicas": 1, "partitions": 4 }, - "alarm-state-transitions": { "replicas": 1, "partitions": 4 }, - "alarm-notifications": { "replicas": 1, "partitions": 4 } + "metrics": { "replicas": 3, "partitions": 4 }, + "events": { "replicas": 3, "partitions": 4 }, + "alarm-state-transitions": { "replicas": 3, "partitions": 4 }, + "alarm-notifications": { "replicas": 3, "partitions": 4 } } }, "percona": { @@ -59,8 +59,8 @@ "recipe[sysctl]", "recipe[mon_api]", "recipe[mon_persister]", - "recipe[mon_agent]", - "recipe[mon_thresh]" + "recipe[mon_thresh]", + "recipe[mon_agent]" ], "env_run_lists": { }