Maximum tag limit exceeded InfluxDB

I use java and write to InfluxDb using batch points. My code is mentioned below

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


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

    batchPoints.point(point);

I write from 20 to 30 million points, and after a while I get an exception:

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

I wonder how to increase the limit? Or do I need to change the design of the circuit?

+4
source share
1 answer

I found the solution being inserted here, open the infuxdb.conf file, usually located in /etc/influxdb/influxdb.conf, and search:

# max-values-per-tag = 100000

uncomment and replace the value with zero, as shown below,

max-values-per-tag = 0

And bounce the infuxDb instance for the change to take effect.

+8
source

Source: https://habr.com/ru/post/1676313/


All Articles