You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by up...@apache.org on 2018/11/27 22:10:38 UTC
[geode-benchmarks] branch develop updated: Consistently disabling
cluster configuration
This is an automated email from the ASF dual-hosted git repository.
upthewaterspout pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-benchmarks.git
The following commit(s) were added to refs/heads/develop by this push:
new 74db5df Consistently disabling cluster configuration
74db5df is described below
commit 74db5df27a76986748597fce89d1075f1222a067
Author: Dan Smith <up...@apache.org>
AuthorDate: Tue Nov 27 14:07:19 2018 -0800
Consistently disabling cluster configuration
The benchmarks were running in with cluster config only enabled on the
servers but not the locator.
---
.../src/main/java/org/apache/geode/benchmark/tasks/StartLocator.java | 2 ++
.../src/main/java/org/apache/geode/benchmark/tasks/StartServer.java | 1 +
2 files changed, 3 insertions(+)
diff --git a/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/StartLocator.java b/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/StartLocator.java
index 5bc6d39..c34f2f7 100644
--- a/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/StartLocator.java
+++ b/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/StartLocator.java
@@ -40,6 +40,8 @@ public class StartLocator implements Task {
String statsFile = new File(context.getOutputDir(), "stats.gfs").getAbsolutePath();
properties.setProperty(ConfigurationProperties.STATISTIC_SAMPLING_ENABLED,"true");
properties.setProperty(ConfigurationProperties.STATISTIC_ARCHIVE_FILE, statsFile);
+ properties.setProperty(ConfigurationProperties.ENABLE_CLUSTER_CONFIGURATION, "false");
+ properties.setProperty(ConfigurationProperties.USE_CLUSTER_CONFIGURATION, "false");
properties.setProperty(ConfigurationProperties.NAME,"locator-"+ InetAddress.getLocalHost());
Locator.startLocatorAndDS(locatorPort, null, properties);
diff --git a/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/StartServer.java b/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/StartServer.java
index 46f9445..a4e40a0 100644
--- a/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/StartServer.java
+++ b/geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/StartServer.java
@@ -47,6 +47,7 @@ public class StartServer implements Task {
.set(ConfigurationProperties.NAME,"server-"+ InetAddress.getLocalHost())
.set(ConfigurationProperties.STATISTIC_SAMPLING_ENABLED,"true")
.set(ConfigurationProperties.STATISTIC_ARCHIVE_FILE, statsFile)
+ .set(ConfigurationProperties.USE_CLUSTER_CONFIGURATION, "false")
.create();
CacheServer cacheServer = ((Cache) cache).addCacheServer();