influxdata / influx-stress

New tool for generating artificial load on InfluxDB
MIT License
121 stars 43 forks source link

influxdb-stress 连接influxdb 失败 #39

Open mingzizenmequ opened 2 years ago

mingzizenmequ commented 2 years ago

[root@cdh6-pre2038 bin]# /root/go/bin/influx-stress insert -r 60s --strict --pps 800000 --host http://172.20.20.38:8086 Using point template: ctr,some=tag n=0i Using batch size of 10000 line(s) Spreading writes across 100000 series Throttling output to ~800000 points/sec Using 80 concurrent writer(s) Running until ~18446744073709551615 points sent or until ~1m0s has elapsed Failed to create database: Bad status code during Create(CREATE DATABASE stress): 401, body: {"code":"unauthorized","message":"unauthorized access"} Aborting.

我的influxdb版本是2.0.8 然后说权限认证不通过 但是我怎么加上token呢 @chengshiwen

chengshiwen commented 2 years ago

@mingzizenmequ influx-stress 目前还不支持influxdb 2.x

mingzizenmequ commented 2 years ago

@mingzizenmequ influx-stress 目前还不支持influxdb 2.x

Running until ~18446744073709551615 points sent or until ~1m0s has elapsed Write Throughput: 3222635 Points Written: 196830000 查询数据库实际数量对不上。。。 select count(*) from ctr; name: ctr time count_n


0 101001940

数量差了好多

chengshiwen commented 2 years ago

@mingzizenmequ 官方这个版本似乎有问题,我后来修复过https://github.com/chengshiwen/influx-stress ,可以尝试下还有没有这个问题

mingzizenmequ commented 2 years ago

@mingzizenmequ 官方这个版本似乎有问题,我后来修复过https://github.com/chengshiwen/influx-stress,可以尝试下还有没有这个问题

好滴