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

dapr_scheduler: Adds scheduler-volume flag #1422

Merged

Conversation

JoshVanL
Copy link
Contributor

@JoshVanL JoshVanL commented Jul 11, 2024

Expose --scheduler-volume to optionally specify the volume which scheduler writes to.

@JoshVanL JoshVanL requested review from a team as code owners July 11, 2024 22:11
mikeee
mikeee previously approved these changes Jul 11, 2024
Copy link
Member

@mikeee mikeee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Resolves the remaining scheduler init issue for me - #1416

@mikeee mikeee linked an issue Jul 12, 2024 that may be closed by this pull request
@JoshVanL JoshVanL changed the title dapr_scheduler: pre-create data dir dapr_scheduler: Adds scheduler-volume flag Jul 12, 2024
@yaron2 yaron2 merged commit ad3442b into dapr:release-1.14 Jul 12, 2024
26 of 27 checks passed
@@ -219,6 +224,7 @@ func init() {
InitCmd.Flags().String("network", "", "The Docker network on which to deploy the Dapr runtime")
InitCmd.Flags().StringVarP(&fromDir, "from-dir", "", "", "Use Dapr artifacts from local directory for self-hosted installation")
InitCmd.Flags().StringVarP(&imageVariant, "image-variant", "", "", "The image variant to use for the Dapr runtime, for example: mariner")
InitCmd.Flags().StringVarP(&schedulerVolume, "scheduler-volume", "", "", "Self-hosted only. Optionally specify a volume for the scheduler service data directory. By default, scheduler data is not persisted and not resilient to restarts without this flag.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have a volume by default instead of not persisting stuff.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https:/dapr/dapr/blob/7ea7016c0150e6a7b7bc7c30e34d56f0001c5e90/cmd/scheduler/options/options.go#L82

Agreed, unless the defaults are changed in both places. The mount should in its current state be created by default for the CLI 1.14.0-rc.4 release - in its current state a dapr init does not result in the scheduler running successfully.

@marcduiker
Copy link
Contributor

@holopin-bot @JoshVanL Thanks Josh!

Copy link

holopin-bot bot commented Aug 15, 2024

Congratulations @JoshVanL, the maintainer of this repository has issued you a badge! Here it is: https://holopin.io/claim/clzv8g0rc139670ck4ocz46v0b

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

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.

Scheduler service is not started in self-hosted mode
5 participants