mason: add --min-instances to mason deploy for manual horizontal scaling - #511
Draft
elainewang-db wants to merge 1 commit into
Draft
mason: add --min-instances to mason deploy for manual horizontal scaling#511elainewang-db wants to merge 1 commit into
mason deploy for manual horizontal scaling#511elainewang-db wants to merge 1 commit into
Conversation
elainemwang
force-pushed
the
mason-apps-scaling
branch
from
September 2, 2026 18:45
f1c0979 to
b452551
Compare
…aling Wires `--min-instances` through to Databricks Apps compute scaling. Apps doesn't autoscale yet, so a fixed replica count is set by pinning compute_min_instances == compute_max_instances (the API rejects setting one bound alone). Instance count is create-only: `apps create` sets it, and re-deploying an existing app only proceeds when the requested count matches the running one — otherwise it fails with a clear "delete and recreate to re-scale" message rather than a doomed update-API call. Verified e2e on e2-dogfood: create at 2 instances (app RUNNING, min==max==2), matching-count re-deploy is a no-op, and a mismatched re-scale is rejected before any deploy. Co-authored-by: Isaac <no-reply@databricks.com>
elainemwang
force-pushed
the
mason-apps-scaling
branch
from
September 2, 2026 18:50
b452551 to
9fb9987
Compare
elainewang-db
marked this pull request as draft
September 3, 2026 20:52
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.
Wires
--min-instancesthrough todatabricks appscompute scaling: passed toapps createfor a new app, and applied viaapps updatebefore re-deploying an existing app's source (scaling isn't settable onapps deploy). Apps doesn't autoscale yet, so this is a fixed instance count.