You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2022/07/21 10:45:26 UTC

[GitHub] [openwhisk] style95 commented on pull request #5289: Add tags to invokers.

style95 commented on PR #5289:
URL: https://github.com/apache/openwhisk/pull/5289#issuecomment-1191333269

   I confirmed it's working as expected.
   I wl add documentation about this as well.
   
   OW operators can configure tags for invokers like this.
   
   ```
   invoker0 ansible_host=${INVOKER0} tags="['v1', 'gpu']"
   invoker1 ansible_host=${INVOKER1} tags="['v1', 'cpu']"
   invoker2 ansible_host=${INVOKER2} tags="['v2', 'gpu']"
   invoker3 ansible_host=${INVOKER3} tags="['v2', 'cpu']"
   invoker4 ansible_host=${INVOKER4} tags="['v1', 'mem']"
   invoker5 ansible_host=${INVOKER5} tags="['v2', 'mem']"
   invoker6 ansible_host=${INVOKER6} tags="['v2']"
   invoker7 ansible_host=${INVOKER7} tags="['v2']"
   invoker8 ansible_host=${INVOKER8}
   invoker9 ansible_host=${INVOKER9}
   ```
   
   Users can add the following annotations to their actions.
   
   ```
   wsk action update params tests/dat/actions/params.js -i -a invoker-resources '["v2", "gpu"]'
   ```
   
   Activationtivation for this action will be delivered to `invoker2`.
   
   The annotations and the correspondinginvokersinvkoers are as follows.
   
   * `["v1", "gpu"]` -> `invoker0`
   * `["v2", "gpu"]` -> `invoker2`
   * `["v1", "cpu"]` -> `invoker1`
   * `["v2"]` -> One of `invoker2`, `invoker3`, `invoker5`, `invoker6`, and `invoker7`
   * `["v1"]` -> One of `invoker0`, `invoker1`, `invoker4`
   * `No annotation` -> One of `invoker8` and `invoker9` is chosen first. if they have no resource, choose one of the invokers with tags.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org