From 8ec5537555072d262b3cbd295f9fa7180091b816 Mon Sep 17 00:00:00 2001 From: gammazero Date: Thu, 25 Apr 2024 10:53:39 -0700 Subject: [PATCH 1/3] Scale up old dhstore in prep for making it primary The current primary dhstore, where new data is written to, is nearly out of space. The oldest dhstore is only 61% full, so prepare it to become the priimary. --- .../tenant/storetheindex/dhstore-seka/deployment.yaml | 4 ++-- .../tenant/storetheindex/dhstore/deployment.yaml | 8 ++++---- .../us-east-2/tenant/storetheindex/dhstore/pvc-gp3.yaml | 6 +----- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore-seka/deployment.yaml b/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore-seka/deployment.yaml index 6c29915b2..7e67a68c0 100644 --- a/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore-seka/deployment.yaml +++ b/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore-seka/deployment.yaml @@ -20,10 +20,10 @@ spec: mountPath: /data resources: limits: - cpu: "28" + cpu: "7" memory: 58Gi requests: - cpu: "28" + cpu: "7" memory: 58Gi affinity: nodeAffinity: diff --git a/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/deployment.yaml b/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/deployment.yaml index 1f6d8d533..a7c93064c 100644 --- a/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/deployment.yaml +++ b/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/deployment.yaml @@ -21,11 +21,11 @@ spec: mountPath: /data resources: limits: - cpu: "5" - memory: 32Gi + cpu: "28" + memory: 58Gi requests: - cpu: "5" - memory: 32Gi + cpu: "28" + memory: 58Gi ports: - containerPort: 40081 name: metrics diff --git a/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/pvc-gp3.yaml b/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/pvc-gp3.yaml index 0f4494c9e..85d8683d9 100644 --- a/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/pvc-gp3.yaml +++ b/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/pvc-gp3.yaml @@ -8,8 +8,4 @@ spec: resources: requests: storage: 16Ti - dataSource: - name: dhstore-20230427 - kind: VolumeSnapshot - apiGroup: snapshot.storage.k8s.io - storageClassName: gp3-iops5k-t300 \ No newline at end of file + storageClassName: gp3-iops5k-t300 From 9edd874238994825482a8e6faab511728c339c0c Mon Sep 17 00:00:00 2001 From: gammazero Date: Thu, 25 Apr 2024 12:00:44 -0700 Subject: [PATCH 2/3] Do not change data sourece for pvc --- .../prod/us-east-2/tenant/storetheindex/dhstore/pvc-gp3.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/pvc-gp3.yaml b/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/pvc-gp3.yaml index 85d8683d9..f43e992bc 100644 --- a/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/pvc-gp3.yaml +++ b/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/pvc-gp3.yaml @@ -8,4 +8,8 @@ spec: resources: requests: storage: 16Ti + dataSource: + name: dhstore-20230427 + kind: VolumeSnapshot + apiGroup: snapshot.storage.k8s.io storageClassName: gp3-iops5k-t300 From 45fe97cdf271270e104750c1bc0f098978232e7a Mon Sep 17 00:00:00 2001 From: gammazero Date: Thu, 25 Apr 2024 12:43:33 -0700 Subject: [PATCH 3/3] Change instance type --- .../prod/us-east-2/tenant/storetheindex/dhstore/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/deployment.yaml b/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/deployment.yaml index a7c93064c..677a17d30 100644 --- a/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/deployment.yaml +++ b/deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore/deployment.yaml @@ -37,7 +37,7 @@ spec: - key: node.kubernetes.io/instance-type operator: In values: - - r6a.2xlarge + - c6a.8xlarge - key: topology.kubernetes.io/zone operator: In values: