Skip to content

Commit

Permalink
Issue 110: Set connection pooling to false by default #111
Browse files Browse the repository at this point in the history
  • Loading branch information
shrids authored Aug 18, 2020
2 parents 0d8abc4 + 112e6b3 commit 9a04540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Running Pravega benchmark tool locally:
usage: pravega-benchmark
-consumers <arg> Number of consumers
-controller <arg> Controller URI
-enableConnectionPooling <arg> Set to false to disable connection
-enableConnectionPooling <arg> Set to true to enable connection
pooling
-events <arg> Number of events/records if 'time'
not specified;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/pravega/perf/PravegaPerfTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static void main(String[] args) {
options.addOption("readcsv", true, "CSV file to record read latencies");
options.addOption("writethroughputcsv", true, "CSV file to record write throughput");
options.addOption("readthroughputcsv", true, "CSV file to record read throughput");
options.addOption("enableConnectionPooling", true, "Set to false to disable connection pooling");
options.addOption("enableConnectionPooling", false, "Set to true to enable connection pooling");
options.addOption("writeWatermarkPeriodMillis", true,
"If -1 (default), watermarks will not be written.\n" +
"If 0 and not using transactions, watermarks will be written after every event.\n" +
Expand Down Expand Up @@ -295,7 +295,7 @@ static private abstract class Test {
reportingInterval = DEFAULT_REPORTING_INTERVAL;
}

enableConnectionPooling = Boolean.parseBoolean(commandline.getOptionValue("enableConnectionPooling", "true"));
enableConnectionPooling = Boolean.parseBoolean(commandline.getOptionValue("enableConnectionPooling", "false"));

writeWatermarkPeriodMillis = Long.parseLong(commandline.getOptionValue("writeWatermarkPeriodMillis", "-1"));
readWatermarkPeriodMillis = Long.parseLong(commandline.getOptionValue("readWatermarkPeriodMillis", "-1"));
Expand Down

0 comments on commit 9a04540

Please sign in to comment.