Re: Queries related to Tomcat Web Servers for which a new web-application needs to deployed on Production Environment

2019-01-31 Thread Vinu Vibhu Sobhana
Hai Mark,

For your valid comment please for one more point mentioned in the trail mail..


On Tue, Jan 29, 2019 at 4:11 PM Vinu Vibhu Sobhana  wrote:
>
> Hai Mark
>
> One more small clarity required on the previous reply with respective
> to the below point.
>
> You can use the FarmWarDeployer if you wish but you don't have to.
> Generally, the right answer here will be driven by how your organisation
> manages files on servers.
>
>  Ok..If Iam having a load-balancer serving 2 tomcat instances configured 
>  with autoDeploy="true" and unpackWARs="false" in their server.xml 
>  respectively, running on two separate VMs. Also, Iam having a common 
>  share such as NFS folder mounted on both servers. This share folder 
>  contains a single folder named prod_webapps which contains all the 
>  required application war files that needs to be deployed on both tomcat 
>  servers.
>
> Can I have this prod_webapps folder soft-linked to both
> tomcat1/webapps folder and tomact2/webapps folder, so that we can have
> a centralized webapps deployment folder. Is this possible? Will this
> scenario feasible for Production deployment?
>
> Thank You
> Vinu VS
>
> On Tue, Jan 29, 2019 at 3:43 PM Mark Thomas  wrote:
> >
> > On 29/01/2019 06:56, Vinu Vibhu Sobhana wrote:
> > > Hai Mark,
> > >
> > > Please find my comments on the reply sent earlier as some points are
> > > still remain unclear.
> > >
> > >> I have been assigned a new project that requires a web application to
> > >> be hosted using Tomcat-Cluster, as it is expected to receive high
> > >> traffic.
> > > High traffic may be a justification for load-balancing. It is not a
> > > justification for session replication.
> > >
> >  Since we would be receiving high traffic it was decided to go with 
> >  multiple instances of tomcat using a load-balancer.
> > >
> > > Why 2 instances per VM rather than one larger instance per VM?
> >  So for this point it is understood that it is best that we put only 
> >  one instance per VM (with large hardware resource). Iam I correct. 
> >  Will the same scenario be applicable while using physical machine. ie 
> >  one Tomcat instance per machine. What about the resource limitation 
> >  (ie. any memory allocation pool for a JVM, etc.) required that must be 
> >  noted.
> >
> > The right configuration will depend on the app. Generally, for a well
> > written app one JVM per VM will be the best choice but only testing will
> > tell for sure.
> >
> > >> Point 1
> > > Don't use any clustering at all.
> > >
> >  This point was not clear at all. Are you suggesting that we configure 
> >  Tomcat instances without cluster and configure the load balancer with 
> >  session management and stickiness features to manage sessions??
> >
> > Yes. Don;t use clustering unless you really need it.
> >
> > >> Point 2
> > > N/A since clustering is not required.
> > >
> >  If clustering is required for other scenarios, then please comment on 
> >  this point how should we deploy applications using Tomcat Manager App 
> >  on FarmWarDeployer folder
> >
> > You can use the FarmWarDeployer if you wish but you don't have to.
> > Generally, the right answer here will be driven by how your organisation
> > manages files on servers.
> >
> > >> Point 3
> > > No.
> >  This means that there is mo method to collect the errors for 
> >  individual domain when VirtualHost element is enabled. If there is any 
> >  work-around please suggest. Also will the catalina.out log contains 
> >  errors for these VirtualHost element?
> >
> > There is no workaround.
> >
> > A well written application should not be writing anything to catalina.out
> >
> > >> Point 8
> > > Configure the load-balancer to use sticky sessions. You'll need to do
> > > that anyway if clustering is removed.
> > >
> >  With respect to my project specification mentioned in point 8, you 
> >  have suggested to go with a load-balancer serving 2 tomcat instances, 
> >  each running on two separate VMs with enough resources. Moreover, 
> >  these tomcat instances are NOT to be in Clustered State and the 
> >  session must be managed by an external Load-balancer using Stick bit 
> >  mode enable. Is it correct?.
> >
> > Yes.
> >
> > > Is Tomcat CPU intrinsic or Memory?
> >
> > I don't understand the question.
> >
> > Mark
> >
> > > --
> > > Thank You
> > > Vinu VS
> > >
> > >
> > > On Mon, Jan 28, 2019 at 3:00 PM Mark Thomas  wrote:
> > >>
> > >> On 28/01/2019 07:25, Vinu Vibhu Sobhana wrote:
> > >>> Hai
> > >>>
> > >>> First of all Iam new to Tomcat-Cluster and hence I apologize if my
> > >>> doubts are wrong.
> > >>>
> > >>> I have been assigned a new project that requires a web application to
> > >>> be hosted using Tomcat-Cluster, as it is expected to receive high
> > >>> traffic.
> > >>
> > >> High traffic may be a justification for load-balancing. It is not a
> > >> justification 

