Skip to content

Commit

Permalink
Deploy dhstore tetra to take over writes from seka in prod
Browse files Browse the repository at this point in the history
`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
masih committed Dec 21, 2023
1 parent b79dbfa commit 01d7008
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 1 deletion.
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

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
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ spec:
- '--translateNonStreaming'
- '--providersBackends=http://inga-indexer:3000/'

- '--backends=http://dhstore-tetra:40080/'
- '--backends=http://dhstore-seka:40080/'
- '--backends=http://dhstore-ravi:40080/'
- '--backends=http://dhstore-qiu:40080/'
- '--backends=http://dhstore-porvy.internal.prod.cid.contact/'
- '--backends=http://dhstore-helga.internal.prod.cid.contact/'
- '--backends=http://dhstore.internal.prod.cid.contact/'
- '--dhBackends=http://dhstore-tetra:40080'
- '--dhBackends=http://dhstore-seka:40080'
- '--dhBackends=http://dhstore-ravi:40080'
- '--dhBackends=http://dhstore-qiu:40080'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@
"ValueStoreDir": "/data/valuestore",
"ValueStoreType": "none",
"DHBatchSize": 16384,
"DHStoreURL": "http://dhstore-seka:40080",
"DHStoreURL": "http://dhstore-tetra:40080",
"DHStoreClusterURLs": [
"http://dhstore-seka:40080",
"http://dhstore-ravi:40080",
"http://dhstore-qiu:40080",
"http://dhstore-helga.internal.prod.cid.contact",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ resources:
- dhstore-qiu
- dhstore-ravi
- dhstore-seka
- dhstore-tetra
- telemetry
images:
- name: storetheindex
Expand Down

0 comments on commit 01d7008

Please sign in to comment.