> For the complete documentation index, see [llms.txt](https://docs.getmedis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getmedis.com/connect-to-your-database/cluster.md).

# Cluster

Redis Cluster provides a way to run a Redis installation where data is automatically sharded across multiple Redis nodes. A client that connects to a cluster handles command redirections and talks to each node in the cluster directly.

Medis supports Redis Cluster out of the box. To connect to a cluster, fill in the host address and port number of any node in the cluster in the connection settings modal. You can also enable SSL mode and fill in the username and password if they are required.

![](/files/7AnCVi3H5rlIwIlm3a93)

Once connected, Medis will discover other nodes in the cluster automatically and dispatch commands to the correct node by calculating the slot of keys.

## Caveats

At the moment, commands invoked in the command query view will be sent to a random node in the cluster.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getmedis.com/connect-to-your-database/cluster.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
