Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ This is a beta feature for v24.2 and is not recommended for use for production c
```bash
curl -X PUT -d '{"state": "active"}' http://127.0.0.1:9644/v1/features/node_local_core_assignment
```

xref:upgrade:index.adoc[Upgrade to 24.3 or later] to use this feature for production clusters.
====

In Redpanda, every partition replica is assigned to a CPU core on a broker. While Redpanda's default <<partition-replica-balancing,partition balancing>> monitors cluster-level events, such as the addition of new brokers or broker failure to balance partition assignments, it does not account for the distribution of partitions _within_ an individual broker.
Expand All @@ -133,6 +135,8 @@ Prior to Redpanda version 24.2, this meant that some cores on a broker could ina

Starting in v24.2, topic-aware intra-broker partition balancing allows for dynamically reassigning partitions within a broker. Redpanda prioritizes an even distribution of a topic's partition replicas across all cores in a broker. If a broker's core count changes, when the broker starts back up, Redpanda can check partition assignments across the broker's cores and reassign partitions, so that a balanced assignment is maintained across all cores. Redpanda can also check partition assignments when partitions are added to or removed from a broker, and rebalance the remaining partitions between cores.

NOTE: Decreasing the number of CPU cores in a running cluster is supported from v24.2 only, and requires that you enable `node_local_core_assignment` as described in the previous note.

To determine when to use intra-broker partition balancing, use the public metrics for CPU usage described in the xref:manage:monitoring.adoc#cpu-usage[Monitoring] guide.

Configure the following properties to trigger intra-broker partition balancing:
Expand Down
6 changes: 5 additions & 1 deletion modules/manage/pages/kubernetes/k-manage-resources.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ kubectl describe nodes

== Limitations

Redpanda does not support decreasing the CPU cores for brokers in an existing cluster.
Redpanda supports decreasing the CPU cores for brokers in an existing cluster as of version 24.2.

In v24.2, you must enable the `node_local_core_assignment` flag to be able to decrease the core count.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a note that decreasing CPU core count is not supported for production clusters?


In v24.3 or later, decreasing CPU cores is enabled by default.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In v24.3 or later, the `node_local_core_assignment` flag is enabled and decreasing CPU cores is supported for production clusters.

Copy link
Contributor

@JakeSCahill JakeSCahill Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need a separate PR for the beta version of 24.3 docs that removes the limitations section.
We don't expect users to switch off feature flags.

In this PR, all we need is something like this (with links to intra-broker partition balancing and v24.3 docs):

Decreasing the number of CPU cores in a production cluster is not supported in this version of Redpanda. However, you can enable intra-broker partition balancing to reduce CPU cores in a development cluster.

Starting from version 24.3, decreasing the number of CPU cores in a production cluster is supported. Upgrade to version 24.3 or later to access this feature.


[[memory]]
== Configure memory resources
Expand Down