How do we redirect
1-10 clients users to server A-same bsv
10-20 clients users to server B-same bsv
and so on...
and clients hitting myproject.com and redirect them to server a or server b or server c all having tomcat and aware installed.
In IIS there is a load balancer rules, not sure how it works in tomcat. Has anybody scaled app after 10 clients to redirect users to server B-everything identical except server is different and db is on new server(so client 10 to 20 hit serverb, clients 20 to 30 hit server c)
or
Do we have to create 3 URL's for 3 different servers? or 4 or 5 if we get 50 clients 50/10=5 url's
multi server multi client deployment
-
- Posts: 370
- Joined: Sat Apr 28, 2018 3:33 am
- Location: India
- Contact:
Re: multi server multi client deployment
I would also be interested in hearing some details on how this is done from someone who has done it.
Henrik (V8 Developer Ed. - Windows)
Re: multi server multi client deployment
I have a multi-server/load balancing setup for a customer.swiftinitpvtltd wrote: ↑Thu Oct 29, 2020 6:35 am How do we redirect
1-10 clients users to server A-same bsv
10-20 clients users to server B-same bsv
and so on...
and clients hitting myproject.com and redirect them to server a or server b or server c all having tomcat and aware installed.
In IIS there is a load balancer rules, not sure how it works in tomcat. Has anybody scaled app after 10 clients to redirect users to server B-everything identical except server is different and db is on new server(so client 10 to 20 hit serverb, clients 20 to 30 hit server c)
or
Do we have to create 3 URL's for 3 different servers? or 4 or 5 if we get 50 clients 50/10=5 url's
My setup:
- 1 load balancing hardware appliance
- 1 MSSQL Server
- 2 servers both with a separate license of Aware
- I had to pay for a second server license but did not have to pay for any add on software from Aware (SQL Server licensing, Mobile Support licensing, etc...)
- I setup and pointed my primary Aware server to my SQL instance like a normal Aware install when using SQL.
- I installed Aware on the additional server after the primary server was setup and running correctly and pointed it to the same SQL instance as the primary.
- At this point when you try and start the additional server it will give you a license error and you have to work with Vlad to configure the setup.
- A load balancer is needed whether it is a piece of hardware or software because aware does not do it natively.
- With the load balancer you just setup your domain: myproject.com the same as you would with one server but you would point the domain towards your load balancer instead of directly to your Aware server and it will distribute your users to whichever server it sees best fit based off of your configuration settings.
- I have my load balancer setup to send traffic to my two servers in a weighted round-robin with a 2-1 weight where it alternates sending one user to my additional server for every 2 users it sends to my primary (un-weighted it will send every other user to the additional server)
- Each load balancer will probably have different options on how it can be configured but mine allows round-robin (described above) or an option to send to the server that has the least connections.
-
- Posts: 370
- Joined: Sat Apr 28, 2018 3:33 am
- Location: India
- Contact:
Re: multi server multi client deployment
Thank you! I think windows 2016 and 19 servers have load balancer steps-long steps to configure it. I will have to try it out. Thanks again.
Re: multi server multi client deployment
Hey bssxfire8 - that's cool, nice work
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Re: multi server multi client deployment
Do you have some way of monitoring concurrent users, load etc. on each of these servers? What happens if one of the servers are full / overloaded?bssxfire8 wrote: ↑Thu Oct 29, 2020 5:12 pmI have a multi-server/load balancing setup for a customer.swiftinitpvtltd wrote: ↑Thu Oct 29, 2020 6:35 am How do we redirect
1-10 clients users to server A-same bsv
10-20 clients users to server B-same bsv
and so on...
and clients hitting myproject.com and redirect them to server a or server b or server c all having tomcat and aware installed.
In IIS there is a load balancer rules, not sure how it works in tomcat. Has anybody scaled app after 10 clients to redirect users to server B-everything identical except server is different and db is on new server(so client 10 to 20 hit serverb, clients 20 to 30 hit server c)
or
Do we have to create 3 URL's for 3 different servers? or 4 or 5 if we get 50 clients 50/10=5 url's
My setup:
- 1 load balancing hardware appliance
- 1 MSSQL Server
- 2 servers both with a separate license of Aware
- I had to pay for a second server license but did not have to pay for any add on software from Aware (SQL Server licensing, Mobile Support licensing, etc...)
- I setup and pointed my primary Aware server to my SQL instance like a normal Aware install when using SQL.
- I installed Aware on the additional server after the primary server was setup and running correctly and pointed it to the same SQL instance as the primary.
- At this point when you try and start the additional server it will give you a license error and you have to work with Vlad to configure the setup.
- A load balancer is needed whether it is a piece of hardware or software because aware does not do it natively.
- With the load balancer you just setup your domain: myproject.com the same as you would with one server but you would point the domain towards your load balancer instead of directly to your Aware server and it will distribute your users to whichever server it sees best fit based off of your configuration settings.
- I have my load balancer setup to send traffic to my two servers in a weighted round-robin with a 2-1 weight where it alternates sending one user to my additional server for every 2 users it sends to my primary (un-weighted it will send every other user to the additional server)
- Each load balancer will probably have different options on how it can be configured but mine allows round-robin (described above) or an option to send to the server that has the least connections.
Henrik (V8 Developer Ed. - Windows)