Skip to content

Commit 108ffff

Browse files
committed
Add documentation.
1 parent 198972b commit 108ffff

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

docs/dedicated-invokers.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!--
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with
5+
# this work for additional information regarding copyright ownership.
6+
# The ASF licenses this file to You under the Apache License, Version 2.0
7+
# (the "License"); you may not use this file except in compliance with
8+
# the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
-->
19+
20+
# Dedicated Invokers
21+
22+
Actions run on any invokers in OpenWhisk. But users may want to run their actions on a certain invoker(s) for some reason such as IP-based ACL.
23+
This is to provide dedicated invokers for a namespace. Operators can configure a dedicated namespace for invokers and all activations from the namespace will be delivered to the dedicated invokers only.
24+
25+
## Tagging Invokers
26+
Operators can configure any tags for invokers.
27+
28+
```bash
29+
invoker0 ansible_host=${INVOKER01} tags="['dedicated']" dedicatedNamespaces="['namespace1']"
30+
invoker1 ansible_host=${INVOKER02} tags="['dedicated']" dedicatedNamespaces="['namespace2']"
31+
```
32+
33+
Users can add the following annotations to their actions.
34+
35+
```
36+
wsk action update params tests/dat/actions/params.js -i -a invoker-resources '["dedicated"]'
37+
```
38+
39+
So this feature is based on the [tag-based-scheduling](./tag-based-scheduling.md).
40+
The `dedicatedNamespaces` field is used to make sure the invokers are not used by other than allowed namespaces and users can decide whether to run their actions on dedicated invokers using the `dedicated` tag.

0 commit comments

Comments
 (0)