Why am I encountering issues using MATLAB Web App Server behind a proxy or load balancer?

I would like to use MATLAB Web App Server (R2026a) behind a reverse proxy, potentially with load balancing across multiple server instances. 
How can I set this up and what are some common issues I should watch out for?

 Accepted Answer

You can set up third-party reverse proxy tools such as NGINX in front of MATLAB Web App Server to gain functionality such as load balancing. Other applications, such as Kemp, Apache, or HAProxy, can be used, but these have not been tested.
To get started using MATLAB Web App Server with a reverse proxy such as NGINX, see Custom URL Paths for Web Apps - MATLAB & Simulink
If your setup runs into issues, refer to the following best practices. For more information, refer to the indicated link.
  1. Use sticky sessions. (link)
  2. Try using round-robin scheduling. (link)
  3. Use the same protocol (HTTP vs. HTTPS) in front and behind the proxy. (link)
  4. The proxy should support HTTP/1.1. (link)

More Answers (0)

Categories

Find more on MATLAB Web App Server in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!