Search Results for

    Show / Hide Table of Contents

    Class DrSenderConfiguration

    Data center replication sender hub configuration.

    Inheritance
    System.Object
    DrSenderConfiguration
    Namespace: GridGain.Core.DataCenterReplication
    Assembly: GridGain.Core.dll
    Syntax
    public class DrSenderConfiguration : object

    Constructors

    DrSenderConfiguration()

    Initializes a new instance of the DrSenderConfiguration class.

    Declaration
    public DrSenderConfiguration()

    Fields

    DefaultHealthCheckFrequency

    Default health check frequency.

    Declaration
    public static readonly TimeSpan DefaultHealthCheckFrequency
    Field Value
    Type Description
    TimeSpan

    DefaultMaxErrors

    Default maximum processing errors.

    Declaration
    public const int DefaultMaxErrors = null
    Field Value
    Type Description
    System.Int32

    DefaultMaxFailedConnectAttempts

    Default maximum failed connect attempts.

    Declaration
    public const int DefaultMaxFailedConnectAttempts = null
    Field Value
    Type Description
    System.Int32

    DefaultMaxQueueSize

    Default maximum amount of enqueued requests per remote receiver hub.

    Declaration
    public const int DefaultMaxQueueSize = null
    Field Value
    Type Description
    System.Int32

    DefaultReadTimeout

    Default read timeout.

    Declaration
    public static readonly TimeSpan DefaultReadTimeout
    Field Value
    Type Description
    TimeSpan

    DefaultReconnectOnFailureTimeout

    Reconnect on error timeout.

    Declaration
    public static readonly TimeSpan DefaultReconnectOnFailureTimeout
    Field Value
    Type Description
    TimeSpan

    DefaultSystemRequestTimeout

    Default ping timeout.

    Declaration
    public static readonly TimeSpan DefaultSystemRequestTimeout
    Field Value
    Type Description
    TimeSpan

    Properties

    CacheNames

    Gets or sets cache names this sender hub works with. All sender hubs working with concrete cache must have this property equal. E.g., in case one sender hub works with caches A and B, then another sender hub cannot work with caches B and C. Instead, both sender hubs must work with either {A, B}, {B, C} or even {A, B, C} caches. However, it is possible for the first sender hub work with caches {A, B} and for the second sender hub to work with caches {C, D}.

    Declaration
    public ICollection<string> CacheNames { get; set; }
    Property Value
    Type Description
    ICollection<System.String>

    Cache names this sender hub works with.

    ConnectionConfiguration

    Gets or sets remote data center connection configurations. Defines data centers this sender hubs will work with.

    Declaration
    public ICollection<DrSenderConnectionConfiguration> ConnectionConfiguration { get; set; }
    Property Value
    Type Description
    ICollection<DrSenderConnectionConfiguration>

    Remote data center connection configurations.

    HealthCheckFrequency

    Gets or sets health check frequency. Defines how often an attempt to restore connection to disconnected receiver hubs is performed and how often connected receiver hubs will be checked for necessity to send a ping request using ReadTimeout property.

    Declaration
    public TimeSpan HealthCheckFrequency { get; set; }
    Property Value
    Type Description
    TimeSpan

    Health check frequency.

    MaxErrors

    Gets or sets maximum amount of sequential errors in receiver hub responses. When this threshold is reached, connection to this faulty receiver hub will be closed and reciver hub will be considered offline. Further attempts to re-establish connection to this receiver hub will be performed according to ReconnectOnFailureTimeout property.

    Declaration
    public int MaxErrors { get; set; }
    Property Value
    Type Description
    System.Int32

    Maximum amount of sequential errors in receiver hub responses

    MaxFailedConnectAttempts

    Gets or sets maximum failed connect attempts. Once amount of failed sequential attempts to connect to particular remote receiver hubs exceeds this limit, receiver hub will be considered offline. Further attempts to re-establish connection to this receiver hub will be performed according to ReconnectOnFailureTimeout property.

    Declaration
    public int MaxFailedConnectAttempts { get; set; }
    Property Value
    Type Description
    System.Int32

    Maximum failed connect attempts.

    MaxQueueSize

    Gets or sets maximum wait queue size. Defines maximum amount of entries which are read from store but have not been acknowledged yet.

    Declaration
    public int MaxQueueSize { get; set; }
    Property Value
    Type Description
    System.Int32

    Maximum wait queue size.

    ReadTimeout

    Gets or sets read timeout. When difference between current time and the time when last read operation on particular remote receiver hub occurred is greater than this timeout, ping request will be sent to this receiver hub.

    Declaration
    public TimeSpan ReadTimeout { get; set; }
    Property Value
    Type Description
    TimeSpan

    Read timeout.

    ReconnectOnFailureTimeout

    Gets or sets reconnect-on-failure timeout. This values defines timeout after which connection to remote receiver hub can be re-established in case it was previously disconnected due to a failure.

    Declaration
    public TimeSpan ReconnectOnFailureTimeout { get; set; }
    Property Value
    Type Description
    TimeSpan

    Reconnect-on-failure timeout.

    SenderGroups

    Gets or sets sender groups this sender hub will participate in. If DrUseCacheNames is true then DR will ignore sender groups and fallback to old behaviour. If not set then default one will be used.

    Declaration
    public ICollection<string> SenderGroups { get; set; }
    Property Value
    Type Description
    ICollection<System.String>

    Group names this sender hub will participate in.

    SocketReceiveBufferSize

    Gets or sets socket receive buffer size in bytes. Will be applied to all remote connections.

    Defaults to 0, which means that OS default value will be used.

    Declaration
    public int SocketReceiveBufferSize { get; set; }
    Property Value
    Type Description
    System.Int32

    Socket receive buffer size in bytes.

    SocketSendBufferSize

    Gets or sets socket send buffer size in bytes. Will be applied to all remote connections.

    Defaults to 0, which means that OS default value will be used.

    Declaration
    public int SocketSendBufferSize { get; set; }
    Property Value
    Type Description
    System.Int32

    Socket send buffer size in bytes.

    SystemRequestTimeout

    Gets or sets system request timeout. Sender hub processor performs two types of system requests: handshake and ping. Handshake request contains information required by receiver hub and is only sent when network connection is established. Ping request just checks that receiver hub is reachable and responds when there was no reads from it for more than ReadTimeout.

    In case any of these two requests was sent to receiver hub and there is no response for too long, it indicates a problem with either network connectivity or receiver hub itself. Thus, when the given timeout is exceeded, connection to receiver hub is closed.

    Declaration
    public TimeSpan SystemRequestTimeout { get; set; }
    Property Value
    Type Description
    TimeSpan

    System request timeout.

    In This Article
    Back to top © 2022 GridGain Systems, Inc. and Contributors