You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am I missing something major here? Everything runs, and cleans up after 10 minutes of inactivity, so that's good. There seems to be an issue where the batching is not working — although I'm not sure if that's causing the FLAME issue, caused by the FLAME issue, or completed unrelated.
Producer is a GenStage Producer that accepts requests and stores them in internal state, then sends them in batches to a GenStage Consumer which handles them in batches, then replies back to the origin from pid.
My only guess is that the long reply is 'blocking' something in FLAME from seeing there is a child? Maybe? Except it does hold itself back, only creating 5 children, so it must know about them to some extent. And it seemed to create them over time, not all at once, so I'm definitely confused.
Another possibility maybe (seems more unlikely to me) — perhaps the String.to_atom is creating multiple atoms and they're then not sharing resources? I'm not sure how flame is using the name but String.to_atom("foo") == String.to_atom("foo") so I don't think so. ¯\_(ツ)_/¯
Does this seem like expected behavior?
EDIT: It should be noted they all spun down ~10 minutes later
The text was updated successfully, but these errors were encountered:
I've set up FLAME with a supervisor to spin up about 120 named runners:
Then added
Gambit.Supervisor
to myapplication.ex
supervision tree.I'm then using a Broadway processing pipeline (all with
concurrency: 1
) and triggered 186 invocations. The max demand for the Broadway pipeline is 10.Over the next 10 minutes, the messages were processed by broadway, and FLAME servers spun up. However, many more machines spun up than expected:
Fly configuration was pretty straightforward:
Am I missing something major here? Everything runs, and cleans up after 10 minutes of inactivity, so that's good. There seems to be an issue where the batching is not working — although I'm not sure if that's causing the FLAME issue, caused by the FLAME issue, or completed unrelated.
The FLAME call itself looks like:
Producer
is a GenStage Producer that accepts requests and stores them in internal state, then sends them in batches to a GenStage Consumer which handles them in batches, then replies back to the origin from pid.My only guess is that the long reply is 'blocking' something in FLAME from seeing there is a child? Maybe? Except it does hold itself back, only creating 5 children, so it must know about them to some extent. And it seemed to create them over time, not all at once, so I'm definitely confused.
Another possibility maybe (seems more unlikely to me) — perhaps the String.to_atom is creating multiple atoms and they're then not sharing resources? I'm not sure how flame is using the name but
String.to_atom("foo") == String.to_atom("foo")
so I don't think so. ¯\_(ツ)_/¯Does this seem like expected behavior?
EDIT: It should be noted they all spun down ~10 minutes later
The text was updated successfully, but these errors were encountered: