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
09033ee6
Commit
09033ee6
authored
Jul 04, 2016
by
Marcin Wielgus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase timeouts in multiple node pool e2e tests for cluster autoscaler
parent
de0e6de8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
cluster_size_autoscaling.go
test/e2e/cluster_size_autoscaling.go
+11
-2
No files found.
test/e2e/cluster_size_autoscaling.go
View file @
09033ee6
...
...
@@ -233,7 +233,12 @@ var _ = framework.KubeDescribe("Cluster size autoscaling [Slow]", func() {
By
(
"Creating rc with 2 pods too big to fit default-pool but fitting extra-pool"
)
ReserveMemory
(
f
,
"memory-reservation"
,
2
,
2
*
memCapacityMb
,
false
)
defer
framework
.
DeleteRC
(
f
.
Client
,
f
.
Namespace
.
Name
,
"memory-reservation"
)
framework
.
ExpectNoError
(
framework
.
WaitForClusterSize
(
c
,
nodeCount
+
2
,
scaleUpTimeout
))
// Apparently GKE master is restarted couple minutes after the node pool is added
// reseting all the timers in scale down code. Adding 5 extra minutes to workaround
// this issue.
// TODO: Remove the extra time when GKE restart is fixed.
framework
.
ExpectNoError
(
framework
.
WaitForClusterSize
(
c
,
nodeCount
+
2
,
scaleUpTimeout
+
5
*
time
.
Minute
))
})
It
(
"should correctly scale down after a node is not needed [Feature:ClusterSizeAutoscalingScaleDown]"
,
func
()
{
...
...
@@ -275,8 +280,12 @@ var _ = framework.KubeDescribe("Cluster size autoscaling [Slow]", func() {
func
(
size
int
)
bool
{
return
size
>=
increasedSize
+
3
},
scaleUpTimeout
))
By
(
"Some node should be removed"
)
// Apparently GKE master is restarted couple minutes after the node pool is added
// reseting all the timers in scale down code. Adding 10 extra minutes to workaround
// this issue.
// TODO: Remove the extra time when GKE restart is fixed.
framework
.
ExpectNoError
(
WaitForClusterSizeFunc
(
f
.
Client
,
func
(
size
int
)
bool
{
return
size
<
increasedSize
+
3
},
scaleDownTimeout
))
func
(
size
int
)
bool
{
return
size
<
increasedSize
+
3
},
scaleDownTimeout
+
10
*
time
.
Minute
))
})
})
...
...
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