Creating a Database
Once you have a subscription, you can easily create a database in Redis Cloud by following these steps:
- In the Redis Cloud menu, click Databases.
- In the subscription where you want to add the database, click .
Configure the database:
- Enter a Database Name that is up to 40 characters long.
- Protocol - Select whether the database uses Redis or Memcached.
- Enter a Memory Limit. Please take in mind that replication is on.
- If your database uses Redis on Flash, enter the average item size(in bytes). This helps us optimaize your database.
- In Throughput by, select the definition of thoughput as:
- Ops/sec - Enter the required Max Throughput between 1000 and 10000000.
- Shards - Enter the number of Shards you require for the database.
- Replication is enabled by default so that each shard has a slave shard. If you do not require slave shards, for example in a caching database, disable replication.
- In Data Persistence, select when the data is saved to persistent storage :
- None - Data is not persisted to disk at all.
- Append Only File (AoF) one second - Data is fsynced to disk every second.
- Snapshot every 1 hour - A snapshot of the database is created every hour.
- Snapshot every 6 hours - A snapshot of the database is created every 6 hours.
- Snapshot every 12 hours - A snapshot of the database is created every 12 hours.
- By default, OSS Cluster API is disabled. You can:
- Enable OSS Cluster API to expose the cluster topology to your application.
- Select Use external endpoint to let clients connect to the OSS cluster API throught the external endpoint.
By default, Replica Of is disabled. You can enable Replica Of and select the endpoint of a database to hold a copy of the data.Note -You must configure VPC Peering between the VPC that this database is on and the VPC that the destination database is on.
In Access Control & Security, you can:
- Set the Redis Password for the database. We recommend that you use a complex password and not leave the password blank.
- Specify the Source IP/Subnet addresses that your database receives traffic from, for example your application server.
- Enable SSL Client Authentication, and either:
- Generate Client Certificate and configure your client to use the generated certificate.
- Paste the certificate for your client. For more information, see Securing Redis Client Connections
Choose a Data Eviction Policy or accept the default. For more information, see Data Eviction Policies.
Enable Periodic Backups and specify the database backup location.
Choose a Module to use with the database. If you select 'RediSearch', enter the estimated number of documents you want to index. If you select 'RedisGraph', calculate the required resources with the sizing calculator.
In Alert Settings, select the alerts that you want sent to you and your team when the specified threshold is passed.
After you click Activate, Redis Cloud:
- Calculates the number of shards needed for this database.
- Calculate if is enough space to fit the database in the current infrastructure or if you must increase the cloud resources.
- Checks that you have enough unused shards in your subscription.
If a new infrastructure needs to be deployed, or more shards need to be purchased, Redis Cloud shows you the additional instances/shards that you need for this database and the cost of the additional resources. You can review this information and approve the additional resources. After you approve, Redis Cloud activates the resources.
When activation is completed, creates the database. During this process you can see:
- An orange spinning icon on the top right to turn to a green checkmark
- The Endpoint of the new database