Skip to content

Commit

Permalink
Merge pull request kube-burner#442 from Harshith-umesh/fixlocal
Browse files Browse the repository at this point in the history
Create unique folder for every local indexing job using uuid
  • Loading branch information
vishnuchalla authored Aug 22, 2023
2 parents cc2c229 + d406df0 commit 624ad96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ func Parse(uuid, c string) (Spec, error) {
}
}
configSpec.GlobalConfig.UUID = uuid
if configSpec.GlobalConfig.IndexerConfig.MetricsDirectory == "collected-metrics" {
configSpec.GlobalConfig.IndexerConfig.MetricsDirectory += "-" + uuid
}

return configSpec, nil
}

Expand Down
4 changes: 2 additions & 2 deletions test/test-ocp.bats
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ teardown_file() {
}

@test "node-density-heavy with indexing" {
run kube-burner ocp node-density-heavy --pods-per-node=75 --local-indexing
run kube-burner ocp node-density-heavy --pods-per-node=75 --uuid=abcd --local-indexing
[ "$status" -eq 0 ]
run check_file_list collected-metrics/etcdVersion.json collected-metrics/clusterMetadata.json collected-metrics/jobSummary-node-density-heavy.json collected-metrics/podLatencyMeasurement-node-density-heavy.json collected-metrics/podLatencyQuantilesMeasurement-node-density-heavy.json
run check_file_list collected-metrics-abcd/etcdVersion.json collected-metrics-abcd/clusterMetadata.json collected-metrics-abcd/jobSummary-node-density-heavy.json collected-metrics-abcd/podLatencyMeasurement-node-density-heavy.json collected-metrics-abcd/podLatencyQuantilesMeasurement-node-density-heavy.json
[ "$status" -eq 0 ]
}

Expand Down

0 comments on commit 624ad96

Please sign in to comment.