elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
96 stars 4.92k forks source link

kafka output zone awareness #9675

Closed danielmotaleite closed 2 years ago

danielmotaleite commented 5 years ago

Describe the enhancement: Right now filebeat outputs to all kafka nodes and partitions, even if in a different zone. With a new option, kafka output should look to it own zone and find kafkas in the same zone and use then, only fallback to the other zone kafkas if the first one is unavailable/inexistent.

Describe a specific use case for the enhancement or feature: This will save costs, having one zone filebeat talking to their own kafka node will reduce cross-zone traffic. Kafka will then rebalance their partitions and replicas between zones. Later logstash could do the same zone awareness for consuming events. Check this example: https://amplitude.engineering/reducing-costs-with-az-awareness-efc92bc7113a

danielmotaleite commented 5 years ago

Of course, the same issue can be applied while talking to logstash or elasticsearch directly, so maybe this could be renamed beat output zone awareness?

hamishforbes commented 4 years ago

Has there been any progress on this? I'm interested in this as a feature too

FWIW segmentio/kafka-go supports rack-aware balancing, it may be easier to switch out sarama than re-implement the functionality

botelastic[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

hamishforbes commented 3 years ago

This would still be a useful feature, not stale!

botelastic[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

danielmotaleite commented 2 years ago

please reopen, this is still a useful feature

akamac commented 11 months ago

/reopen

Voodoolay commented 4 months ago

/reopen