Skip to content

Update Ansible scheduler instructions #5224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2022
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: 3 additions & 15 deletions ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ It will run one more component called "scheduler" and ETCD.
You can update service providers for the scheduler as follows.

**common/scala/src/main/resources/reference.conf**

If you are using ElasticSearch (recommended) then replace ```NoopDurationCheckerProvider``` with ```ElasticSearchDurationCheckerProvider``` below.
```
whisk.spi {
ArtifactStoreProvider = org.apache.openwhisk.core.database.CouchDbStoreProvider
Expand All @@ -169,27 +171,13 @@ whisk.spi {
AuthenticationDirectiveProvider = org.apache.openwhisk.core.controller.BasicAuthenticationDirective
InvokerProvider = org.apache.openwhisk.core.invoker.FPCInvokerReactive
InvokerServerProvider = org.apache.openwhisk.core.invoker.FPCInvokerServer
DurationCheckerProvider = org.apache.openwhisk.core.scheduler.queue.ElasticSearchDurationCheckerProvider
DurationCheckerProvider = org.apache.openwhisk.core.scheduler.queue.NoopDurationCheckerProvider
}
.
.
.
```

#### Configure akka dispatcher for the scheduler
Add a new dispatcher entry as follows.

**common/scala/src/main/resources/reference.conf**
```
lease-service-dispatcher {
executor = "thread-pool-executor"
type = PinnedDispatcher
}
.
.
.
```

#### Enable the scheduler
- Make sure you enable the scheduler by configuring `scheduler_enable`.

Expand Down