mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 02:08:03 +01:00
Revert "reduce cost of resilience4j metrics"
This reverts commit 8e429e267f.
This commit is contained in:
committed by
Jon Chambers
parent
89c7521be0
commit
d33761f107
@@ -32,6 +32,14 @@ import org.whispersystems.textsecuregcm.util.ResilienceUtil;
|
||||
/**
|
||||
* Adds a circuit breaker to every Netty {@link Channel} that gets created, so that a single unhealthy shard does not
|
||||
* impact all cluster operations.
|
||||
* <p>
|
||||
* For metrics to be registered, users <em>must</em> create a synthetic {@link ClusterTopologyChangedEvent} after the
|
||||
* initial connection. For example:
|
||||
* <pre>
|
||||
* clusterClient.connect();
|
||||
* clusterClient.getResources().eventBus().publish(
|
||||
* new ClusterTopologyChangedEvent(Collections.emptyList(), clusterClient.getPartitions().getPartitions()));
|
||||
* </pre>
|
||||
*/
|
||||
public class LettuceShardCircuitBreaker implements NettyCustomizer {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user