Class AdaptiveSelectionStats

  • All Implemented Interfaces:
    Writeable, ToXContent, ToXContentFragment

    public class AdaptiveSelectionStats
    extends java.lang.Object
    implements Writeable, ToXContentFragment
    Class representing statistics about adaptive replica selection. This includes EWMA of queue size, service time, and response time, as well as outgoing searches to each node and the "rank" based on the ARS formula.
    • Constructor Detail

      • AdaptiveSelectionStats

        public AdaptiveSelectionStats​(java.util.Map<java.lang.String,​java.lang.Long> clientConnections,
                                      java.util.Map<java.lang.String,​ResponseCollectorService.ComputedNodeStats> nodeComputedStats)
      • AdaptiveSelectionStats

        public AdaptiveSelectionStats​(StreamInput in)
    • Method Detail

      • getOutgoingConnections

        public java.util.Map<java.lang.String,​java.lang.Long> getOutgoingConnections()
        Returns a map of node id to the outgoing search requests to that node
      • getRanks

        public java.util.Map<java.lang.String,​java.lang.Double> getRanks()
        Returns a map of node id to the ranking of the nodes based on the adaptive replica formula