Comments (2)
Hi @yejialiango, thanks for the issue!
You are correct that in order for (all) Dapr services to pick up changes to Configurations, a restart is required. Today, this process is a task left to the reader. There is currently an initiative to make all resources dynamically loadable in Dapr- in v1.13
we added "hot reloading" of Components as a preview feature. The next resource targeted for hot reloading is Subscriptions, targeted for v1.14
. Feature requests like these helps us prioritize which resources to work on next, so thank you!
Speculatively, I imagine hot reloading of Configuration would be supported by first listening for SIGHUP signals, and when received, restart the service in-code from main
or equivalent. When a Configuration change is detected, the process will send itself this signal. Windows will need to some Go channel or equivalent as it has no SIGHUP. Restarting the service in-code from the top level will be required as values from Configuration span the entire code base so this is the safest/most correct thing to do.
from dapr.
Hi @yejialiango, thanks for the issue!
You are correct that in order for (all) Dapr services to pick up changes to Configurations, a restart is required. Today, this process is a task left to the reader. There is currently an initiative to make all resources dynamically loadable in Dapr- in
v1.13
we added "hot reloading" of Components as a preview feature. The next resource targeted for hot reloading is Subscriptions, targeted forv1.14
. Feature requests like these helps us prioritize which resources to work on next, so thank you!Speculatively, I imagine hot reloading of Configuration would be supported by first listening for SIGHUP signals, and when received, restart the service in-code from
main
or equivalent. When a Configuration change is detected, the process will send itself this signal. Windows will need to some Go channel or equivalent as it has no SIGHUP. Restarting the service in-code from the top level will be required as values from Configuration span the entire code base so this is the safest/most correct thing to do.
Thanks for the quick response and the insights on dynamic loading and hot reloading features. Looking forward to these enhancements in Dapr. I'll explore the core code further and hope to contribute to this area in the future.
from dapr.
Related Issues (20)
- [Clone] Error Standardization: Secrets API HOT 1
- Dapr sidecar sometimes are not automatically injected to k8s pod when k8s recreate pod HOT 2
- subscribing to a kafkatopic with avro messages results in a 400 bad requet when I try to consumer and process the message
- Dotnet Dapr nuget SDK is not allowing to publish message with schedule time to Azure Service Bus (#urgent)
- Retry Mechanism in Dapr PUB/SUB HOT 5
- Dapr retries logs showing incorrect retry log. HOT 1
- Unable to propagate complete traceparent as a header when using CloudEvents HOT 7
- getting error with Dapr container and pod is crashing in AKS HOT 1
- error while invoking sample workflow app on AKS cluster HOT 2
- OpenTelemetry spec v1.10 that Dapr uses needs to be updated to v1.25
- Is dapr python workflow ready for prod? HOT 1
- Dapr Workflows cannot be terminated if they are running lots of activities HOT 3
- A potential risk in dapr that could lead to takeover of the cluster HOT 2
- Regarding custom middleware to setup in the pipeline and how to create HOT 1
- Make 'scopes' optional in oauth2clientcredentials middleware HOT 1
- Unable to install Dapr in Kubernetes cluster HOT 4
- Support the Prometheus operator for monitoring in Helm charts
- Allow outbox published data to be different than transaction data
- Low cardinality metrics issues HOT 10
- Workflow Failure with --resources-path parameter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dapr.