Skip to content

Instantly share code, notes, and snippets.

@rsds143
Created June 17, 2021 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsds143/f3d61d2ed9f8ad09d852937136dbe938 to your computer and use it in GitHub Desktop.
Save rsds143/f3d61d2ed9f8ad09d852937136dbe938 to your computer and use it in GitHub Desktop.
running advanced workloads on case-operator
apiVersion: cassandra.datastax.com/v1beta1
kind: CassandraDatacenter
metadata:
name: dc1
spec:
clusterName: cluster1
serverType: dse
serverVersion: "6.8.12"
dseWorkloads:
searchEnabled: true #key thing to add
managementApiAuth:
insecure: {}
size: 2
storageConfig:
cassandraDataVolumeClaimSpec:
storageClassName: server-storage
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
resources:
requests:
memory: 6Gi
cpu: 3000m
limits:
memory: 6Gi
cpu: 3000m
racks:
- name: r1
config:
jvm-server-options:
initial_heap_size: "4000m" #you want to set heap size or you will have issues with auto detection on kubernetes
max_heap_size: "4000m"
cassandra-yaml:
num_tokens: 8 # balances the cluster
allocate_tokens_for_local_replication_factor: 2 # balances the cluster, should be 3 if RF is expected to be 3
file_cache_size_in_mb: 256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment