Skip to content
Snippets Groups Projects
Commit e1a3e443 authored by Sören Henning's avatar Sören Henning
Browse files

Merge branch 'main' into vertical-scaling

parents e39841d4 0d4c35c3
No related branches found
No related tags found
1 merge request!303Add resource type for threads (vertical scaling)
Pipeline #10250 passed
......@@ -60,7 +60,7 @@ spec:
prometheusUrl: "http://prometheus-operated:9090"
offset: 0
properties:
consumerGroup: uc1-hazelcastjet
consumerGroup: theodolite-uc1-application
threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds
......
......@@ -60,7 +60,7 @@ spec:
prometheusUrl: "http://prometheus-operated:9090"
offset: 0
properties:
consumerGroup: uc2-hazelcastjet
consumerGroup: theodolite-uc2-application
threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds
......
......@@ -60,7 +60,7 @@ spec:
prometheusUrl: "http://prometheus-operated:9090"
offset: 0
properties:
consumerGroup: uc3-hazelcastjet
consumerGroup: theodolite-uc3-application
threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds
......
......@@ -61,7 +61,7 @@ spec:
prometheusUrl: "http://prometheus-operated:9090"
offset: 0
properties:
consumerGroup: uc4-hazelcastjet
consumerGroup: theodolite-uc4-application
threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds
......
......@@ -3,6 +3,7 @@ package rocks.theodolite.benchmarks.commons.hazelcastjet;
import com.hazelcast.config.Config;
import com.hazelcast.jet.Jet;
import com.hazelcast.jet.JetInstance;
import com.hazelcast.jet.config.JetConfig;
import org.slf4j.Logger;
/**
......@@ -48,13 +49,13 @@ public class JetInstanceBuilder {
* @return JetInstance
*/
public JetInstance build() {
final JetInstance jet = Jet.newJetInstance();
final Config localConfig = this.config;
if (localConfig == null) {
return jet;
throw new IllegalStateException("No Hazelcast config set.");
} else {
jet.getConfig().setHazelcastConfig(localConfig);
return jet;
final JetConfig jetConfig = new JetConfig();
jetConfig.setHazelcastConfig(localConfig);
return Jet.newJetInstance(jetConfig);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment