fluent / fluent/fluentd

Fluentd not starting if backend not reachable

Open
#2,786 3 comments 0 reactions 1 assignee Claimed by @repeatedly View on GitHub
enhancement
Dominant language
Ruby
Stars
13.6k
Forks
1.4k
Avg merge
1d 3h
Merged PRs (30d)
20

Description

Perhaps this is connected to https://github.com/fluent/fluentd/issues/1280 and it seems like a general mistake in design.
A failed backend connection definitely must not prevent fluentd from starting at all.

```
/usr/lib/ruby/2.5.0/net/http.rb:939:in `rescue in block in connect': Failed to open TCP connection to couch:5984 (getaddrinfo: Try again) (SocketError)
from /usr/lib/ruby/2.5.0/net/http.rb:936:in `block in connect'
```
I am using the official Docker image `fluent/fluentd:latest`

Fluentd is widely used to fire-and-forget messages, often without really caring if some messages get lost.
It is a complete show-stopper if it refuses to start when backends are not available.

There should be a configuration switch to silently ignore outages and just warn on start, at least.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.