shotover / shotover-proxy

L7 data-layer proxy
https://docs.shotover.io
Apache License 2.0
83 stars 16 forks source link

KafkaSinkCluster - set KafkaNode::state #1715

Closed rukai closed 2 weeks ago

rukai commented 1 month ago

This PR:

To enable this a Connections::handle_connection_error method is added. This method is called anytime a connection error occurs.

It creates a new connection to check if the node is broken. If the connection fails the node is marked as down and Err(..) is returned, otherwise the old connection is replaced with the new connection and Ok(()) is returned.

It is then up to the caller (send/receive/control_send_receive) to decide how to handle this success or failure.

codspeed-hq[bot] commented 1 month ago

CodSpeed Performance Report

Merging #1715 will degrade performances by 11.47%

Comparing rukai:kafka_sink_cluster_set_state (3ee31a0) with main (307bb10)

Summary

❌ 1 regressions ✅ 38 untouched benchmarks

:warning: _Please fix the performance issues or acknowledge them on CodSpeed._

Benchmarks breakdown

Benchmark main rukai:kafka_sink_cluster_set_state Change
encode_system.local_result_v5_no_compression 92.9 µs 104.9 µs -11.47%
justinweng-instaclustr commented 2 weeks ago

What's the performance regression about?

rukai commented 2 weeks ago

its for a cassandra benchmark, definitely just noise