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
862f8567
Unverified
Commit
862f8567
authored
Jun 11, 2018
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quiet verbose apiserver logs
parent
6decdaa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
get.go
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/get.go
+1
-1
watcher.go
staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go
+2
-2
No files found.
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/get.go
View file @
862f8567
...
@@ -242,7 +242,7 @@ func ListResource(r rest.Lister, rw rest.Watcher, scope RequestScope, forceWatch
...
@@ -242,7 +242,7 @@ func ListResource(r rest.Lister, rw rest.Watcher, scope RequestScope, forceWatch
if
timeout
==
0
&&
minRequestTimeout
>
0
{
if
timeout
==
0
&&
minRequestTimeout
>
0
{
timeout
=
time
.
Duration
(
float64
(
minRequestTimeout
)
*
(
rand
.
Float64
()
+
1.0
))
timeout
=
time
.
Duration
(
float64
(
minRequestTimeout
)
*
(
rand
.
Float64
()
+
1.0
))
}
}
glog
.
V
(
2
)
.
Infof
(
"Starting watch for %s, rv=%s labels=%s fields=%s timeout=%s"
,
req
.
URL
.
Path
,
opts
.
ResourceVersion
,
opts
.
LabelSelector
,
opts
.
FieldSelector
,
timeout
)
glog
.
V
(
3
)
.
Infof
(
"Starting watch for %s, rv=%s labels=%s fields=%s timeout=%s"
,
req
.
URL
.
Path
,
opts
.
ResourceVersion
,
opts
.
LabelSelector
,
opts
.
FieldSelector
,
timeout
)
watcher
,
err
:=
rw
.
Watch
(
ctx
,
&
opts
)
watcher
,
err
:=
rw
.
Watch
(
ctx
,
&
opts
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go
View file @
862f8567
...
@@ -232,7 +232,7 @@ func (wc *watchChan) processEvent(wg *sync.WaitGroup) {
...
@@ -232,7 +232,7 @@ func (wc *watchChan) processEvent(wg *sync.WaitGroup) {
continue
continue
}
}
if
len
(
wc
.
resultChan
)
==
outgoingBufSize
{
if
len
(
wc
.
resultChan
)
==
outgoingBufSize
{
glog
.
Warning
f
(
"Fast watcher, slow processing. Number of buffered events: %d."
+
glog
.
V
(
3
)
.
Info
f
(
"Fast watcher, slow processing. Number of buffered events: %d."
+
"Probably caused by slow dispatching events to watchers"
,
outgoingBufSize
)
"Probably caused by slow dispatching events to watchers"
,
outgoingBufSize
)
}
}
// If user couldn't receive results fast enough, we also block incoming events from watcher.
// If user couldn't receive results fast enough, we also block incoming events from watcher.
...
@@ -339,7 +339,7 @@ func (wc *watchChan) sendError(err error) {
...
@@ -339,7 +339,7 @@ func (wc *watchChan) sendError(err error) {
func
(
wc
*
watchChan
)
sendEvent
(
e
*
event
)
{
func
(
wc
*
watchChan
)
sendEvent
(
e
*
event
)
{
if
len
(
wc
.
incomingEventChan
)
==
incomingBufSize
{
if
len
(
wc
.
incomingEventChan
)
==
incomingBufSize
{
glog
.
Warning
f
(
"Fast watcher, slow processing. Number of buffered events: %d."
+
glog
.
V
(
3
)
.
Info
f
(
"Fast watcher, slow processing. Number of buffered events: %d."
+
"Probably caused by slow decoding, user not receiving fast, or other processing logic"
,
"Probably caused by slow decoding, user not receiving fast, or other processing logic"
,
incomingBufSize
)
incomingBufSize
)
}
}
...
...
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