Sequential Process Groups

Is there a way I can have process groups start sequentially. I want to use process groups so they are managed by the app and I can scale them using the built-in features, but I also would like for them to start in order.

I have one process group that does some set up work on an external resource that the other process group needs to use and will cause errors if the machines are launched in the opposite order.

When I do an initial deploy I don’t see a way to specify the initial machine count for each process group in case I wanted to do it that way.

I was looking at potentially only specifying the first process group and adding the other one after the fact using the machines api, but from what I can tell the machines api does not let me create a AppsV2 version of a process group. There seems to be a processes configuration in the machine config, but it seems to be distinctly different.

Essentially can I programmatically add/remove process groups without having to change my fly.toml and redeploy

AFAIK, process groups can not be added or removed programmatically. They need to be defined in fly.toml and redeployed again for changes to take place. Like you mentioned, processes can be added to the machine config but I’m not sure that’s your use case.

Note: Process groups” and “multi-processes” are two different things since the former can be defined in fly.toml as opposed to the latter. There’s no section to configure “multi-processes” in fly.toml
@dangra explains the differences in this post:

Ok so it sounds like if I wanted to programmatically create “process groups” I would have to do something like managing my own set of machines separately.

Perhaps I could hack something like fly autoscaler or just set up a dedicated app for managing different sets of machines.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.