---
title: "Cluster Conditions - Pilot Docs"
description: "One server-side list of what is wrong with the cluster, read by the web UI, the REST API, MCP and the assistant"
url: "https://docs.calinora.io/features/conditions/"
---

# Cluster Conditions

Pilot keeps one list of the conditions that hold on the cluster right now: states of Kafka, of Pilot’s operations, of [HA mode](https://docs.calinora.io/deployment/high-availability/), of the observations Pilot works from and of the license. The [web UI](https://docs.calinora.io/features/conditions/#conditions-in-the-web-ui), the REST API, the MCP tool `get_cluster_conditions` and the assistant read the same list, so all four give the same answer to “what is wrong?”. Reading the list needs no license.

## What a Condition Is

A condition is one state that holds now, such as offline partitions, a broker in maintenance or a failed rolling restart. Pilot evaluates the conditions from state it has already collected: the health monitor’s partition counts and broker availability, the rack assessment, the HA status, the last rolling restart, the connected agents and the license. Evaluating them sends no request to Kafka.

Each condition carries these fields; the [OpenAPI reference](https://calinora.io/products/pilot/api-docs.html) has the full schema.

| Field | Content |
| - | - |
| `id` | One occurrence of the condition. A condition that returns after it resolved gets a new `id` |
| `code` | What kind of condition it is; see [Codes](https://docs.calinora.io/features/conditions/#codes) |
| `severity` | `critical`, `warning` or `info`; see [Severity](https://docs.calinora.io/features/conditions/#severity) |
| `source` | What the condition describes: `kafka`, `operations`, `pilot`, `evidence` or `license`. Pilot raises no condition with `client`: it marks the [conditions the browser adds](https://docs.calinora.io/features/conditions/#conditions-the-browser-adds) in the web UI |
| `state` | `active`, `resolving` or `resolved`; see [Raising and Clearing](https://docs.calinora.io/features/conditions/#raising-and-clearing) |
| `title`, `shortLabel` | One sentence and a short label. Both are stable: counts and times are in their own fields |
| `detail` | Optional. One sentence on the cause |
| `count`, `countUnit` | Optional. How many objects the condition covers and what they are, for example `3` and `partitions` |
| `entity` | Optional. The object the condition is about: `type` (`broker` or `operation`) and `id` |
| `since` | When the condition first matched |
| `lastSeen` | The last evaluation at which it matched |
| `resolvedAt` | Resolved conditions only: when it stopped matching |
| `flapCount`, `intermittent` | How often it returned while it was clearing, and whether it keeps returning; see [Flapping](https://docs.calinora.io/features/conditions/#flapping) |
| `stale` | `true` while the state behind it cannot be read; see [Stale Conditions](https://docs.calinora.io/features/conditions/#stale-conditions) |
| `links` | Paths in Pilot’s web UI that show the affected objects, each with a `label` and an `href` |
| `actions` | Requests that end the condition, each with `id`, `label`, `method` and `path`. Only a [rolling restart outcome](https://docs.calinora.io/features/conditions/#rolling-restart-outcomes) has one |
| `ackable` | `false` for a critical condition, `true` otherwise |

### The List

Every surface returns the same list object:

```json
{
  "generatedAt": "2026-11-12T09:31:10Z",
  "revision": "5d0c9e41-17",
  "scope": { "kafka": "current" },
  "counts": { "critical": 0, "warning": 1, "info": 0 },
  "worstSeverity": "warning",
  "total": 1,
  "truncated": false,
  "conditions": [
    {
      "id": "kafka.broker.maintenance_under_replicated:3@1794475200000",
      "code": "kafka.broker.maintenance_under_replicated:3",
      "severity": "warning",
      "source": "kafka",
      "state": "active",
      "title": "Partitions are under-replicated while broker 3 is in maintenance.",
      "shortLabel": "URP from broker 3",
      "detail": "Its replicas stay out of sync until it returns.",
      "count": 12,
      "countUnit": "partitions",
      "entity": { "type": "broker", "id": "3" },
      "since": "2026-11-12T09:20:00Z",
      "lastSeen": "2026-11-12T09:31:00Z",
      "flapCount": 0,
      "intermittent": false,
      "stale": false,
      "links": [{ "label": "Open broker 3", "href": "/brokers/3" }],
      "actions": [],
      "ackable": true
    }
  ]
}
```

| Field | Content |
| - | - |
| `conditions` | The active and resolving conditions, ordered by source (`kafka`, `operations`, `pilot`, `evidence`, `license`), then severity, worst first, then age, oldest first, then code |
| `resolved` | Only with `includeResolved`: the resolved conditions of the [history](https://docs.calinora.io/features/conditions/#history), newest first |
| `counts`, `worstSeverity`, `total` | Cover every active and resolving condition, whatever a severity filter or `limit` leaves out. `worstSeverity` is `null` when there is none |
| `truncated` | `true` when `limit` cut `conditions` |
| `scope.kafka` | Whether the Kafka observation behind the list is `current`, `stale` or `unavailable`. A list without critical or warning conditions reports nothing wrong only while it is `current` |
| `revision` | Changes whenever the list, its history or `scope` changes in anything but a condition’s `lastSeen`. A Pilot restart and an HA failover start a new series |
| `generatedAt` | When the list was answered |

## Severity

| Severity | Meaning |
| - | - |
| `critical` | Kafka availability is at risk: offline partitions, an unhealthy controller, a majority of brokers unavailable, or an offline broker outside maintenance that holds replicas |
| `warning` | Needs attention, while Kafka keeps serving |
| `info` | Context, not a fault |

- A broker in [maintenance](https://docs.calinora.io/features/maintenance-mode/) is `info`, never an outage, also while it is stopped, and it does not count toward the majority of unavailable brokers.
- Under-replication that a stopped broker in maintenance causes is one `warning` that names the broker.
- Under-replication caused only by running reassignments, whose new replicas are still copying, is `info`, not a warning.
- An offline broker that holds no replicas is `info`. One whose replica count is unknown stays `critical`.

## Raising and Clearing

The conditions are evaluated with each health check of the cluster, about every 30 seconds. What one health check observed counts as one evaluation, however often Pilot looks at it; the license, the HA status and a rolling restart’s outcome are read at every evaluation.

**Raising**

- A `critical` condition shows at the first evaluation at which it matches.
- A `warning` or `info` condition shows once it matched at two consecutive evaluations. A failed or cancelled rolling restart shows at once.
- An `evidence` condition shows once it has held for 60 seconds. Partition health counts as not current once no health check has read the partitions for 90 seconds, so `evidence.kafka.health` shows about 150 seconds after the last read.
- `since` is the time of the first match, not the time the condition began to show.

**Clearing**

- A condition that stops matching turns `resolving` and is held in the list for 60 seconds.
- Then it turns `resolved`, with `resolvedAt` set to the time it stopped matching, and moves to the [history](https://docs.calinora.io/features/conditions/#history).
- A [rolling restart outcome](https://docs.calinora.io/features/conditions/#rolling-restart-outcomes) that is dismissed resolves at once.

### Flapping

A `resolving` condition that matches again turns `active` and keeps its `id` and `since`; `flapCount` counts each return. Three returns within 15 minutes set `intermittent` to `true` and stretch the time the condition is held as `resolving` to 5 minutes. `intermittent` returns to `false` once fewer than three returns lie within the last 15 minutes.

### Stale Conditions

When the state behind a condition cannot be read, Pilot neither raises nor resolves conditions from it. The conditions it showed stay as they were, with `stale` set to `true`, until the state can be read again. For partition health, broker availability and the rack assessment an `evidence` condition then names the state that is not current and says why, and `scope.kafka` of the list reports `stale` or `unavailable` for the first two. `kafka.partitions.below_min_isr` has its own source, the partition samples: while they are missing it stays `stale` without an evidence condition, and it resolves once no partition is under-replicated.

### History

Resolved conditions are kept for 24 hours, the newest 500 at most. Request them with `includeResolved`.

## Reading the List

### REST API

| Method | Path | Description | License |
| - | - | - | - |
| `GET` | `/api/v1/conditions` | The conditions list | No |

| Parameter | Default | Description |
| - | - | - |
| `includeResolved` | `false` | Also return the resolved conditions under `resolved` |
| `limit` | `100` | Maximum number of conditions returned, up to `500`; it applies to `resolved` as well |

```bash
curl "http://localhost:8080/api/v1/conditions?includeResolved=true&limit=50" \
  -H "Authorization: Bearer pat_your_token_here"
```

The request needs sign-in when authentication is enabled. In HA mode the active replica answers it; a standby refuses it, as it refuses every other read. See the [OpenAPI reference](https://calinora.io/products/pilot/api-docs.html) for the response schema.

### MCP

The read tool `get_cluster_conditions` returns the same list. It takes `includeResolved`, `severity` (`critical`, `warning` or `info`) and `limit` (default 50, maximum 200). See [Limits per Tool](https://docs.calinora.io/features/mcp/#limits-per-tool).

### Assistant

The [assistant](https://docs.calinora.io/features/chat/) receives up to 10 conditions, worst first, with the cluster state Pilot sends it, and a note when more exist. It takes its verdict on the cluster from them and calls `get_cluster_conditions` for the full list.

## Conditions in the Web UI

The web UI reads the list from the [REST API](https://docs.calinora.io/features/conditions/#rest-api) every 10 seconds and shows it in one place: a button in the top bar, a side panel and the **Conditions** page.

A small square mark stands beside the words and repeats what they say: red with a diagonal line for a critical condition, ochre and half filled for a warning, hollow for info. A filled green mark stands for a healthy cluster, a hollow gray one for a verdict that is unknown or still being read.

### Conditions Button

The button in the top bar gives the verdict on the cluster in one line:

| Button | When |
| - | - |
| The short label of the worst open condition, with **+N** for the other open critical and warning conditions | A critical or warning condition is open |
| **Cluster healthy** | No critical or warning condition is open and Pilot’s observation of Kafka is current. Open info conditions show as a count |
| **Status unknown**, with the gray mark | No critical or warning condition is open, and Pilot cannot read Kafka or the browser has read no list |

**Last known** under the label marks a list the browser cannot refresh, or a worst condition from the **Kafka** group while Pilot’s observation of Kafka is not current. Selecting the button opens the conditions panel.

In windows narrower than 1024 px the button shows the mark and the number of open critical and warning conditions. A last known verdict then has the gray mark, and the number keeps the color of the worst condition.

### Conditions Panel

The panel lists the open conditions in fixed groups, in this order: **Kafka**, **Operations**, **Pilot**, **Evidence**, **License** and **This page**. Within a group the worst and then the oldest condition comes first. A row shows the condition’s sentence, its age, its count and these labels:

| Label | Meaning |
| - | - |
| **Clearing** | The condition stopped matching and is `resolving`; see [Raising and Clearing](https://docs.calinora.io/features/conditions/#raising-and-clearing) |
| **Intermittent** | The condition keeps returning; see [Flapping](https://docs.calinora.io/features/conditions/#flapping) |
| **Last known** | The condition is [stale](https://docs.calinora.io/features/conditions/#stale-conditions), or the browser cannot refresh the list |

Expanding a row shows its detail, when it began, how often it returned, its code and links to the pages that show the affected objects. A critical condition opens expanded. The row also carries the actions that apply to it:

| Action | On | Effect |
| - | - | - |
| **Ask Pilot** | Every condition, when the [assistant](https://docs.calinora.io/features/chat/) is enabled | Opens a draft question about the condition in the assistant |
| **Acknowledge** | Warning and info conditions | See [Acknowledging](https://docs.calinora.io/features/conditions/#acknowledging) |
| **Retry** | A read that failed | Runs the read again |
| **Dismiss** | A failed or cancelled rolling restart | Dismisses the [outcome](https://docs.calinora.io/features/conditions/#rolling-restart-outcomes) |
| **Start demo** | **The license has not been started.** | Starts the [demo license](https://docs.calinora.io/reference/licensing/#starting-the-demo) |

While the list is open its order does not change. A condition that ends leaves its row; conditions that arrive collect behind an **N new** button, which adds them to the list.

### Acknowledging

**Acknowledge** takes a condition out of the open conditions of the viewer who selects it.

- The acknowledgement is stored in the browser. It is not sent to Pilot and not shared: other users, other browsers, the REST API, MCP and the assistant still report the condition as open.
- An acknowledged condition no longer counts in the button’s label and **+N**. It moves to the **Acknowledged** group below the list, where **Undo** opens it again.
- The condition is open again when it is raised again, which gives it a new `id`, or when its severity rises.
- A critical condition cannot be acknowledged. Neither can the conditions that say the browser cannot read Pilot.

### Conditions Page

**Conditions** in the **Cluster** section of the sidebar, and in the command palette, opens `/conditions`.

| Tab | Content |
| - | - |
| **Active** | The open and the acknowledged conditions, as in the panel |
| **History** | The conditions that resolved in the last 24 hours, newest first, with source, start, resolution, duration and number of returns; see [History](https://docs.calinora.io/features/conditions/#history) |

The **Source** and **Severity** filters apply to both tabs. The tab and the filters are part of the URL, for example `/conditions?tab=history&source=kafka&severity=warning`.

### Conditions the Browser Adds

The browser adds conditions that Pilot cannot know. They exist only in that browser: the REST API, MCP and the assistant return the server’s conditions only, and the history does not hold them.

| Condition | Group | Raised when |
| - | - | - |
| **This browser is offline.** | Pilot | The browser has no network connection |
| **Pilot cannot be reached.** | Pilot | Three reads of the conditions in a row got no answer from Pilot |
| **No Pilot replica is serving.** | Pilot | [HA mode](https://docs.calinora.io/deployment/high-availability/): no replica serves reads, as during a handover. Info for the first 60 seconds, then a warning |
| **Conditions could not be refreshed.** | Pilot | Pilot answered three reads of the conditions in a row with an error |
| A read of the open page, for example **Replica storage could not be refreshed.** | This page | The read has failed, is partial or has not arrived for more than 60 seconds |

While one of the first three holds, the server’s conditions are the last ones read and carry **Last known**, and the page’s reads are not listed one by one.

The detail of a page read’s condition names what is missing. A partial read names the brokers it lacks, up to five and then a count, with a link to each.

### Data Delayed Chip

A state that the conditions list carries does not show as a banner or an alert box in the page. For a read that the list carries, the page shows at most a **Data delayed** chip. A page whose read fails keeps the last values it read. Once one of its reads has failed, is partial or has not arrived for more than 60 seconds, the page’s header shows the chip. Selecting the chip opens the panel at **This page**, where the read’s row has **Retry**. In windows narrower than 640 px the chip shows the warning mark without the words.

The results of your own actions, such as a change Pilot refused, still show where you triggered them.

These pages have the chip: Overview, Brokers and the page of one broker, Topics and the page of one topic, Proposals and Execution, Consumer groups, Audit log, Automation and Pilot availability.

### Qualifiers and the Plan Gate

Where a page reads a state itself, it marks the value with a short qualifier instead of a box. Once the list holds the matching condition, the qualifier carries its severity and opens it in the panel.

- **Execution**, in [HA mode](https://docs.calinora.io/deployment/high-availability/): the card of a run carries a qualifier for each wait or hold of its operation, such as **Waiting for broker 4** or **Outcome unconfirmed**. An unconfirmed outcome of a request without a card shows the same qualifier beside the tabs. Cancelling stays in the card.
- **Pilot availability**: the status stands in cells, in HA mode with **Request outcomes** and **Escalation**. While the status is not current, one **Last known** qualifier stands beside the **Serving controller** heading.

On **Proposals**, a state that blocks applying a plan disables **Review and apply** at the first read that shows it. When the state is paused changes in HA mode, broker availability that is not current, a license that does not allow changes or a failed read of the proposal, the line at the button shows the condition’s sentence with **View condition**. Until the condition is listed, the line shows one fixed sentence:

| State | Line until the condition is listed |
| - | - |
| Changes paused in HA mode | **Changes are paused on this Pilot.** with the link **Open Pilot availability** |
| Broker availability not current | **Broker availability is not current.** |
| License does not allow changes | **Applying a plan needs a valid license.** with the link **Open license** |
| Failed read of the proposal | **The proposal status is not current.** |

### Overview

The Overview page takes its verdict on Kafka from the open conditions of the **Kafka** group:

| Heading | When |
| - | - |
| **Kafka availability is at risk** | A critical Kafka condition is open |
| **Kafka is available, with warnings** | The worst open Kafka condition is a warning |
| **Kafka is available** | No critical or warning Kafka condition is open |
| **Availability is unknown** | The browser has read no list or cannot refresh it, or Pilot’s observation of Kafka is not current |

Under the heading stands the sentence of the worst Kafka condition, without a count.

The **Conditions** card below has three slots. Open Kafka conditions fill them first, then the other open conditions. Selecting one opens the panel at that condition. When all three slots are full, **+N more** counts the open conditions the card does not show and opens the panel. **No open conditions** stands in the card only when no condition is open.

## Rolling Restart Outcomes

A [rolling restart](https://docs.calinora.io/features/agents/#rolling-restart) that ended `FAILED` or `CANCELLED` leaves a condition until someone dismisses the outcome with `POST /api/v1/rolling-restart/dismiss`, the request the condition names under `actions`, or starts a new restart. A restart that finished leaves none. See [Dismissing an Outcome](https://docs.calinora.io/features/agents/#dismissing-an-outcome).

## History Topic

Pilot keeps the conditions in the Kafka topic `__pilot_conditions`, so the active conditions, with their `since` and `flapCount`, and the 24-hour history survive a Pilot restart and an HA failover.

| Setting | Value |
| - | - |
| Partitions | 1 |
| Replication factor | The brokers’ `default.replication.factor`, as for [`__pilot_broker_state`](https://docs.calinora.io/features/architecture/#state-persistence) in standalone mode |
| `cleanup.policy` | `compact,delete` |
| `retention.ms` | `86400000` (24 hours) |
| `segment.ms` | `3600000` (1 hour) |
| Record key | The condition’s `id` |
| Record value | A JSON record with the condition |

- Pilot creates the topic itself, in standalone and in HA mode, and sets the three topic settings again at each start. It does not change the replication factor of an existing topic.
- A condition that stays open is written again every 6 hours, so the retention does not drop it.
- In HA mode only the active replica writes the topic. It is not one of the topics the installation [enrolls](https://docs.calinora.io/deployment/high-availability/#requirements-and-installation): the binding does not pin it and HA’s replication requirements do not apply to it.
- Pilot’s Kafka principal needs Create, Describe, AlterConfigs, Read and Write on the topic, in HA mode on every replica; see [Kafka ACLs](https://docs.calinora.io/deployment/high-availability/#kafka-acls).
- Pilot runs without the topic. When it cannot create or read it, the list still works and starts empty after a restart or a failover. Pilot reads it again after 30 seconds, then with a pause that doubles up to 5 minutes; when the read answers, the list takes the stored `id`, `since` and `flapCount` of the conditions it still shows and the stored history.

## Codes

A code never changes once it has shipped. It starts with the condition’s source. A code that ends in `:<...>` carries an entity suffix after the colon: the broker ID, the operation ID or the rolling restart’s ID, which `entity` repeats.

### Kafka

| Code | Severity | Raised when |
| - | - | - |
| `kafka.partitions.offline` | `critical` | Partitions have no leader, so producers and consumers cannot use them. `count` is the number of partitions |
| `kafka.controller.unhealthy` | `critical` | No healthy controller answers, or the controller cannot be reached |
| `kafka.brokers.majority_unavailable` | `critical` | A majority of the brokers is unavailable. Brokers in maintenance do not count |
| `kafka.broker.offline:<brokerId>` | `critical`; `info` when the broker holds no replicas | A broker outside maintenance is offline. It carries no `count` |
| `kafka.broker.maintenance:<brokerId>` | `info` | A broker is in maintenance, running or stopped |
| `kafka.broker.maintenance_under_replicated:<brokerId>` | `warning` | Partitions are under-replicated because a broker in maintenance is stopped. `count` is their number |
| `kafka.partitions.under_replicated` | `warning` | Partitions are under-replicated and neither an offline broker nor a reassignment explains it: replicas on online brokers are out of sync. `count` is their number. Also raised, with every under-replicated partition in `count`, while the cause is unknown because Kafka’s reassignment listing is unavailable |
| `kafka.partitions.catching_up` | `info` | Partitions are under-replicated only because new replicas of a running reassignment are still copying. `count` is their number |
| `kafka.partitions.below_min_isr` | `warning` | Partitions are below their `min.insync.replicas`, so producers that wait for all replicas cannot write to them. `count` is their number |
| `kafka.racks.violations` | `warning` | The replicas of some partitions do not spread over enough racks to survive the loss of one; see [Rack Topology](https://docs.calinora.io/features/monitoring/#rack-topology). `count` is the number of partitions |

### Operations

| Code | Severity | Raised when |
| - | - | - |
| `operations.ha.mutations_paused` | `warning` | HA mode: changes are paused on this Pilot. `detail` gives the reason |
| `operations.ha.<hold>:<operationId>` | `warning` | HA mode: an operation is held; `<hold>` is one of the holds below. A hold that names no operation has no suffix |
| `operations.rolling_restart.failed:<restartId>` | `warning` | The last rolling restart failed and its outcome was not dismissed. `detail` gives the error |
| `operations.rolling_restart.cancelled:<restartId>` | `warning` | The last rolling restart was cancelled and its outcome was not dismissed |

| `<hold>` | Meaning |
| - | - |
| `outcome_unconfirmed` | The outcome of an operation is unconfirmed |
| `absent_broker_wait` | An operation waits for absent brokers |
| `identity_hold` | An operation holds rows until Kafka confirms topic identities |
| `leader_wait` | An operation waits for preferred leaders to be in sync |
| `send_hold` | A request has held the send slot for too long |
| `agents_off` | An operation needs the Pilot Agent, which is turned off |

### Pilot

| Code | Severity | Raised when |
| - | - | - |
| `pilot.agents.unmatched` | `info` | [Pilot Agents](https://docs.calinora.io/features/agents/) are connected that match no broker: they report another cluster or a broker ID the cluster does not list. `count` is their number. Its link opens their list at the end of the Brokers page |

### Evidence

| Code | Severity | Raised when |
| - | - | - |
| `evidence.kafka.health` | `warning` | Partition health is not current |
| `evidence.kafka.brokers` | `warning` | Broker availability is not current |
| `evidence.kafka.racks` | `warning` | The rack assessment is incomplete |
| `evidence.ha.topology` | `warning` | HA mode: Kubernetes has not answered for the Pilot replicas |

### License

| Code | Severity | Raised when |
| - | - | - |
| `license.expired` | `warning` | The [license](https://docs.calinora.io/reference/licensing/) has expired |
| `license.invalid` | `warning` | The license is invalid. While its check still waits for the cluster ID, the broker count or the state store, nothing is raised |
| `license.missing` | `info` | No license is loaded; monitoring and proposals work, changes need one |
| `license.start_required` | `info` | The license has not been started |
| `license.trial` | `info` | Pilot runs on a trial license |
