From be697a44e8d819ed831ebf07ea234c83d2f07234 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Tue, 10 Oct 2017 07:58:44 +0300 Subject: [PATCH] Added sample cluster configuration with TLS --- docs/configuration.md | 53 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index a0683ca8c..a8c903439 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -281,3 +281,56 @@ A three node cluster could be minimally configured as follows: replicas = 1 type = "gossip" hosts = ["node0.pilosa.com:10101","node1.pilosa.com:10101","node2.pilosa.com:10101"] + + +### Example Cluster Configuration (HTTPS) + +The same cluster which uses HTTPS instead of HTTP can be configured as follows. Note that we explicitly specify `https` as the protocol in `bind` and `cluster.hosts` configuration: + +#### Node 0 + + data-dir = "/home/pilosa/data" + bind = "https://node0.pilosa.com:10101" + gossip-port = 12000 + gossip-seed = "node0.pilosa.com:12000" + + [cluster] + replicas = 1 + type = "gossip" + hosts = ["https://node0.pilosa.com:10101","https://node1.pilosa.com:10101","https://node2.pilosa.com:10101"] + + [tls] + certificate = "/home/pilosa/private/server.crt" + key = "/home/pilosa/private/server.key" + +#### Node 1 + + data-dir = "/home/pilosa/data" + bind = "https://node1.pilosa.com:10101" + gossip-port = 12000 + gossip-seed = "node0.pilosa.com:12000" + + [cluster] + replicas = 1 + type = "gossip" + hosts = ["https://node0.pilosa.com:10101","https://node1.pilosa.com:10101","https://node2.pilosa.com:10101"] + + [tls] + certificate = "/home/pilosa/private/server.crt" + key = "/home/pilosa/private/server.key" + +#### Node 2 + + data-dir = "/home/pilosa/data" + bind = "https://node2.pilosa.com:10101" + gossip-port = 12000 + gossip-seed = "node0.pilosa.com:12000" + + [cluster] + replicas = 1 + type = "gossip" + hosts = ["https://node0.pilosa.com:10101","https://node1.pilosa.com:10101","https://node2.pilosa.com:10101"] + + [tls] + certificate = "/home/pilosa/private/server.crt" + key = "/home/pilosa/private/server.key"