Class RandomPlacementFactory

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

public class RandomPlacementFactory extends Object implements PlacementPluginFactory<PlacementPluginFactory.NoConfig>
Factory for creating RandomPlacementFactory.RandomPlacementPlugin, a placement plugin implementing random placement for new collection creation while preventing two replicas of same shard from being placed on same node..

See RandomPlacementFactory.RandomNode for information on how this PlacementFactory weights nodes.

See AffinityPlacementFactory for a more realistic example and documentation.

  • Constructor Details

    • RandomPlacementFactory

      public RandomPlacementFactory()
  • Method Details