Skip to content

IGNITE-18808 .NET: Reconnect all endpoints periodically in background#1691

Merged
ptupitsyn merged 25 commits intoapache:mainfrom
ptupitsyn:ignite-18808
Feb 20, 2023
Merged

IGNITE-18808 .NET: Reconnect all endpoints periodically in background#1691
ptupitsyn merged 25 commits intoapache:mainfrom
ptupitsyn:ignite-18808

Conversation

@ptupitsyn
Copy link
Contributor

@ptupitsyn ptupitsyn commented Feb 17, 2023

Before this change .NET client would repair a connection only on demand (when all connections are broken, or when partition awareness requests a specific connection). Therefore, some connections may be lost and never repaired, which negatively affects request balancing.

  • Add IgniteClientConfiguration.ReconnectInterval.
  • Run a background task that checks and repairs all endpoints periodically.

This works together with heartbeats (which detect broken connections).

@ptupitsyn ptupitsyn self-assigned this Feb 17, 2023
@ptupitsyn ptupitsyn requested a review from isapego February 20, 2023 09:47
@ptupitsyn ptupitsyn merged commit 318873b into apache:main Feb 20, 2023
@ptupitsyn ptupitsyn deleted the ignite-18808 branch February 20, 2023 13:27
lowka pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Mar 18, 2023
…apache#1691)

Before this change .NET client would repair a connection only on demand (when all connections are broken, or when partition awareness requests a specific connection). Therefore, some connections may be lost and never repaired, which negatively affects request balancing.

* Add `IgniteClientConfiguration.ReconnectInterval`.
* Run a background task that checks and repairs all endpoints periodically.

This works together with heartbeats (which detect broken connections).
lowka pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Apr 19, 2023
…apache#1691)

Before this change .NET client would repair a connection only on demand (when all connections are broken, or when partition awareness requests a specific connection). Therefore, some connections may be lost and never repaired, which negatively affects request balancing.

* Add `IgniteClientConfiguration.ReconnectInterval`.
* Run a background task that checks and repairs all endpoints periodically.

This works together with heartbeats (which detect broken connections).
isapego pushed a commit to isapego/ignite-3 that referenced this pull request Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants