Using the ShardRouter Mbean

Use the com.datastax.bdp:type=ShardRouter Mbean to retrieve information and update the list of endpoints.

The ShardRouter Mbean, not present in open source Solr, provides information about how DSE search routes queries. JMX Mbeans can be accessed by connecting to the (default) JMX port 7199 on any DataStax Enterprise node using a JMX application like JConsole. The following the attributes and operations are available in this Mbean:
  • getShardSelectionStrategy(String core) retrieves the name of the shard selection strategy used for the given Solr core.
  • getEndpoints(String core) retrieves the list of endpoints that can be queried for the given Solr core.
  • getEndpointLoad(String core) retrieves the list of endpoints with related query load for the given Solr core. The load is computed as a 1-minute, 5-minutes and 15-minutes exponentially weighted moving average, based on the number of queries received by the given node.
  • refreshEndpoints() manually refreshes the list of endpoints to be used for querying Solr cores.