# Need Help Understanding Multi Process Environments

**URL:** <https://community.fly.io/t/need-help-understanding-multi-process-environments/6068>\
**Category:** General\
**Created:** [July 19, 2022, 10:46pm UTC](https://community.fly.io/t/need-help-understanding-multi-process-environments/6068 "2022-07-19T22:46:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ignoramous](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@ignoramous](https://community.fly.io/u/ignoramous)\
**Post date:** [July 19, 2022, 11:11pm UTC](https://community.fly.io/t/need-help-understanding-multi-process-environments/6068/2 "2022-07-19T23:11:05Z")

</div>

Each of those `processes` is a separate vm, but running on the same host. See: [Preview: multi process apps (get your workers here!) - #40 by kurt](https://community.fly.io/t/preview-multi-process-apps-get-your-workers-here/2316/40)

> Are they “machines”?

VMs.

> Do they all share resources that are applied to the main application?

(unless I am mistaken) Each `process` is entitled to its own cpu/ram alloc.

> I’m having a hard time understanding where the resources are generated/created when using multiple processes.

With `flyctl` `--group` directive you can target commands at a specific `process` within a `multi-process` Fly app. Ex: `fly scale vm shared-cpu-2x --group workerhigh -a appname`.

You could also scale them out independently: `fly scale count workerhigh=8 worker=4 web=2 -a appname`.

We used to use `multi-process` ([way back when](https://community.fly.io/t/apps-dying-unexpectedly/3090)), but don’t anymore. [Unsure what’s the latest on it](https://community.fly.io/t/what-does-processes-do-in-fly-toml-wheres-the-full-config-documentation/3993/5), tbh.

Btw, an alternative is to run multiple processes in the same VM with a process supervisor to govern 'em all. Ref: [Running Multiple Processes Inside A Fly.io App · Fly Docs](https://fly.io/docs/app-guides/multiple-processes/)

* * *

Similar: [What is the purpose of the "processes" section in [[services]]? - #2 by ignoramous](https://community.fly.io/t/what-is-the-purpose-of-the-processes-section-in-services/5544/2)

---

_[View the full topic](https://community.fly.io/t/need-help-understanding-multi-process-environments/6068)._
