Skip to content

[HWORKS-3322] Improve statistics computation performance - #727

Open
javierdlrm wants to merge 5 commits into
logicalclocks:mainfrom
javierdlrm:HWORKS-3322
Open

javierdlrm wants to merge 5 commits into
logicalclocks:mainfrom
javierdlrm:HWORKS-3322

Conversation

@javierdlrm

@javierdlrm javierdlrm commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

https://hopsworks.atlassian.net/browse/HWORKS-3322

Docs side of logicalclocks/hopsworks-helm#2459 (with logicalclocks/hopsworks-ee#3423 and logicalclocks/hopsworks-api#1233). Since HWORKS-3580 the chart ships no upgrade notes, so the operator-facing part of that chart change is documented here. Per the chart's rule, this PR merges no later than the chart PR.

Upgrade guide, 5.2.x to 5.3.x: a "Statistics defaults" subsection, listed in the overview table. It covers:

  • feature_monitoring_max_num_features rising from 15 to 32 on every upgrade, since the chart rewrites its variables from the values file, and how to keep 15;
  • the statistics settings added in 5.3 (statistics_job_* sizing, statistics_retention_rows_per_entity, statistics_incremental_enabled, statistics_incremental_allowed, statistics_incremental_full_profile_every) defaulting to the previous behaviour;
  • the rollout window, during which a worker still on 5.2 returns statistics computed meanwhile without histograms, correlations and KLL sketches, since 5.3 stores those of up to 32 features in one file, and what to check for feature monitoring runs from that period;
  • an admin-page change to any of them lasting only until the next upgrade.

Configuration reference: regenerated with hopsworks-docs gen-config-vars against the hopsworks-ee branch of #3423, so it carries the nine new keys, the new default of feature_monitoring_max_num_features, and enable_hopsworks_storage_connectors (HWORKS-3385, merged since the last regeneration).

hopsworks-docs markdownlint and hopsworks-docs check (strict build) pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01P72vZ9McYSW2wbdTKyE5mZ

Review round of 2026-11-20

The kube_img_pull_policy bullet is gone, since logicalclocks/hopsworks-helm#2459 no longer seeds it, and the section describes the rollout window of the extended statistics file format. hopsworks-docs markdownlint and hopsworks-docs check (strict build) pass.

Local review of 2026-11-20

The statistics settings bullets say how the statistics_job_* settings apply to existing jobs: memory and cores are floors, statistics_job_max_executors is a cap, and statistics_job_bytes_per_executor sets the job's maximum executors before each ingestion statistics run. hopsworks-docs markdownlint and hopsworks-docs check (strict build) pass.

Merge of 2026-11-23

main merged into this branch (a merge commit, no rebase) with no conflict. hopsworks-docs markdownlint and the strict build pass, and the generated configuration reference is unchanged.

@robzor92 robzor92 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Cross-repository adversarial review completed against this head and the companion backend, SDK and chart changes.

Reviewed the statistics-variable defaults and upgrade wording against the implementation and chart. No standalone correctness/performance finding in these documentation changes. The backend review identifies a rolling-upgrade/rollback compatibility problem in the new percentile encoding; once the rollout approach is corrected, align the upgrade instructions with that procedure.

No live deployment or upgrade rehearsal was performed.

https://hopsworks.atlassian.net/browse/HWORKS-3322

The hopsworks-helm change for this ticket seeds nine statistics
variables and raises feature_monitoring_max_num_features from 15 to 32.
The chart no longer ships upgrade notes since HWORKS-3580, so the
operator-facing part of that change is documented here.

logicalclocks.github.io: the 5.2.x to 5.3.x section of the upgrade
guide gains a "Statistics defaults" subsection, listed in the overview
table. It states the raised feature monitoring limit and how to keep
the old one, that the statistics job sizing, retention and incremental
settings added in 5.3 default to the previous behaviour, that
kube_img_pull_policy is now seeded by the chart, and that an admin-page
change to any of them lasts only until the next upgrade. The
configuration reference is regenerated from the hopsworks-ee branch, so
it carries the new keys, the new default of
feature_monitoring_max_num_features and
enable_hopsworks_storage_connectors, merged since the last run.

Signed-off-by: Javier de la Rúa Martínez <javier@logicalclocks.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P72vZ9McYSW2wbdTKyE5mZ
javierdlrm and others added 4 commits November 20, 2026 08:39
https://hopsworks.atlassian.net/browse/HWORKS-3322

The statistics defaults section of the 5.2.x to 5.3.x upgrade no longer
lists kube_img_pull_policy: the chart no longer seeds it, so an upgrade
leaves its value as it was.

Signed-off-by: Javier de la Rúa Martínez <javier@logicalclocks.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
https://hopsworks.atlassian.net/browse/HWORKS-3322

The statistics defaults section of the 5.2.x to 5.3.x upgrade says that
5.3 stores the extended statistics of up to 32 features per file, which
5.2 cannot read, so while the workers roll a 5.2 worker returns the
statistics computed meanwhile without histograms, correlations and KLL
sketches, and feature monitoring runs that finish during the rollout
should be checked and rerun if they report a shift.

Signed-off-by: Javier de la Rúa Martínez <javier@logicalclocks.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
https://hopsworks.atlassian.net/browse/HWORKS-3322

The upgrade notes say how the statistics job settings apply to existing
jobs: memory and cores are floors, statistics_job_max_executors is a
cap, and statistics_job_bytes_per_executor sets the job's maximum
executors before each ingestion statistics run.

Signed-off-by: Javier de la Rúa Martínez <javier@logicalclocks.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DAxzFyApCPywFQBnnibSp4
https://hopsworks.atlassian.net/browse/HWORKS-3322

Merge upstream/main into the branch so the pull request is current with
the site it targets. No conflicts.

Signed-off-by: Javier de la Rúa Martínez <javier@logicalclocks.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

2 participants