Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

Kubernetes hosting guide suggests an environment variable that doesn't work #28

@highlyunavailable

Description

@highlyunavailable

In the Kubernetes hosting guide, it suggests setting the environment variable DOTNET_SHUTDOWNTIMEOUTSECONDS to 120. This environment variable does not set the Host shutdown timeout, and it is not respected. This value should be set at in the application code via siloBuilder.Configure<HostOptions>(options => options.ShutdownTimeout = TimeSpan.FromMinutes(2)); in the UseOrleans call.

The PR that makes this respected in dotnet core, dotnet/runtime#44080 is not actually merged into a released branch - see 5.0.6 HostOptions.cs.

I'm happy to fix this myself, but I'm not sure the best way to say "make sure your shutdown timeout is set right" in the context of Kubernetes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions