Jump to content

Best way to test if unigui app is online


delagoutte

Recommended Posts

Hello, 

My unigui app is divided on 2 app.

first app is used only for identification of my client. When the client is identified on first app, the client is redirected to an other appp on other server.

So for exemple,  i have client 1,2,3 that are affected to server1 and client 4,5,6 that are affected to server2.

this allows me to do a load balancing on many server.

 

i would like implement a backup url for the second app.

for exemple, the user1 identify it self and must be redirect to app on server1. i would test that this app is online and if it is not online the client will be redirect to server3 (server backup)

 

so how can i test if an unigui app is online or not without creating ghost unigui session that are used only for test ?

 

Link to comment
Share on other sites

an idea :

i see that if i call http://localhost/ext-4.2.5.1763/resources/css/ext-all.css(or other file publish by my app) it seem that there is not unisession that is open.

so i was thinking that i could publish a file that i could call with indy and if i receive a readystate = 200 it means that my uniapp is online.

 

What do you think ? can there be an edge effect on the unigui application if I use this method

Link to comment
Share on other sites

Hi,

 

That's the same thing I do for load balancing. In the application 1 where the user is authenticated I have a table with the Urls of the application 2 (main) with addresses to the servers and a field that activate / deactivate the URL, with this I can massively update the application 2 rotating between servers without have to get the users out. I apply for each user an Url depending on the active server (to minimize the download of the js, css, images, etc of ExtRoot and UniRoot), that's why it's important to have a CDN, since if you left the urls randomly every session the user had to download these previous files and it was delayed or the user had to try the load several times.
 
Best regard

post-353-0-74110500-1509463169_thumb.jpg

post-353-0-85114500-1509463386_thumb.jpg

Link to comment
Share on other sites

 

Hi,

 

That's the same thing I do for load balancing. In the application 1 where the user is authenticated I have a table with the Urls of the application 2 (main) with addresses to the servers and a field that activate / deactivate the URL, with this I can massively update the application 2 rotating between servers without have to get the users out. I apply for each user an Url depending on the active server (to minimize the download of the js, css, images, etc of ExtRoot and UniRoot), that's why it's important to have a CDN, since if you left the urls randomly every session the user had to download these previous files and it was delayed or the user had to try the load several times.
 
Best regard

 

Hello, Could you please indicate how to pass the user and password to the second application or pass in the id obtained in the first application to the second application Tks

Link to comment
Share on other sites

Hi,
 
In the app1 where the user is authenticated, a string is formed with the user parameters, database, random control code is encrypted and passed as a parameter for the app2. in the app2 it is received and the application can only load if the parameters are valid in front of a common database that verifies that the control id is valid. You could also use the sessionID of the app1, which would have greater security by ensuring only once the use of the parameter step to the app2.
The important thing is that once validated the controlID or sessionID is marked as used so that they can not reload the previously formed url.
This applies when you need to have a control system for many databases and users and it is required to have the unigui 24x7 application and be able to have a basic load balancing. It is the practical way that I found and it has worked for several years.

 

  • Upvote 2
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...