Skip to content

Commit 6b3e1ee

Browse files
committed
Start influxdb with udp enabled and published, related to #226
1 parent 19c2656 commit 6b3e1ee

File tree

3 files changed

+37
-15
lines changed

3 files changed

+37
-15
lines changed

Dockerfile

-9
This file was deleted.

compile-and-test.sh

+12-6
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@ do
1111
echo "Tesing againts influxdb ${version}"
1212
docker kill influxdb || true
1313
docker rm influxdb || true
14-
docker run -d --name influxdb -p 8086:8086 influxdb:${version}
14+
docker run \
15+
--detach \
16+
--name influxdb \
17+
--publish 8086:8086 \
18+
--publish 8089:8089/udp \
19+
--volume ${PWD}/influxdb.conf:/etc/influxdb/influxdb.conf \
20+
influxdb:${version}
1521

1622
docker run -it --rm \
17-
-v $PWD:/usr/src/mymaven \
18-
-v $PWD/.m2:/root/.m2 \
19-
-w /usr/src/mymaven \
20-
--link=influxdb \
21-
-e INFLUXDB_IP=influxdb \
23+
--volume $PWD:/usr/src/mymaven \
24+
--volume $PWD/.m2:/root/.m2 \
25+
--workdir /usr/src/mymaven \
26+
--link=influxdb \
27+
--env INFLUXDB_IP=influxdb \
2228
maven mvn clean install
2329

2430
docker kill influxdb || true

influxdb.conf

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[meta]
2+
dir = "/var/lib/influxdb/meta"
3+
4+
[data]
5+
dir = "/var/lib/influxdb/data"
6+
engine = "tsm1"
7+
wal-dir = "/var/lib/influxdb/wal"
8+
9+
[admin]
10+
enabled = true
11+
12+
[[udp]]
13+
enabled = true
14+
bind-address = ":8089"
15+
database = "udp"
16+
retention-policy = ""
17+
18+
# These next lines control how batching works. You should have this enabled
19+
# otherwise you could get dropped metrics or poor performance. Batching
20+
# will buffer points in memory if you have many coming in.
21+
22+
batch-size = 1000 # will flush if this many points get buffered
23+
batch-pending = 5 # number of batches that may be pending in memory
24+
batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
25+
read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.

0 commit comments

Comments
 (0)