Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5863f2a0
Commit
5863f2a0
authored
Nov 04, 2015
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kubelet: reduce logging frequency for sync loop
Only logs when there are pods to sync.
parent
4711a873
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
kubelet.go
pkg/kubelet/kubelet.go
+4
-1
No files found.
pkg/kubelet/kubelet.go
View file @
5863f2a0
...
@@ -2125,7 +2125,10 @@ func (kl *Kubelet) syncLoopIteration(updates <-chan kubetypes.PodUpdate, handler
...
@@ -2125,7 +2125,10 @@ func (kl *Kubelet) syncLoopIteration(updates <-chan kubetypes.PodUpdate, handler
podsToSync
=
append
(
podsToSync
,
pod
)
podsToSync
=
append
(
podsToSync
,
pod
)
}
}
}
}
glog
.
V
(
2
)
.
Infof
(
"SyncLoop (SYNC): %d pods"
,
kubeletutil
.
FormatPodNames
(
podsToSync
))
if
len
(
podsToSync
)
==
0
{
break
}
glog
.
V
(
4
)
.
Infof
(
"SyncLoop (SYNC): %d pods; %s"
,
len
(
podsToSync
),
kubeletutil
.
FormatPodNames
(
podsToSync
))
kl
.
HandlePodSyncs
(
podsToSync
)
kl
.
HandlePodSyncs
(
podsToSync
)
case
update
:=
<-
kl
.
livenessManager
.
Updates
()
:
case
update
:=
<-
kl
.
livenessManager
.
Updates
()
:
// We only care about failures (signalling container death) here.
// We only care about failures (signalling container death) here.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment