Share via


ReplicatorSettings Class

Definition

Allows a stateful replica to configure the FabricReplicator when creating it via CreateReplicator(IStateProvider, ReplicatorSettings).

public sealed class ReplicatorSettings
type ReplicatorSettings = class
Public NotInheritable Class ReplicatorSettings
Inheritance
ReplicatorSettings

Constructors

ReplicatorSettings()

Initializes a new instance of the ReplicatorSettings class.

Properties

BatchAcknowledgementInterval

Gets or sets the amount of time that the replicator waits after receiving an operation before sending back an acknowledgment.

InitialCopyQueueSize

Gets or sets the initial size of the copy operation queue inside FabricReplicator, which contains copy IOperations not yet pumped and processed by the service.

InitialPrimaryReplicationQueueSize

Defines the initial size of the primary replication operation queue inside FabricReplicator, which contains replication IOperations.The unit here is the number of operations in the queue.

InitialReplicationQueueSize

Gets or sets the initial size of the replication queue size.

InitialSecondaryReplicationQueueSize

Defines the initial size of the secondary replication operation queue inside FabricReplicator, which contains replication IOperations

MaxCopyQueueSize

Gets or sets the maximum size of the copy operation queue inside FabricReplicator, which contains copy IOperations not yet pumped and processed by the service.

MaxPrimaryReplicationQueueMemorySize

Defines the maximum size of the primary replication operation queue inside FabricReplicator, which contains replication IOperations

MaxPrimaryReplicationQueueSize

Defines the maximum size of the primary replication operation queue inside FabricReplicator, which contains replication IOperations

MaxReplicationMessageSize

Gets or sets the maximum size of a message that can be transmitted via the replicator. These include replication messages, copy messages and copy context messages. The unit of representation is bytes.

MaxReplicationQueueMemorySize

Gets or sets the maximum size for the replication queue memory.

MaxReplicationQueueSize

Gets or sets the maximum size for the replication queue.

MaxSecondaryReplicationQueueMemorySize

Defines the maximum size of the secondary replication operation queue inside FabricReplicator, which contains replication IOperations.

MaxSecondaryReplicationQueueSize

Defines the maximum size of the secondary replication operation queue inside FabricReplicator, which contains replication IOperations

PrimaryWaitForPendingQuorumsTimeout

Defines how long the primary replicator waits for receiving a quorum of acknowledgments for any pending replication operations before processing a reconfiguration request, that could potentially result in ‘cancelling’ the pending replication operations.

ReplicationBatchSendInterval

Gets or sets the amount of time that the replicator waits after receiving an operation before force sending a batch.

ReplicationBatchSize

The number of operations that the replicator waits to receive before sending a batch.

ReplicatorAddress

Configures the address that this replicator will use when communicating with other Replicators.

ReplicatorListenAddress

Configures the listen address that this replicator will use to receieve information from other Replicators.

ReplicatorPublishAddress

Configures the publish address that this replicator will use to send information to other Replicators.

RequireServiceAck

Prevents the optimistic acknowledgment of operations in non-persistent services by requiring that the service calls Acknowledge() before it pumps the next operation.

RetryInterval

Defines how long the FabricReplicator waits after it transmits a message from the primary to the secondary for the secondary to acknowledge that it has received the message.

SecondaryClearAcknowledgedOperations

Typically, operations in the secondary replicator are kept in the queue to be able to catchup replicas if it is promoted to a primary. With this flag enabled, the secondary replicator releases the operation as soon as it is acknowledged by the user service.

SecurityCredentials

Allows the service to define security credentials for securing the traffic between replicators.

UseStreamFaultsAndEndOfStreamOperationAck

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

Methods

LoadFrom(CodePackageActivationContext, String, String)

Loads the ReplicatorSettings object from the service configuration settings file.

Applies to