Skip to content

HDD storage with data in index

Ashish Shinde edited this page Jul 11, 2020 · 9 revisions

Here we provide configuration for a specialized namespace where records have a single-bin and fit in 8 bytes.

For more details, visit configuration of HDD Storage Engine with Data in Index Engine.

Create the namespace configuration

Following is the storage-specific config for the Aerospike cluster CR file.

storage:
    volumes:
      - path: /opt/aerospike
        storageClass: ssd
        volumeMode: filesystem
        sizeInGB: 1
      - path: /opt/aerospike/data/test
        storageClass: ssd
        volumeMode: filesystem
        sizeInGB: 3
      - path: /opt/aerospike/data/bar
        storageClass: ssd
        volumeMode: filesystem
        sizeInGB: 3
  .
  .
  .
  aerospikeConfig:
    service:
      feature-key-file: /etc/aerospike/secret/features.conf
    security:
      enable-security: true
    namespace:
      - name: test
        memory-size: 2000000000
        single-bin: true
        data-in-index: true
        replication-factor: 1
        storage-engine:
          file:
            - /opt/aerospike/data/test/test.dat
          filesize: 2000000000
          data-in-memory: true
      - name: bar
        memory-size: 3000000000
        single-bin: true
        data-in-index: true
        replication-factor: 1
        storage-engine:
          file:
            - /opt/aerospike/data/bar/bar.dat
          filesize: 2000000000
          data-in-memory: true

Get full CR file here.

Deploy the cluster

Follow the instructions here to deploy this configuration.

Clone this wiki locally