Skip to content

PreferLocalPlacement

class

Namespace: Orleans.Runtime

The prefer local placement strategy indicates that a grain should always be placed on the local host if the grain is not already active elsewhere in the cluster and the local host is compatible with it.
[Orleans.GenerateSerializer]
[Orleans.Immutable]
[Orleans.SuppressReferenceTracking]
public sealed class PreferLocalPlacement : PlacementStrategy

Remarks

If the host is not compatible with the grain type or if a grain receives an incompatible request, the grain will be placed on a random, compatible server.

Constructors