# Cluster

Cluster is a set of nodes comprising of servers, brokers, controllers and minions.

![Pinot cluster components](https://1240002618-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtH6nl58DdnZnelPdTc%2F-M1c68aqq6AOJfeKiQKl%2F-M1c6a3x65Y6tIAX2eNL%2Fcomponents.jpg?alt=media\&token=1173ac92-6966-40cf-a77b-f0e8c45e71b9)

Pinot uses [Apache Helix](http://helix.apache.org) for cluster management. Helix is a cluster management framework that manages replicated, partitioned resources in a distributed system. Helix uses Zookeeper to store cluster state and metadata.

## Cluster components

Helix divides nodes into logical components based on their responsibilities:

### Participant

The nodes that host distributed, partitioned resources

***Pinot Servers*** are modeled as Participants. For more details about server nodes, see [Server](https://docs.pinot.apache.org/release-0.10.0/basics/components/server).

### Spectator

The nodes that observe the current state of each Participant and use that information to access the resources. Spectators are notified of state changes in the cluster (state of a participant, or that of a partition in a participant).

***Pinot Brokers*** are modeled as Spectators. For more details about broker nodes, see [Broker](https://docs.pinot.apache.org/release-0.10.0/basics/components/broker).

### Controller

The node that observes and controls the Participant nodes. It is responsible for coordinating all transitions in the cluster and ensuring that state constraints are satisfied while maintaining cluster stability.

***Pinot Controllers*** are modeled as Controllers. For more details about controller nodes, see [Controller](https://docs.pinot.apache.org/release-0.10.0/basics/components/controller).

## Logical view

Another way to visualize the cluster is a logical view, where:

* A cluster contains [tenants](https://docs.pinot.apache.org/release-0.10.0/basics/components/tenant)
* Tenants contain [tables](https://docs.pinot.apache.org/release-0.10.0/basics/components/table)
* Tables contain [segments](https://docs.pinot.apache.org/release-0.10.0/basics/components/segment).

![](https://1240002618-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtH6nl58DdnZnelPdTc%2F-M1cGq_K6f87emCw4pkc%2F-M1cHtSieWXlok7s8_HW%2FClusterLogical.jpg?alt=media\&token=5a8dc566-b8a3-4e2c-9f01-b32392ab3e69)

## Setup a Pinot Cluster

Typically, there is only one cluster per environment/data center. There is no need to create multiple Pinot clusters since Pinot supports the concept of [tenants](https://docs.pinot.apache.org/release-0.10.0/basics/components/tenant). At LinkedIn, the largest Pinot cluster consists of 1000+ nodes.

To set up a cluster, see one of the following guides:

* [Running Pinot in Docker](https://docs.pinot.apache.org/release-0.10.0/basics/getting-started/running-pinot-in-docker)
* [Running Pinot locally](https://docs.pinot.apache.org/release-0.10.0/basics/getting-started/running-pinot-locally)


---

# 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.pinot.apache.org/release-0.10.0/basics/components/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.
