Interface MultiClusterMXBean


public interface MultiClusterMXBean
The operational surface of a proxy, exposed over JMX.

It answers the questions asked during an incident - which cluster is taking writes, which clusters are healthy, where the traffic is going, how much work is owed to a cluster that is behind - and offers the two levers worth pulling by hand: move the active cluster, or fail over.

Deliberately typed in terms JMX renders without extra tooling (String, Map<String, ?> of simple values), so jconsole and any monitoring agent can read it with no custom code.

  • Method Details

    • getName

      String getName()
      The proxy's configured name, which is also its JMX identity.
    • getActiveCluster

      String getActiveCluster()
      The cluster mutations are applied to.
    • getReadActiveCluster

      String getReadActiveCluster()
      The cluster READ_ACTIVE reads go to - the active cluster unless reads are pinned elsewhere.
    • getRegisteredClusters

      String[] getRegisteredClusters()
      Every registered cluster, in registration order.
    • getFailoverOrder

      String[] getFailoverOrder()
      Failover order: configured priorities first, then the rest.
    • getWriteMode

      String getWriteMode()
    • getReadMode

      String getReadMode()
    • getFailoverPolicy

      String getFailoverPolicy()
    • getQuiescePolicy

      String getQuiescePolicy()
    • getTransactionPolicy

      String getTransactionPolicy()
      How fan-out behaves inside a transaction.
    • getClusterHealth

      Map<String,String> getClusterHealth()
      Cluster name to health state: HEALTHY, SUSPECT or UNHEALTHY.
    • getOperations

      Map<String,Long> getOperations()
      Operations routed to each cluster, successful or not.
    • getFailures

      Map<String,Long> getFailures()
      Operations that failed because the cluster was unavailable.
    • getApplicationErrors

      Map<String,Long> getApplicationErrors()
      Operations the cluster rejected on their own merits - not a health signal.
    • getQuiesceRejections

      Map<String,Long> getQuiesceRejections()
      Operations rejected because the cluster was quiesced.
    • getDeferredMutations

      Map<String,Long> getDeferredMutations()
      Mutations queued for later re-application, per cluster.
    • getAverageLatencyMillis

      Map<String,Double> getAverageLatencyMillis()
      Moving-average latency per cluster, in milliseconds.
    • getPendingDeferredMutations

      int getPendingDeferredMutations()
      Mutations still waiting to be applied somewhere.
    • getDroppedDeferredMutations

      long getDroppedDeferredMutations()
      Mutations discarded because the deferred queue was full. Anything above zero means a cluster is permanently missing data - this is the number to alert on.
    • isClusterHealthy

      boolean isClusterHealthy(String clusterName)
      Pings the cluster and reports whether it answered.
    • activateCluster

      void activateCluster(String clusterName)
      Makes the named cluster active.

      Named activateCluster rather than setActiveCluster on purpose: JMX would pair the latter with getActiveCluster into a writable attribute, and an operator hunting for a lever looks under operations.

    • activateReadCluster

      void activateReadCluster(String clusterName)
      Moves READ_ACTIVE reads to the named cluster, leaving the writes where they are.
    • clearReadCluster

      void clearReadCluster()
      Drops the read pin, so READ_ACTIVE reads follow the active cluster again.
    • failoverToNextCluster

      void failoverToNextCluster()
      Promotes the next healthy cluster in failover order.