create
Create a replica set
Usage
ionosctl dbaas in-memory-db replicaset create [flags]Aliases
For in-memory-db command:
[inmemorydb memdb imdb in-mem-db inmemdb]For replicaset command:
[rs replica-set replicasets cluster]For create command:
[post c]Description
Create a replica set. In-Memory DB replica set with support for a single instance or a In-Memory DB replication in leader follower mode. The mode is determined by the number of replicas. One replica is standalone, everything else an In-Memory DB replication as leader follower mode with one active and n-1 passive replicas.
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. Commands are logged using the same format as the In-Memory DB protocol itself. 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
