From 786ee26fd05643a3ff157331e38a34d8eefb98f9 Mon Sep 17 00:00:00 2001 From: dlapina <59916071+dlapina@users.noreply.github.com> Date: Wed, 3 Apr 2024 11:46:34 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=9D=20(RDSDiskSpaceLimit.md):=20up?= =?UTF-8?q?date=20runbook=20RDSDiskSpaceLimit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/runbooks/rds/RDSDiskSpaceLimit.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/content/runbooks/rds/RDSDiskSpaceLimit.md b/content/runbooks/rds/RDSDiskSpaceLimit.md index f7ba80e..f75cb4a 100644 --- a/content/runbooks/rds/RDSDiskSpaceLimit.md +++ b/content/runbooks/rds/RDSDiskSpaceLimit.md @@ -73,7 +73,14 @@ You must avoid reaching no disk space left situation. {{% aws-rds-storage-increase-limitations %}} {{< /hint >}} - 1. Determine the minimum storage for the increase + 1. Set AWS_PROFILE + + ```bash + export AWS_PROFILE= + ``` + + 2. Determine the minimum storage for the increase + 💡 RDS requires a minimal storage increase of 10% ```bash INSTANCE_IDENTIFIER= @@ -84,16 +91,20 @@ You must avoid reaching no disk space left situation. | jq -r '{"Current IOPS": .DBInstances[0].Iops, "Current Storage Limit": .DBInstances[0].AllocatedStorage, "New minimum storage size": ((.DBInstances[0].AllocatedStorage|tonumber)+(.DBInstances[0].AllocatedStorage|tonumber*0.1|floor))}' ``` - 1. Increase storage: + 3. Increase storage: ```bash NEW_ALLOCATED_STORAGE= ``` ```bash - aws rds modify-db-instance --db-instance-identifier ${RDS_INSTANCE} --allocated-storage ${INSTANCE_IDENTIFIER} --apply-immediately \ + aws rds modify-db-instance --db-instance-identifier ${INSTANCE_IDENTIFIER} --allocated-storage ${NEW_ALLOCATED_STORAGE} --apply-immediately \ | jq .DBInstance.PendingModifiedValues ``` + + ❗ If the RDS instance has replicas instances (replica or reporting), you must repeat the operation for all replicas to keep the same configuration between instances + + 4. Backport changes in [Terraform](https://gitlab.qonto.co/devops/terraform/stacks/rds) ## Additional resources From 87b60bbc6cf99b18aa9d7c5a143d5bdb1b0c25f1 Mon Sep 17 00:00:00 2001 From: dlapina <59916071+dlapina@users.noreply.github.com> Date: Wed, 3 Apr 2024 12:02:33 +0200 Subject: [PATCH 2/2] update: remove terraform link --- content/runbooks/rds/RDSDiskSpaceLimit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/runbooks/rds/RDSDiskSpaceLimit.md b/content/runbooks/rds/RDSDiskSpaceLimit.md index f75cb4a..d89d570 100644 --- a/content/runbooks/rds/RDSDiskSpaceLimit.md +++ b/content/runbooks/rds/RDSDiskSpaceLimit.md @@ -104,7 +104,7 @@ You must avoid reaching no disk space left situation. ❗ If the RDS instance has replicas instances (replica or reporting), you must repeat the operation for all replicas to keep the same configuration between instances - 4. Backport changes in [Terraform](https://gitlab.qonto.co/devops/terraform/stacks/rds) + 4. Backport changes in Terraform ## Additional resources