-
Notifications
You must be signed in to change notification settings - Fork 98
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
enable system controller config #345
Conversation
Codecov ReportBase: 28.25% // Head: 28.21% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #345 +/- ##
==========================================
- Coverage 28.25% 28.21% -0.04%
==========================================
Files 37 37
Lines 3667 3672 +5
==========================================
Hits 1036 1036
- Misses 2510 2515 +5
Partials 121 121
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. |
d651b4c
to
3f192b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others, LGTM
enable = true | ||
|
||
[system.debug] | ||
daemon_cpu_profile_duration_secs = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we add a comment for this item in toml
file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
snapshot/snapshot.go
Outdated
@@ -122,7 +122,7 @@ func NewSnapshotter(ctx context.Context, cfg *config.SnapshotterConfig) (snapsho | |||
}() | |||
} | |||
|
|||
if cfg.EnableSystemController { | |||
if config.SystemControllerEnabled() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe IsSystemControllerEnabled
or GetSystemControllerEnabled
is better to understand?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed
# Whether tp enable stargz support | ||
enable_stargz = false | ||
# Whether snapshotter should try to clean up resources when it is closed | ||
cleanup_on_close = false | ||
|
||
[system] | ||
# Snapshotter's debug and trace HTTP server interface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the interface address be configurated? Should be documented here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. This PR now includes changes that add the config entry to customize the system controller address path
1. move system controller config to a dedicated struct 2. capable of configuring daemon cpu profile duration. 3. capable of configuring system controller address path Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
3f192b4
to
356cc07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Changwei Ge gechangwei@bytedance.com