How do the instances synchronise changes to flows, ...?
andreaswittig opened this issue · 4 comments
andreaswittig commented
Your approach looks promising. However, I'm wondering how state gets synchronized between the instances. For example, what happens when a user saves a new version of a flow. How does the other EC2 instance notice that change to make sure it fetches the data again from EFS?
guysqr commented
There’s a watcher on the file system that triggers the reload. Does that answer your question?
Regards
Guy
On 12 Nov 2019, at 8:09 pm, Andreas Wittig <notifications@github.com> wrote:
Your approach looks promising. However, I'm wondering how state gets synchronized between the instances. For example, what happens when a user saves a new version of a flow. How does the other EC2 instance notice that change to make sure it fetches the data again from EFS?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
andreaswittig commented
Thanks a lot for your help, @guysqr. Could you please point me to the code which triggers the reload? I'm trying to understand how this works in detail.
guysqr commented
Have a look in the package.json, the start command configures node red to run under nodemon with the appropriate watcher.
Regards
Guy
On 12 Nov 2019, at 9:18 pm, Andreas Wittig <notifications@github.com> wrote:
Thanks a lot for your help, @guysqr. Could you please point me to the code which triggers the reload?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
andreaswittig commented
Thanks a lot @guysqr.