UDP service timeout - failed to write point batch to database
System
Version: InfluxDB shell version: 1.3.7 System: Ubuntu 16.04.3 LTS Memory: 60G Cores: 36
I have the wal and data dir on separate ssd disks.
Influx stats
numSeries: 1.11M Input rate: 1600 per second average
Issue
I am testing out influxdb and i'm encountering the following error logs.
2017-10-31T15:41:40Z retention policy shard deletion check commencing service=retention
2017-10-31T15:41:40Z new shard group 1272 successfully precreated for database traffic, retention policy traffic_daily service=metaclient
2017-10-31T15:41:40Z new shard group 1273 successfully precreated for database minutes, retention policy traffic_hourly service=metaclient
2017-10-31T15:41:40Z new shard group 1274 successfully precreated for database seconds, retention policy traffic_hourly service=metaclient
2017-10-31T15:41:40Z deleted shard group 1257 from database traffic, retention policy traffic_daily service=retention
2017-10-31T15:41:40Z deleted shard group 1261 from database minutes, retention policy traffic_hourly service=retention
2017-10-31T15:41:40Z deleted shard group 1262 from database seconds, retention policy traffic_hourly service=retention
2017-10-31T15:42:09Z failed to write point batch to database "traffic": timeout service=udp
2017-10-31T15:42:12Z failed to write point batch to database "traffic": timeout service=udp
2017-10-31T15:42:24Z failed to write point batch to database "traffic": timeout service=udp
2017-10-31T15:42:25Z failed to write point batch to database "traffic": timeout service=udp
2017-10-31T15:42:42Z failed to write point batch to database "traffic": timeout service=udp
2017-10-31T15:42:43Z failed to write point batch to database "traffic": timeout service=udp
... (many more in between)
2017-10-31T15:49:40Z failed to write point batch to database "traffic": timeout service=udp
And then randomly stops after 9 to 10 minutes
For as far as i can see this always happens after new shard creation or shard deletion.
During this error spam the data in the database is running behind with data.
I have tried every possible config option. This is my current one.
[meta]
dir = "/opt/influx/meta"
retention-autocreate = true
logging-enabled = true
[data]
dir = "/opt/influx/data"
index-version = "inmem"
wal-dir = "/opt/influx/wal"
wal-fsync-delay = "0s"
query-log-enabled = false
cache-max-memory-size = 21474836480
cache-snapshot-memory-size = 21474836480
cache-snapshot-write-cold-duration = "10m0s"
compact-full-write-cold-duration = "4h0m0s"
max-series-per-database = 0
max-values-per-tag = 0
max-concurrent-compactions = 0
trace-logging-enabled = false
[coordinator]
write-timeout = "10s"
max-concurrent-queries = 0
query-timeout = "0s"
log-queries-after = "4s"
max-select-point = 0
max-select-series = 0
max-select-buckets = 0
[retention]
enabled = true
check-interval = "1h0m0s"
[shard-precreation]
enabled = true
check-interval = "1h0m0s"
advance-period = "3h0m0s"
[monitor]
store-enabled = true
store-database = "_internal"
store-interval = "1m0s"
[subscriber]
enabled = true
http-timeout = "30s"
insecure-skip-verify = false
ca-certs = ""
write-concurrency = 40
write-buffer-size = 1000
[http]
enabled = true
bind-address = ":8086"
auth-enabled = true
log-enabled = false
write-tracing = false
pprof-enabled = true
https-enabled = false
https-certificate = "/etc/ssl/influxdb.pem"
https-private-key = ""
max-row-limit = 0
max-connection-limit = 0
shared-secret = ""
realm = "InfluxDB"
unix-socket-enabled = false
bind-socket = "/var/run/influxdb.sock"
[[udp]]
enabled = true
bind-address = ":8089"
database = "traffic"
retention-policy = "traffic_daily"
batch-size = 10000
batch-pending = 300
read-buffer = 0
batch-timeout = "3s"
precision = ""
[[udp]]
enabled = true
bind-address = ":7089"
database = "traffic"
retention-policy = "traffic_daily"
batch-size = 10000
batch-pending = 500
read-buffer = 0
batch-timeout = "10s"
precision = ""
[[udp]]
enabled = true
bind-address = ":7090"
database = "traffic"
retention-policy = "traffic_daily"
batch-size = 10000
batch-pending = 500
read-buffer = 0
batch-timeout = "10s"
precision = ""
[[udp]]
enabled = true
bind-address = ":7091"
database = "traffic"
retention-policy = "traffic_daily"
batch-size = 10000
batch-pending = 500
read-buffer = 0
batch-timeout = "10s"
precision = ""
Any suggestions are much appreciated. It's currently the only problem keeping us from going live with InfluxDB.
My best guess is that when influx deletes a shard and starts reindexing and makes the udp writes timeout. I have no experience with GO programming language so i cant really debug it.
Would be awesome to get someones insight on this bug!
The problem was gone for 3 days so we put it live! now 1 day later it started again! It performed good while we pushed nearly 120k points per minute and now we do around 60k points per minute and it starts failing!
So its not the amount of points we push that causes the issue.
#9084 Maybe this will fix the issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.