diff --git a/daprdocs/content/en/concepts/dapr-services/scheduler.md b/daprdocs/content/en/concepts/dapr-services/scheduler.md index c7364ecd697..a0d00aa19ef 100644 --- a/daprdocs/content/en/concepts/dapr-services/scheduler.md +++ b/daprdocs/content/en/concepts/dapr-services/scheduler.md @@ -81,6 +81,14 @@ In production environments, it's recommended to perform periodic backups of this To perform backup and restore operations, you'll need to access the embedded etcd instance. This requires port forwarding to expose the etcd ports (port 2379). +#### Kubernetes Example + +Here's how to port forward and connect to the etcd instance: + +```shell +kubectl port-forward svc/dapr-scheduler-server 2379:2379 -n dapr-system +``` + #### Docker Compose Example Here's how to expose the etcd ports in a Docker Compose configuration for standalone mode: @@ -111,6 +119,16 @@ When running in HA mode, you only need to expose the ports for one scheduler ins Once you have access to the etcd ports, you can follow the [official etcd backup and restore documentation](https://etcd.io/docs/v3.5/op-guide/recovery/) to perform backup and restore operations. The process involves using standard etcd commands to create snapshots and restore from them. +## Monitoring Scheduler's etcd Metrics + +Port forward the Scheduler instance and view etcd's metrics with the following: + +```shell +curl -s http://localhost:2379/metrics +``` + +Fine tune the embedded etcd to your needs by [reviewing and configuring the Scheduler's etcd flags as needed](https://github.com/dapr/dapr/blob/master/charts/dapr/README.md#dapr-scheduler-options). + ## Disabling the Scheduler service If you are not using any features that require the Scheduler service (Jobs API, Actor Reminders, or Workflows), you can disable it by setting `global.scheduler.enabled=false`.