Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm: Add option to deploy Placement with zero replicas #7253

Merged
merged 38 commits into from Jan 11, 2024

Conversation

ItalyPaleAle
Copy link
Contributor

The dapr_placement.scaleZero option passed to Helm causes the Placement StatefulSet to be deployed but with 0 replicas, regardless of the values of dapr_placement.ha or global.ha.enabled.

This is useful in a few niche scenarios, where it's desirable to have the StatefulSet created, but in a "paused" (i.e. scaled to zero) state, to be able to scale it up later.

This is different from setting global.actors.enabled=false, which causes the Placement StatefulSet, and its related Service etc, to not be deployed at all

The `dapr_placement.scaleZero` option passed to Helm causes the Placement StatefulSet to be deployed but with 0 replicas, regardless of the values of `dapr_placement.ha` or `global.ha.enabled`.

This is useful in a few niche scenarios, where it's desirable to have the StatefulSet created, but in a "paused" (i.e. scaled to zero) state, to be able to scale it up later.

> This is different from setting `global.actors.enabled=false`, which causes the Placement StatefulSet, and its related Service etc, to not be deployed at all

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
@ItalyPaleAle ItalyPaleAle requested review from a team as code owners November 29, 2023 02:34
@ItalyPaleAle ItalyPaleAle added the autoupdate DaprBot will keep the Pull Request up to date with master branch label Nov 29, 2023
@JoshVanL
Copy link
Contributor

@ItalyPaleAle
friendly reminder that actor/placement PRs are blocked until #7250 is resolved

@ItalyPaleAle
Copy link
Contributor Author

@ItalyPaleAle
friendly reminder that actor/placement PRs are blocked until #7250 is resolved

Ok. This doesn't change code however, just adds an option to the chart (untestable with CI)

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ee813d1) 64.47% compared to head (46e4108) 64.45%.

❗ Current head 46e4108 differs from pull request most recent head 21518b4. Consider uploading reports for the commit 21518b4 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7253      +/-   ##
==========================================
- Coverage   64.47%   64.45%   -0.02%     
==========================================
  Files         238      236       -2     
  Lines       21814    21669     -145     
==========================================
- Hits        14064    13967      -97     
+ Misses       6542     6505      -37     
+ Partials     1208     1197      -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ItalyPaleAle ItalyPaleAle added this to the v1.13 milestone Dec 5, 2023
@mukundansundar mukundansundar added the automerge Allows DaprBot to automerge and update PR if all approvals are in place label Jan 9, 2024
@mukundansundar mukundansundar merged commit 40bd88e into dapr:master Jan 11, 2024
17 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Allows DaprBot to automerge and update PR if all approvals are in place autoupdate DaprBot will keep the Pull Request up to date with master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants