Class CacheDrSenderConfiguration
Data center replication sender cache configuration.
Inheritance
Namespace: GridGain.Core.DataCenterReplication
Assembly: GridGain.Core.dll
Syntax
public class CacheDrSenderConfiguration : object
Constructors
CacheDrSenderConfiguration()
Initializes a new instance of the CacheDrSenderConfiguration class.
Declaration
public CacheDrSenderConfiguration()
Fields
DefaultBatchSendFrequency
Default data center replication sender cache batch send frequency.
Declaration
public static readonly TimeSpan DefaultBatchSendFrequency
Field Value
| Type | Description |
|---|---|
| TimeSpan |
DefaultBatchSendSize
Default data center replication sender cache batch send size.
Declaration
public const int DefaultBatchSendSize = null
Field Value
| Type | Description |
|---|---|
| System.Int32 |
DefaultLoadBalancingMode
Default data center replication sender cache sender hub load balancing mode.
Declaration
public const DrSenderLoadBalancingMode DefaultLoadBalancingMode = default(DrSenderLoadBalancingMode)
Field Value
| Type | Description |
|---|---|
| DrSenderLoadBalancingMode |
DefaultMaxBatches
Default data center replication sender cache maximum amount of pending batches.
Declaration
public const int DefaultMaxBatches = null
Field Value
| Type | Description |
|---|---|
| System.Int32 |
DefaultPreferLocalSender
Default value of if to prefer the local sender hub (if available) ignoring the load balancing policy.
Declaration
public const bool DefaultPreferLocalSender = null
Field Value
| Type | Description |
|---|---|
| System.Boolean |
DefaultStateTransferThreadsCount
Default data center replication sender cache amount of worker threads responsible for full state transfer.
Declaration
public const int DefaultStateTransferThreadsCount = null
Field Value
| Type | Description |
|---|---|
| System.Int32 |
DefaultStateTransferThrottle
Default data center replication sender cache state transfer throttle.
Declaration
public static readonly TimeSpan DefaultStateTransferThrottle
Field Value
| Type | Description |
|---|---|
| TimeSpan |
Properties
BatchSendFrequency
Gets or sets the batch send frequency.
GridGain accumulates entries until either count reaches BatchSendSize or time reaches BatchSendFrequency.
Declaration
public TimeSpan BatchSendFrequency { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
BatchSendSize
Gets or sets the size of the batch to send.
GridGain accumulates entries until either count reaches BatchSendSize or time reaches BatchSendFrequency.
Declaration
public int BatchSendSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
EntryFilter
Gets or sets the entry filter.
When set it will be applied to all entries which are candidates for data center replication. If the filter is not passed, data center replication will not be performed on that entry.
Declaration
public ICacheDrEntryFilter EntryFilter { get; set; }
Property Value
| Type | Description |
|---|---|
| ICacheDrEntryFilter |
LoadBalancingMode
Gets or sets the load balancing mode. When batch is ready to be sent, this parameter defines how to select the next sender hub this batch will be sent to.
Declaration
public DrSenderLoadBalancingMode LoadBalancingMode { get; set; }
Property Value
| Type | Description |
|---|---|
| DrSenderLoadBalancingMode |
MaxBackupQueueSize
Gets or sets the maximum size of the backup queue. Ignored when less than or equal to 0.
To support failover, GridGain tracks replicated entries on backup nodes in a bounded queue. By default this queue size is calculated based on maximum amount of batches MaxBatches, batch send size BatchSendSize, and number of backup nodes Backups.
Set this property to a positive value to control queue size manually.
Declaration
public int MaxBackupQueueSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
MaxBatches
Gets or sets the maximum amount of batches awaiting for sender hub acknowledge. When amount of batches awaiting sender hub delivery acknowledge reaches this value, all further cache updates will be suspended until it is below the limit again.
Declaration
public int MaxBatches { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
PreferLocalSender
Gets or sets a value indicating whether local sender hub should be preferred, ignoring the load balancing policy.
Declaration
public bool PreferLocalSender { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SenderGroup
Gets or sets a sender group that will be used for replication.
Declaration
public string SenderGroup { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
StateTransferThreadsCount
Gets or sets the state transfer threads count.
Declaration
public int StateTransferThreadsCount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
StateTransferThrottle
Gets or sets the state transfer throttle. Defines delay to wait between full state transfer batches creation to avoid CPU or network overload.
Declaration
public TimeSpan StateTransferThrottle { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |