AWS Load balancer problems

Answered
0
0

Hi all,

we deploy for the first time on a AWS enviroment (Elastic Beanstalk) a Wisej Application, but we have some problem with the load balancer.

For default we have disable Wisej session and WebSocket to avoid more problems.

Default.Json

{
	"url": "Default.html",
	"startup": "Luxury.Client.Program.Main, Luxury.Client",
	"browserCheck": "!(RegExp('MSIE ([0-9]{1,}[\\.0-9]{0,})').test(navigator.userAget) || RegExp('Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})').test(navigator.userAgent))",
	"sessionTimeout": 0,
	"autoReload": true,
	"enableWebSocket": false,
	"loaderTimeout":  1000
}

The application works fine, but after some time (10 minuts), when balancer changes ip, application can’t retrive images correctly. All image on home screen disappear. After two minuts all works fine again.

Request in time:
63.33.111.xxx:443?sid=&x=base64 json -> Retrived
52.209.137.xxx:443?sid=&x=base64 json -> Not retrived
63.33.111.xxx:443?sid=&x=base64 json -> Retrived again

On the balancer are configured StickySession, but we don’t know how to solve this problem.

We follow:
https://wisej.com/docs/2.1/html/LoadBalancing.htm
https://wisej.com/docs/1.5/html/LoadBalancing.htm

Any suggestions ?
Thanks for support!

Attachment
  • You must to post comments
Best Answer
0
0

Ciao Simone,

If the load balancer changes IP it’s probably failing the client fingerprinting validation in Wisej. Try to add “validateClient”: false. See https://wisej.com/docs/2.1/html/Configuration.htm

Let me know. Also, I believe you can enable WebSocket with the AWS load balancer. Originally it was more complicated since you have to use a custom protocol config but now I think it’s built in.

/Luca

  • You must to post comments
0
0

Hi Luca,
thanks so much.

You answer solved our problem!

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.