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 spec.servers[] configuration attribute:

    kind: CouchbaseCluster
      servers: (1)
      - name: data (2)
        size: 3 (3)
        services: (4)
        - data
      - name: index
        size: 2
        - index
      - name: query
        size: 4
        - query
    1 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 spec.servers[].pod template can even allow execution on different hardware types.
    2 spec.servers[].name must be a unique per-server class.
    3 spec.servers[].size is the number of pods to create per-server class. This can be independently scaled per-server class.
    4 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.