每个标签的最大值超出了 InfluxDB 的限制
Max values per tag limit exceeded InfluxDB
我正在使用 java 并使用批处理点写入 InfluxDb。我的代码在下面提到,
BatchPoints batchPoints = BatchPoints
.database(dbName).retentionPolicy("autogen") .consistency(InfluxDB.ConsistencyLevel.ALL).build();
point = Point.measurement("cpu")...
batchPoints.point(point);
我正在写 20 到 3000 万点,一段时间后出现异常:
.java.lang.RuntimeException: {"error":"partial write: max-values-per-tag limit exceeded (100708/100000): measurement=\"cpu\" tag=\"jkey\" value=\ .....
想知道如何增加限制?或者我需要更改架构设计吗?
我找到了解决方案,所以粘贴在这里,打开通常位于 /etc/influxdb/influxdb.conf 的 influxdb.conf 文件并搜索:
# max-values-per-tag = 100000
取消注释并将值替换为零,如下所示,
max-values-per-tag = 0
并反弹 influxDb 实例以使更改生效。
我正在使用 java 并使用批处理点写入 InfluxDb。我的代码在下面提到,
BatchPoints batchPoints = BatchPoints
.database(dbName).retentionPolicy("autogen") .consistency(InfluxDB.ConsistencyLevel.ALL).build();
point = Point.measurement("cpu")...
batchPoints.point(point);
我正在写 20 到 3000 万点,一段时间后出现异常:
.java.lang.RuntimeException: {"error":"partial write: max-values-per-tag limit exceeded (100708/100000): measurement=\"cpu\" tag=\"jkey\" value=\ .....
想知道如何增加限制?或者我需要更改架构设计吗?
我找到了解决方案,所以粘贴在这里,打开通常位于 /etc/influxdb/influxdb.conf 的 influxdb.conf 文件并搜索:
# max-values-per-tag = 100000
取消注释并将值替换为零,如下所示,
max-values-per-tag = 0
并反弹 influxDb 实例以使更改生效。