Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions daprdocs/content/en/concepts/dapr-services/scheduler.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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`.
Expand Down