From 6f2fe5954f6ce9f7f17fb15802054cd6c5802123 Mon Sep 17 00:00:00 2001 From: UncleCode Date: Sat, 16 Nov 2024 17:12:41 +0800 Subject: [PATCH] feat(deploy): update instance size to professional-xs and add memory utilization alert --- .do/deploy.template.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.do/deploy.template.yaml b/.do/deploy.template.yaml index ab76795d..c7db5e7e 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 + instance_size_slug: professional-xs # 4GB RAM, 2 vCPUs health_check: http_path: /health envs: @@ -19,4 +19,7 @@ spec: - key: ENABLE_GPU value: "false" routes: - - path: / \ No newline at end of file + - path: / + alerts: + - rule: MEM_UTILIZATION + value: 90 # Alert at 90% memory usage \ No newline at end of file