From 1f9bf2e8b28dfbf7c908086e8fe2244cdbbedb54 Mon Sep 17 00:00:00 2001 From: Guillaume Duval <117720964+g-duval@users.noreply.github.com> Date: Tue, 3 Dec 2024 17:04:19 +0100 Subject: [PATCH] Increase backend health timeout + drop index before creating a new one to save disc space (#3163) --- .rhcicd/clowdapp-backend.yaml | 4 ++-- ...__RHCLOUD-36536_update_indexes_for_notification_drawer.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.rhcicd/clowdapp-backend.yaml b/.rhcicd/clowdapp-backend.yaml index 641265515c..03ccfc6689 100644 --- a/.rhcicd/clowdapp-backend.yaml +++ b/.rhcicd/clowdapp-backend.yaml @@ -98,7 +98,7 @@ objects: path: /health/ready port: 8000 scheme: HTTP - initialDelaySeconds: 40 + initialDelaySeconds: 1200 periodSeconds: 10 timeoutSeconds: 1 successThreshold: 1 @@ -108,7 +108,7 @@ objects: path: /health/live port: 8000 scheme: HTTP - initialDelaySeconds: 40 + initialDelaySeconds: 1200 periodSeconds: 10 timeoutSeconds: 1 successThreshold: 1 diff --git a/database/src/main/resources/db/migration/V1.107.0__RHCLOUD-36536_update_indexes_for_notification_drawer.sql b/database/src/main/resources/db/migration/V1.107.0__RHCLOUD-36536_update_indexes_for_notification_drawer.sql index ccf65b69ea..819c7bb121 100644 --- a/database/src/main/resources/db/migration/V1.107.0__RHCLOUD-36536_update_indexes_for_notification_drawer.sql +++ b/database/src/main/resources/db/migration/V1.107.0__RHCLOUD-36536_update_indexes_for_notification_drawer.sql @@ -1,2 +1,2 @@ -CREATE INDEX ix_drawer_notification_org_id_user_id_read_created_event_id ON drawer_notification (org_id, user_id, read, created DESC, event_id); DROP INDEX ix_drawer_notification_org_id_user_id_created_read_event_id; +CREATE INDEX ix_drawer_notification_org_id_user_id_read_created_event_id ON drawer_notification (org_id, user_id, read, created DESC, event_id);