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
f8b18b0a
Commit
f8b18b0a
authored
Oct 05, 2015
by
Jerzy Szczepkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved logging for horizontal pod autoscaler.
Improved logging for horizontal pod autoscaler. Disabled redundant e2e test.
parent
b9cfab87
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 @
f8b18b0a
...
...
@@ -131,6 +131,8 @@ func (a *HorizontalController) reconcileAutoscaler(hpa experimental.HorizontalPo
return
fmt
.
Errorf
(
"failed to rescale %s: %v"
,
reference
,
err
)
}
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
{
desiredReplicas
=
currentReplicas
}
...
...
test/e2e/horizontal_pod_autoscaling.go
View file @
f8b18b0a
...
...
@@ -72,7 +72,7 @@ var _ = Describe("Horizontal pod autoscaling", func() {
})
// 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
)
defer
rc
.
CleanUp
()
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