Configure Multi-Dimensional Scaling

      +
      How-to independently scale cluster services.

      Couchbase server allows different services to be run on different hosts. This allows independent scaling of services as needs dictate.

      Couchbase Cluster Configuration

      MDS is modeled with the couchbaseclusters.spec.servers configuration attribute:

      apiVersion: couchbase.com/v2
      kind: CouchbaseCluster
      spec:
        servers: (1)
        - name: data (2)
          size: 3 (3)
          services: (4)
          - data
        - name: index
          size: 2
          services:
          - index
        - name: query
          size: 4
          services:
          - query
      1 couchbaseclusters.spec.servers is a list of different classes of server. Each is independently configurable and can be used to run different services on different classes. Different classes may have different scales to handle different workloads on different services. The couchbaseclusters.spec.servers.pod template can even allow execution on different hardware types.
      2 couchbaseclusters.spec.servers.name must be a unique per-server class.
      3 couchbaseclusters.spec.servers.size is the number of pods to create per-server class. This can be independently scaled per-server class.
      4 couchbaseclusters.spec.servers.services can be independently defined per-server class. Services are immutable and cannot be changed once provisioned. It is highly recommended that each service only appear in one class — this simplifies memory allocation.