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
7802a61e
Commit
7802a61e
authored
Sep 12, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Sep 12, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #32483 from wojtek-t/log_outgoing_channel_size
Automatic merge from submit-queue Extend logging for performance debugging
parents
c07d0b77
949dd905
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cacher.go
pkg/storage/cacher.go
+3
-2
No files found.
pkg/storage/cacher.go
View file @
7802a61e
...
@@ -645,6 +645,7 @@ func (c *cacheWatcher) add(event *watchCacheEvent) {
...
@@ -645,6 +645,7 @@ func (c *cacheWatcher) add(event *watchCacheEvent) {
default
:
default
:
}
}
resultLen
:=
len
(
c
.
result
)
// OK, block sending, but only for up to 5 seconds.
// OK, block sending, but only for up to 5 seconds.
// cacheWatcher.add is called very often, so arrange
// cacheWatcher.add is called very often, so arrange
// to reuse timers instead of constantly allocating.
// to reuse timers instead of constantly allocating.
...
@@ -673,8 +674,8 @@ func (c *cacheWatcher) add(event *watchCacheEvent) {
...
@@ -673,8 +674,8 @@ func (c *cacheWatcher) add(event *watchCacheEvent) {
c
.
forget
(
false
)
c
.
forget
(
false
)
c
.
stop
()
c
.
stop
()
}
}
glog
.
V
(
2
)
.
Infof
(
"cacheWatcher add function blocked processing of %v for %v"
,
glog
.
V
(
2
)
.
Infof
(
"cacheWatcher add function blocked processing of %v for %v
(initial result size %v)
"
,
reflect
.
TypeOf
(
event
.
Object
)
.
String
(),
time
.
Since
(
startTime
))
reflect
.
TypeOf
(
event
.
Object
)
.
String
(),
time
.
Since
(
startTime
)
,
resultLen
)
}
}
func
(
c
*
cacheWatcher
)
sendWatchCacheEvent
(
event
watchCacheEvent
)
{
func
(
c
*
cacheWatcher
)
sendWatchCacheEvent
(
event
watchCacheEvent
)
{
...
...
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