Configure database defaults
Database defaults are cluster-wide policies that determine default settings when creating new databases.
Edit database defaults
To edit default database configuration using the Cluster Manager UI:
-
On the Databases screen, select
to open a list of additional actions.
-
Select Database defaults.
-
Configure database defaults.
-
Select Save.
Database defaults
Replica high availability
If replica high availability is enabled, the cluster automatically migrates replica shards to an available node if a replica node fails or is promoted after a primary (master) node fails.
To enable or turn off replica high availability by default, use one of the following methods:
-
Cluster Manager UI – Edit Replica High Availability in Database defaults
-
rladmin tune cluster slave_ha { enabled | disabled }
-
Update cluster policy REST API request:
PUT /v1/cluster/policy { "slave_ha": <boolean> }
Database version
When you upgrade an existing database or create a new one, it uses the default Redis version (Database version) unless you specify the database version explicitly with redis_version
in the REST API or rladmin upgrade db
.
To configure the Redis database version, use one of the following methods:
-
Cluster Manager UI – Edit Database version in Database defaults
-
rladmin tune cluster default_redis_version <x.y>
-
Update cluster policy REST API request:
PUT /v1/cluster/policy { "default_provisioned_redis_version": "x.y" }
S3 URL
The S3 URL is the default S3 host for importing and exporting data.
To configure the default S3 URL, use one of the following methods:
-
Cluster Manager UI – Edit S3 URL in Database defaults
-
rladmin cluster config s3_url <URL>
-
Update cluster settings REST API request:
PUT /v1/cluster { "s3_url": "<URL>" }
Internode encryption
Enable internode encryption to encrypt data in transit between nodes for new databases by default.
To enable or turn off internode encryption by default, use one of the following methods:
-
Cluster Manager UI – Edit Internode Encryption in Database defaults
-
rladmin tune cluster data_internode_encryption { enabled | disabled }
-
Update cluster policy REST API request:
PUT /v1/cluster/policy { "data_internode_encryption": <boolean> }
Shard placement
The default shard placement policy determines the distribution of database shards across nodes in the cluster.
To configure default shard placement, use one of the following methods:
-
rladmin tune cluster default_shards_placement { dense | sparse }
-
Update cluster policy REST API request:
PUT /v1/cluster/policy { "default_shards_placement": "dense | sparse" }
Proxy policies
Redis Enterprise Software uses proxies to manage and optimize access to database shards. Each node in the cluster runs a single proxy process, which can be active (receives incoming traffic) or passive (waits for failovers).
Configure the following default proxy policies to determine which nodes' proxies are active and bound to new databases by default.
Non-sharded proxy policy
To configure the default proxy policy for non-sharded databases, use one of the following methods:
-
rladmin tune cluster default_non_sharded_proxy_policy { single | all-master-shards | all-nodes }
-
Update cluster policy REST API request:
PUT /v1/cluster/policy { "default_non_sharded_proxy_policy": "single | all-master-shards | all-nodes" }
Sharded proxy policy
To configure the default proxy policy for sharded databases, use one of the following methods:
-
rladmin tune cluster default_sharded_proxy_policy { single | all-master-shards | all-nodes }
-
Update cluster policy REST API request:
PUT /v1/cluster/policy { "default_sharded_proxy_policy": "single | all-master-shards | all-nodes" }