Class ShardAllocationSettings
Implements
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class ShardAllocationSettings : IShardAllocationSettings
Properties
| Edit this page View SourceAllocationEnable
Enable or disable allocation for specific kinds of shards, defaults to all
Declaration
public AllocationEnable? AllocationEnable { get; set; }
Property Value
Type | Description |
---|---|
AllocationEnable? |
NodeConcurrentRecoveries
How many concurrent shard recoveries are allowed to happen on a node. Defaults to 2.
Declaration
public int? NodeConcurrentRecoveries { get; set; }
Property Value
Type | Description |
---|---|
int? |
NodeInitialPrimariesRecoveries
While the recovery of replicas happens over the network, the recovery of an unassigned primary after node restart uses data from the local disk. These should be fast so more initial primary recoveries can happen in parallel on the same node. Defaults to 4.
Declaration
public int? NodeInitialPrimariesRecoveries { get; set; }
Property Value
Type | Description |
---|---|
int? |
SameShardHost
Allows to perform a check to prevent allocation of multiple instances of the same shard on a single host, based on host name and host address. Defaults to false, meaning that no check is performed by default. This setting only applies if multiple nodes are started on the same machine.
Declaration
public bool? SameShardHost { get; set; }
Property Value
Type | Description |
---|---|
bool? |