influxdata / influx-stress

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

Failed to create database: Bad status code during Create(CREATE DATABASE stress): 400, body: "missing parameter: db" #37

Open xander973 opened 4 years ago

xander973 commented 4 years ago

[root@53 bin]# ./influx-stress insert cpu,host=server,location=us-west,id=myid busy=100,idle=10,random=5i -r 30s --host http://127.0.0.1:9096/write?u=admin&p=admin [1] 2695 [root@53 bin]# Using point template: cpu,host=server,location=us-west,id=myid busy=100,idle=10,random=5i Using batch size of 10000 line(s) Spreading writes across 100000 series Throttling output to ~200000 points/sec Using 20 concurrent writer(s) Running until ~18446744073709551615 points sent or until ~30s has elapsed Failed to create database: Bad status code during Create(CREATE DATABASE stress): 400, body: "missing parameter: db" Aborting.

chengshiwen commented 3 years ago

@xander973 just run ./influx-stress insert cpu,host=server,location=us-west,id=myid busy=100,idle=10,random=5i -r 30s --host http://127.0.0.1:9096, and http://127.0.0.1:9096 is the url of influxdb

misstick86 commented 3 years ago

I have same issue, influxdb is 2.0.4(version)

shaolimin commented 3 years ago

Failed to create database: Bad status code during Create(CREATE DATABASE stress): 401, body: {"code":"unauthorized","message":"unauthorized access"}

influxdb is 2.0.4(version)

./influx-stress insert -r 60s --strict --pps 20 --host http://localhost:8086

chengshiwen commented 3 years ago

influx-stress currently only targets influxdb v1

shaolimin commented 3 years ago

influx-stress currently only targets influxdb v1

Do you have a plan for 2.0

chengshiwen commented 3 years ago

@shaolimin There is no plan yet, my main work is on the new version of influx-proxy and apache/dolphinscheduler ps: There are some bugs and has been no repair and update on influxdata/influx-stress. I have fixed some problems on forked chengshiwen/influx-stress