Skip to content

Add MinInstancePercentage display to Service view for stateless services#965

Draft
Copilot wants to merge 3 commits intomasterfrom
copilot/add-min-instance-percentage-to-service-view
Draft

Add MinInstancePercentage display to Service view for stateless services#965
Copilot wants to merge 3 commits intomasterfrom
copilot/add-min-instance-percentage-to-service-view

Conversation

Copy link
Contributor

Copilot AI commented Jan 12, 2026

Stateless services expose both MinInstanceCount and MinInstancePercentage for availability guarantees. When upgrades or deactivations get stuck on "EnsureAvailability", only MinInstanceCount was visible in the UI, making it unclear if the percentage constraint was blocking the operation.

Changes

  • UI: Added MinInstancePercentage display to the state info component for stateless services only
  • Types: Added MinInstancePercentage field to IRawPartition interface
  • Tests: Updated e2e tests and fixtures to verify the new field displays correctly for stateless services

Visual Impact

The new field appears below Minimum Instance Count for stateless services only, providing complete visibility into availability constraints. For example, if MinInstanceCount is 1 but MinInstancePercentage is 50% on a 10-node cluster, at least 5 instances must remain available—this is now immediately apparent.

Note: MinInstancePercentage is only applicable to stateless services and is not displayed for self-reconfiguring or stateful services.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add MinInstancePercentage, as we do for MinInstanceCount, to Service view</issue_title>
<issue_description>Is your feature request related to a problem? Please describe.

Stateless services expose a MinInstanceCount and MinInstancePercentage, which are ways of telling SF what service owner thinks is the min capacity of the service to ensure availability. In Service view we expose Min Count, but not min instance percentage. This would be helpful because sometimes upgrades and tenant jobs get stuck on "EnsureAvailability" of a stateless service, because the deactivate would violate one of the two rules. In the case that it is the percentage blocking, it's not obvious to discover that its that aspect of the service, especially when min count is like 1, but min percentage is higher.

Describe the solution you'd like
Add it to the service view. An even better experience would be if something is stuck on EnsureAvailability on the partition, we can point to and say, "Hey, doing this deactivation would take us below the min instance count/percentage"

Additional context
Add any other context or screenshots about the feature request here.
</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: jeffj6123 <15344718+jeffj6123@users.noreply.github.com>
Copilot AI changed the title [WIP] Add MinInstancePercentage to service view Add MinInstancePercentage display to Service view for stateless services Jan 12, 2026
Copilot AI requested a review from jeffj6123 January 12, 2026 20:56
@chensation
Copy link
Collaborator

no sure if this applies to self reconfiguring service, need to verify first

@chensation
Copy link
Collaborator

@copilot MinInstancePercentage only applies to stateless service, please remove it from other instances

Co-authored-by: chensation <32966177+chensation@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 30, 2026

@copilot MinInstancePercentage only applies to stateless service, please remove it from other instances

Corrected in ed1a8fb. MinInstancePercentage now only displays for Stateless services, removed from SelfReconfiguring services.

Fixed Display

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.

Add MinInstancePercentage, as we do for MinInstanceCount, to Service view

3 participants