Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call livenessCheck periodically #1271

Merged
merged 17 commits into from
May 4, 2022

Conversation

NikitaSkrynnik
Copy link
Contributor

Description

Check data-plane aliveness periodically, not only after a control-plane event happens

Continuation of PR #1259

Issue link

#1187

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionallity
  • Documentation
  • Refactoring
  • CI

@NikitaSkrynnik NikitaSkrynnik changed the title Datapath heal call livenessCheck periodically Apr 27, 2022
Chunosov and others added 6 commits April 27, 2022 17:10
Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
@NikitaSkrynnik NikitaSkrynnik marked this pull request as ready for review April 29, 2022 10:18
Copy link
Member

@denis-tingaikin denis-tingaikin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename dataPlane to LivenessCheck and resolve comment with attemptAfter.

Other things are looking good

@@ -32,18 +32,21 @@ import (
"github.com/networkservicemesh/sdk/pkg/tools/log"
)

const attemptAfter = time.Millisecond * 200
const (
attemptAfter = time.Millisecond * 200
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

attemptAfter is not actually using as we realised with @glazychev-art

Please remove this and all dependent code.

)

// LivenessChecker - function that returns true of conn is 'live' and false otherwise
type LivenessChecker func(deadlineCtx context.Context, conn *networkservice.Connection) bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename LivenessChecker to LivenessCheck in all places

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Copy link
Member

@denis-tingaikin denis-tingaikin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NikitaSkrynnik Looks good! Thanks

@denis-tingaikin denis-tingaikin merged commit 5e4251a into networkservicemesh:main May 4, 2022
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request May 4, 2022
…k@main

PR link: networkservicemesh/sdk#1271

Commit: 5e4251a
Author: Nikita Skrynnik
Date: 2022-05-04 20:40:43 +0700
Message:
  - call livenessCheck periodically (#1271)
* call livenessCheck periodically

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix datapath ping interval

Signed-off-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Update tests and misc fixes

Signed-off-by: Albert Safin <albert.safin@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* Use backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* get rid of backoff

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add parameters for livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework eventloop for new func signature

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete attempt after

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename dataPlaneCtx to livenessCheckCtx

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename livenessChecker to livenessCheck

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Co-authored-by: Nikolay Chunosov <n.chunosov@yandex.ru>
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
@NikitaSkrynnik NikitaSkrynnik deleted the datapath-heal branch May 5, 2022 07:09
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.

5 participants