Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Max values per tag limit exceeded InfluxDB

Tags:

I am using java and writing into InfluxDb using batch points. My code is mention below,

 BatchPoints batchPoints = BatchPoints
.database(dbName).retentionPolicy("autogen") .consistency(InfluxDB.ConsistencyLevel.ALL).build();


    point = Point.measurement("cpu")...

    batchPoints.point(point);

I am writing 20 to 30 Million points, and after a while getting exception:

.java.lang.RuntimeException: {"error":"partial write: max-values-per-tag limit exceeded (100708/100000): measurement=\"cpu\" tag=\"jkey\" value=\ .....

Wondering how to increase the limit? Or do i need to change my schema design?

like image 727
Ammad Avatar asked May 03 '17 21:05

Ammad


1 Answers

I found the solution so pasting here, open influxdb.conf file usually located at /etc/influxdb/influxdb.conf and search for:

# max-values-per-tag = 100000

uncomment and replace the value to zero as shown below,

max-values-per-tag = 0

And bounce the influxDb instance for changes to take effect.

like image 155
Ammad Avatar answered Sep 21 '22 08:09

Ammad