From ce30c3ca4975d5473e983b4f8f3e4fa3ee917357 Mon Sep 17 00:00:00 2001 From: alexanderjardim Date: Wed, 27 May 2015 03:06:55 -0300 Subject: [PATCH 1/2] documenting multi-dc support --- cassandra/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cassandra/README.md b/cassandra/README.md index 21d561097..540b42a6c 100644 --- a/cassandra/README.md +++ b/cassandra/README.md @@ -97,6 +97,16 @@ This variable sets the name of the cluster and must be the same for all nodes in This variable sets number of tokens for this node. It will set the [`num_tokens`](http://docs.datastax.com/en/cassandra/2.1/cassandra/configuration/configCassandra_yaml_r.html?scroll=reference_ds_qfg_n1r_1k__num_tokens) option of `cassandra.yaml`. +### `CASSANDRA_DC` +This variable sets the datacenter name of this node. It will set the [`dc`] option of `cassandra-rackdc.properties`. + +### `CASSANDRA_RACK` +This variable sets the rack name of this node. It will set the [`rack`] option of `cassandra-rackdc.properties`. + +### `CASSANDRA_ENDPOINT_SNITCH` +This variable sets the snitch implementation this node will use. It will set the [`endpoint_snitch`] option of `cassandra.yml`. + + # Caveats ## Where to Store Data From 1c0cb0a59568d0d6a606f62a9615c29bb0a2bff7 Mon Sep 17 00:00:00 2001 From: Joe Ferguson Date: Thu, 28 May 2015 16:29:54 -0700 Subject: [PATCH 2/2] A little markdownfmting and some helpful links --- cassandra/README.md | 8 +++++--- cassandra/content.md | 12 ++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/cassandra/README.md b/cassandra/README.md index 540b42a6c..26bdb65a9 100644 --- a/cassandra/README.md +++ b/cassandra/README.md @@ -98,14 +98,16 @@ This variable sets the name of the cluster and must be the same for all nodes in This variable sets number of tokens for this node. It will set the [`num_tokens`](http://docs.datastax.com/en/cassandra/2.1/cassandra/configuration/configCassandra_yaml_r.html?scroll=reference_ds_qfg_n1r_1k__num_tokens) option of `cassandra.yaml`. ### `CASSANDRA_DC` -This variable sets the datacenter name of this node. It will set the [`dc`] option of `cassandra-rackdc.properties`. + +This variable sets the datacenter name of this node. It will set the [`dc`](http://docs.datastax.com/en/cassandra/2.1/cassandra/architecture/architectureSnitchGossipPF_c.html) option of `cassandra-rackdc.properties`. ### `CASSANDRA_RACK` -This variable sets the rack name of this node. It will set the [`rack`] option of `cassandra-rackdc.properties`. + +This variable sets the rack name of this node. It will set the [`rack`](http://docs.datastax.com/en/cassandra/2.1/cassandra/architecture/architectureSnitchGossipPF_c.html) option of `cassandra-rackdc.properties`. ### `CASSANDRA_ENDPOINT_SNITCH` -This variable sets the snitch implementation this node will use. It will set the [`endpoint_snitch`] option of `cassandra.yml`. +This variable sets the snitch implementation this node will use. It will set the [`endpoint_snitch`](http://docs.datastax.com/en/cassandra/2.1/cassandra/configuration/configCassandra_yaml_r.html?scroll=reference_ds_qfg_n1r_1k__endpoint_snitch) option of `cassandra.yml`. # Caveats diff --git a/cassandra/content.md b/cassandra/content.md index 5317b27b6..bfb2f14e7 100644 --- a/cassandra/content.md +++ b/cassandra/content.md @@ -90,6 +90,18 @@ This variable sets the name of the cluster and must be the same for all nodes in This variable sets number of tokens for this node. It will set the [`num_tokens`](http://docs.datastax.com/en/cassandra/2.1/cassandra/configuration/configCassandra_yaml_r.html?scroll=reference_ds_qfg_n1r_1k__num_tokens) option of `cassandra.yaml`. +### `CASSANDRA_DC` + +This variable sets the datacenter name of this node. It will set the [`dc`](http://docs.datastax.com/en/cassandra/2.1/cassandra/architecture/architectureSnitchGossipPF_c.html) option of `cassandra-rackdc.properties`. + +### `CASSANDRA_RACK` + +This variable sets the rack name of this node. It will set the [`rack`](http://docs.datastax.com/en/cassandra/2.1/cassandra/architecture/architectureSnitchGossipPF_c.html) option of `cassandra-rackdc.properties`. + +### `CASSANDRA_ENDPOINT_SNITCH` + +This variable sets the snitch implementation this node will use. It will set the [`endpoint_snitch`](http://docs.datastax.com/en/cassandra/2.1/cassandra/configuration/configCassandra_yaml_r.html?scroll=reference_ds_qfg_n1r_1k__endpoint_snitch) option of `cassandra.yml`. + # Caveats ## Where to Store Data