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:
Name - Enter a name for the database. (Up to 40 characters long)
Protocol - Select whether the database uses Redis or Memcached.
Memory - Enter a memory limit for the database. If replication is on, the database limit includes the memory of the slave shards.
Redis on Flash - If your database uses Redis on Flash, enter the average data structure size (in bytes). This helps us optimize your database.
Throughput - In Throughput by, select the definition of throughput as:
- Ops/sec - Enter the required Max Throughput between 1000 and 10000000.
- Shards - Enter the number of Shards you require for the database.
Replication - By default, each shard has a slave shard. If you do not require slave shards, disable replication.
Data Persistence - Select when and how 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.
OSS Cluster API - 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.
Replica Of - 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.
Access Control & Security
- Enable the Default User for the database. We recommend that you use a complex password between 8 and 128 characters, and with at least one uppercase letter (A-Z), one lowercase letter (a-z), one number (0-9), and one special character.
- 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.
Data Eviction Policy - Select a policy for evicting data when the memory limit is reached.
Periodic Backups - Enable backups and specify the database backup location.
Modules - Enable modules and select the module to use with the database.
- For applications that require high-throughput, use a Redis Cloud Pro subscription.
- For RedisGraph, use the sizing calculator to calculate the required resources.
- For RediSearch on a Redis Cloud Pro subscription, enter the estimated number of documents you want to index.
Alert Settings - Select the alerts that you want sent to you and your team when the specified threshold is exceeded.
- Click Activate.
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