Error Max values per tag limit exceeded InfluxDB

I am facing max values per tag limit exceeded issue when trying to write 200k points to Influx DB (version 1.2.4) through Java by specifying the batch size and poll interval in enableBatch method. I have also set max-values-per-tag = 0 in /etc/influxdb/influxdb.conf but still facing the following issue.

SEVERE: Batch could not be sent. Data will be lost
org.influxdb.InfluxDBException: {“error”:“partial write: max-values-per-tag limit exceeded (100453/100000): measurement=“samplemeasurement” tag=“sampletag” value=“samplevalue99195” dropped=806”}
at org.influxdb.impl.InfluxDBImpl.execute(
at org.influxdb.impl.InfluxDBImpl.write(
at org.influxdb.impl.BatchProcessor.write(
at org.influxdb.impl.BatchProcessor$
at java.util.concurrent.Executors$
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(
at java.util.concurrent.ScheduledThreadPoolExecutor$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

Did you re-start the instance after making the config change?

Error message indicates that the default limit is still in place.

Yes Tim I have restarted the DB server after making these changes

Were you able to resolve your issue? If you did, can you please post how your resolved your issue for the community?

I ran into the same issue with my docker container, I ended up just passing in an environment variable to disable the threshold.

Also, if you haven’t already, you can run influxd config to see the running config.

1 Like

@ peter.gallerani

Excellent, thank you!