-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple instances behind load balancer #328
Comments
Assigning to @warrenv. |
@lautarodragan and @wzalazar : would we need to replicate this across to frost-api as well? |
@WesleyCharlesBlake we already have four instances of Frost API behind an LB in production and they have been working fine 😎 Frost API has much less state in general (since it delegates most operations to the node), but it'd be nice to do a thorough check just to be on the safe side. |
Awesome! Was just making sure. But yes will need a thorough audit in frost-api . So for in k8s it's been working well. |
Reassigning to @kennylavender. Please sync with Warren if you need any input. |
Moving this back over to you @warrenv to keep Kenny focused on API and work/claim split. Thanks. |
Is this something we can be testing out in the new QA environment right now? (@WesleyCharlesBlake @lautarodragan) |
yeah simple enough to test out, just need to increase the replica count for each node configuration from 1 to n (where n is the ideal amount needed to run optimally) |
Running multiple instances of the node behind a load balancer could lead to race conditions.
node/src/Storage/ClaimController.ts
Lines 111 to 117 in b1ffa5e
To ensure there are no race conditions we need to use findAndModify and ensure the proper indexes are created.
TODO:
The text was updated successfully, but these errors were encountered: