Class MinimizeCoresPlacementFactory

java.lang.Object
org.apache.solr.cluster.placement.plugins.MinimizeCoresPlacementFactory
All Implemented Interfaces:
ConfigurablePlugin<PlacementPluginFactory.NoConfig>, PlacementPluginFactory<PlacementPluginFactory.NoConfig>

public class MinimizeCoresPlacementFactory extends Object implements PlacementPluginFactory<PlacementPluginFactory.NoConfig>
Factory for creating MinimizeCoresPlacementFactory.MinimizeCoresPlacementPlugin, a Placement plugin implementing placing replicas to minimize number of cores per Node, while not placing two replicas of the same shard on the same node. This code is meant as an educational example of a placement plugin.

See MinimizeCoresPlacementFactory.NodeWithCoreCount for information on how this PlacementFactory weights nodes.

See AffinityPlacementFactory for a more realistic example and documentation.

  • Constructor Details

    • MinimizeCoresPlacementFactory

      public MinimizeCoresPlacementFactory()
  • Method Details