-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jose,
On 10/28/18 04:19, Jose Torres wrote: > I hit enter too soon, but I want to know what other people use > when configuring tomcat AJP connector, I provided an example of > what I use. I am running following, tomcat 8.5.29 / apache 2.4.29 / > mod_jk/1.2.41. > > Thanks > > On Sun, Oct 28, 2018 at 4:14 AM Jose Torres <sunj...@gmail.com> > wrote: > >> Hello, >> >> I am running with configuration below, I like to know what >> parameters can be use with tomcat AJP for a H.A. configuration. >> >> >> >> >> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector >> port="8009" protocol="AJP/1.3" redirectPort="443" >> maxThreads="4096" minSpareThreads="256" enableLookups="false" >> acceptCount="100" connectionTimeout="20000" /> >> Are you experiencing any particular problem, or are you just looking for "general advice"? Since you are using Tomcat 8.5 and not 6.0 or below, you probably want to use an explicit <Executor> because you will have better control over resource-allocations -- specifically, threads. 4096 threads is a lot of threads. Have you instrumented your environment to see how many threads you are actually using? If you really want "high availability" I might actually set the TCP backlog (acceptcount) to zero. This will allow a reverse-proxy to send traffic to a server which isn't full and clients will likely receive a faster response. Other than that, there really is no "configuration for H.A.". If there were some other configuration that was better, Tomcat would ship with it as the default. - -chris -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlvXEjgACgkQHPApP6U8 pFg/bhAAw/T9opaihXisKjh9cWP4GArjPL4kjmyBTvfe314YU8gxiOsMUX9fRLh2 zCZWwxHE20SNVJhi0rvoyHpUZWfnzc+FIYeF9gHzK4QFTQ3a/3KaltJo4g5jH4x8 wZ5dSWOIXSQXevZ55Z0+nhDEagOB9woLbExq+5IifPPMJxZZAl6HBMb9EEEvp9Mv rHSc1jNsk4Biwz0CPaAhhbgE/KWxQezGheY8ZVL4JqU+bKKWoHk8gCadicasbCUE 9QV11cLm3LPanOOfn8J/5w0o2eq35GSrxzVLyVC34DF4mCnBiqAs9tJxmrO2d3uO rln5+UMHtDZUwDd3mfIH9Qzczme7RS8U6slSiTOc0ikK0lSZO0aR851EtwDqzx1j zaZWPO4ixLAx0M3vRUS0aYmTnjwvLEtYeCswrfTCbKUaijj3JtLYQZmnHTKkdLc0 JUWCCyrnfLFXkEvVepTPlAHS7hlLU2gbQ71yf8LWWXjI2v7eoEXo3dBy5JUGKfP9 zhR30iPpcPDG9yPlaCr6pL2Kz2FeJ7358u3YJRIbNX4RUey+p3lN/109abHphAgN hMC5hEjr6arEt/jZm8IX3uAbK+FJ05tlxY22Of21c8BZcXjw8SZW64DDvbzwZFlN QqJystr3dB8063q3fB993aM18j20yHVXu6wymsI0/1DPQTQ4fOU= =f++s -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org