Re[2]: How to set apache load balancer for send request to 6 tomcat server
Hi Chris, to avoid any kind of overload, I would like every single request to be forwarded to a backend server. I attach the files again hoping you can view them correctly. I await your suggestions. Best regards. Giancarlo -- Messaggio originale -- Da: "Christopher Schultz" A: users@tomcat.apache.org Inviato: 27/12/2019 16:29:28 Oggetto: Re: How to set apache load balancer for send request to 6 tomcat server Firma ha problemi -BEGIN PGP SIGNED MESSAGE-Hash: SHA256/>Giancarlo,On 12/23/19 12:45, Giancarlo Celli wrote:/>> Hi, I need to configure a load balancer with apache connector on a> jelastic server that redirects requests to 6 server workers with> tomcat 7 installed. Atteched you can find extract from httpd.conf> and workers.properties. I need to send single request to tomcat> server individually, so I set sticky_session to 0.So you want your clients to switch servers even when they don't have to?> Could you tell me if parameters are configured correctly? Is the> collector able to handle all requests? Could you give me some> further advice?> > Each tomcat server is configured with the following parameters:> >connectionTimeout="2" redirectPort="8443" />> />> The balancer has the following configuration: Server version:/>> Apache/2.4.39 (codeit) Server built: Apr 3 2019 18:54:14 />> Architecture: 64-bit Server MPM: event threaded: yes> (fixed thread count) forked: yes (variable process count)/>Your attachments were stripped. Can you please post an example workerand your JkMounts from httpd.conf? We don't need the whole httpd.conf.- -chris-BEGIN PGP SIGNATURE-/>Comment: Using GnuPG with Thunderbird - https://www.enigmail.net//>/>iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl4GI1cACgkQHPApP6U8/>pFjHPhAAyDpqNcDm5AIe+QcsF/dB0rEfWSrfXY3DFZUjvJVTLfeqhUxS+gKNbHBf/>iXhbxnXiFVMkHqgWxcMlrsQMGK5wWL00HCOrlijGbJYa52QCn2aLFJ6buf5kU+Cy/>SAXOIBbpz4x12QEU6x2LJGAEXa8fMx96xyTXl0SAiWQqQ/EtVw/0y+b5h97Zpej5/>kxR04IyOMDfqyEMVeKUVQNr46yZmscHE3r9Bo49mVqmLjD8a/tzHZybTuFVeW6xj/>lILNuPwBL+cMz5ImqfW3qQUKyKLC6Bo9gdeamIXYg4z/66XwFmBUTP/mcTf0Up67/>rbaJWgg8Si2exZhRJeB5z51hZiEXGWldkBljvwUjevZcjo9dEqvFCY7KtxdkuA/b/>ZWAyxaTJkRvzusJrRItdV6m66q5aLUKehPTeIe5zm0V10Ttfc6qOpncfULQh0d1N/>Ic719F1UKYOecqZXVqJJ+mDHhdMsulvWlV18if29riQe2mu+VUGlkjFYuxgm7TCp/>zKGzdDAI3v/9b5lLtKYqCDaIFjH0MnBjGo+x9gTvpvQRIrdC4OGPTiw8W3Urveln/>ZycUWihsb26vqaog7jJn6SLMJ/N8nVyw64Uc/slN3tCAIwHvzpu6dTVBEoXI6Jsx/>29Nqyx6B1tSXrSYXDN0PO7PmpBffS7LDEd1luYXqAtcUilgsb4Q==KK92/>-END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org worker.list=loadbalancer worker.maintain=300 worker.node1.port=8009 worker.node1.host=XX.XX.XX.01 worker.node1.type=ajp13 worker.node1.ping_mode=P worker.node1.ping_timeout=1 worker.node1.lbfactor=1 worker.node1.socket_timeout=30 worker.node1.connection_pool_timeout=20 worker.node1.recover_time=5 worker.node2.reference=worker.node1 worker.node2.host=XX.XX.XX.02 worker.node3.reference=worker.node1 worker.node3.host=XX.XX.XX.03 worker.node4.reference=worker.node1 worker.node4.host=XX.XX.XX.04 worker.node5.reference=worker.node1 worker.node5.host=XX.XX.XX.05 worker.node6.reference=worker.node1 worker.node6.host=XX.XX.XX.06 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=node1,node2,node3,node4,node5,node6 worker.loadbalancer.sticky_session=0 worker.loadbalancer.method=B StartServers   1 MinSpareServers  1 MaxSpareServers  3 # ServerLimit   13 ServerLimit   13 # MaxRequestWorkers 13 MaxRequestWorkers 13 MaxConnectionsPerChild   500 StartServers   1 ServerLimit   13 MaxRequestWorkers   25 MinSpareThreads   25 MaxSpareThreads   75 ThreadsPerChild   25 MaxConnectionsPerChild   500 StartServers   2 # ServerLimit   13 ServerLimit   13 MaxRequestWorkers   325 ThreadsPerChild   25 AsyncRequestWorkerFactor  2 MaxConnectionsPerChild   500 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Re[2]: How to set apache load balancer for send request to 6 tomcat server
This is what a typical workers.properties file look like.this is not same as your configuration *Workers properties* 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 worker.list=balancer,status worker.tomcat1.type=ajp13 worker.tomcat1.port=8009 worker.tomcat1.host=localhost worker.tomcat2.type=ajp13 worker.tomcat2.port=8010 worker.tomcat2.host=localhost worker.tomcat3.type=ajp13 worker.tomcat3.port=8011 worker.tomcat3.host=localhost worker.balancer.type=lb worker.balancer.balance_workers=tomcat1,tomcat2,tomcat3 worker.status.type=status On Tue, 24 Dec 2019, 09:17 Giancarlo Celli, wrote: > Thanks for the reply. > More than anything else my question is to know if the configuration > parameters of the various threads, connections, etc. they are set up well > or if they could somehow down the service. > And if you recommend any changes to optimize the service itself. > He again attached the files with the extracts of the configurations > Thanks. > Best regards. > Giancarlo > > > -- Messaggio originale -- > Da: "Zahid Rahman" > A: "Tomcat Users List" ; "Giancarlo Celli" < > giancarlo.ce...@flottaweb.com> > Inviato: 23/12/2019 23:56:41 > Oggetto: Re: How to set apache load balancer for send request to 6 tomcat > server > > If you wish we can work the problem , piece by piece through logical > construction of the solution. > > > > On Mon, 23 Dec 2019, 17:45 Giancarlo Celli, > > wrote: > > > Hi, > I need to configure a load balancer with apache connector on a jelastic > server that redirects requests to 6 server workers with tomcat 7 installed. > Atteched you can find extract from httpd.conf and workers.properties. > I need to send single request to tomcat server individually, so I set > sticky_session to 0. > Could you tell me if parameters are configured correctly? > Is the collector able to handle all requests? > Could you give me some further advice? > > Each tomcat server is configured with the following parameters: > > maxThreads="400" > connectionTimeout="2" > redirectPort="8443" /> > > The balancer has the following configuration: > Server version: Apache/2.4.39 (codeit) > Server built: Apr 3 2019 18:54:14 > Architecture: 64-bit > Server MPM: event > threaded: yes (fixed thread count) > forked: yes (variable process count) > > > Thanks. > Best regards. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Re[2]: How to set apache load balancer for send request to 6 tomcat server
Load balancing Algorithms https://youtu.be/iqOTT7_7qXY On Tue, 24 Dec 2019, 10:06 Zahid Rahman, wrote: > There is a really great series of videos on this subject. He is > referencing tomcat Apache website. > If you speak German > > https://youtu.be/mQKZ8-EfBHU > > On Tue, 24 Dec 2019, 09:17 Giancarlo Celli, > wrote: > >> Thanks for the reply. >> More than anything else my question is to know if the configuration >> parameters of the various threads, connections, etc. they are set up well >> or if they could somehow down the service. >> And if you recommend any changes to optimize the service itself. >> He again attached the files with the extracts of the configurations >> Thanks. >> Best regards. >> Giancarlo >> >> >> -- Messaggio originale -- >> Da: "Zahid Rahman" >> A: "Tomcat Users List" ; "Giancarlo Celli" < >> giancarlo.ce...@flottaweb.com> >> Inviato: 23/12/2019 23:56:41 >> Oggetto: Re: How to set apache load balancer for send request to 6 tomcat >> server >> >> If you wish we can work the problem , piece by piece through logical >> construction of the solution. >> >> >> >> On Mon, 23 Dec 2019, 17:45 Giancarlo Celli, < >> giancarlo.ce...@flottaweb.com> >> wrote: >> >> >> Hi, >> I need to configure a load balancer with apache connector on a jelastic >> server that redirects requests to 6 server workers with tomcat 7 >> installed. >> Atteched you can find extract from httpd.conf and workers.properties. >> I need to send single request to tomcat server individually, so I set >> sticky_session to 0. >> Could you tell me if parameters are configured correctly? >> Is the collector able to handle all requests? >> Could you give me some further advice? >> >> Each tomcat server is configured with the following parameters: >> >> > maxThreads="400" >> connectionTimeout="2" >> redirectPort="8443" /> >> >> The balancer has the following configuration: >> Server version: Apache/2.4.39 (codeit) >> Server built: Apr 3 2019 18:54:14 >> Architecture: 64-bit >> Server MPM: event >> threaded: yes (fixed thread count) >> forked: yes (variable process count) >> >> >> Thanks. >> Best regards. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Re[2]: How to set apache load balancer for send request to 6 tomcat server
There is a really great series of videos on this subject. He is referencing tomcat Apache website. If you speak German https://youtu.be/mQKZ8-EfBHU On Tue, 24 Dec 2019, 09:17 Giancarlo Celli, wrote: > Thanks for the reply. > More than anything else my question is to know if the configuration > parameters of the various threads, connections, etc. they are set up well > or if they could somehow down the service. > And if you recommend any changes to optimize the service itself. > He again attached the files with the extracts of the configurations > Thanks. > Best regards. > Giancarlo > > > -- Messaggio originale -- > Da: "Zahid Rahman" > A: "Tomcat Users List" ; "Giancarlo Celli" < > giancarlo.ce...@flottaweb.com> > Inviato: 23/12/2019 23:56:41 > Oggetto: Re: How to set apache load balancer for send request to 6 tomcat > server > > If you wish we can work the problem , piece by piece through logical > construction of the solution. > > > > On Mon, 23 Dec 2019, 17:45 Giancarlo Celli, > > wrote: > > > Hi, > I need to configure a load balancer with apache connector on a jelastic > server that redirects requests to 6 server workers with tomcat 7 installed. > Atteched you can find extract from httpd.conf and workers.properties. > I need to send single request to tomcat server individually, so I set > sticky_session to 0. > Could you tell me if parameters are configured correctly? > Is the collector able to handle all requests? > Could you give me some further advice? > > Each tomcat server is configured with the following parameters: > > maxThreads="400" > connectionTimeout="2" > redirectPort="8443" /> > > The balancer has the following configuration: > Server version: Apache/2.4.39 (codeit) > Server built: Apr 3 2019 18:54:14 > Architecture: 64-bit > Server MPM: event > threaded: yes (fixed thread count) > forked: yes (variable process count) > > > Thanks. > Best regards. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org
Re[2]: How to set apache load balancer for send request to 6 tomcat server
Thanks for the reply. More than anything else my question is to know if the configuration parameters of the various threads, connections, etc. they are set up well or if they could somehow down the service. And if you recommend any changes to optimize the service itself. He again attached the files with the extracts of the configurations Thanks. Best regards. Giancarlo -- Messaggio originale -- Da: "Zahid Rahman" A: "Tomcat Users List" ; "Giancarlo Celli" Inviato: 23/12/2019 23:56:41 Oggetto: Re: How to set apache load balancer for send request to 6 tomcat server If you wish we can work the problem , piece by piece through logical construction of the solution. On Mon, 23 Dec 2019, 17:45 Giancarlo Celli, wrote: Hi, I need to configure a load balancer with apache connector on a jelastic server that redirects requests to 6 server workers with tomcat 7 installed. Atteched you can find extract from httpd.conf and workers.properties. I need to send single request to tomcat server individually, so I set sticky_session to 0. Could you tell me if parameters are configured correctly? Is the collector able to handle all requests? Could you give me some further advice? Each tomcat server is configured with the following parameters: The balancer has the following configuration: Server version: Apache/2.4.39 (codeit) Server built: Apr 3 2019 18:54:14 Architecture: 64-bit Server MPM: event threaded: yes (fixed thread count) forked: yes (variable process count) Thanks. Best regards. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org