m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-01-12 16:06:34 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-01-12 16:06:34 +0100
commit6710ea855694dfc6486604d06f046a90f69f1373 (patch)
treee6751ace086a53631109f2b8f5d458c2bed45ac5 /build.gradle
parentfd554f89eeff6ffb3dcd80447c4284c976090e9c (diff)
parent100e3d23b47d9d772d64dd0c7e596cd20de218b9 (diff)
Merge branch 'master' into gossip-gc
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle33
1 files changed, 25 insertions, 8 deletions
diff --git a/build.gradle b/build.gradle
index 66c50d1..13be045 100644
--- a/build.gradle
+++ b/build.gradle
@@ -30,22 +30,37 @@ ext.gossipPeriod = {
return System.getProperty("gossipPeriod") ?: 5 * 1000
}
-ext.UDUPHostname = {
+ext.UDUPServerHostname = {
return System.getProperty("hostname") ?: "localhost"
}
-ext.port = {
+ext.UDUPServerPort = {
return System.getProperty("port") ?: 5999;
}
-ext.timeout = {
+ext.UDUPServerTimeout = {
return System.getProperty("timeout") ?: 5000;
}
-ext.bufsize = {
+ext.UDUPServerBufsize = {
return System.getProperty("bufsize") ?: 512;
}
+/*
+Possible options:
+RoundRobinExp
+RoundRobinUniform
+RandomExp
+RandomUniform
+ */
+ext.zoneSelectionStrategy = {
+ return System.getProperty("zoneStrategy") ?: "RandomUniform"
+}
+
+ext.zonePath = {
+ return System.getProperty("zonePath") ?: "/uw/violet07"
+}
+
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
@@ -89,10 +104,12 @@ task runAgent(type: JavaExec) {
systemProperty 'freshness_period', freshnessPeriod()
systemProperty 'query_period', queryPeriod()
systemProperty 'gossip_period', gossipPeriod()
- systemProperty 'UDUPServer.hostname', UDUPHostname()
- systemProperty 'UDUPServer.port', port()
- systemProperty 'UDUPServer.timeout', port()
- systemProperty 'UDUPServer.bufsize', port()
+ systemProperty 'UDUPServer.hostname', UDUPServerHostname()
+ systemProperty 'UDUPServer.port', UDUPServerPort()
+ systemProperty 'UDUPServer.timeout', UDUPServerTimeout()
+ systemProperty 'UDUPServer.bufsize', UDUPServerBufsize()
+ systemProperty 'Gossip.zone_strategy', zoneSelectionStrategy()
+ systemProperty 'zone_path', zonePath()
}
task runClient(type: JavaExec) {