Re: Queries related to Tomcat Web Servers for which a new web-application needs to deployed on Production Environment

2019-01-31 Thread Mark Thomas
On 31/01/2019 11:45, Vinu Vibhu Sobhana wrote:
> Hai Mark,
> 
> For your valid comment please for one more point mentioned in the trail mail..
> 
> 
> On Tue, Jan 29, 2019 at 4:11 PM Vinu Vibhu Sobhana  wrote:
>>
>> Hai Mark
>>
>> One more small clarity required on the previous reply with respective
>> to the below point.
>>
>> You can use the FarmWarDeployer if you wish but you don't have to.
>> Generally, the right answer here will be driven by how your organisation
>> manages files on servers.
>>
>> Ok..If Iam having a load-balancer serving 2 tomcat instances configured 
>> with autoDeploy="true" and unpackWARs="false" in their server.xml 
>> respectively, running on two separate VMs. Also, Iam having a common 
>> share such as NFS folder mounted on both servers. This share folder 
>> contains a single folder named prod_webapps which contains all the 
>> required application war files that needs to be deployed on both tomcat 
>> servers.
>>
>> Can I have this prod_webapps folder soft-linked to both
>> tomcat1/webapps folder and tomact2/webapps folder, so that we can have
>> a centralized webapps deployment folder. Is this possible? Will this
>> scenario feasible for Production deployment?

That is likely to be problematic if automatic deployment is enabled.

If you must use softlinks, just soft-link the WAR.

Personally, I would just copy the files.

Mark


>>
>> Thank You
>> Vinu VS
>>
>> On Tue, Jan 29, 2019 at 3:43 PM Mark Thomas  wrote:
>>>
>>> On 29/01/2019 06:56, Vinu Vibhu Sobhana wrote:
 Hai Mark,

 Please find my comments on the reply sent earlier as some points are
 still remain unclear.

> I have been assigned a new project that requires a web application to
> be hosted using Tomcat-Cluster, as it is expected to receive high
> traffic.
 High traffic may be a justification for load-balancing. It is not a
 justification for session replication.

>>> Since we would be receiving high traffic it was decided to go with 
>>> multiple instances of tomcat using a load-balancer.

 Why 2 instances per VM rather than one larger instance per VM?
>>> So for this point it is understood that it is best that we put only one 
>>> instance per VM (with large hardware resource). Iam I correct. Will the 
>>> same scenario be applicable while using physical machine. ie one Tomcat 
>>> instance per machine. What about the resource limitation (ie. any 
>>> memory allocation pool for a JVM, etc.) required that must be noted.
>>>
>>> The right configuration will depend on the app. Generally, for a well
>>> written app one JVM per VM will be the best choice but only testing will
>>> tell for sure.
>>>
> Point 1
 Don't use any clustering at all.

>>> This point was not clear at all. Are you suggesting that we configure 
>>> Tomcat instances without cluster and configure the load balancer with 
>>> session management and stickiness features to manage sessions??
>>>
>>> Yes. Don;t use clustering unless you really need it.
>>>
> Point 2
 N/A since clustering is not required.

>>> If clustering is required for other scenarios, then please comment on 
>>> this point how should we deploy applications using Tomcat Manager App 
>>> on FarmWarDeployer folder
>>>
>>> You can use the FarmWarDeployer if you wish but you don't have to.
>>> Generally, the right answer here will be driven by how your organisation
>>> manages files on servers.
>>>
> Point 3
 No.
>>> This means that there is mo method to collect the errors for individual 
>>> domain when VirtualHost element is enabled. If there is any work-around 
>>> please suggest. Also will the catalina.out log contains errors for 
>>> these VirtualHost element?
>>>
>>> There is no workaround.
>>>
>>> A well written application should not be writing anything to catalina.out
>>>
> Point 8
 Configure the load-balancer to use sticky sessions. You'll need to do
 that anyway if clustering is removed.

>>> With respect to my project specification mentioned in point 8, you have 
>>> suggested to go with a load-balancer serving 2 tomcat instances, each 
>>> running on two separate VMs with enough resources. Moreover, these 
>>> tomcat instances are NOT to be in Clustered State and the session must 
>>> be managed by an external Load-balancer using Stick bit mode enable. Is 
>>> it correct?.
>>>
>>> Yes.
>>>
 Is Tomcat CPU intrinsic or Memory?
>>>
>>> I don't understand the question.
>>>
>>> Mark
>>>
 --
 Thank You
 Vinu VS


 On Mon, Jan 28, 2019 at 3:00 PM Mark Thomas  wrote:
>
> On 28/01/2019 07:25, Vinu Vibhu Sobhana wrote:
>> Hai
>>
>> First of all Iam new to Tomcat-Cluster and hence I apologize if my
>> doubts are wrong.
>>
>> I have been assigned a new project that requires a web application to
>> be hosted