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
02c1a498
Commit
02c1a498
authored
Feb 15, 2016
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend logging for load test debugging
parent
48caef35
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 @
02c1a498
...
@@ -1753,7 +1753,7 @@ func (config *RCConfig) start() error {
...
@@ -1753,7 +1753,7 @@ func (config *RCConfig) start() error {
// - diagnose by noting the pod diff below.
// - diagnose by noting the pod diff below.
// pod is unhealthy, so replication controller creates another to take its place
// pod is unhealthy, so replication controller creates another to take its place
// - diagnose by comparing the previous "2 Pod states" lines for inactive pods
// - 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
)
Logf
(
"%v, pods that changed since the last iteration:"
,
errorStr
)
Diff
(
oldPods
,
pods
)
.
Print
(
sets
.
NewString
())
Diff
(
oldPods
,
pods
)
.
Print
(
sets
.
NewString
())
return
fmt
.
Errorf
(
errorStr
)
return
fmt
.
Errorf
(
errorStr
)
...
@@ -1899,7 +1899,7 @@ func ScaleRC(c *client.Client, ns, name string, size uint, wait bool) error {
...
@@ -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
)
waitForScale
:=
kubectl
.
NewRetryParams
(
5
*
time
.
Second
,
1
*
time
.
Minute
)
waitForReplicas
:=
kubectl
.
NewRetryParams
(
5
*
time
.
Second
,
5
*
time
.
Minute
)
waitForReplicas
:=
kubectl
.
NewRetryParams
(
5
*
time
.
Second
,
5
*
time
.
Minute
)
if
err
=
scaler
.
Scale
(
ns
,
name
,
size
,
nil
,
waitForScale
,
waitForReplicas
);
err
!=
nil
{
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
{
if
!
wait
{
return
nil
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