-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decrease NNS refresh frequency and remove dyn attr (#682)
Trying to refresh NNS every 5 seconds makes nmstatectl to call python everytime consuming CPU resources, decreasing the frequency will reduce CPU consumption. Also increasing the refresh period to 1 minute make CI fail on timeout, to overcome that we force NNS refresh if a NNCP is applied. And filter gc-timer and hello-timer hey are already not reflecting reality since we remove them before compare them so the value that is present at NNS is not accurate, let's just remove them from NNS so we can use FilterOut to compare states too, so we don't compare filtered stuff like veth or calico. Proper solution is to use varlink so python is already started up at different container, this is done at #663. Signed-off-by: Quique Llorente <[email protected]>
- Loading branch information
Showing
22 changed files
with
774 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package controllers | ||
|
||
const ( | ||
forceRefreshLabel = "nmstate.io/force-nns-refresh" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
47251a5
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.
/cherry-pick release-0.37