-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy dhstore
tetra
to take over writes from seka
in prod
`seka` is at >90% disk utilisation. Deploy a new instance to take over the writes and move `seka` to be a read instance.
- Loading branch information
Showing
7 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore-tetra/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dhstore | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: dhstore | ||
args: | ||
- '--providersURL=http://inga-indexer:3000/' | ||
- '--storePath=/data' | ||
- '--disableWAL' | ||
- '--blockCacheSize=2Gi' | ||
env: | ||
- name: GO_DEBUG_MAX_THREADS | ||
value: "20000" | ||
volumeMounts: | ||
- name: data | ||
mountPath: /data | ||
resources: | ||
limits: | ||
cpu: "28" | ||
memory: 58Gi | ||
requests: | ||
cpu: "28" | ||
memory: 58Gi | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: node.kubernetes.io/instance-type | ||
operator: In | ||
values: | ||
- c6a.8xlarge | ||
- key: topology.kubernetes.io/zone | ||
operator: In | ||
values: | ||
- us-east-2c | ||
volumes: | ||
- name: data | ||
persistentVolumeClaim: | ||
claimName: dhstore-data-tetra | ||
|
22 changes: 22 additions & 0 deletions
22
deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore-tetra/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: storetheindex | ||
|
||
resources: | ||
- github.com/ipni/dhstore/deploy/kubernetes?ref=65afbf7dd908b7391e60c321822db69e9939bee7 | ||
- pvc.yaml | ||
- pod-monitor.yaml | ||
|
||
nameSuffix: -tetra | ||
|
||
commonLabels: | ||
app: dhstore-tetra | ||
|
||
patchesStrategicMerge: | ||
- deployment.yaml | ||
|
||
images: | ||
- name: dhstore | ||
newName: 407967248065.dkr.ecr.us-east-2.amazonaws.com/ipni/dhstore | ||
newTag: 20231130062633-638e69afc14179ce171c98f0045f03efb8773cd4 |
16 changes: 16 additions & 0 deletions
16
deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore-tetra/pod-monitor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
name: dhstore | ||
labels: | ||
app: dhstore-tetra | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: dhstore-tetra | ||
namespaceSelector: | ||
matchNames: | ||
- storetheindex | ||
podMetricsEndpoints: | ||
- path: /metrics | ||
port: metrics |
11 changes: 11 additions & 0 deletions
11
deploy/manifests/prod/us-east-2/tenant/storetheindex/dhstore-tetra/pvc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: dhstore-data | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 16Ti | ||
storageClassName: gp3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters