You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daprdocs/content/en/concepts/components-concept.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,10 @@ Component reloading occurs when a component resource is created, updated, or del
60
60
When a component is updated, the component is first closed, and then reinitialized using the new configuration.
61
61
The component is unavailable for a short period of time during reload and reinitialization.
62
62
63
+
Hot reloading also extends to [Configuration]({{% ref "configuration-overview.md" %}}), [Resiliency]({{% ref "resiliency-overview.md" %}}), and HTTPEndpoint resources.
64
+
Changes to these resource types trigger a graceful restart of the Dapr sidecar (via SIGHUP) to apply the new configuration. SIGHUP is not supported on Windows.
65
+
See [Updating resources]({{% ref "component-updates.md" %}}) for more details.
66
+
63
67
## Available component types
64
68
65
69
The following are the component types provided by Dapr:
Copy file name to clipboardExpand all lines: daprdocs/content/en/operations/components/component-updates.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
type: docs
3
-
title: "Updating components"
4
-
linkTitle: "Updating components"
3
+
title: "Updating resources"
4
+
linkTitle: "Updating resources"
5
5
weight: 300
6
-
description: "Updating deployed components used by applications"
6
+
description: "Updating deployed components, configurations, resiliency, and HTTPEndpoints used by applications"
7
7
---
8
8
9
9
When making an update to an existing deployed component used by an application, Dapr does not update the component automatically unless the [`HotReload`](#hot-reloading-preview-feature) feature gate is enabled.
@@ -26,10 +26,13 @@ Unless the [`HotReload` feature gate is enabled](#hot-reloading-preview-feature)
26
26
## Hot Reloading (Preview Feature)
27
27
28
28
> This feature is currently in [preview]({{% ref "preview-features.md" %}}).
29
-
> Hot reloading is enabled by via the [`HotReload` feature gate]({{% ref "support-preview-features.md" %}}).
29
+
> Hot reloading is enabled via the [`HotReload` feature gate]({{% ref "support-preview-features.md" %}}).
30
30
31
-
Dapr can be made to "hot reload" components whereby component updates are picked up automatically without the need to restart the Dapr sidecar process or Kubernetes pod.
32
-
This means creating, updating, or deleting a component manifest will be reflected in the Dapr sidecar during runtime.
31
+
Dapr can be made to "hot reload" resources whereby updates are picked up automatically without the need to manually restart the Dapr sidecar process or Kubernetes pod.
32
+
33
+
### Components and Subscriptions
34
+
35
+
Creating, updating, or deleting a Component or Subscription manifest is reflected in the Dapr sidecar during runtime.
With the `HotReload` feature gate enabled, the Dapr sidecar also supports reloading [Configuration]({{% ref "configuration-overview.md" %}}), [Resiliency]({{% ref "resiliency-overview.md" %}}), and [HTTPEndpoint]({{% ref "service-invocation-overview.md" %}}) resources.
57
+
58
+
Unlike Components and Subscriptions which are reloaded in-place, changes to these resource types trigger an automatic **graceful restart** of the Dapr sidecar process (via SIGHUP). This ensures that the new configuration is applied cleanly. Unchanged resources are detected and silently ignored, so a restart only occurs when an actual change is detected.
59
+
60
+
{{% alert title="Windows" color="warning" %}}
61
+
SIGHUP is not supported on Windows. On Windows, you must fully restart the `daprd` process to pick up changes to Configuration, Resiliency, and HTTPEndpoint resources.
Copy file name to clipboardExpand all lines: daprdocs/content/en/operations/configuration/configuration-overview.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -445,6 +445,12 @@ spec:
445
445
workloadCertTTL: 24h
446
446
```
447
447
448
+
## Hot Reloading
449
+
450
+
When the [`HotReload` feature gate]({{% ref "support-preview-features" %}}) is enabled, changes to Configuration resources are automatically detected and trigger a graceful restart of the Dapr sidecar (via SIGHUP) to apply the new configuration. Unchanged Configuration resources are silently ignored. SIGHUP is not supported on Windows.
451
+
452
+
See [Updating resources]({{% ref "component-updates.md" %}}) for more information.
453
+
448
454
## Next steps
449
455
450
456
{{< button text="Learn about concurrency and rate limits" page="control-concurrency.md" >}}
Copy file name to clipboardExpand all lines: daprdocs/content/en/operations/resiliency/resiliency-overview.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,6 +173,12 @@ spec:
173
173
circuitBreaker: pubsubCB
174
174
```
175
175
176
+
## Hot Reloading
177
+
178
+
When the [`HotReload` feature gate]({{% ref "support-preview-features" %}}) is enabled, changes to Resiliency resources are automatically detected and trigger a graceful restart of the Dapr sidecar (via SIGHUP) to apply the updated resiliency policies. Unchanged Resiliency resources are silently ignored. SIGHUP is not supported on Windows.
179
+
180
+
See [Updating resources]({{% ref "component-updates.md" %}}) for more information.
181
+
176
182
## Limitations
177
183
178
184
- **Service invocation via gRPC:** Currently, resiliency policies are not supported for service invocation via gRPC.
Copy file name to clipboardExpand all lines: daprdocs/content/en/operations/support/support-preview-features.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,5 +21,6 @@ For CLI there is no explicit opt-in, just the version that this was first made a
21
21
|**Actor State TTL**| Allow actors to save records to state stores with Time To Live (TTL) set to automatically clean up old data. In its current implementation, actor state with TTL may not be reflected correctly by clients, read [Actor State Transactions]({{% ref actors_api.md %}}) for more information. |`ActorStateTTL`|[Actor State Transactions]({{% ref actors_api.md %}}) | v1.11 |
22
22
|**Component Hot Reloading**| Allows for Dapr-loaded components to be "hot reloaded". A component spec is reloaded when it is created/updated/deleted in Kubernetes or on file when running in self-hosted mode. Ignores changes to actor state stores and workflow backends. |`HotReload`|[Hot Reloading]({{% ref components-concept.md %}}) | v1.13 |
23
23
|**Subscription Hot Reloading**| Allows for declarative subscriptions to be "hot reloaded". A subscription is reloaded either when it is created/updated/deleted in Kubernetes, or on file in self-hosted mode. In-flight messages are unaffected when reloading. |`HotReload`|[Hot Reloading]({{% ref "subscription-methods.md#declarative-subscriptions" %}}) | v1.14 |
24
+
|**Configuration, Resiliency, and HTTPEndpoint Hot Reloading**| Changes to Configuration, Resiliency, and HTTPEndpoint resources are automatically detected and trigger a graceful restart of the Dapr sidecar via SIGHUP. Not supported on Windows. |`HotReload`|[Hot Reloading]({{% ref "component-updates.md" %}}) | v1.18 |
24
25
|**Workflows Clustered Deployment**| Enable Workflows to function when workflow clients communicate to multiple daprds of the same appID who are behind a loadbalancer. Only relevant when using [Dapr shared]({{% ref "kubernetes-dapr-shared" %}}) |`WorkflowsClusteredDeployment`|[Dapr Shared]({{% ref "kubernetes-dapr-shared" %}}) | v1.16 |
25
26
|**Workflows Durable Activity Results**| If set, ensures that activity results are durably sent to the owning workflow in multi-application scenarios, even when the owning workflow application is unavailable. Unless running multiple Dapr versions, this feature gate should be enabled. Disabled by default for backwards compatibility. |`WorkflowsRemoteActivityReminder`|[Multi-application Workflows]({{% ref "workflow-multi-app.md#durable-activity-results" %}}) | v1.17 |
0 commit comments