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
6e2e3986
Commit
6e2e3986
authored
Feb 16, 2016
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21255 from wojtek-t/extend_load_logging
Extend logging for load test debugging
parents
0e037ac3
02c1a498
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
util.go
test/e2e/util.go
+2
-2
No files found.
test/e2e/util.go
View file @
6e2e3986
...
...
@@ -1753,7 +1753,7 @@ func (config *RCConfig) start() error {
// - diagnose by noting the pod diff below.
// pod is unhealthy, so replication controller creates another to take its place
// - diagnose by comparing the previous "2 Pod states" lines for inactive pods
errorStr
:=
fmt
.
Sprintf
(
"Number of reported pods
changed: %d vs %d"
,
len
(
pods
),
len
(
oldPods
))
errorStr
:=
fmt
.
Sprintf
(
"Number of reported pods
for %s changed: %d vs %d"
,
config
.
Name
,
len
(
pods
),
len
(
oldPods
))
Logf
(
"%v, pods that changed since the last iteration:"
,
errorStr
)
Diff
(
oldPods
,
pods
)
.
Print
(
sets
.
NewString
())
return
fmt
.
Errorf
(
errorStr
)
...
...
@@ -1899,7 +1899,7 @@ func ScaleRC(c *client.Client, ns, name string, size uint, wait bool) error {
waitForScale
:=
kubectl
.
NewRetryParams
(
5
*
time
.
Second
,
1
*
time
.
Minute
)
waitForReplicas
:=
kubectl
.
NewRetryParams
(
5
*
time
.
Second
,
5
*
time
.
Minute
)
if
err
=
scaler
.
Scale
(
ns
,
name
,
size
,
nil
,
waitForScale
,
waitForReplicas
);
err
!=
nil
{
return
err
return
fmt
.
Errorf
(
"error while scaling RC %s to %d replicas: %v"
,
name
,
size
,
err
)
}
if
!
wait
{
return
nil
...
...
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