Is it possible to get the benefits of working with apache-tomcat in tomcat at once?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Is it possible to get the benefits of working with apache-tomcat in tomcat at once?

HeeGu Lee
Hello, Dear Friends!

Usually, to solve the tomcat's SocketException problem and to show error
page, I will connect Apache using JK Connector.
But, two web servers is make management difficult.

So, I wish I could be provided with some feature on Tomcat.

<Connector port="8080" protocol="HTTP/1.1" ...
<Connector port="80" protocol="Proxy (or Delegate) Connector" ...

web browser -> Proxy Connector -> HTTP/1.1 -> Servlet -> ...

This Connector's primary goal is to show error or redirect page even all
HTTP/1.1 Connector is busy.

Is this a possible idea?

Thank you for reading. Have a nice day!!
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to get the benefits of working with apache-tomcat in tomcat at once?

Christopher Schultz-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

HeeGu,

On 10/23/18 05:34, HeeGu Lee wrote:

> Hello, Dear Friends!
>
> Usually, to solve the tomcat's SocketException problem and to show
> error page, I will connect Apache using JK Connector. But, two web
> servers is make management difficult.
>
> So, I wish I could be provided with some feature on Tomcat.
>
> <Connector port="8080" protocol="HTTP/1.1" ... <Connector port="80"
> protocol="Proxy (or Delegate) Connector" ...
>
> web browser -> Proxy Connector -> HTTP/1.1 -> Servlet -> ...
>
> This Connector's primary goal is to show error or redirect page
> even all HTTP/1.1 Connector is busy.
>
> Is this a possible idea?

If I understand, you'd like to be able to reply to the client even
when all the Tomcat back-ends are busy. This is best done using a
reverse-proxy such as Apache httpd, Apache Traffic Server, nginx,
Squid, Varnish, or any number of similar products.

Yes, "two servers makes management difficult", but that's the price
you have to pay for robustness and high-availability ... which is
maybe not so "high" in this case :)

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlvPM4YACgkQHPApP6U8
pFjfNg//TuYI1SOd35TU6P/D+xySi5KphT5OC+lkC3t5gQ0IxiByq+mGy1J47z4+
rNShIcciRys5bzWyYTn3MVdOMoWMu1NRfWj2ZLi7vWtniiCxp+mIXaoc3dFc3T4F
SG9osBsrINkM9GqHqfaPRrjlENz3wrJqrRc1fUpgq7uswAUwKVzRnbm9cbSlXN+G
669W8PSPfSpaDZ7bZhsbjW7RN/Dlo4PHwx1mMgNEcOW7/RAJ4TcSoj4S08p923g1
jHNL157DxXabdc+kaTX39SWYgkg3EO5ZaZe/zyunzhlYVjsdDKZMX2bcxA39dl9I
rOSKXwM6/i290DqBZQtbY76hukJ72bRsUU9XQAT6LJxLnFELM/gk4UYM0XNp1qBT
DA8ptpPdvK1P43uK9MKPguh/vmwx+fBhTciYCJAO00DB99jzx7yBeYXLwoGFhtP1
J+8Ae8sM8O81CHDvbFcDgpVJ+2cJtSA9IRuv/yVEefaD50m1p3Rpvy88BNR70VnL
begyYzOB21eMjHTT3aQgfyLsXWRS4LOVFIrHrv1slLV31caznhD4HB/xTTxXWA3b
ecB9yjDpKBtiB19ECdchLRI5tpQBHDKN3edcGPdfhelcuxD8eJT48QqrWEBzFcQl
zIeZm4Ge9F968GmpprReohNUdZebdc7x/dyrfg1sXF8MQw4rUsI=
=2IrO
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to get the benefits of working with apache-tomcat in tomcat at once?

HeeGu Lee
Thank you, chris. You are very kind.

2018년 10월 23일 (화) 오후 11:43, Christopher Schultz <
[hidden email]>님이 작성:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> HeeGu,
>
> On 10/23/18 05:34, HeeGu Lee wrote:
> > Hello, Dear Friends!
> >
> > Usually, to solve the tomcat's SocketException problem and to show
> > error page, I will connect Apache using JK Connector. But, two web
> > servers is make management difficult.
> >
> > So, I wish I could be provided with some feature on Tomcat.
> >
> > <Connector port="8080" protocol="HTTP/1.1" ... <Connector port="80"
> > protocol="Proxy (or Delegate) Connector" ...
> >
> > web browser -> Proxy Connector -> HTTP/1.1 -> Servlet -> ...
> >
> > This Connector's primary goal is to show error or redirect page
> > even all HTTP/1.1 Connector is busy.
> >
> > Is this a possible idea?
>
> If I understand, you'd like to be able to reply to the client even
> when all the Tomcat back-ends are busy. This is best done using a
> reverse-proxy such as Apache httpd, Apache Traffic Server, nginx,
> Squid, Varnish, or any number of similar products.
>
> Yes, "two servers makes management difficult", but that's the price
> you have to pay for robustness and high-availability ... which is
> maybe not so "high" in this case :)
>
> Hope that helps,
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlvPM4YACgkQHPApP6U8
> pFjfNg//TuYI1SOd35TU6P/D+xySi5KphT5OC+lkC3t5gQ0IxiByq+mGy1J47z4+
> rNShIcciRys5bzWyYTn3MVdOMoWMu1NRfWj2ZLi7vWtniiCxp+mIXaoc3dFc3T4F
> SG9osBsrINkM9GqHqfaPRrjlENz3wrJqrRc1fUpgq7uswAUwKVzRnbm9cbSlXN+G
> 669W8PSPfSpaDZ7bZhsbjW7RN/Dlo4PHwx1mMgNEcOW7/RAJ4TcSoj4S08p923g1
> jHNL157DxXabdc+kaTX39SWYgkg3EO5ZaZe/zyunzhlYVjsdDKZMX2bcxA39dl9I
> rOSKXwM6/i290DqBZQtbY76hukJ72bRsUU9XQAT6LJxLnFELM/gk4UYM0XNp1qBT
> DA8ptpPdvK1P43uK9MKPguh/vmwx+fBhTciYCJAO00DB99jzx7yBeYXLwoGFhtP1
> J+8Ae8sM8O81CHDvbFcDgpVJ+2cJtSA9IRuv/yVEefaD50m1p3Rpvy88BNR70VnL
> begyYzOB21eMjHTT3aQgfyLsXWRS4LOVFIrHrv1slLV31caznhD4HB/xTTxXWA3b
> ecB9yjDpKBtiB19ECdchLRI5tpQBHDKN3edcGPdfhelcuxD8eJT48QqrWEBzFcQl
> zIeZm4Ge9F968GmpprReohNUdZebdc7x/dyrfg1sXF8MQw4rUsI=
> =2IrO
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>