mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
label fix for relevance metrics
This commit is contained in:
parent
340e5ac483
commit
5cf0fbcaec
@ -20,7 +20,7 @@ scenarios:
|
||||
default:
|
||||
schema: run tags='block:schema' labels='target:astra' threads===1
|
||||
rampup: run tags='block:rampup' labels='target:astra' threads=100 cycles=TEMPLATE(trainsize)
|
||||
search_and_index: run tags='block:search_and_index,optype=select' labels='target:astra' cycles=TEMPLATE(testsize)
|
||||
search_and_index: run tags='block:search_and_index,optype=select' labels='target:astra' cycles=TEMPLATE(testsize) threads=2000 testsize=1000000 errors=count
|
||||
# one activity or two? data leap-frog? or concurrency separate for both?
|
||||
# await_index: run tags='block:await_index' # This would need to exit when a condition is met
|
||||
# stop_search_and_index: stop search_and_index
|
||||
|
@ -245,4 +245,8 @@ public class MapLabels implements NBLabels {
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public NBLabels getLabels() {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ import java.util.function.Function;
|
||||
* since these elements will be consulted frequently, such as when rendering metrics values.
|
||||
* </P>
|
||||
*/
|
||||
public interface NBLabels {
|
||||
public interface NBLabels extends NBLabeledElement {
|
||||
|
||||
/**
|
||||
* Create a string representation of the label data, including only the values.
|
||||
|
@ -57,7 +57,7 @@ public class RelevancyMeasures implements NBLabeledElement {
|
||||
public RelevancyMeasures addFunction(RelevancyFunction... f) {
|
||||
for (RelevancyFunction function : f) {
|
||||
this.functions.add(function);
|
||||
DoubleSummaryGauge gauge = ActivityMetrics.summaryGauge(function, function.getUniqueName());
|
||||
DoubleSummaryGauge gauge = ActivityMetrics.summaryGauge(parent.getLabels().and(function.getLabels()), function.getUniqueName());
|
||||
this.gauges.add(gauge);
|
||||
}
|
||||
return this;
|
||||
|
Loading…
Reference in New Issue
Block a user