Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All sinks stop working when one of them goes down. #22064

Closed
robinpecha opened this issue Dec 20, 2024 · 1 comment
Closed

All sinks stop working when one of them goes down. #22064

robinpecha opened this issue Dec 20, 2024 · 1 comment
Labels
type: bug A code related bug.

Comments

@robinpecha
Copy link

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

Im using source http_endpoint to receive data from remote vector (its source is journald).
From this source Im sending data to several sinks.
But I found that when one of the sinks dies, it stops sending to the others. Its not dying imediatelly, it sends just few more lines to remaining sinks (few hundred lines of logs) but then it stop sending at all.
I wanted to have a file sink as a backup in case the database goes down, but that doesn't make it possible.

I have configuration like this and all sinks stops "sinking" when clickhouse goes down. Even a file sink is above then clickhouse in the pipeline (if it matters):
image

Situation when clickhouse dies:
image

After the faulty sink is started again, the data is written to all sinks at the same time.
Nothing is missing, they was somehow cached.
image

Vector logs only reports sink is down:

WARN sink{component_kind="sink" component_id=ch-local component_type=clickhouse}:request{request_id=2}:http: vector::internal_events::http_client: HTTP error. error=error trying to connect: dns error: failed to lookup address information: Try again error_type="request_failed" stage="processing" internal_log_rate_limit=true
WARN sink{component_kind="sink" component_id=ch-local component_type=clickhouse}:request{request_id=2}: vector::sinks::util::retries: Retrying after error. error=Failed to make HTTP(S) request: error trying to connect: dns error: failed to lookup address information: Try again internal_log_rate_limit=true

Configuration

debian 12

Version

vector:latest 0.43.0

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

@robinpecha robinpecha added the type: bug A code related bug. label Dec 20, 2024
@jszwedko
Copy link
Member

Hi @robinpecha ! This is expected behavior https://vector.dev/docs/about/concepts/#backpressure has more details. You can avoid this by configuring the buffer for a sink to drop events rather than apply back-pressure for the one you expect downtime for (in this case clickhouse).

@jszwedko jszwedko closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

2 participants