Hello,
I’m currently using litefs/litefs cloud in a web application. Now, I need to add another process group to my app for a particular set of worker machines (which periodically process newly uploaded images). This process is CPU-intensive, and I want to isolate it from the primary web service.
I have a process group named app
, and now a new one named work
. I’ve specified that the workers should never become the primary using the following condition
candidate: ${FLY_REGION == PRIMARY_REGION && FLY_PROCESS_GROUP == "app"}
This ensures that the workers only get read access to the database, i can work with that.
However, the application gets started from litefs
with the following command:
exec:
- cmd: "npm run start"
ISSUE: litefs
needs to start different long-running processes depending on whether it is a worker or the web-app. How should I go about configuring that?
Please let me know if there are other mistakes in my plain