2013-12-11 22:19:02 +00:00
|
|
|
# Welcome to the InfluxDB configuration file.
|
2013-12-11 18:10:37 +00:00
|
|
|
|
2013-12-13 15:23:57 +00:00
|
|
|
# If hostname (on the OS) doesn't return a name that can be resolved by the other
|
|
|
|
# systems in the cluster, you'll have to set the hostname to an IP or something
|
|
|
|
# that can be resovled here.
|
|
|
|
# hostname = ""
|
|
|
|
|
2014-01-22 18:35:42 +00:00
|
|
|
bind-address = "0.0.0.0"
|
|
|
|
|
2013-12-11 18:49:11 +00:00
|
|
|
[logging]
|
|
|
|
# logging level can be one of "debug", "info", "warn" or "error"
|
2014-01-08 19:38:27 +00:00
|
|
|
level = "info"
|
2014-01-21 18:03:13 +00:00
|
|
|
file = "influxdb.log" # stdout to log to standard out
|
2013-12-11 18:49:11 +00:00
|
|
|
|
2013-12-11 18:10:37 +00:00
|
|
|
# Configure the admin server
|
|
|
|
[admin]
|
2014-01-24 18:55:54 +00:00
|
|
|
port = 8083 # binding is disabled if the port isn't set
|
2013-12-11 19:20:02 +00:00
|
|
|
assets = "./admin"
|
2013-12-11 18:10:37 +00:00
|
|
|
|
|
|
|
# Configure the http api
|
|
|
|
[api]
|
2014-01-24 18:55:54 +00:00
|
|
|
port = 8086 # binding is disabled if the port isn't set
|
|
|
|
# ssl-port = 8084 # Ssl support is enabled if you set a port and cert
|
|
|
|
# ssl-cert = /path/to/cert.pem
|
2013-12-11 18:10:37 +00:00
|
|
|
|
|
|
|
# Raft configuration
|
|
|
|
[raft]
|
2013-12-11 22:19:02 +00:00
|
|
|
# The raft port should be open between all servers in a cluster.
|
|
|
|
# However, this port shouldn't be accessible from the internet.
|
|
|
|
|
2014-01-08 19:38:27 +00:00
|
|
|
port = 8090
|
2013-12-11 22:19:02 +00:00
|
|
|
|
|
|
|
# Where the raft logs are stored. The user running InfluxDB will need read/write access.
|
2013-12-11 19:20:02 +00:00
|
|
|
dir = "/tmp/influxdb/development/raft"
|
2013-12-11 18:10:37 +00:00
|
|
|
|
2013-12-11 22:19:02 +00:00
|
|
|
[storage]
|
|
|
|
dir = "/tmp/influxdb/development/db"
|
|
|
|
|
|
|
|
[cluster]
|
|
|
|
# A comma separated list of servers to seed
|
|
|
|
# this server. this is only relevant when the
|
|
|
|
# server is joining a new cluster. Otherwise
|
|
|
|
# the server will use the list of known servers
|
|
|
|
# prior to shutting down. Any server can be pointed to
|
|
|
|
# as a seed. It will find the Raft leader automatically.
|
|
|
|
|
|
|
|
# Here's an example. Note that the port on the host is the same as the raft port.
|
2014-01-08 19:38:27 +00:00
|
|
|
# seed-servers = ["hosta:8090","hostb:8090"]
|
2013-12-11 22:19:02 +00:00
|
|
|
|
|
|
|
# Replication happens over a TCP connection with a Protobuf protocol.
|
|
|
|
# This port should be reachable between all servers in a cluster.
|
|
|
|
# However, this port shouldn't be accessible from the internet.
|
|
|
|
|
2014-01-08 19:38:27 +00:00
|
|
|
protobuf_port = 8099
|