Skip to content
Snippets Groups Projects
Commit 5b50c794 authored by Michael Nitschinger's avatar Michael Nitschinger
Browse files

[couchbase2] Better default settings.

This changeset picks better default settings for the environment
to make it less error-prone in cloud setups and in turn leads to
easier usability.

The changes made are:

  - queryEndpoints set from 5 to 1 by default since this is technically
    a leftover from earlier implementations. We now have a Bucket per
    Thread and since YCSB is sync anyways we only ever need one. Leaving
    it as an option since if we get async ops in the future we can utilize
    those.

  - socketConnectTimeout from 1s to 10s, especially in cloud environments
    socket timeouts are annoying and its better if we have higher defaults.

  - connectTimeout changed from 5s to 30s since the socket connect timeout
    is higher we also need to adjust this one.

  - kvTimeout changed from 2.5s to 10s so that under throughput saturation
    testing you don't get flooded with timeouts potentially. Note that it
    also makes for nicer output if you get "higher latencies" as part of
    the regular output and not in the error section.
parent e8394b2a
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ public class Couchbase2Client extends DB {
kv = props.getProperty("couchbase.kv", "true").equals("true");
maxParallelism = Integer.parseInt(props.getProperty("couchbase.maxParallelism", "1"));
kvEndpoints = Integer.parseInt(props.getProperty("couchbase.kvEndpoints", "1"));
queryEndpoints = Integer.parseInt(props.getProperty("couchbase.queryEndpoints", "5"));
queryEndpoints = Integer.parseInt(props.getProperty("couchbase.queryEndpoints", "1"));
epoll = props.getProperty("couchbase.epoll", "false").equals("true");
boost = Integer.parseInt(props.getProperty("couchbase.boost", "3"));
networkMetricsInterval = Integer.parseInt(props.getProperty("couchbase.networkMetricsInterval", "0"));
......@@ -170,6 +170,9 @@ public class Couchbase2Client extends DB {
.callbacksOnIoPool(true)
.runtimeMetricsCollectorConfig(runtimeConfig)
.networkLatencyMetricsCollectorConfig(latencyConfig)
.socketConnectTimeout(10000) // 10 secs socket connect timeout
.connectTimeout(30000) // 30 secs overall bucket open timeout
.kvTimeout(10000) // 10 instead of 2.5s for KV ops
.kvEndpoints(kvEndpoints);
// Tune boosting and epoll based on settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment