Reusing reference HA architecture for Centralised Controller plus worker per client setup

Screenshot 2021-08-02 at 10.37.53 AM

Folks,

Please see attached. Trying to setup Stackstorm for a IT service provider with multiple clients, We are looking at having a Centralised controller system for service provider to administer automations, look at history etc ( Running st2web, mongodb, nginx) and each client worker will run (action runner , and other st2 processes )

The problem we found is - st2schedular , st2action runner processes rely on Mongodb to fetch ,schedule and run automations, so client 2 worker ends up running automations scheduled by client 1 worker schedular process. Is it possible to control this with any configuration changes? Are there any IT service providers using this kind of setup in multi client environment? Any inputs would be highly beneficial Thank you very much.

What you are looking for is “action affinity” (eg. the ability to declare which worker runs a specific action/workflow/set of actions). This is not present in ST2 today. It’s one of the 4 big architectural issues present in ST2 today.