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

Hackathon: remote write aware of being secondary replica #30

Closed

Conversation

colega
Copy link

@colega colega commented Mar 16, 2023

This implements write feedback from the remote write endpoint, telling the caller that it's now the secondary replica, which makes it send empty requests instead of actually encoding samples, reducing bandwidth and CPU usage.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
New logic is KISS: if secondary, send empty samples.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Linters kill kitten

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
colega added a commit to grafana/agent that referenced this pull request Mar 16, 2023
Changes from grafana/prometheus#30

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
@colega colega closed this Apr 3, 2023
@rfratto rfratto deleted the feat-hackathon-keep-calm-and-slow-down branch April 3, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant