Repository navigation
feat(scaling): add single-server replicas for apps and services - #1811
Open
Hydralerne wants to merge 4 commits into
Open
Hydralerne wants to merge 4 commits into
Hydralerne wants to merge 4 commits into
Conversation
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
Allow single-server Docker applications and individual Compose services to run multiple instances through the existing Scale → review → deploy flow. Choosing three instances now creates one managed workload with private load balancing, while one instance keeps the ordinary container path.
Motivation
Single-server projects previously had no equivalent to the cluster instance control. Reuse the existing deployment and runtime workflows so changing instance counts does not introduce another environment editor or lifecycle path.
Related issue
None; this feature and its approach were requested directly by the maintainer.
Changes
0233; freeze counts into releases; accept Composescale/deploy.replicasand preserve privateexposeports. Guard writes with organization ownership, active-release and configuration-version checks.Verification
OPENSHIP_DOCKER_TEST_SOCKETand clean up only their unique test project.main: 258 API tests passed, covering scaling, deployment snapshots, Compose review, primary-app materialization and service configuration.replicas: 1column default; after correcting them, the migration-chain suite passed all 13 tests.Operational limits
Changing the count uses workload replacement and can briefly interrupt traffic. All instances share one server's capacity and availability. Docker restart policies handle exited containers; this does not add a scheduler that recreates manually deleted containers or provide host-level failover. Hosted Cloud runtimes retain their existing behavior.