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
0f227069
Commit
0f227069
authored
Oct 17, 2016
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce amount of annoying logs in cacher
parent
40e1aa6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cacher.go
pkg/storage/cacher.go
+2
-2
No files found.
pkg/storage/cacher.go
View file @
0f227069
...
@@ -368,7 +368,7 @@ func (c *Cacher) List(ctx context.Context, key string, resourceVersion string, p
...
@@ -368,7 +368,7 @@ func (c *Cacher) List(ctx context.Context, key string, resourceVersion string, p
}
}
trace
:=
util
.
NewTrace
(
fmt
.
Sprintf
(
"cacher %v: List"
,
c
.
objectType
.
String
()))
trace
:=
util
.
NewTrace
(
fmt
.
Sprintf
(
"cacher %v: List"
,
c
.
objectType
.
String
()))
defer
trace
.
LogIfLong
(
25
0
*
time
.
Millisecond
)
defer
trace
.
LogIfLong
(
50
0
*
time
.
Millisecond
)
c
.
ready
.
wait
()
c
.
ready
.
wait
()
trace
.
Step
(
"Ready"
)
trace
.
Step
(
"Ready"
)
...
@@ -749,7 +749,7 @@ func (c *cacheWatcher) process(initEvents []watchCacheEvent, resourceVersion uin
...
@@ -749,7 +749,7 @@ func (c *cacheWatcher) process(initEvents []watchCacheEvent, resourceVersion uin
// We should understand what is blocking us in those cases (e.g.
// We should understand what is blocking us in those cases (e.g.
// is it lack of CPU, network, or sth else) and potentially
// is it lack of CPU, network, or sth else) and potentially
// consider increase size of result buffer in those cases.
// consider increase size of result buffer in those cases.
const
initProcessThreshold
=
1
00
*
time
.
Millisecond
const
initProcessThreshold
=
5
00
*
time
.
Millisecond
startTime
:=
time
.
Now
()
startTime
:=
time
.
Now
()
for
_
,
event
:=
range
initEvents
{
for
_
,
event
:=
range
initEvents
{
c
.
sendWatchCacheEvent
(
event
)
c
.
sendWatchCacheEvent
(
event
)
...
...
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