mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-26 15:36:33 -06:00
post-merge fixes
This commit is contained in:
parent
666279decd
commit
f1bf47e719
@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>mvn-defaults</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
<relativePath>../mvn-defaults</relativePath>
|
||||
</parent>
|
||||
|
||||
@ -23,13 +23,13 @@
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>drivers-api</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>virtdata-lib-basics</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<artifactId>mvn-defaults</artifactId>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
<relativePath>../mvn-defaults</relativePath>
|
||||
</parent>
|
||||
|
||||
@ -25,14 +25,20 @@
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>nb-api</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>virtdata-userlibs</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>nb-api</artifactId>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
@ -6,7 +6,9 @@ import io.nosqlbench.engine.api.templating.binders.ListBinder;
|
||||
import io.nosqlbench.engine.api.templating.binders.OrderedMapBinder;
|
||||
import io.nosqlbench.nb.api.config.fieldreaders.DynamicFieldReader;
|
||||
import io.nosqlbench.nb.api.config.fieldreaders.StaticFieldReader;
|
||||
import io.nosqlbench.nb.api.config.standard.*;
|
||||
import io.nosqlbench.nb.api.config.standard.NBConfigError;
|
||||
import io.nosqlbench.nb.api.config.standard.NBConfiguration;
|
||||
import io.nosqlbench.nb.api.config.standard.NBTypeConverter;
|
||||
import io.nosqlbench.nb.api.errors.BasicError;
|
||||
import io.nosqlbench.nb.api.errors.OpConfigError;
|
||||
import io.nosqlbench.virtdata.core.bindings.DataMapper;
|
||||
|
@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<artifactId>mvn-defaults</artifactId>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
<relativePath>../mvn-defaults/pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>drivers-api</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
@ -35,7 +35,7 @@
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>adapters-api</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
12
nb/pom.xml
12
nb/pom.xml
@ -49,8 +49,12 @@
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>engine-extensions</artifactId>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>nbr</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@ -227,7 +231,7 @@
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>driver-dsegraph-shaded</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</profile>
|
||||
@ -240,12 +244,12 @@
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>driver-cql-shaded</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>driver-cqlverify</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
14
nbr/pom.xml
14
nbr/pom.xml
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>mvn-defaults</artifactId>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
<relativePath>../mvn-defaults</relativePath>
|
||||
</parent>
|
||||
|
||||
@ -24,37 +24,37 @@
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>engine-rest</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>engine-cli</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>engine-docs</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>engine-core</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>engine-extensions</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>driver-diag</artifactId>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<version>4.15.58-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
@ -1,79 +0,0 @@
|
||||
// driver
|
||||
// workload
|
||||
// sample_seconds
|
||||
// min_rate
|
||||
// rate_step
|
||||
// max_rate
|
||||
|
||||
function printf(args) {
|
||||
var spec = arguments[0];
|
||||
var values = [];
|
||||
for (let i = 1; i < arguments.length; i++) {
|
||||
values.push(arguments[i]);
|
||||
}
|
||||
java.lang.System.out.printf(arguments[0], values);
|
||||
}
|
||||
|
||||
var sample_seconds = 600;
|
||||
sample_seconds = 0 + TEMPLATE(sample_seconds,sample_seconds);
|
||||
printf("sample_seconds=%d\n", sample_seconds);
|
||||
|
||||
var min_rate = 1;
|
||||
min_rate = 0 + TEMPLATE(min_rate,min_rate);
|
||||
var max_rate = 10000;
|
||||
max_rate = 0 + TEMPLATE(max_rate,max_rate);
|
||||
var rate_step = 10000;
|
||||
rate_step = 0 + TEMPLATE(rate_step,rate_step);
|
||||
printf("rate (min,step,max) = (%d,%d,%d)\n");
|
||||
|
||||
var driver = "TEMPLATE(driver,diag)"
|
||||
var workload = "TEMPLATE(workload,none)"
|
||||
printf("driver=%s workload=%s\n",driver,workload);
|
||||
|
||||
printf("starting activity for stepup analysis...\n");
|
||||
var activitydef = params.withDefaults({
|
||||
'alias': 'stepup',
|
||||
'driver': driver,
|
||||
'cycles': '1t',
|
||||
'stride': '1000',
|
||||
'striderate': '1:1.05:restart'
|
||||
});
|
||||
|
||||
var csvlogger = csvoutput.open('stepup_metrics/stepup_rates.csv', 'time', 'workload', 'rate', 'ops')
|
||||
var csvhistologger=csvmetrics.log("stepup_metrics");
|
||||
csvlogger.write({'time': java.lang.System.currentTimeMillis()/1000});
|
||||
|
||||
scenario.start(activitydef);
|
||||
|
||||
printf("waiting 5 seconds for metrics warm-up...\n");
|
||||
scenario.waitMillis(5000);
|
||||
|
||||
for (var rate = rate_step; rate < max_rate + rate_step; rate += rate_step) {
|
||||
if (rate > max_rate) {
|
||||
rate = max_rate;
|
||||
}
|
||||
|
||||
print("rate=" + rate);
|
||||
|
||||
activities.stepup.striderate = "" + (rate / 1000.0)+":1.05:restart";
|
||||
print("sampling performance for (sample_seconds=" + params.sample_seconds + ")...");
|
||||
|
||||
var precount = metrics.stepup.cycles.servicetime.count
|
||||
var waitmillis = sample_seconds * 1000;
|
||||
print("waitmillis=" + waitmillis);
|
||||
scenario.waitMillis("" + waitmillis);
|
||||
var postcount = metrics.stepup.cycles.servicetime.count
|
||||
var count = postcount - precount;
|
||||
var ops_per_second = count / params.sample_seconds;
|
||||
printf("ops_per_second = %f (%f / %f)\n", ops_per_second, count, sample_seconds);
|
||||
csvlogger.write({
|
||||
'time': java.lang.System.currentTimeMillis()/1000,
|
||||
'workload': activitydef.workload,
|
||||
'rate': rate,
|
||||
'ops': ops_per_second
|
||||
});
|
||||
csvhistologger.report();
|
||||
}
|
||||
|
||||
print("stopping activity after stepup analysis\n");
|
||||
scenario.stop("stepup")
|
Loading…
Reference in New Issue
Block a user