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

Add nydusd live-upgrade control flow #249

Merged
merged 7 commits into from
Nov 25, 2022
Merged

Conversation

changweige
Copy link
Member

Add a control flow of nydusd live-upgrade to the system package.

@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2022

Codecov Report

Base: 38.15% // Head: 36.09% // Decreases project coverage by -2.05% ⚠️

Coverage data is based on head (c873347) compared to base (81ef88a).
Patch coverage: 10.25% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #249      +/-   ##
==========================================
- Coverage   38.15%   36.09%   -2.06%     
==========================================
  Files          28       29       +1     
  Lines        2026     2194     +168     
==========================================
+ Hits          773      792      +19     
- Misses       1154     1300     +146     
- Partials       99      102       +3     
Impacted Files Coverage Δ
pkg/daemon/client.go 31.73% <0.00%> (-0.63%) ⬇️
pkg/daemon/daemon.go 0.00% <0.00%> (ø)
pkg/daemon/rafs.go 1.26% <0.00%> (-0.13%) ⬇️
pkg/manager/daemon_adaptor.go 0.00% <0.00%> (ø)
pkg/manager/manager.go 20.00% <0.00%> (-0.68%) ⬇️
pkg/system/system.go 9.02% <16.21%> (ø)
pkg/auth/kubesecret.go 30.92% <0.00%> (+7.21%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@changweige changweige marked this pull request as draft November 17, 2022 04:49
/*
* Copyright (c) 2022. Nydus Developers. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
Copy link
Contributor

Choose a reason for hiding this comment

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

SPDX should be kept in the first line as a thumb rule.

Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
We can use it when start upgraded daemon with
the awareness of those instances ralated to old one.

Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Also make it support replace the nydusd binary path
pointing to the newer version and receive --upgrade flag

Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
We can do live-upgrade to take over old nydusd fs
service by handling http requests

Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
Copy link
Collaborator

@imeoer imeoer left a comment

Choose a reason for hiding this comment

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

LGTM

@changweige
Copy link
Member Author

Thanks for your review :-)

@changweige changweige merged commit 84d9ba3 into containerd:main Nov 25, 2022
@changweige changweige deleted the upgrade branch November 28, 2022 05:44
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.

4 participants