# 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: 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.
