mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
changed optimo rate param min from 20 to 10, added more informative exception message
This commit is contained in:
parent
af5955e108
commit
fe9afb1a6d
@ -83,7 +83,7 @@ public class CMD_optimo extends NBBaseCommand {
|
||||
|
||||
OptimoSearchSettings optimoSearchParams = new OptimoSearchSettings(params, model);
|
||||
|
||||
model.add("rate", 20, optimoSearchParams.startRate(), optimoSearchParams.startRate()*4,
|
||||
model.add("rate", 10, optimoSearchParams.startRate(), optimoSearchParams.startRate()*4,
|
||||
rate -> flywheel.onEvent(ParamChange.of(new CycleRateSpec(rate, 1.1d, SimRateSpec.Verb.restart)))
|
||||
);
|
||||
model.add("threads", 10, 50, 2000,
|
||||
|
@ -29,7 +29,7 @@ public class OptimoParamModel {
|
||||
|
||||
public OptimoParamModel add(String name, double min, double initial, double max, DoubleConsumer effector) {
|
||||
if (min>initial || initial > max) {
|
||||
throw new RuntimeException("parameters must be in min<initial<max order");
|
||||
throw new RuntimeException("parameters must be in min<initial<max order, but " + name + " was min=" + min + ", max=" + max);
|
||||
}
|
||||
this.params.add(new GenericParamModel(name, min, initial, max, effector));
|
||||
return this;
|
||||
|
Loading…
Reference in New Issue
Block a user