openwhisk icon indicating copy to clipboard operation
openwhisk copied to clipboard

How can I dynamically add invokers once the controller, CouchDB, Elasticsearch, and other components are ready?

Open thunderZH963 opened this issue 10 months ago • 2 comments

I deploy OpenWhisk invokers on a slave host and other components on a master host using Ansible for distributed deployment.

Once the environment is set up, I want to add a new invoker.

Can I do this manually(Skipping Ansible is preferable for me because our use case requires performing this directly on the slave.)? For example, 1) run the invoker on a new machine, and 2) register it with the controller.

I'm a bit confused about how to go about this process.

thunderZH963 avatar Mar 13 '25 03:03 thunderZH963

Hello,I follow you, and I have some questions,can I communicate with you?

WeifanWu-git avatar Mar 15 '25 08:03 WeifanWu-git

@thunderZH963 Adding more invokers would be enough. They will be automatically registered to controllers. Ansible is just one way to deploy invokers. If you are able to populate all required configurations, you can just run new invokers with proper configurations. Since there are many configurations, I recommend using Ansible but IIRC, there are some downstream that deploy OW with other than Ansible.

If you want to try ansible, you can just add more hosts in the Ansible hosts file and run ansible command against the newly added hosts only. You can use --limit options to selectively run ansible commands on partial hosts.

style95 avatar Mar 17 '25 04:03 style95