Merge pull request #3762 from influxdb/pd-update-stress
Update stress to work with fewer than 10k series.pull/3793/head
commit
2752e894e1
|
@ -42,14 +42,13 @@ func main() {
|
||||||
|
|
||||||
totalPoints := 0
|
totalPoints := 0
|
||||||
|
|
||||||
for i := 1; i <= *pointCount; i++ {
|
|
||||||
batch := &client.BatchPoints{
|
batch := &client.BatchPoints{
|
||||||
Database: *database,
|
Database: *database,
|
||||||
WriteConsistency: "any",
|
WriteConsistency: "any",
|
||||||
Time: time.Now(),
|
Time: time.Now(),
|
||||||
Precision: "n",
|
Precision: "n",
|
||||||
}
|
}
|
||||||
|
for i := 1; i <= *pointCount; i++ {
|
||||||
for j := 1; j <= *seriesCount; j++ {
|
for j := 1; j <= *seriesCount; j++ {
|
||||||
p := client.Point{
|
p := client.Point{
|
||||||
Measurement: "cpu",
|
Measurement: "cpu",
|
||||||
|
@ -72,7 +71,7 @@ func main() {
|
||||||
}
|
}
|
||||||
wg.Done()
|
wg.Done()
|
||||||
counter.Decrement()
|
counter.Decrement()
|
||||||
if total%1000000 == 0 {
|
if total%500000 == 0 {
|
||||||
fmt.Printf("%d total points. %d in %s\n", total, *batchSize, time.Since(st))
|
fmt.Printf("%d total points. %d in %s\n", total, *batchSize, time.Since(st))
|
||||||
}
|
}
|
||||||
}(batch, totalPoints)
|
}(batch, totalPoints)
|
||||||
|
@ -81,6 +80,7 @@ func main() {
|
||||||
Database: *database,
|
Database: *database,
|
||||||
WriteConsistency: "any",
|
WriteConsistency: "any",
|
||||||
Precision: "n",
|
Precision: "n",
|
||||||
|
Time: time.Now(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue