prepare for production
This commit is contained in:
parent
fa516f9f2f
commit
77bbf20032
|
|
@ -10,10 +10,17 @@ spec:
|
||||||
- name: node.alerts
|
- name: node.alerts
|
||||||
rules:
|
rules:
|
||||||
- alert: NodeHighCPU
|
- alert: NodeHighCPU
|
||||||
expr: (1 - avg without (cpu, mode) (rate(node_cpu_seconds_total{mode="idle"}[1m]))) * 100 > 1
|
expr: |
|
||||||
|
(
|
||||||
|
(1 - avg without (cpu, mode) (rate(node_cpu_seconds_total{mode="idle", workload="media"}[1m]))) * 100 > 65
|
||||||
|
)
|
||||||
|
or
|
||||||
|
(
|
||||||
|
(1 - avg without (cpu, mode) (rate(node_cpu_seconds_total{mode="idle", workload!="media"}[1m]))) * 100 > 80
|
||||||
|
)
|
||||||
for: 1m
|
for: 1m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
summary: "High CPU usage on node {{ "{{" }} $labels.instance {{ "}}" }}"
|
summary: "High CPU usage on node {{ "{{" }} $labels.instance {{ "}}" }}"
|
||||||
description: "Node {{ "{{" }} $labels.instance {{ "}}" }} has CPU usage above 1% (current value: {{ "{{" }} $value | printf \"%.2f\" {{ "}}" }}%)"
|
description: "Node {{ "{{" }} $labels.instance {{ "}}" }} has CPU usage above threshold (current value: {{ "{{" }} $value | printf \"%.2f\" {{ "}}" }}%)"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ grafana:
|
||||||
backendUrl: "https://www.jamkazam.com"
|
backendUrl: "https://www.jamkazam.com"
|
||||||
auth: true
|
auth: true
|
||||||
# Webrtc_be image version
|
# Webrtc_be image version
|
||||||
webrtc_tag: 1.0.139
|
webrtc_tag: 1.0.157
|
||||||
unused_tag: 1.0.0
|
unused_tag: 1.0.0
|
||||||
enableDieEndpoint: false
|
enableDieEndpoint: false
|
||||||
mediasoup:
|
mediasoup:
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ resource "linode_lke_cluster" "prd-video-cluster" {
|
||||||
}
|
}
|
||||||
# Coturn pool
|
# Coturn pool
|
||||||
pool {
|
pool {
|
||||||
type = "g6-standard-2"
|
type = "g6-standard-4"
|
||||||
count = 3
|
count = 3
|
||||||
labels = {
|
labels = {
|
||||||
workload = "media"
|
workload = "media"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue