From 67edc2d641a672e9fa5a95fa4341407b9e574851 Mon Sep 17 00:00:00 2001 From: UncleCode Date: Sat, 16 Nov 2024 17:23:32 +0800 Subject: [PATCH] feat(deploy): update instance size to professional-xs and add memory utilization alert parameters --- .do/deploy.template.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.do/deploy.template.yaml b/.do/deploy.template.yaml index 73ee7c5c..49d0012b 100644 --- a/.do/deploy.template.yaml +++ b/.do/deploy.template.yaml @@ -8,7 +8,7 @@ spec: dockerfile_path: Dockerfile http_port: 11235 instance_count: 1 - instance_size_slug: basic-xs # 4GB RAM, 2 vCPUs + instance_size_slug: professional-xs health_check: http_path: /health envs: @@ -22,4 +22,9 @@ spec: - path: / alerts: - rule: MEM_UTILIZATION - value: 90 # Alert at 90% memory usage \ No newline at end of file + value: 90 + window: 5m # Added window parameter + operator: GREATER_THAN + disabled: false + - rule: DEPLOYMENT_FAILED + - rule: DOMAIN_FAILED \ No newline at end of file