Skip to content

Commit

Permalink
fix: 🐛 HEC timeout in docker-compose examples
Browse files Browse the repository at this point in the history
Increased grace period waiting for HEC to become reachable when
ethlogger is started to 2 minutes, which should cover the startup time
of splunkd in our docker-compose examples. Updated the docker-compose
examples to restart ethlogger containers on termination.

✅ Closes: #43
  • Loading branch information
ziegfried committed May 7, 2020
1 parent 5d41928 commit 6dda3f4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion defaults.ethlogger.yaml
Expand Up @@ -20,7 +20,7 @@ hec:
maxSockets: 128
userAgent: ethlogger-hec-client/$VERSION
multipleMetricFormatEnabled: false
waitForAvailability: 1m
waitForAvailability: 2m
retryWaitTime:
type: exponential-backoff
min: 10ms
Expand Down
1 change: 1 addition & 0 deletions examples/besu/docker-compose.yaml
Expand Up @@ -45,6 +45,7 @@ services:
- ./:/app
depends_on:
- splunk
restart: always
besu:
image: hyperledger/besu:1.4.4
container_name: besu
Expand Down
1 change: 1 addition & 0 deletions examples/docker-compose-basic/docker-compose.yaml
Expand Up @@ -43,3 +43,4 @@ services:
- ./:/app
depends_on:
- splunk
restart: always
3 changes: 3 additions & 0 deletions examples/quorum/docker-compose.yaml
Expand Up @@ -445,6 +445,7 @@ services:
depends_on:
- splunk
- node1
restart: always

ethlogger2:
image: splunkdlt/ethlogger:latest
Expand Down Expand Up @@ -477,6 +478,7 @@ services:
depends_on:
- splunk
- node2
restart: always

ethlogger3:
image: splunkdlt/ethlogger:latest
Expand Down Expand Up @@ -509,6 +511,7 @@ services:
depends_on:
- splunk
- node3
restart: always

networks:
quorum-examples-net:
Expand Down
2 changes: 1 addition & 1 deletion test/config.test.ts
Expand Up @@ -74,7 +74,7 @@ test('defaults', async () => {
"url": undefined,
"userAgent": "ethlogger-hec-client/$VERSION",
"validateCertificate": true,
"waitForAvailability": 60000,
"waitForAvailability": 120000,
},
"events": undefined,
"internal": Object {
Expand Down

0 comments on commit 6dda3f4

Please sign in to comment.