Skip to content

Commit 826b488

Browse files
committed
Updated config and path to match 0.9.6
1 parent 51d55fb commit 826b488

File tree

2 files changed

+93
-49
lines changed

2 files changed

+93
-49
lines changed

src/config.toml

+89-45
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,114 @@
1-
bind-address = "0.0.0.0"
2-
port = 8086
31
reporting-disabled = false
42

53
[meta]
64
dir = "/data/meta"
5+
hostname = "localhost"
6+
bind-address = ":8088"
7+
retention-autocreate = true
8+
election-timeout = "1s"
9+
heartbeat-timeout = "1s"
10+
leader-lease-timeout = "500ms"
11+
commit-timeout = "50ms"
12+
cluster-tracing = false
13+
raft-promotion-enabled = true
14+
logging-enabled = true
715

8-
[initialization]
9-
join-urls = ""
16+
[data]
17+
dir = "/data/db"
18+
engine = "bz1"
19+
max-wal-size = 104857600
20+
wal-flush-interval = "10m0s"
21+
wal-partition-flush-delay = "2s"
22+
wal-dir = "/root/.influxdb/wal"
23+
wal-logging-enabled = true
24+
wal-ready-series-size = 30720
25+
wal-compaction-threshold = 0.5
26+
wal-max-series-size = 1048576
27+
wal-flush-cold-interval = "5s"
28+
wal-partition-size-threshold = 52428800
29+
query-log-enabled = true
30+
cache-max-memory-size = 524288000
31+
cache-snapshot-memory-size = 26214400
32+
cache-snapshot-write-cold-duration = "1h0m0s"
33+
compact-full-write-cold-duration = "24h0m0s"
34+
max-points-per-block = 0
35+
data-logging-enabled = true
36+
37+
[cluster]
38+
force-remote-mapping = false
39+
write-timeout = "5s"
40+
shard-writer-timeout = "5s"
41+
shard-mapper-timeout = "5s"
42+
43+
[retention]
44+
enabled = true
45+
check-interval = "30m0s"
1046

11-
[authentication]
12-
enabled = false
47+
[shard-precreation]
48+
enabled = true
49+
check-interval = "10m0s"
50+
advance-period = "30m0s"
1351

1452
[admin]
1553
enabled = true
16-
port = 8083
17-
assets = "/opt/influxdb/current/admin"
18-
19-
[api]
20-
bind-address = "0.0.0.0"
21-
port = 8086
22-
23-
[collectd]
24-
enabled = false
25-
26-
[opentsdb]
27-
enabled = false
54+
bind-address = ":8083"
55+
https-enabled = false
56+
https-certificate = "/etc/ssl/influxdb.pem"
2857

29-
[udp]
30-
enabled = false
58+
[monitor]
59+
store-enabled = true
60+
store-database = "_internal"
61+
store-interval = "10s"
3162

32-
[broker]
33-
dir = "/data/broker"
63+
[subscriber]
3464
enabled = true
35-
election-timeout = "0"
3665

37-
[data]
38-
dir = "/data/db"
66+
[http]
3967
enabled = true
40-
retention-auto-create = true
41-
retention-check-enabled = true
42-
retention-check-period = "10m0s"
43-
retention-create-period = "45m0s"
44-
45-
[snapshot]
46-
enabled = false
47-
48-
[logging]
68+
bind-address = ":8086"
69+
auth-enabled = false
70+
log-enabled = true
4971
write-tracing = false
50-
raft-tracing = false
51-
level = "info"
52-
file = "/data/log.txt"
72+
pprof-enabled = false
73+
https-enabled = false
74+
https-certificate = "/etc/ssl/influxdb.pem"
5375

54-
[monitoring]
76+
[collectd]
5577
enabled = false
78+
bind-address = ":25826"
79+
database = "collectd"
80+
retention-policy = ""
81+
batch-size = 5000
82+
batch-pending = 10
83+
batch-timeout = "10s"
84+
read-buffer = 0
85+
typesdb = "/usr/share/collectd/types.db"
5686

57-
[debugging]
58-
pprof-enabled = false
87+
[opentsdb]
88+
enabled = false
89+
bind-address = ":4242"
90+
database = "opentsdb"
91+
retention-policy = ""
92+
consistency-level = "one"
93+
tls-enabled = false
94+
certificate = "/etc/ssl/influxdb.pem"
95+
batch-size = 1000
96+
batch-pending = 5
97+
batch-timeout = "1s"
98+
log-point-errors = true
5999

60100
[continuous_queries]
61-
recompute-previous-n = 2
62-
recompute-no-older-than = "10m0s"
63-
compute-runs-per-interval = 10
64-
compute-no-more-than = "2m0s"
65-
disabled = false
101+
log-enabled = true
102+
enabled = true
103+
run-interval = "1s"
66104

67105
[hinted-handoff]
68106
enabled = true
69107
dir = "/data/hh"
108+
max-size = 1073741824
109+
max-age = "168h0m0s"
110+
retry-rate-limit = 0
111+
retry-interval = "1s"
112+
retry-max-interval = "1m0s"
113+
purge-interval = "1h0m0s"
70114

src/run.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ if [ -n "${PRE_CREATE_DB}" ]; then
6363
echo "=> Database had been created before, skipping ..."
6464
else
6565
echo "=> Starting InfluxDB ..."
66-
exec /opt/influxdb/influxd -config=${CONFIG_FILE} &
66+
exec /usr/bin/influxd -config=${CONFIG_FILE} &
6767
PASS=${INFLUXDB_INIT_PWD:-root}
6868
arr=$(echo ${PRE_CREATE_DB} | tr ";" "\n")
6969

7070
#wait for the startup of influxdb
7171
RET=1
7272
while [[ RET -ne 0 ]]; do
7373
echo "=> Waiting for confirmation of InfluxDB service startup ..."
74-
sleep 3
74+
sleep 3
7575
curl -k ${API_URL}/ping 2> /dev/null
7676
RET=$?
7777
done
@@ -80,7 +80,7 @@ if [ -n "${PRE_CREATE_DB}" ]; then
8080
for x in $arr
8181
do
8282
echo "=> Creating database: ${x}"
83-
/opt/influxdb/influx -host=localhost -port=8086 -username=root -password="${PASS}" -execute="create database \"${x}\""
83+
/usr/bin/influx -host=localhost -port=8086 -username=root -password="${PASS}" -execute="create database \"${x}\""
8484
done
8585
echo ""
8686

@@ -94,5 +94,5 @@ fi
9494

9595
echo "=> Starting InfluxDB ..."
9696

97-
exec /opt/influxdb/influxd -config=${CONFIG_FILE}
97+
exec /usr/bin/influxd -config=${CONFIG_FILE}
9898

0 commit comments

Comments
 (0)