Configuration: Storage Bin only?

Hi,

I haven’t been able to find if this is possible. Excuse me if this is a simple question. Maybe i missed it in the docs?

Is it possible to have a file storage only bin with SSD and NOT storing this data in memory.

My current configuration looks like this:

namespace cache {
    memory-size 1G
    storage-engine memory
}

namespace sessions {
    memory-size 42G
    storage-engine memory
    default-ttl 30d
    high-water-memory-pct 90
}

namespace clicks {
    replication-factor 0
    memory-size 8G
    default-ttl 0

    # To use file storage backing, comment out the line above and use the
    # following lines instead.
    storage-engine device {
        file /opt/aerospike/data/click.dat
        filesize 8G
        data-in-memory true # Store data in memory in addition to file.
    }
}

namespace platform {
    replication-factor 0
    memory-size 1G
    default-ttl 0

    # To use file storage backing, comment out the line above and use the
    # following lines instead.
    storage-engine device {
        file /opt/aerospike/data/platform.dat
        filesize 1G
        data-in-memory false # Store data in memory in addition to file.
    }
}

I’m wanting to add for this new bin:

namespace geoip {
    replication-factor 0

    storage-engine device {
        file /opt/aerospike/data/geoip.dat
        filesize 4G
        data-in-memory false # Store data in memory in addition to file.
    }
}

The bin geoip only resides in file storage but must also be replicated to all the other nodes.

Is this possible?

Thanks

Hi Paul,

Please take a look at https://www.aerospike.com/docs/operations/configure/namespace/storage/

Aerospike allows 3 configurations

  1. Data in memory
  2. Data on SSD
  3. Data in memory with persistence

The primary and secondary indexes are always stored in memory.

In all 3 configurations you would have auto-replication, auto-data-balancing, auto-sharding. You could configure multiple nodes in a cluster, set the replication factor > 1 if you want data replication on other nodes.

You have configured namespace cache as data in-memory, namespace clicks as data-in-memory with persistence. Take a look at https://www.aerospike.com/docs/operations/configure/namespace/storage/#recipe-for-an-ssd-storage-engine for configuring data-on-SSD

-samir