Skip to content

Aerospike configuration change

sud82 edited this page Sep 22, 2020 · 5 revisions

For this example assume that cluster is deployed using a file named aerospike-cluster.yaml.

Change a config in the aerospikeConfig section

Change the spec.aerospikeConfig.service.proto-fd-max field in the aerocluster CR to 20000

apiVersion: aerospike.com/v1alpha1
kind: AerospikeCluster
metadata:
  name: aerocluster
  namespace: aerospike
spec:
  size: 2
  build: aerospike/aerospike-server-enterprise:4.7.0.10
  aerospikeConfig:
    service:
      proto-fd-max: 15000
  .
  .

Apply the change

$ kubectl apply -f aerospike-cluster.yaml

Check the pods

Pods will undergo a rolling restart.

$ kubectl get pods -n aerospike
NAME          READY   STATUS              RESTARTS   AGE
aerocluster-0-0     1/1     Running         0          3m6s
aerocluster-0-1     1/1     Running         0          3m6s
aerocluster-0-2     1/1     Running         0          30s
aerocluster-0-3     1/1     Terminating     0          30s

After all the pods have restarted, use kubectl describe to get status of the cluster.

Check spec.aerospikeConfig.service.proto-fd-max in status.

$ kubectl -n aerospike describe aerospikecluster aerocluster
Name:         aerocluster
Namespace:    aerospike
Kind:         AerospikeCluster
.
.
Status:
  Aerospike Config:
    Service:
      Proto - Fd - Max:   20000
  .
  .
Clone this wiki locally