From 13616ffe791d44dede202041cdd0eb5eb4340cb0 Mon Sep 17 00:00:00 2001 From: Cassandra Coyle Date: Fri, 21 Feb 2025 14:11:53 -0600 Subject: [PATCH 1/2] tweaks Signed-off-by: Cassandra Coyle --- .../en/concepts/dapr-services/scheduler.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/daprdocs/content/en/concepts/dapr-services/scheduler.md b/daprdocs/content/en/concepts/dapr-services/scheduler.md index 364297a9f0b..9815e0e3d2c 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 your etcd instance to be able to connect to it + +```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`. From b7992c1208afd5c8d958d77d776c46059cb02420 Mon Sep 17 00:00:00 2001 From: Cassandra Coyle Date: Fri, 21 Feb 2025 14:14:21 -0600 Subject: [PATCH 2/2] tweaks Signed-off-by: Cassandra Coyle --- daprdocs/content/en/concepts/dapr-services/scheduler.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/concepts/dapr-services/scheduler.md b/daprdocs/content/en/concepts/dapr-services/scheduler.md index 9815e0e3d2c..de43860dec1 100644 --- a/daprdocs/content/en/concepts/dapr-services/scheduler.md +++ b/daprdocs/content/en/concepts/dapr-services/scheduler.md @@ -83,7 +83,7 @@ To perform backup and restore operations, you'll need to access the embedded etc #### Kubernetes Example -Here's how to port forward your etcd instance to be able to connect to it +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