Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Risingwave manifest for SQLite as meta store and local disk as storage #769

Merged
120 changes: 120 additions & 0 deletions docs/manifests/risingwave/risingwave-sqlite-local-disk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: risingwave-data
labels:
app: risingwave
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: risingwave.risingwavelabs.com/v1alpha1
kind: RisingWave
metadata:
name: risingwave
spec:
image: risingwavelabs/risingwave:v2.1.0
metaStore:
sqlite:
path: /risingwave/data/metastore/risingwave.db
stateStore:
localDisk:
root: /var/lib/risingwave/data
components:
meta:
nodeGroups:
- name: ""
replicas: 1
template:
spec:
volumes:
- name: risingwave-data
persistentVolumeClaim:
claimName: risingwave-data
volumeMounts:
- mountPath: /var/lib/risingwave/data
name: risingwave-data
resources:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 1
memory: 2Gi
frontend:
nodeGroups:
- name: ""
replicas: 1
template:
spec:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: "kubernetes.io/hostname"
labelSelector:
matchLabels:
risingwave/component: meta
resources:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 1
memory: 2Gi
compute:
nodeGroups:
- name: ""
replicas: 1
template:
spec:
volumes:
- name: risingwave-data
persistentVolumeClaim:
claimName: risingwave-data
volumeMounts:
- mountPath: /var/lib/risingwave/data
name: risingwave-data
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: "kubernetes.io/hostname"
labelSelector:
matchLabels:
risingwave/component: meta
resources:
limits:
cpu: 8
memory: 32Gi # Memory limit will be set to `RW_TOTAL_MEMORY_BYTES`
requests:
cpu: 8
memory: 32Gi
compactor:
nodeGroups:
- name: ""
replicas: 1
template:
spec:
volumes:
- name: risingwave-data
persistentVolumeClaim:
claimName: risingwave-data
volumeMounts:
- mountPath: /var/lib/risingwave/data
name: risingwave-data
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: "kubernetes.io/hostname"
labelSelector:
matchLabels:
risingwave/component: meta
resources:
limits:
cpu: 4
memory: 8Gi
requests:
cpu: 4
memory: 8Gi
Loading