Skip to content

Releases

v0.17.1

Choose a tag to compare

@github-actions github-actions released this 10 Oct 10:26
70f7a8a

Changed

  • Both images (scalescope and scalescope-sample-workload) are built on
    Python 3.14.8, up from 3.14.7, and the Dockerfiles pin that patch release
    instead of the floating python:3.14-slim tag. No code changes.

v0.17.0

Choose a tag to compare

@github-actions github-actions released this 27 Sep 21:08
f59dcc4

Added

  • Node forecasts. Once a minute ScaleScope reads every node and pod and
    records, per node pool: schedulable nodes, allocatable resources, what
    pods request (pending pods included), DaemonSet overhead per node, and
    each new node's measured start-up time. Pools come from the usual
    managed-cluster labels or SCALESCOPE_NODE_POOL_LABEL.
  • Each pool's requested CPU and memory are forecast for the next hour from
    the workloads' long-memory demand forecasts, moving each workload's pods
    the way they have followed its demand over the last week, whatever
    autoscaler runs it. Nodes needed accounts for DaemonSets and the packing
    the pool actually achieves. Forecasts are scored live against what was
    then requested, next to "same as now". Read-only: nodes are never
    changed.
  • Dashboard Nodes panel (nodes running, needed now and over the next hour,
    idle node-hours in the last day, node start-up time, live accuracy), and
    GET /api/nodes.
  • DEMO mode runs its workload on a simulated node pool scaled by a
    reactive cluster autoscaler, with three weeks of generated node history.
  • scripts/eval_node_forecast.py measures the node forecast.
  • Docs: which signals the forecast models learn from (request rate, else
    total CPU; never memory) and what the others are used for; a "Pods,
    nodes, and cost" section on pairing ScaleScope with a node autoscaler;
    the dependency list; single-replica and node-scaling limitations.

Changed

  • The observer ClusterRole also allows get/list on Nodes. A
    namespace-scoped install cannot read nodes; the Nodes panel says so and
    everything else works as before.
  • Observations record each workload's per-pod memory request and the node
    pool its pods run on.

