For the complete documentation index, see llms.txt. This page is also available as Markdown.

create

Create an In-Memory DB Cluster

Usage

ionosctl dbaas in-memory-db-v2 cluster create [flags]

Aliases

For in-memory-db-v2 command:

[inmemorydb-v2 memdb-v2 imdb-v2 in-mem-db-v2 inmemdb-v2]

For cluster command:

[c]

For create command:

[c]

Description

Use this command to create a new In-Memory DB Cluster. The mode is determined by the number of replicas: one replica is standalone, everything else is a replication in leader-follower mode with one active and n-1 passive replicas.

There are two ways to create a cluster, both requiring the same connection and credential flags (--datacenter-id, --lan-id, --cidr, --user, --password) plus --location:

  1. Empty cluster: pass --version (defaults to a supported version) and sizing flags (--replicas, --cores, --ram).

  2. From a snapshot: additionally pass --snapshot-id. The cluster version is taken from the snapshot (so --version is not needed; if given, it must match the snapshot's version). Optionally pass --recovery-time to restore to a point in time within the snapshot's window.

PersistenceMode: None: Data is inMemory only and will not be persisted. Useful for cache only applications. AOF (Append Only File): AOF persistence logs every write operation received by the server. These operations can then be replayed again at server startup, reconstructing the original dataset. RDB: RDB persistence performs snapshots of the current in memory state. RDB_AOF: Both RDB and AOF persistence are enabled.

EvictionPolicy: noeviction: No eviction policy is used. In-Memory DB will never remove any data. If the memory limit is reached, an error will be returned on write operations. allkeys-lru: The least recently used keys will be removed first. allkeys-lfu: The least frequently used keys will be removed first. allkeys-random: Random keys will be removed. volatile-lru: The least recently used keys will be removed first, but only among keys with the expire field set to true. volatile-lfu: The least frequently used keys will be removed first, but only among keys with the expire field set to true. volatile-random: Random keys will be removed, but only among keys with the expire field set to true. volatile-ttl: The key with the nearest time to live will be removed first, but only among keys with the expire field set to true.

Options

Examples

Last updated

Was this helpful?