Create and manage databases
Create a Redis or Redis Terra database, change its size, monitor it, and connect to it.
Create a database from the quick create dialog, or customize its cloud, region, network, and capacity first. After it's created, you can rename it, resize it, watch its metrics, and connect to it.
Create a database
Quick create picks a cloud, region, and network for you. If your account has no network in that region yet, the console creates one.
- In the Ultra console, select Databases > New database. If your account has no resources yet, you can also select Create Redis or Create Redis Terra on the Overview page.
- Select a Project. The account's default project is selected for you.
- Enter a Database name.
- Under Type, select Redis or Redis Terra. If you started from a Create Redis or Create Redis Terra button, the type is already set.
- Review the summary: dataset size, performance, replicas, cloud and region, network, and estimated price.
- Select Create Redis or Create Redis Terra.
During the preview, your account gets one free database, and you don't need a payment method to create it. Redis notifies you before billing starts.
The database moves through Configuring network, Provisioning database, and Database ready.
Customize settings
To choose the cloud, region, network, and capacity yourself, select Customize settings in the quick create dialog. To leave the create page, select Back.
The full create page has these sections:
- Cloud configuration: the Database name, Project, Cloud vendor, and Region. The console lists only the clouds and regions available to your account.
- Network: select Use existing to place the database on a network you already have in the region, or Create new to create one. See Create a network for the Network name and Deployment CIDR rules.
- Database type: the Type, then the Memory architecture: In-memory or Flex (tiered memory).
- Capacity: the Dataset size, the Performance tier, the Search workers per shard, and the Replicas.
- Advanced settings: the clustering mode, shard count, and availability zones.
| Setting | Values |
|---|---|
| Dataset size | 1 GiB to 10 GiB for in-memory databases, and 1 GiB to 100 GiB for Flex. Defaults: 1 GiB for Redis, 10 GiB for Redis Terra. |
| Performance tier | Standard (10% RAM), Enhanced (20% RAM), or Extreme (40% RAM). Flex only. In-memory databases use Enhanced. |
| Search workers per shard | Default, 2, 4, 6, 8, 16, or 24. More workers raise query throughput for Redis Search. |
| Replicas | 1 for Redis and 2 for Redis Terra. You can't change it. |
| Clustering mode | Redis Cluster. Non-clustered isn't available. |
| Shards count | Auto. |
| Availability zones | Single zone. Multi-AZ isn't available. |
The Total resources card shows the RAM, vCPU, connections, and bandwidth that the settings give you. The Total price is an estimate. During the preview, it shows $0.
Select Create database.
View your databases
The Databases page lists the databases in the project selected in the Project menu at the top of the console. To see another project's databases, select it from that menu.
Select Cards or Table to change the view, and use Search databases to find a database. Each database's menu has Connect, Edit, and Delete database.
Change a database
You can change a database's name and dataset size. You can't change its type, memory architecture, performance tier, search workers per shard, replicas, availability zones, or advanced settings after creation.
- Select Databases, then select the database.
- Select the Configuration tab.
- To rename the database, select Edit database name.
- Change the Dataset size. The price card shows the current price, the new price, and the difference. If you make the database smaller than its saved size, make sure the new size can hold your current data.
- Select Save changes, or select Discard to keep the current settings.
You can't edit a database while it's provisioning, updating, or deleting.
Monitor a database
The Metrics tab charts the database's activity. Select a time range of 1 hour, 6 hours, 24 hours, or 7 days. While Auto-refresh is on, the charts refresh every 30 seconds.
| Section | Redis | Redis Terra |
|---|---|---|
| Effectiveness | Yes | No |
| Performance | Yes | Yes |
| Capacity | Yes | Yes |
| Availability | No | Yes |
| Resources | Yes | Yes |
Both types chart command latency, operations, memory utilization, evictions, CPU utilization, and connected clients. Redis also charts total keys and expired keys. Redis Terra also charts used memory, network throughput, and replication lag, health, and traffic.
Metrics appear after the database is ready to report them.
Connect to a database
Select Connect in the database header, or from the database's menu on the Databases page. Connect is available once the database's endpoint is ready.
The Connect to dialog shows the database's Connection string and has these tabs:
- Endpoints: the database's endpoint, to copy into your application.
- Clients: code snippets for Node.js (node-redis), Python (redis-py), Go (go-redis), and .NET (StackExchange).
- Terminal: a Redis CLI (
redis-cli) command that connects to the database. - Coding agents: a command that adds the database's connection to your project and gives your coding agents Redis skills. Select Simulate to see which files change, or Execute to change them.
Select Done to close the dialog.
The database's Connectivity tab shows its Endpoint and its Network. The endpoint stays the same through resizes and failover, and appears once the database is active. Select Manage network to open the network on the Networking page.
If you reach the database from your own virtual private cloud (VPC), the Connectivity tab also shows:
- Prometheus endpoint: the address for scraping the database's metrics with Prometheus.
- Private DNS hosted-zone ID: on AWS, the Route 53 private hosted zone that resolves the endpoint. You associate it with your VPC when you set up VPC peering.
Delete a database
Deleting a database can't be undone.
- Select Databases, then select the database.
- Select the Security tab.
- Under Danger zone, select Delete this database.
- Type the database name to confirm, then select Delete.
You can also select Delete database from the menu in the database header.