Fixed

  • Docs caught up with 0.16.x: the README status no longer names an old
    version; the dashboard-fetch diagram includes the learning panel's 60 s
    poll; /healthz documents the history loop; the forecast-model section
    says DEMO now follows a daily and weekly shape (the measurements still use
    the simulator's built-in cycle); the replay endpoint's ranking and the
    "Autoscaling" top-bar item are described as they are; troubleshooting
    quotes the dashboard's current messages.

v0.16.1

Choose a tag to compare

@github-actions github-actions released this 27 Sep 18:16
a15a8a6

Changed

  • Dashboard typography: prose is set in the platform's sans-serif font; the
    bundled DejaVu Sans Mono is kept for values, identifiers, and tables.
    Headings, labels, and table headers are sentence case instead of spaced
    uppercase, on one type scale with one control height.
  • The status line says each thing once: its detail appears only when it adds
    something the recommendation does not (a connection error, stale data, a
    diagnosis). "All good" is a neutral banner; amber and red are tinted.
  • Plain text instead of badges: the mode reads "Demo" or "Observe", the
    version "v0.16.1". The data-connection item is shown only in Observe mode,
    where it can change. Idle placeholders ("no trigger active", "-") are gone;
    replay panels say "Not run yet."
  • "Try it" is now "Load triggers", matching what the buttons do.
  • Colour carries meaning only: orange for adding pods and the busy case,
    blue for interaction, selection, and observed/expected data, traffic-light
    colours for status. Neutral decisions and headlines use the text colour.

Fixed

  • Model comparison rows can be selected from the keyboard (Enter or Space)
    and keep focus across the 3-second refresh; every focusable element has a
    visible focus outline.
  • Replay buttons are no longer inside their headings.
  • While the first long-memory training runs, the learning panel says it is
    training instead of "a day is needed" beside weeks of history.
  • The status square aligns with the headline when the detail wraps; values
    in the facts grid line up when a label wraps; mobile chart time labels no
    longer overlap.

v0.16.0

Choose a tag to compare

@github-actions github-actions released this 27 Sep 14:01
aa7ad5d

Added

  • Long-memory forecasting. Each workload's demand is rolled up into
    minute history kept for SCALESCOPE_HISTORY_RETENTION_DAYS (35), and a
    LightGBM quantile model (scalescope.models.seasonal) learns its daily
    and weekly pattern from up to 28 days of it, retrained every
    SCALESCOPE_RETRAIN_MINUTES (15), forecasting the next
    SCALESCOPE_LONG_HORIZON_MINUTES (60). It improves with monitoring time:
    on realistic synthetic traffic, next-hour error falls from 9.2% with a
    day of history to 5.9% with three weeks, against 11.1% for assuming
    nothing changes (scripts/eval_long_memory.py).
  • Scaling ahead of the pattern. SCALESCOPE_POD_STARTUP_SECONDS (30)
    sets how far ahead pods are started. Scale-ups cover the busiest minute
    either forecast expects within that time; pods the long-memory forecast
    needs back within twice that time are kept. Recommendations report
    anticipated when the learned pattern changed the decision.
  • Live accuracy. Every long-memory forecast is logged and scored against
    what then happened, next to a "same as now" baseline, over the last week.
  • "What it has learned" dashboard panel and
    GET /api/workloads/{name}/learning: history, whether the daily and
    weekly patterns are known, live accuracy, and the last six hours with the
    next hour's forecast.
  • The latency curve is refitted on weeks of minute history, covering quiet
    and busy periods, once a day of it exists.
  • DEMO mode generates 21 days of history at first start (labelled as such
    in the dashboard) and its simulated traffic follows the same daily and
    weekly shape.
  • README: who ScaleScope is for, what it does, and how it learns.

Changed

  • /healthz fails when either background loop (data source or history)
    has stopped.
  • The pod startup lead is SCALESCOPE_POD_STARTUP_SECONDS instead of a
    fixed 15 ticks; the default reproduces it at the default 2s tick.

v0.15.1

Choose a tag to compare

@github-actions github-actions released this 27 Sep 11:17
642e159

Changed

  • Every dependency is on its newest stable release that the rest of the
    stack supports, and pyproject.toml requires those versions, so a fresh
    install or image build cannot resolve anything older: FastAPI 0.141.1,
    Starlette 1.7.0, uvicorn 0.54.0, DuckDB 1.5.5, polars 1.44.2, NumPy
    2.5.3, LightGBM 4.7.0, statsforecast 2.1.1, mlforecast 1.1.0,
    Kubernetes client 36.0.3, urllib3 2.8.0; pytest 9.1.1, ruff 0.16.9,
    black 26.5.1, mypy 2.3.1. requirements-lock.txt pins the full
    resolution CI installs (statsmodels 0.15, SQLAlchemy 2.1, optuna 5 among
    the transitive updates).
  • pandas stays on 2.3.3: statsforecast 2.1 and mlforecast 1.1 declare
    pandas<3. The forecasts and replay scores were checked identical on
    both pandas lines before choosing the newest forecasting libraries.
  • GitHub Actions on their latest majors (checkout v7, setup-python v7,
    Docker login/setup v4, metadata v6, build-push v7), all on Node 24.
  • The sample workload requires FastAPI 0.141.1, uvicorn 0.54.0, and
    prometheus-client 0.26.0.

v0.15.0

Choose a tag to compare

@github-actions github-actions released this 27 Sep 10:42
851e1bb

Added

  • Open-source project files: CONTRIBUTING.md (setup, checks, layout,
    release process), SECURITY.md (private vulnerability reporting and the
    trust boundaries), CODE_OF_CONDUCT.md (Contributor Covenant 2.1), issue
    and pull request templates, and CODEOWNERS.
  • Automated releases: merging a version bump to main tags v<version>,
    creates the GitHub Release from that version's section of this file
    (scripts/release_notes.py), and publishes the <version> and latest
    images. tests/test_release.py fails if the version in pyproject.toml,
    this file, the Kubernetes manifests, and the install commands disagree.
  • Images carry SBOM and provenance attestations.
  • CodeQL scanning (Python, JavaScript, workflows) and weekly Dependabot
    updates for Python, Docker, and GitHub Actions.
  • Package metadata: project URLs, classifiers, keywords.

Changed

  • NOTICE lists the vendored Chart.js alongside DejaVu Sans Mono.
  • Local development uses SCALESCOPE_DB_PATH=./scalescope.duckdb and the
    lock file, matching CI.

Note

0.14.0 and 0.14.1 were merged but never tagged, so no images were published
for them; 0.15.0 is the first release that includes their changes.

ScaleScope 0.14.1

Choose a tag to compare

@jsawyerdev jsawyerdev released this 26 Sep 21:10
4bbd8a1

Fixed

  • /healthz returns 503 once the data-source loop has stopped (the
    Kubernetes client could not be created at startup, or the loop crashed),
    so the kubelet restarts the pod. It previously kept answering 200, leaving
    a pod that collected nothing and never restarted.
  • The memory-leak diagnosis judges "flat" against the workload's demand
    signal. Workloads without request metrics report a request rate of 0,
    which always read as flat, so memory growing with CPU load was diagnosed
    as a leak and blocked actuation.
  • Switching workloads clears the replay panels, and responses for a
    workload no longer selected are discarded instead of rendered.
  • Baseline forecasts never go below 0, so p10 can no longer exceed p50.
  • Several Prometheus series for one pod (one per container, say) are
    combined by each signal's rule; latencies and ratios were summed.
  • The sample workload's /trigger?kind=memory releases its memory when the
    trigger ends; only the scheduled leak phase did.
  • scripts/tune tunes on the series the app forecasts (total CPU when a
    workload has no request rate), not always on request rate.

Changed

  • The sample workload image runs Python 3.14, the version it is tested on.
  • starlette and urllib3, imported directly, are declared dependencies.
  • Removed stale mypy overrides for packages that ship type information, an
    unused element id, and outdated comments and docstrings.

ScaleScope 0.14.0

Choose a tag to compare

@jsawyerdev jsawyerdev released this 26 Sep 21:10
36fe7cc

Added

  • Performance model (scalescope.performance): each workload's p95
    latency is fitted as a queueing curve, p95(x) = B + c / (mu - x) over
    load per pod, and pods are sized so the planned load keeps p95 at
    SCALESCOPE_LATENCY_SLO_MS (default: twice the no-load latency). The fit
    is deterministic (grid over mu, exact least squares on relative error),
    robust to incidents (least trimmed squares), used only when the data
    identify it, and never plans past the highest load seen meeting the
    target. Capacity resolution is now configured → latency model → CPU
    estimate; recommendations report the model (latency_model) and the
    effective target_utilization.
  • Scaling replay: GET /api/workloads/{name}/scaling-replay and a
    dashboard panel replay a workload's recorded demand through ScaleScope
    and a reactive HPA (300s scale-down stabilization) with the same capacity
    and pod start-up delay, and report time short of pods, average pods, and
    scale changes. Capacity is taken from the first third of the history only.
  • Prometheus now also supplies per-pod CPU throttling (cAdvisor), p95
    latency, and error rate for every workload
    (SCALESCOPE_PROMETHEUS_THROTTLING_QUERY, _LATENCY_QUERY,
    _ERROR_RATE_QUERY; empty skips a signal). Previously throttling was
    always 0 in OBSERVE mode and latency/errors came only from the primary
    target's metrics URL.

Changed

  • The simulator's latency follows the M/M/1 queueing shape, so DEMO mode
    exercises the performance model.
  • README: removed the internal "Concurrency and consistency" section, added
    "Performance model" and "Scaling replay" with measured results, and
    rewrote "Known limitations".

ScaleScope 0.13.0

Choose a tag to compare

@jsawyerdev jsawyerdev released this 26 Sep 18:36
6d7dfd8

Changed

  • The dashboard leads with the answer: a traffic-light status (is anything
    wrong?), a plain-language recommendation ("Add 1 pod now: 14 → 15") with
    its reason and the four numbers behind it, and a demand chart over a pod
    strip (running now vs needed for the busy case). Statistical terms moved to
    tooltips; model comparison, replay, raw data, and cluster identity moved
    under a collapsed "Engineering details". Light theme, straight lines,
    blues with orange for the busy case.
  • The dashboard defaults to the model actuation uses (auto_ets), from one
    shared registry (scalescope.models.registry), so it shows exactly what
    the autoscaler would do; it previously defaulted to ewma, which could
    disagree with actuation.
  • Recommendations report hold_reason (why the count is held),
    pods_needed per forecast step, startup_lead_steps, and
    target_utilization; /api/source reports actuation_model.
  • The chart shows three forecast horizons of history, so the forecast gets a
    readable share of the axis, and no longer refetches every other model's
    forecast every 12 seconds.
  • Chart.js 4.5.1 is vendored (byte-identical to the previously pinned CDN
    file), so the dashboard works on clusters without internet access.

ScaleScope 0.12.0

Choose a tag to compare

@jsawyerdev jsawyerdev released this 26 Sep 18:18
6a0f229

Added

  • Deploy to any cluster: kubectl apply -k k8s/scalescope installs the
    published multi-arch (amd64/arm64) ghcr.io/jsawyerdev/scalescope image;
    .github/workflows/image.yml publishes it and the sample workload image,
    and .github/workflows/ci.yml runs format, lint, type, test, shellcheck
    and script checks on every pull request.
  • Workloads without request metrics are forecast on their total CPU
    (metrics-server) and sized against their pods' CPU request, so every
    Deployment gets a recommendation with no Prometheus and no
    instrumentation. Responses report demand_signal.
  • Optional per-pod request rates from one Prometheus instant query per tick
    (SCALESCOPE_PROMETHEUS_URL, SCALESCOPE_PROMETHEUS_RPS_QUERY), attributed
    to Deployments through their label selectors.
  • Per-pod capacity is configured (SCALESCOPE_CAPACITY_PER_POD_RPS),
    estimated per workload from request-rate and CPU history, or the CPU
    request; responses report capacity_per_pod and capacity_source, and an
    unknown capacity holds replicas instead of guessing.
  • SCALESCOPE_MIN_REPLICAS, SCALESCOPE_MAX_REPLICAS,
    SCALESCOPE_TARGET_UTILIZATION, SCALESCOPE_RETENTION_HOURS, and
    SCALESCOPE_SCALE_DOWN_STABILIZATION_SECONDS (actuation, default 0).
  • The replay lab scores the p90 forecast that sizes replicas (pinball loss
    and coverage), ranks models by it, and backtests 10 anchors instead of 5.

Changed

  • Scaling is asymmetric: scale up for the p90 peak within the pod startup
    lead, scale down only when the whole horizon's p90 fits in fewer pods.
    Offline on DEMO demand this cut scale-direction reversals 5-7x for about
    2% more pods (see README "Scaling policy").

  • Recommendations and actuation plan from spec.replicas; status.replicas
    lags a scale write and made actuation repeat a step instead of taking the
    next one.

  • Collection lists Pods and PodMetrics once per namespace instead of three
    API calls per Deployment.

  • Observations are pruned after 24 hours by default; the forecast cache is
    a bounded LRU; store writes run off the event loop.

  • The default minimum replica count is 1 (was a fixed 3), and the simulator's
    220 req/s per pod is no longer used to size real workloads.

  • Manifests use the published images instead of a private registry.

  • Actuation RBAC grants only patch on deployments/scale; the unused
    update verb was removed.

  • The Docker builder stage no longer sets PYTHONOPTIMIZE, which made pip
    precompile only bytecode the runtime stage never loads; unused builder-only
    TZ/PYTHONHASHSEED settings and setuptools/wheel upgrades were
    removed.

  • Removed unreachable code paths: the 409 "no observations yet" responses
    (an unknown workload is exactly one with no observations, still 404),
    unsupported-mode branches, and a dead capacity guard.

  • Replay constants are shared between the API and scripts/tune, and
    diagnosis window/threshold literals are named constants.

  • scripts/rebuild.sh runs the configured mypy gate alongside formatting,
    lint, and tests.

  • scripts/rebuild.sh passes Basic Auth credentials to its smoke-test curls
    on stdin instead of the command line, keeping them out of ps.

Fixed

  • auto_ets no longer passes seasonal periods over 24 to StatsForecast's
    ETS, which silently skips every seasonal model above 24 after trying them:
    identical forecasts, about 100x faster (a full recommendation went from
    ~4.5s to ~0.5s).

  • HTTP Basic Auth no longer returns a 500 for non-ASCII usernames or
    passwords, and always compares both fields so response timing does not
    reveal whether the username alone was correct.

  • Observation timestamps are stored as UTC regardless of the host timezone;
    previously DuckDB converted them to local wall-clock time on non-UTC hosts,
    shifting the API's ts values and the dashboard's freshness indicator.

  • seasonal_naive now repeats the last cycle of the period detected in the
    workload's own history. It previously used a fixed 150-tick lag, half the
    simulator's 300-tick cycle, so it forecast the daily pattern inverted.

  • OBSERVE mode drops NaN/Inf Prometheus gauge values instead of storing
    them, which previously broke every recommendation for that workload.

  • OBSERVE mode parses every Kubernetes quantity suffix (k, P, E, Pi,
    Ei, ...) and reports malformed pod metrics as a per-target collection
    error instead of stopping the observe loop.

  • The diagnosis engine measures memory growth per tick (over the window's
    steps, not its row count), matching the MB/tick threshold it reports.

  • SCALESCOPE_TICK_SECONDS must be finite; nan/inf previously passed
    validation and stopped or stalled the data loop.

  • DEMO load triggers reject workloads the simulator does not drive, and
    OBSERVE triggers no longer let the workload's JSON reply overwrite
    ScaleScope's own workload/kind/duration_seconds/target fields.

  • The dashboard retries its initial workload load after a connection error
    instead of staying blank.

  • scripts/generate-observer-kubeconfig.sh creates the kubeconfig
    owner-only from the start instead of briefly exposing the token under the
    default umask.

  • The dashboard's actuation row is hidden outside actuation mode as its
    tooltip promises (component CSS was overriding the hidden attribute),
    and the chart uses the bundled DejaVu Sans Mono font like the rest of the
    page.

  • Baseline forecasts from a single observation get the same 1.0 minimum
    band as every other history instead of a zero-width one.