mason: expose app instance count and sticky routing - #515
Merged
Conversation
elainewang-db
left a comment
Contributor
There was a problem hiding this comment.
were you able to test this live and deploy updates the apps scaling properly? my claude hit some issues with this, not sure if it was an apps side blocker or my own setup
jamesbxwu
reviewed
Sep 2, 2026
shivam5
force-pushed
the
mason-routing-autoscaling
branch
from
September 4, 2026 03:09
d1b1bf2 to
38ede8e
Compare
shivam5
commented
Sep 4, 2026
elainewang-db
approved these changes
Sep 4, 2026
shivam5
force-pushed
the
mason-routing-autoscaling
branch
from
September 4, 2026 19:24
91ca5ce to
b4ddf54
Compare
shivam5
force-pushed
the
mason-routing-autoscaling
branch
from
September 4, 2026 21:55
b4ddf54 to
1d06ad8
Compare
shivam5
enabled auto-merge (squash)
September 4, 2026 21:56
jamesbxwu
added a commit
that referenced
this pull request
Sep 4, 2026
Reconcile main's #540 agent.toml store-binding model with the UC-only tracing redesign so both stores and tracing are configured via agent.toml (no flags): - Stores: adopt main's model - `mason memory/sessions bind` records bindings in agent.toml; dev/deploy read them via store_bindings and validate they exist (validate_stores). Dropped --memory/--session/--no-create-stores flags and the store-env-into-app.yaml path (stores are read from agent.toml at runtime). - Tracing: keep UC-only via `mason tracing setup` + provision_trace_experiment. Dropped main's --with-traces/--traces-experiment flags and the trace-env branch of the old validator; removed the stale `mason tracing instrument` help example. - agent_project.py: keep both additions - main's memory_store_id and our trace_location/trace_warehouse. - Kept main's #515 --instances deploy feature and #538 UI changes as-is. Co-authored-by: Isaac <no-reply@databricks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--instancestomason deployfor a fixed instance countcompute_min_instancesandcompute_max_instancesvalues required by the Apps API__Host-databricks-app-routerinmason deploy --helpDemo
Stop the local server, then create one instance and update the same deployment to two:
For the sticky-routing API demo, use a workspace-scoped OAuth profile:
The same routing key should return the same session and process instance on every request.
Testing
uv run pytest -q— 306 passeduv run ruff checkuv run ruff format --checkuv run ty checksession_idandinstance_ide2-dogfoodtest on September 4, 2026:--instances 1--instances 22,active_instances=2,compute_status=ACTIVE, andapp_status=RUNNINGe2-dogfoodaccount-routed OAuth token returned HTTP 401 for the App API; use a workspace-scoped OAuth profile for the curl demo above