Created
August 11, 2014 20:34
-
-
Save vishh/9c02164c531bc734cadf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MASTER CONFIG | |
hostname = "23.251.145.84" | |
#bind-address = "0.0.0.0" | |
[logging] | |
level = "debug" | |
file = "/opt/influxdb/shared/data/influxdb.log" # stdout to log to standard out | |
[admin] | |
port = 8083 # binding is disabled if the port isn't set | |
assets = "/opt/influxdb/current/admin" | |
[api] | |
port = 8086 # binding is disabled if the port isn't set | |
read-timeout = "5s" | |
[input_plugins] | |
[input_plugins.graphite] | |
enabled = false | |
# port = 2004 | |
# database = "graphite" # store graphite data in this database | |
[raft] | |
port = 8090 | |
dir = "/opt/influxdb/shared/data/raft" | |
[storage] | |
dir = "/opt/influxdb/shared/data/db" | |
# How many requests to potentially buffer in memory. If the buffer gets filled then writes | |
# will still be logged and once the local storage has caught up (or compacted) the writes | |
# will be replayed from the WAL | |
write-buffer-size = 10000 | |
default-engine = "rocksdb" | |
max-open-shards = 0 | |
point-batch-size = 100 | |
write-batch-size = 5000000 | |
retention-sweep-period = "10m" | |
[storage.engines.rocksdb] | |
max-open-files = 1000 | |
lru-cache-size = "200m" | |
[storage.engines.leveldb] | |
max-open-files = 1000 | |
lru-cache-size = "200m" | |
[cluster] | |
protobuf_port = 8099 | |
protobuf_timeout = "2s" # the write timeout on the protobuf conn any duration parseable by time.ParseDuration | |
protobuf_heartbeat = "200ms" # the heartbeat interval between the servers. must be parseable by time.ParseDuration | |
protobuf_min_backoff = "1s" # the minimum backoff after a failed heartbeat attempt | |
protobuf_max_backoff = "10s" # the maxmimum backoff after a failed heartbeat attempt | |
write-buffer-size = 10000 | |
max-response-buffer-size = 100000 | |
concurrent-shard-query-limit = 20 | |
[sharding] | |
replication-factor = 3 | |
[sharding.short-term] | |
duration = "7d" | |
split = 3 | |
[sharding.long-term] | |
duration = "30d" | |
split = 3 | |
# split-random = "/^Hf.*/" | |
[wal] | |
dir = "/opt/influxdb/shared/data/wal" | |
flush-after = 1000 # the number of writes after which wal will be flushed, 0 for flushing on every write | |
bookmark-after = 1000 # the number of writes after which a bookmark will be created | |
index-after = 1000 | |
requests-per-logfile = 10000 | |
################################################################## | |
# MACHINE B config | |
hostname = "23.251.158.130" | |
#bind-address = "0.0.0.0" | |
[logging] | |
level = "debug" | |
file = "/opt/influxdb/shared/data/influxdb.log" # stdout to log to standard out | |
[admin] | |
port = 8083 # binding is disabled if the port isn't set | |
assets = "/opt/influxdb/current/admin" | |
[api] | |
port = 8086 # binding is disabled if the port isn't set | |
read-timeout = "5s" | |
[input_plugins] | |
[input_plugins.graphite] | |
enabled = false | |
# port = 2004 | |
# database = "graphite" # store graphite data in this database | |
[raft] | |
port = 8090 | |
dir = "/opt/influxdb/shared/data/raft" | |
[storage] | |
dir = "/opt/influxdb/shared/data/db" | |
# How many requests to potentially buffer in memory. If the buffer gets filled then writes | |
# will still be logged and once the local storage has caught up (or compacted) the writes | |
# will be replayed from the WAL | |
write-buffer-size = 10000 | |
default-engine = "rocksdb" | |
max-open-shards = 0 | |
point-batch-size = 100 | |
write-batch-size = 5000000 | |
retention-sweep-period = "10m" | |
[storage.engines.rocksdb] | |
max-open-files = 1000 | |
lru-cache-size = "200m" | |
[storage.engines.leveldb] | |
max-open-files = 1000 | |
lru-cache-size = "200m" | |
[cluster] | |
seed-servers = ["23.251.145.84:8090"] | |
protobuf_port = 8099 | |
protobuf_timeout = "2s" # the write timeout on the protobuf conn any duration parseable by time.ParseDuration | |
protobuf_heartbeat = "200ms" # the heartbeat interval between the servers. must be parseable by time.ParseDuration | |
protobuf_min_backoff = "1s" # the minimum backoff after a failed heartbeat attempt | |
protobuf_max_backoff = "10s" # the maxmimum backoff after a failed heartbeat attempt | |
write-buffer-size = 10000 | |
max-response-buffer-size = 100000 | |
concurrent-shard-query-limit = 20 | |
[sharding] | |
replication-factor = 3 | |
[sharding.short-term] | |
duration = "7d" | |
split = 3 | |
[sharding.long-term] | |
duration = "30d" | |
split = 3 | |
# split-random = "/^Hf.*/" | |
[wal] | |
dir = "/opt/influxdb/shared/data/wal" | |
flush-after = 1000 # the number of writes after which wal will be flushed, 0 for flushing on every write | |
bookmark-after = 1000 # the number of writes after which a bookmark will be created | |
index-after = 1000 | |
requests-per-logfile = 10000 | |
################################################################## | |
# MACHINE C config | |
hostname = "146.148.93.204" | |
#bind-address = "0.0.0.0" | |
[logging] | |
level = "debug" | |
file = "/opt/influxdb/shared/data/influxdb.log" # stdout to log to standard out | |
[admin] | |
port = 8083 # binding is disabled if the port isn't set | |
assets = "/opt/influxdb/current/admin" | |
[api] | |
port = 8086 # binding is disabled if the port isn't set | |
read-timeout = "5s" | |
[input_plugins] | |
[input_plugins.graphite] | |
enabled = false | |
# port = 2004 | |
# database = "graphite" # store graphite data in this database | |
[raft] | |
port = 8090 | |
dir = "/opt/influxdb/shared/data/raft" | |
[storage] | |
dir = "/opt/influxdb/shared/data/db" | |
# How many requests to potentially buffer in memory. If the buffer gets filled then writes | |
# will still be logged and once the local storage has caught up (or compacted) the writes | |
# will be replayed from the WAL | |
write-buffer-size = 10000 | |
default-engine = "rocksdb" | |
max-open-shards = 0 | |
point-batch-size = 100 | |
write-batch-size = 5000000 | |
retention-sweep-period = "10m" | |
[storage.engines.rocksdb] | |
max-open-files = 1000 | |
lru-cache-size = "200m" | |
[storage.engines.leveldb] | |
max-open-files = 1000 | |
lru-cache-size = "200m" | |
[cluster] | |
seed-servers = ["23.251.145.84:8090"] | |
protobuf_port = 8099 | |
protobuf_timeout = "2s" # the write timeout on the protobuf conn any duration parseable by time.ParseDuration | |
protobuf_heartbeat = "200ms" # the heartbeat interval between the servers. must be parseable by time.ParseDuration | |
protobuf_min_backoff = "1s" # the minimum backoff after a failed heartbeat attempt | |
protobuf_max_backoff = "10s" # the maxmimum backoff after a failed heartbeat attempt | |
write-buffer-size = 10000 | |
max-response-buffer-size = 100000 | |
concurrent-shard-query-limit = 20 | |
[sharding] | |
replication-factor = 3 | |
[sharding.short-term] | |
duration = "7d" | |
split = 3 | |
[sharding.long-term] | |
duration = "30d" | |
split = 3 | |
# split-random = "/^Hf.*/" | |
[wal] | |
dir = "/opt/influxdb/shared/data/wal" | |
flush-after = 1000 # the number of writes after which wal will be flushed, 0 for flushing on every write | |
bookmark-after = 1000 # the number of writes after which a bookmark will be created | |
index-after = 1000 | |
requests-per-logfile = 10000 | |
################################################################# | |
# Docker run command | |
docker run -d \ | |
-p 8083:8083 \ | |
-p 8086:8086 \ | |
-p 8090:8090 \ | |
-p 8099:8099 \ | |
-v $PWD/config.toml:/opt/influxdb/shared/config.toml \ | |
-v /data/influxdb:/opt/influxdb/shared/data \ | |
--name influxdb torkelo/influxdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment