Interface SharedMemory

Interface used to configure shared memory.

interface SharedMemory {
    enable?: boolean;
    key: number;
    maxNamespaces?: number;
    maxNodes?: number;
    takeoverThresholdSeconds?: number;
}

Properties

enable?: boolean

Whether to enable/disable usage of shared memory.

key: number

Identifier for the shared memory segment associated with the target Aerospike cluster; the same key needs to be used on all client instances connecting to the same cluster.

maxNamespaces?: number

Sets the max. number of namespaces used in the cluster - this value is required to size the shared memory segment. Ensure that you leave a cushion between actual namespace count and maxNamespaces so that you can add new namespaces without rebooking the client.

maxNodes?: number

Sets the max. number of server nodes in the cluster - this value is required to size the shared memory segment. Ensure that you leave a cushion between actual server node cound and maxNodes so that you can add new nodes without rebooting the client.

takeoverThresholdSeconds?: number

Expiration time in seconds for the lock on the shared memory segment; if the cluster status has not been updated after this many seconds another client instance will take over the shared memory cluster tending.

MMNEPVFCICPMFPCPTTAAATR