1. Esau Redwan
  2. PowerServer
  3. Friday, 9 February 2024 19:45 PM UTC

Hi All,

 

In the case of a reverse proxy server failure (NGINX), what is the suggested strategy to route traffic from the client to the web API servers?

Our PowerServer WEBP API  is hosted on IIS and the reverse proxy runs on NGINX. Is there a mechanism to switch the PowerServer client web-api other than changing the apprun.json and forcing clients to re-install or download?

Preferably, I am looking for a mechanism where I can configure or change dynamically the web api URL without having to re-deploy the PowerServer client or launcher.

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Saturday, 10 February 2024 00:03 AM UTC
  2. PowerServer
  3. # 1

You would want to have cluster of NGINX and cluster of PowerServer Web API so no single point of failure.  https://docs.appeon.com/ps2022r3/Configuring_Nginx_Plus_as_a_load_balancer.html

Also, the URL in apprun.json shouldn't be changed.  Typically, the URL should be domain name not IP address, and your infrastructure handles the redirection.

 

Comment
  1. Armeen Mazda @Appeon
  2. Saturday, 10 February 2024 13:13 PM UTC
You can dynamically change the Web API URL used by the app in your code by using the SetPowerServerURL(). https://docs.appeon.com/ps2022r2/Web_API_URL_enhancements.html
  1. Helpful
  1. Logan Liu @Appeon
  2. Sunday, 18 February 2024 05:38 AM UTC
Hi Esau, have you tried the SetPowerServerURL() as Armeen suggested, do you need more help with this issue?

Regards, Logan
  1. Helpful
  1. Esau Redwan
  2. Friday, 8 March 2024 21:55 PM UTC
Sorry for the late reply. I will look into this and see how it works. I will test it in our environment. it seems very plausible!
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.