Skip to content

Commit

Permalink
add library default for some fluency variables to connectivity.conf;
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Maute <stefan.maute@bosch.io>
  • Loading branch information
Stefan Maute committed Oct 26, 2021
1 parent 90a56bc commit 2879c68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Expand Up @@ -91,6 +91,7 @@ public static FluencyLoggerPublisherConfig of(final Config config) {
@Override
public Fluency buildFluencyLoggerPublisher() {
final FluencyBuilderForFluentd fluencyBuilderForFluentd = new FluencyBuilderForFluentd();

fluencyBuilderForFluentd.setSslEnabled(sslEnabled);
fluencyBuilderForFluentd.setConnectionTimeoutMilli((int) connectionTimeout.toMillis());
fluencyBuilderForFluentd.setReadTimeoutMilli((int) readTimeout.toMillis());
Expand All @@ -107,6 +108,7 @@ public Fluency buildFluencyLoggerPublisher() {
fluencyBuilderForFluentd.setSenderBaseRetryIntervalMillis((int) senderBaseRetryInterval.toMillis());
fluencyBuilderForFluentd.setSenderMaxRetryIntervalMillis((int) senderMaxRetryInterval.toMillis());
fluencyBuilderForFluentd.setAckResponseMode(ackResponseMode);

return fluencyBuilderForFluentd.build(host, port);
}

Expand Down Expand Up @@ -168,4 +170,5 @@ public String toString() {
", ackResponseMode=" + ackResponseMode +
"]";
}

}
8 changes: 4 additions & 4 deletions connectivity/service/src/main/resources/connectivity.conf
Expand Up @@ -704,7 +704,7 @@ ditto {

# for file backup mode:
# "In this mode, Fluency takes backup of unsent memory buffers as files when closing and then resends them when restarting"
fileBackupDir = null # library default: null
fileBackupDir = null # library default: null

## ExponentialBackOffRetryStrategy.Config

Expand All @@ -713,16 +713,16 @@ ditto {
## RetryStrategy.Config

# retry base interval:
senderBaseRetryInterval = 400ms # min: 10ms
senderBaseRetryInterval = 400ms # min: 10ms library default: 400ms

# retry max interval:
senderMaxRetryInterval = 30s # min: 10ms
senderMaxRetryInterval = 30s # min: 10ms library default: 30s

## FluentdIngester.Config

# whether ACK response mode is enabled, meaning that it is waited for the ACK of the fluentd/fluentbit
# instance where the logs are published to. Enables "at-least-once" semantics:
ackResponseMode = false
ackResponseMode = false # library default: false
}
}
}
Expand Down

0 comments on commit 2879c68

Please sign in to comment.