Remove all CPU limits cluster-wide to eliminate CFS throttling
CPU limits cause CFS throttling even when nodes have idle capacity. Move to a request-only CPU model: keep CPU requests for scheduling fairness but remove all CPU limits. Memory limits stay (incompressible). Changes across 108 files: - Kyverno LimitRange policy: remove cpu from default/max in all 6 tiers - Kyverno ResourceQuota policy: remove limits.cpu from all 5 tiers - Custom ResourceQuotas: remove limits.cpu from 8 namespace quotas - Custom LimitRanges: remove cpu from default/max (nextcloud, onlyoffice) - RBAC module: remove cpu_limits variable and quota reference - Freedify factory: remove cpu_limit variable and limits reference - 86 deployment files: remove cpu from all limits blocks - 6 Helm values files: remove cpu under limits sections
This commit is contained in:
parent
120f83ce93
commit
b00f810d3d
108 changed files with 609 additions and 435 deletions
|
|
@ -1,13 +1,13 @@
|
|||
variable "tls_secret_name" {
|
||||
type = string
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
variable "onlyoffice_db_password" {
|
||||
type = string
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
variable "onlyoffice_jwt_token" {
|
||||
type = string
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
variable "nfs_server" { type = string }
|
||||
|
|
@ -36,7 +36,6 @@ resource "kubernetes_limit_range" "onlyoffice" {
|
|||
limit {
|
||||
type = "Container"
|
||||
default = {
|
||||
cpu = "250m"
|
||||
memory = "256Mi"
|
||||
}
|
||||
default_request = {
|
||||
|
|
@ -44,7 +43,6 @@ resource "kubernetes_limit_range" "onlyoffice" {
|
|||
memory = "64Mi"
|
||||
}
|
||||
max = {
|
||||
cpu = "8"
|
||||
memory = "8Gi"
|
||||
}
|
||||
}
|
||||
|
|
@ -60,7 +58,6 @@ resource "kubernetes_resource_quota" "onlyoffice" {
|
|||
hard = {
|
||||
"requests.cpu" = "4"
|
||||
"requests.memory" = "4Gi"
|
||||
"limits.cpu" = "16"
|
||||
"limits.memory" = "16Gi"
|
||||
pods = "10"
|
||||
}
|
||||
|
|
@ -113,7 +110,6 @@ resource "kubernetes_deployment" "onlyoffice-document-server" {
|
|||
memory = "512Mi"
|
||||
}
|
||||
limits = {
|
||||
cpu = "2"
|
||||
memory = "4Gi"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue