From 247d86599f8dc1b50caa6e9f9db797371eb4128e Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Mon, 7 Nov 2016 12:54:55 +0200 Subject: [PATCH] switch default policy to tokenaware,hostpool-epsilon-greedy + typo --- docs/config.md | 8 ++++---- metrictank-sample.ini | 8 ++++---- scripts/config/metrictank-docker.ini | 8 ++++---- scripts/config/metrictank-package.ini | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/config.md b/docs/config.md index fa184e105a..1dfaf7ee61 100644 --- a/docs/config.md +++ b/docs/config.md @@ -92,10 +92,10 @@ cassandra-consistency = one # roundrobin : iterate all hosts, spreading queries evenly. # hostpool-simple : basic pool that tracks which hosts are up and which are not. # hostpool-epsilon-greedy : prefer best hosts, but regularly try other hosts to stay on top of all hosts. -# tokenaware,roundrobin : prefer host that the needed data, fallback to roundrobin. -# tokenaware,hostpool-simple : prefer host that the needed data, fallback to hostpool-simple. -# tokenaware,hostpool-epsilon-greedy : prefer host that the needed data, fallback to hostpool-epsilon-greedy. -cassandra-host-selection-policy = roundrobin +# tokenaware,roundrobin : prefer host that has the needed data, fallback to roundrobin. +# tokenaware,hostpool-simple : prefer host that has the needed data, fallback to hostpool-simple. +# tokenaware,hostpool-epsilon-greedy : prefer host that has the needed data, fallback to hostpool-epsilon-greedy. +cassandra-host-selection-policy = tokenaware,hostpool-epsilon-greedy # cassandra timeout in milliseconds cassandra-timeout = 1000 # max number of concurrent reads to cassandra diff --git a/metrictank-sample.ini b/metrictank-sample.ini index c9e31f784f..bd874f46be 100644 --- a/metrictank-sample.ini +++ b/metrictank-sample.ini @@ -69,10 +69,10 @@ cassandra-consistency = one # roundrobin : iterate all hosts, spreading queries evenly. # hostpool-simple : basic pool that tracks which hosts are up and which are not. # hostpool-epsilon-greedy : prefer best hosts, but regularly try other hosts to stay on top of all hosts. -# tokenaware,roundrobin : prefer host that the needed data, fallback to roundrobin. -# tokenaware,hostpool-simple : prefer host that the needed data, fallback to hostpool-simple. -# tokenaware,hostpool-epsilon-greedy : prefer host that the needed data, fallback to hostpool-epsilon-greedy. -cassandra-host-selection-policy = roundrobin +# tokenaware,roundrobin : prefer host that has the needed data, fallback to roundrobin. +# tokenaware,hostpool-simple : prefer host that has the needed data, fallback to hostpool-simple. +# tokenaware,hostpool-epsilon-greedy : prefer host that has the needed data, fallback to hostpool-epsilon-greedy. +cassandra-host-selection-policy = tokenaware,hostpool-epsilon-greedy # cassandra timeout in milliseconds cassandra-timeout = 1000 # max number of concurrent reads to cassandra diff --git a/scripts/config/metrictank-docker.ini b/scripts/config/metrictank-docker.ini index 9c5115e99d..0f5b534046 100644 --- a/scripts/config/metrictank-docker.ini +++ b/scripts/config/metrictank-docker.ini @@ -66,10 +66,10 @@ cassandra-consistency = one # roundrobin : iterate all hosts, spreading queries evenly. # hostpool-simple : basic pool that tracks which hosts are up and which are not. # hostpool-epsilon-greedy : prefer best hosts, but regularly try other hosts to stay on top of all hosts. -# tokenaware,roundrobin : prefer host that the needed data, fallback to roundrobin. -# tokenaware,hostpool-simple : prefer host that the needed data, fallback to hostpool-simple. -# tokenaware,hostpool-epsilon-greedy : prefer host that the needed data, fallback to hostpool-epsilon-greedy. -cassandra-host-selection-policy = roundrobin +# tokenaware,roundrobin : prefer host that has the needed data, fallback to roundrobin. +# tokenaware,hostpool-simple : prefer host that has the needed data, fallback to hostpool-simple. +# tokenaware,hostpool-epsilon-greedy : prefer host that has the needed data, fallback to hostpool-epsilon-greedy. +cassandra-host-selection-policy = tokenaware,hostpool-epsilon-greedy # cassandra timeout in milliseconds cassandra-timeout = 1000 # max number of concurrent reads to cassandra diff --git a/scripts/config/metrictank-package.ini b/scripts/config/metrictank-package.ini index 16cbf2fad1..252c35c1be 100644 --- a/scripts/config/metrictank-package.ini +++ b/scripts/config/metrictank-package.ini @@ -66,10 +66,10 @@ cassandra-consistency = one # roundrobin : iterate all hosts, spreading queries evenly. # hostpool-simple : basic pool that tracks which hosts are up and which are not. # hostpool-epsilon-greedy : prefer best hosts, but regularly try other hosts to stay on top of all hosts. -# tokenaware,roundrobin : prefer host that the needed data, fallback to roundrobin. -# tokenaware,hostpool-simple : prefer host that the needed data, fallback to hostpool-simple. -# tokenaware,hostpool-epsilon-greedy : prefer host that the needed data, fallback to hostpool-epsilon-greedy. -cassandra-host-selection-policy = roundrobin +# tokenaware,roundrobin : prefer host that has the needed data, fallback to roundrobin. +# tokenaware,hostpool-simple : prefer host that has the needed data, fallback to hostpool-simple. +# tokenaware,hostpool-epsilon-greedy : prefer host that has the needed data, fallback to hostpool-epsilon-greedy. +cassandra-host-selection-policy = tokenaware,hostpool-epsilon-greedy # cassandra timeout in milliseconds cassandra-timeout = 1000 # max number of concurrent reads to cassandra