Issues with Nopcommerce using HAProxy as load balancer

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
HI there,

My current setup is a couple of peered HAProxys as load balancer to Nopcommerce 3.9 deployed on 2 Windows servers, both pointing to the same DB.
This setup works with the config --> balance ('True-Client-IP')
But when I change it to balance roundrobin, I start to get issues. Orders were not getting created, and with the error 'Payment method couldn't be loaded' returned.  I managed to trace it to the OrderProcessingService.PlaceOrder() method, where somehow the selected payment method is lost.

Has anyone used Haproxy as a load balancer to multiple Nopcommerce 3.9 installations ?

Some guidance is really appreciated.
3 years ago
Hi wrseileenloo, can you share with us all details about your HAproxy configuration and how did you confugured nopCommerce instances?
Thanks
3 years ago
For load balanced servers, you may need to use a machine key.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.