Skip to content

[Helm] Create region config for components in value file #2870

Open
hemanthsavasere wants to merge 28 commits intoapache:mainfrom
hemanthsavasere:2191-region-config-for-components
Open

[Helm] Create region config for components in value file #2870
hemanthsavasere wants to merge 28 commits intoapache:mainfrom
hemanthsavasere:2191-region-config-for-components

Conversation

@hemanthsavasere
Copy link
Contributor

@hemanthsavasere hemanthsavasere commented Mar 14, 2026

Purpose

Linked issue: close #2472

The Fluss Helm chart had hardcoded values for replica counts, liveness/readiness probe settings, and resource limits for both CoordinatorServer and TabletServer. This made it impossible to tune health probe timings or scale components without directly modifying the chart templates.

This PR consolidates all per-component configuration under the existing coordinator and tablet top-level sections in values.yaml, adding replicas, livenessProbe, readinessProbe, and resources fields to each. The StatefulSet templates are updated to reference these configurable values instead of hardcoded constants.

Brief change log

  • helm/values.yaml: Added replicas, livenessProbe, readinessProbe, and resources fields under the existing coordinator and tablet sections. Removed the top-level resources section (which had coordinatorServer/tabletServer sub-keys) in favor of co-locating resource config with each component.
  • helm/templates/sts-coordinator.yaml: Replaced hardcoded replicas: 1 and hardcoded probe settings with references to .Values.coordinator.replicas, .Values.coordinator.livenessProbe.*, .Values.coordinator.readinessProbe.*, and .Values.coordinator.resources.
  • helm/templates/sts-tablet.yaml: Replaced hardcoded replicas: 3 and hardcoded probe settings with references to .Values.tablet.replicas, .Values.tablet.livenessProbe.*, .Values.tablet.readinessProbe.*, and .Values.tablet.resources.

Default values match the previously hardcoded constants, so existing deployments using default values are unaffected.

Tests

  • helm template test ./helm — verifies templates render without errors
  • helm lint ./helm — verifies chart passes linting
  • Manual: helm template test ./helm --set coordinator.replicas=2 --set tablet.replicas=5 to verify custom values are applied correctly

API and Format

No changes to Fluss server API or storage format. This is a Helm chart configuration change only.

Documentation

No new Fluss feature is introduced. The change is self-documenting via the updated values.yaml defaults and comments.

hemanthsavasere and others added 27 commits March 12, 2026 10:54
…#2820)

* [kv] Support dynamic configuration for 'kv.snapshot.interval'

* address yubing's comments
* [helm] Add CI workflow to run Helm tests
…and Array) (apache#2814)

* [fluss-client] Add pojo array to fluss array

* [fluss-client] Add pojo map to fluss map

* [fluss-client] Create shared utilities for POJO type and Fluss type

* [fluss-client] Create shared utilities for Fluss type to Pojo type

* [fluss-client] Add Fluss array to Pojo array

* [fluss-client] Add Fluss map to Pojo map

* [ci] Fix Compile Java 8

* Revert _partial_config.mdx

* [fluss-client] Hanle primitive arrays

* [fluss-client] Refactor PojoMapToFlussMap to follow the same conversion logic as PojoArrayToFlussArray

* [fluss-client] Change validateCompatibility logic for MAP and ARRAY types

* small fixes and add tests to FlussTypedClient

* fix checkstyle

* fix checkstyle

---------

Co-authored-by: ipolyzos <ipolyzos.se@gmail.com>
…cas-number (apache#2837)

* [log] Support dynamic configuration for log.replica.min-in-sync-replicas-number

* [log] SSupport dynamic configuration for log.replica.min-in-sync-replicas-number
* [docs] Update doc in api/java-client about complex type

* Fix ci
…io.tmpdir` is not set. (apache#2859)

Co-authored-by: Junfan Zhang <zhangjunfan@qiyi.com>
…ng `coordinator` and `tablet` top-level sections in `values.yaml`, adding `replicas`, `livenessProbe`, `readinessProbe`, and `resources` fields to each. The StatefulSet templates are updated to reference these configurable values instead of hardcoded constants, as per review comments
@hemanthsavasere hemanthsavasere changed the title 2191 region config for components [Helm] Create region config for components in value file Mar 14, 2026
@nhuantho
Copy link
Contributor

This issue can be solved in #2871 if the idea is approved.

Copy link
Contributor

@affo affo left a comment

Choose a reason for hiding this comment

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

Crazy good work! I like this a lot, thanks for addressing all my comments in 1 go!

@affo
Copy link
Contributor

affo commented Mar 16, 2026

@swuferhong If that's ok for you, I think we can proceed with this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.