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
f8c93016
Commit
f8c93016
authored
Oct 05, 2015
by
Alex Robinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15076 from jszczepkowski/hpa-e2e
Improved logging for horizontal pod autoscaler.
parents
5adeb005
f8b18b0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
horizontal.go
pkg/controller/podautoscaler/horizontal.go
+2
-0
horizontal_pod_autoscaling.go
test/e2e/horizontal_pod_autoscaling.go
+1
-1
No files found.
pkg/controller/podautoscaler/horizontal.go
View file @
f8c93016
...
@@ -131,6 +131,8 @@ func (a *HorizontalController) reconcileAutoscaler(hpa experimental.HorizontalPo
...
@@ -131,6 +131,8 @@ func (a *HorizontalController) reconcileAutoscaler(hpa experimental.HorizontalPo
return
fmt
.
Errorf
(
"failed to rescale %s: %v"
,
reference
,
err
)
return
fmt
.
Errorf
(
"failed to rescale %s: %v"
,
reference
,
err
)
}
}
a
.
eventRecorder
.
Eventf
(
&
hpa
,
"SuccessfulRescale"
,
"New size: %d"
,
desiredReplicas
)
a
.
eventRecorder
.
Eventf
(
&
hpa
,
"SuccessfulRescale"
,
"New size: %d"
,
desiredReplicas
)
glog
.
Infof
(
"Successfull rescale of %s, old size: %d, new size: %d, usage ratio: %f"
,
hpa
.
Name
,
currentReplicas
,
desiredReplicas
,
usageRatio
)
}
else
{
}
else
{
desiredReplicas
=
currentReplicas
desiredReplicas
=
currentReplicas
}
}
...
...
test/e2e/horizontal_pod_autoscaling.go
View file @
f8c93016
...
@@ -72,7 +72,7 @@ var _ = Describe("Horizontal pod autoscaling", func() {
...
@@ -72,7 +72,7 @@ var _ = Describe("Horizontal pod autoscaling", func() {
})
})
// Backup tests, currently disabled
// Backup tests, currently disabled
It
(
"[Skipped][
A
utoscaling Suite] should scale from 1 pod to 3 pods (scale resource: CPU)"
,
func
()
{
It
(
"[Skipped][
Horizontal pod a
utoscaling Suite] should scale from 1 pod to 3 pods (scale resource: CPU)"
,
func
()
{
rc
=
NewDynamicResourceConsumer
(
"rc"
,
1
,
700
,
0
,
800
,
100
,
f
)
rc
=
NewDynamicResourceConsumer
(
"rc"
,
1
,
700
,
0
,
800
,
100
,
f
)
defer
rc
.
CleanUp
()
defer
rc
.
CleanUp
()
createCPUHorizontalPodAutoscaler
(
rc
,
"0.3"
)
createCPUHorizontalPodAutoscaler
(
rc
,
"0.3"
)
...
...
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