{
  "schema_version": 2,
  "id": "operate/rs/databases/auto-tiering/quickstart",
  "title": "Auto Tiering quick start",
  "url": "https://redis.io/docs/latest/operate/rs/7.22/databases/auto-tiering/quickstart/",
  "summary": "Get started with Auto Tiering quickly, creating a cluster and database using flash storage.",
  "aliases": ["/operate/rs/7.22/databases/flash/quickstart/"],
  "content": "This page guides you through a quick setup of [Auto Tiering](https://redis.io/docs/latest/operate/rs/databases/auto-tiering) with a single node for testing and demo purposes. \n\nFor production environments, you can find more detailed installation instructions in the [install and setup](https://redis.io/docs/latest/operate/rs/installing-upgrading) section.\n\nThe steps to set up a Redis Enterprise Software cluster using Auto Tiering\nwith a single node are:\n\n1. Install Redis Enterprise Software or run it in a Docker\n    container.\n1. Set up a Redis Enterprise Software cluster with Auto Tiering.\n1. Create a new database with Auto Tiering enabled.\n1. Connect to your new database.\n\n## Before deployment\n\nBefore you set up a flash-enabled cluster and create an Auto Tiering database, consider the following:\n\n- Avoid a large number of keys or long key names. With Auto Tiering, all key names are stored in RAM regardless of whether their values are on flash. High key count alone can exhaust the RAM limit even when individual key names are short.\n\n- Avoid large collection types (hashes, sets, or lists with millions of elements) whose total serialized size approaches or exceeds the RAM limit. Unlike scalar values, large collections cannot be partially offloaded to flash and must fit in RAM when accessed.\n\n- Databases cannot store keys or values larger than 4GB in flash storage. Keys or values larger than 4GB are stored in RAM only. If oversized keys consume the shard's available RAM, the shard can return out-of-memory errors even when flash storage has free space remaining.\n\n## Install Redis Enterprise Software\n\n### Bare metal, VM, Cloud instance\n\nTo install on bare metal, a virtual machine, or an instance:\n\n1. Download the binaries from the [Redis Enterprise download center](https://cloud.redis.io/#/sign-up/software?direct=true).\n\n1. Upload the binaries to a Linux-based operating system.\n\n1. Extract the image:\n\n    ```sh\n    tar -vxf \u003cdownloaded tar file name\u003e\n    ```\n\n1. After the `tar` command completes, you can find a new `install.sh` script in the current directory:\n\n    ```sh\n    sudo ./install.sh -y\n    ```\n\n### Docker-based installation {#dockerbased-installation}\n\nFor testing purposes, you can run a Redis Enterprise Software\nDocker container on Windows, MacOS, and Linux.\n\n```sh\ndocker run -d --cap-add sys_resource --name rp -p 8443:8443 -p 12000:12000 redislabs/redis:latest\n```\n\n## Prepare and format flash memory\n\nAfter you [install Redis Enterprise Software](#install-redis-enterprise-software), use the `prepare_flash` script to prepare and format flash memory:\n\n```sh\nsudo /opt/redislabs/sbin/prepare_flash.sh\n```\n\nThis script finds unformatted disks and mounts them as RAID partitions in `/var/opt/redislabs/flash`.\n\nTo verify the disk configuration, run:\n\n```sh\nsudo lsblk\n```\n\n## Set up a cluster and enable Auto Tiering\n\n1. Direct your browser to `https://localhost:8443` on the host machine to\nsee the Redis Enterprise Software Cluster Manager UI.\n\n    \u003e [!NOTE]\n    \u003e Depending on your browser, you may see a certificate error.\n    \u003e Choose \"continue to the website\" to go to the setup screen.\n\n1. Select **Create new cluster**.\n\n1. Set up account credentials for a cluster administrator, then select **Next** to proceed to cluster setup.\n\n1. Enter your cluster license key if you have one. Otherwise, the cluster uses the trial version.\n\n1. Provide a cluster FQDN such as `mycluster.local`, then select **Next**.\n\n1. In the **Storage configuration** section, turn on the **Enable flash storage** toggle.\n\n1. Select **Create cluster**.\n\n1. Select **OK** to confirm that you are aware of the replacement of the HTTPS TLS\ncertificate on the node, and proceed through the browser warning.\n\n## Create a database\n\nOn the **Databases** screen:\n\n1. Select **Quick database**.\n\n1. Verify **Flash** is selected for **Runs on**.\n\n    ![Create a quick database with Runs on Flash selected.](https://redis.io/docs/latest/images/rs/screenshots/databases/quick-db-flash-7-8-2.png)\n\n1. Enter `12000` for the endpoint **Port** number.\n\n1. _(Optional)_ Select **Full options** to see available alerts.\n\n1. Select **Create**.\n\nYou now have a  database with Auto Tiering enabled!\n\n## Connect to your database\n\nAfter you create the database, you can connect to it and store data. See [Test client connection](https://redis.io/docs/latest/operate/rs/databases/connect/test-client-connectivity) for connection options and examples.\n\n## Next steps\n\nTo see the true performance and scale of Auto Tiering, you must tune your I/O path and set the flash path to the mounted path of SSD or NVMe flash memory as that is what it is designed to run on. For more information, see [Auto Tiering](https://redis.io/docs/latest/operate/rs/databases/auto-tiering).\n",
  "tags": ["docs","operate","rs"],
  "last_updated": "0001-01-01T00:00:00Z"
}
