Do we need add <distributable /> in all webapp for clustering to work ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Do we need add <distributable /> in all webapp for clustering to work ?

Deepak Agarwal-2
Do we need add  <distributable /> in all webapp for clustering to work ?

--
Thanks,
Deepak Agarwal,

Paxcel Technologies Pvt Ltd.
Hartron Complex, Sector 18, Gurgaon, India.
E-Mail: [hidden email]
Mobile: +91 9910322604
Reply | Threaded
Open this post in threaded view
|

Re: Do we need add <distributable /> in all webapp for clustering to work ?

Deepak Agarwal-2
Got the answer, and answer is 'Yes' . Webapps which needs to be distributed
should add this.

On Fri, Jun 15, 2012 at 11:56 PM, Deepak Agarwal <[hidden email]>wrote:

> Do we need add  <distributable /> in all webapp for clustering to work ?
>
> --
> Thanks,
> Deepak Agarwal,
>
> Paxcel Technologies Pvt Ltd.
> Hartron Complex, Sector 18, Gurgaon, India.
> E-Mail: [hidden email]
> Mobile: +91 9910322604
>
>


--
Thanks,
Deepak Agarwal,

Paxcel Technologies Pvt Ltd.
Hartron Complex, Sector 18, Gurgaon, India.
E-Mail: [hidden email]
Mobile: +91 9910322604
Reply | Threaded
Open this post in threaded view
|

Re: Do we need add <distributable /> in all webapp for clustering to work ?

Jacques Le Roux
Administrator
Yes, that was recently introduced. Before all webapps were distributable by default which was too much.

Jacques

From: "Deepak Agarwal" <[hidden email]>

> Got the answer, and answer is 'Yes' . Webapps which needs to be distributed
> should add this.
>
> On Fri, Jun 15, 2012 at 11:56 PM, Deepak Agarwal <[hidden email]>wrote:
>
>> Do we need add  <distributable /> in all webapp for clustering to work ?
>>
>> --
>> Thanks,
>> Deepak Agarwal,
>>
>> Paxcel Technologies Pvt Ltd.
>> Hartron Complex, Sector 18, Gurgaon, India.
>> E-Mail: [hidden email]
>> Mobile: +91 9910322604
>>
>>
>
>
> --
> Thanks,
> Deepak Agarwal,
>
> Paxcel Technologies Pvt Ltd.
> Hartron Complex, Sector 18, Gurgaon, India.
> E-Mail: [hidden email]
> Mobile: +91 9910322604
>
Reply | Threaded
Open this post in threaded view
|

Re: Do we need add <distributable /> in all webapp for clustering to work ?

Deepak Agarwal-2
Any basic list of webapps which needs to be distributable. We are running a
ecommerce site.

I have doubts with unique id generations, server hit counters and
cache(GenericValue cache).

On Sat, Jun 16, 2012 at 3:28 AM, Jacques Le Roux <
[hidden email]> wrote:

> Yes, that was recently introduced. Before all webapps were distributable
> by default which was too much.
>
> Jacques
>
> From: "Deepak Agarwal" <[hidden email]>
>
>  Got the answer, and answer is 'Yes' . Webapps which needs to be
>> distributed
>> should add this.
>>
>> On Fri, Jun 15, 2012 at 11:56 PM, Deepak Agarwal <[hidden email]
>> >wrote:
>>
>>  Do we need add  <distributable /> in all webapp for clustering to work ?
>>>
>>> --
>>> Thanks,
>>> Deepak Agarwal,
>>>
>>> Paxcel Technologies Pvt Ltd.
>>> Hartron Complex, Sector 18, Gurgaon, India.
>>> E-Mail: [hidden email]
>>> Mobile: +91 9910322604
>>>
>>>
>>>
>>
>> --
>> Thanks,
>> Deepak Agarwal,
>>
>> Paxcel Technologies Pvt Ltd.
>> Hartron Complex, Sector 18, Gurgaon, India.
>> E-Mail: [hidden email]
>> Mobile: +91 9910322604
>>
>>


--
Thanks,
Deepak Agarwal,

Paxcel Technologies Pvt Ltd.
Hartron Complex, Sector 18, Gurgaon, India.
E-Mail: [hidden email]
Mobile: +91 9910322604
Reply | Threaded
Open this post in threaded view
|

Re: Do we need add <distributable /> in all webapp for clustering to work ?

Jacques Le Roux
Administrator
From: "Deepak Agarwal" <[hidden email]>
> Any basic list of webapps which needs to be distributable. We are running a
> ecommerce site.

This is you to decide, depends on which backend components you are using or not...

> I have doubts with unique id generations, server hit counters and
> cache(GenericValue cache).

unique id generations is safe, with any DBMS. It uses banks for faster (in memory most of the time) generation and a SELECT FOR
UPDATE when creating banks (in order to prevent collisions)

server hit counters is safe but costly, depends on your needs.

cache is safe but you need to use the DCC mechanims if you distribute your application
https://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism

By and large, I advice for sticky sessions for easier deployment. This is not a problem as long as you are not running a critical
application (ie users lose their sessionin case of machine crash, even if distributed. Most of the time in eCommerce you distribute
for load , it's not that ctritical and nowadays systems are reliable)

Don't ask me more...

Jacques

> On Sat, Jun 16, 2012 at 3:28 AM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> Yes, that was recently introduced. Before all webapps were distributable
>> by default which was too much.
>>
>> Jacques
>>
>> From: "Deepak Agarwal" <[hidden email]>
>>
>>  Got the answer, and answer is 'Yes' . Webapps which needs to be
>>> distributed
>>> should add this.
>>>
>>> On Fri, Jun 15, 2012 at 11:56 PM, Deepak Agarwal <[hidden email]
>>> >wrote:
>>>
>>>  Do we need add  <distributable /> in all webapp for clustering to work ?
>>>>
>>>> --
>>>> Thanks,
>>>> Deepak Agarwal,
>>>>
>>>> Paxcel Technologies Pvt Ltd.
>>>> Hartron Complex, Sector 18, Gurgaon, India.
>>>> E-Mail: [hidden email]
>>>> Mobile: +91 9910322604
>>>>
>>>>
>>>>
>>>
>>> --
>>> Thanks,
>>> Deepak Agarwal,
>>>
>>> Paxcel Technologies Pvt Ltd.
>>> Hartron Complex, Sector 18, Gurgaon, India.
>>> E-Mail: [hidden email]
>>> Mobile: +91 9910322604
>>>
>>>
>
>
> --
> Thanks,
> Deepak Agarwal,
>
> Paxcel Technologies Pvt Ltd.
> Hartron Complex, Sector 18, Gurgaon, India.
> E-Mail: [hidden email]
> Mobile: +91 9910322604
>
Reply | Threaded
Open this post in threaded view
|

Re: Do we need add <distributable /> in all webapp for clustering to work ?

Deepak Agarwal-2
Thanks for your valuable answer, it answers most.

We have setup sticky load balancing and it works well. As you said rightly
about replication , we require load balancing and we can accept loosing
session if a machine crashes (at least for now).

On Sat, Jun 16, 2012 at 2:38 PM, Jacques Le Roux <
[hidden email]> wrote:

> From: "Deepak Agarwal" <[hidden email]>
>
>  Any basic list of webapps which needs to be distributable. We are running
>> a
>> ecommerce site.
>>
>
> This is you to decide, depends on which backend components you are using
> or not...
>
>
>  I have doubts with unique id generations, server hit counters and
>> cache(GenericValue cache).
>>
>
> unique id generations is safe, with any DBMS. It uses banks for faster (in
> memory most of the time) generation and a SELECT FOR UPDATE when creating
> banks (in order to prevent collisions)
>
> server hit counters is safe but costly, depends on your needs.
>
> cache is safe but you need to use the DCC mechanims if you distribute your
> application https://cwiki.apache.org/**confluence/display/OFBIZ/**
> Distributed+Entity+Cache+**Clear+Mechanism<https://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism>
>
> By and large, I advice for sticky sessions for easier deployment. This is
> not a problem as long as you are not running a critical application (ie
> users lose their sessionin case of machine crash, even if distributed. Most
> of the time in eCommerce you distribute for load , it's not that ctritical
> and nowadays systems are reliable)
>
> Don't ask me more...
>
> Jacques
>
>
>  On Sat, Jun 16, 2012 at 3:28 AM, Jacques Le Roux <
>> [hidden email]> wrote:
>>
>>  Yes, that was recently introduced. Before all webapps were distributable
>>> by default which was too much.
>>>
>>> Jacques
>>>
>>> From: "Deepak Agarwal" <[hidden email]>
>>>
>>>  Got the answer, and answer is 'Yes' . Webapps which needs to be
>>>
>>>> distributed
>>>> should add this.
>>>>
>>>> On Fri, Jun 15, 2012 at 11:56 PM, Deepak Agarwal <[hidden email]
>>>> >wrote:
>>>>
>>>>  Do we need add  <distributable /> in all webapp for clustering to work
>>>> ?
>>>>
>>>>>
>>>>> --
>>>>> Thanks,
>>>>> Deepak Agarwal,
>>>>>
>>>>> Paxcel Technologies Pvt Ltd.
>>>>> Hartron Complex, Sector 18, Gurgaon, India.
>>>>> E-Mail: [hidden email]
>>>>> Mobile: +91 9910322604
>>>>>
>>>>>
>>>>>
>>>>>
>>>> --
>>>> Thanks,
>>>> Deepak Agarwal,
>>>>
>>>> Paxcel Technologies Pvt Ltd.
>>>> Hartron Complex, Sector 18, Gurgaon, India.
>>>> E-Mail: [hidden email]
>>>> Mobile: +91 9910322604
>>>>
>>>>
>>>>
>>
>> --
>> Thanks,
>> Deepak Agarwal,
>>
>> Paxcel Technologies Pvt Ltd.
>> Hartron Complex, Sector 18, Gurgaon, India.
>> E-Mail: [hidden email]
>> Mobile: +91 9910322604
>>
>> --
>> Thanks,
>> Deepak Agarwal,
>>
>> Paxcel Technologies Pvt Ltd.
>> Hartron Complex, Sector 18, Gurgaon, India.
>> E-Mail: [hidden email]
>> Mobile: +91 9910322604
>>
>>  <%2B91%209910322604>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Do we need add <distributable /> in all webapp for clustering to work ?

Jacopo Cappellato-4
In reply to this post by Jacques Le Roux

On Jun 16, 2012, at 11:08 AM, Jacques Le Roux wrote:

> cache is safe but you need to use the DCC mechanims if you distribute your applicationhttps://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism

Jacques,

as a side note in trunk the issue you reports at the bottom of the page should be resolved: now we have the proper slf4j jar files in the classpath to redirect logging to log4j.

Jacopo
Reply | Threaded
Open this post in threaded view
|

Re: Do we need add <distributable /> in all webapp for clustering to work ?

Jacques Le Roux
Administrator
Thanks Jacop,

Noted there

Jacques

From: "Jacopo Cappellato" <[hidden email]>

> On Jun 16, 2012, at 11:08 AM, Jacques Le Roux wrote:
>
>> cache is safe but you need to use the DCC mechanims if you distribute your
>> applicationhttps://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism
>
> Jacques,
>
> as a side note in trunk the issue you reports at the bottom of the page should be resolved: now we have the proper slf4j jar files
> in the classpath to redirect logging to log4j.
>
> Jacopo
Reply | Threaded
Open this post in threaded view
|

Re: Do we need add <distributable /> in all webapp for clustering to work ?

Deepak Agarwal-2
If anybody wondering how the images will be distributed, one can configure
NFS and mount it on each server. Or LFS (Lustre) / HDFS (Hadoop)
distributable fs can be used (if images are exteremly large in number)

On Sun, Jun 17, 2012 at 1:51 PM, Jacques Le Roux <
[hidden email]> wrote:

> Thanks Jacop,
>
> Noted there
>
> Jacques
>
> From: "Jacopo Cappellato" <jacopo.cappellato@**hotwaxmedia.com<[hidden email]>
> >
>
>  On Jun 16, 2012, at 11:08 AM, Jacques Le Roux wrote:
>>
>>  cache is safe but you need to use the DCC mechanims if you distribute
>>> your applicationhttps://cwiki.**apache.org/confluence/display/**
>>> OFBIZ/Distributed+Entity+**Cache+Clear+Mechanism<http://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism>
>>>
>>
>> Jacques,
>>
>> as a side note in trunk the issue you reports at the bottom of the page
>> should be resolved: now we have the proper slf4j jar files in the classpath
>> to redirect logging to log4j.
>>
>> Jacopo
>>
>> --
>> Thanks,
>> Deepak Agarwal,
>>
>> Paxcel Technologies Pvt Ltd.
>> Hartron Complex, Sector 18, Gurgaon, India.
>> E-Mail: [hidden email]
>> Mobile: +91 9910322604
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Do we need add <distributable /> in all webapp for clustering to work ?

Deepak Agarwal-2
In a distributable enviornment If I change price of a product on one server
then how would another server will know ? Cache clear each time?

On Mon, Jun 18, 2012 at 1:48 PM, Deepak Agarwal <[hidden email]>wrote:

> If anybody wondering how the images will be distributed, one can configure
> NFS and mount it on each server. Or LFS (Lustre) / HDFS (Hadoop)
> distributable fs can be used (if images are exteremly large in number)
>
> On Sun, Jun 17, 2012 at 1:51 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
>>  Thanks Jacop,
>>
>> Noted there
>>
>> Jacques
>>
>> From: "Jacopo Cappellato" <jacopo.cappellato@**hotwaxmedia.com<[hidden email]>
>> >
>>
>>  On Jun 16, 2012, at 11:08 AM, Jacques Le Roux wrote:
>>>
>>>  cache is safe but you need to use the DCC mechanims if you distribute
>>>> your applicationhttps://cwiki.**apache.org/confluence/display/**
>>>> OFBIZ/Distributed+Entity+**Cache+Clear+Mechanism<http://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism>
>>>>
>>>
>>> Jacques,
>>>
>>> as a side note in trunk the issue you reports at the bottom of the page
>>> should be resolved: now we have the proper slf4j jar files in the classpath
>>> to redirect logging to log4j.
>>>
>>> Jacopo
>>>
>>> --
>>> Thanks,
>>> Deepak Agarwal,
>>>
>>> Paxcel Technologies Pvt Ltd.
>>> Hartron Complex, Sector 18, Gurgaon, India.
>>> E-Mail: [hidden email]
>>> Mobile: +91 9910322604
>>>
>>>


--
Thanks,
Deepak Agarwal,

Paxcel Technologies Pvt Ltd.
Hartron Complex, Sector 18, Gurgaon, India.
E-Mail: [hidden email]
Mobile: +91 9910322604
Reply | Threaded
Open this post in threaded view
|

Re: Do we need add <distributable /> in all webapp for clustering to work ?

Jacques Le Roux
Administrator
Are you using DCC?
https://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism

Jacques

From: "Deepak Agarwal" <[hidden email]>

> In a distributable enviornment If I change price of a product on one server
> then how would another server will know ? Cache clear each time?
>
> On Mon, Jun 18, 2012 at 1:48 PM, Deepak Agarwal <[hidden email]>wrote:
>
>> If anybody wondering how the images will be distributed, one can configure
>> NFS and mount it on each server. Or LFS (Lustre) / HDFS (Hadoop)
>> distributable fs can be used (if images are exteremly large in number)
>>
>> On Sun, Jun 17, 2012 at 1:51 PM, Jacques Le Roux <
>> [hidden email]> wrote:
>>
>>>  Thanks Jacop,
>>>
>>> Noted there
>>>
>>> Jacques
>>>
>>> From: "Jacopo Cappellato" <jacopo.cappellato@**hotwaxmedia.com<[hidden email]>
>>> >
>>>
>>>  On Jun 16, 2012, at 11:08 AM, Jacques Le Roux wrote:
>>>>
>>>>  cache is safe but you need to use the DCC mechanims if you distribute
>>>>> your applicationhttps://cwiki.**apache.org/confluence/display/**
>>>>> OFBIZ/Distributed+Entity+**Cache+Clear+Mechanism<http://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism>
>>>>>
>>>>
>>>> Jacques,
>>>>
>>>> as a side note in trunk the issue you reports at the bottom of the page
>>>> should be resolved: now we have the proper slf4j jar files in the classpath
>>>> to redirect logging to log4j.
>>>>
>>>> Jacopo
>>>>
>>>> --
>>>> Thanks,
>>>> Deepak Agarwal,
>>>>
>>>> Paxcel Technologies Pvt Ltd.
>>>> Hartron Complex, Sector 18, Gurgaon, India.
>>>> E-Mail: [hidden email]
>>>> Mobile: +91 9910322604
>>>>
>>>>
>
>
> --
> Thanks,
> Deepak Agarwal,
>
> Paxcel Technologies Pvt Ltd.
> Hartron Complex, Sector 18, Gurgaon, India.
> E-Mail: [hidden email]
> Mobile: +91 9910322604
>
Reply | Threaded
Open this post in threaded view
|

Re: Do we need add <distributable /> in all webapp for clustering to work ?

Deepak Agarwal-2
Didn't know about it . Thanks. will try it.

On Thu, Jul 5, 2012 at 7:23 PM, Jacques Le Roux <
[hidden email]> wrote:

> Are you using DCC?
> https://cwiki.apache.org/**confluence/display/OFBIZ/**
> Distributed+Entity+Cache+**Clear+Mechanism<https://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism>
>
>
> Jacques
>
> From: "Deepak Agarwal" <[hidden email]>
>
>> In a distributable enviornment If I change price of a product on one
>> server
>>
>> then how would another server will know ? Cache clear each time?
>>
>> On Mon, Jun 18, 2012 at 1:48 PM, Deepak Agarwal <[hidden email]
>> >wrote:
>>
>>  If anybody wondering how the images will be distributed, one can
>>> configure
>>> NFS and mount it on each server. Or LFS (Lustre) / HDFS (Hadoop)
>>> distributable fs can be used (if images are exteremly large in number)
>>>
>>> On Sun, Jun 17, 2012 at 1:51 PM, Jacques Le Roux <
>>> [hidden email]> wrote:
>>>
>>>   Thanks Jacop,
>>>>
>>>> Noted there
>>>>
>>>> Jacques
>>>>
>>>> From: "Jacopo Cappellato" <jacopo.cappellato@**hotwaxmed**ia.com<http://hotwaxmedia.com>
>>>> <jacopo.cappellato@**hotwaxmedia.com<[hidden email]>
>>>> >
>>>>
>>>> >
>>>>
>>>>  On Jun 16, 2012, at 11:08 AM, Jacques Le Roux wrote:
>>>>
>>>>>
>>>>>  cache is safe but you need to use the DCC mechanims if you distribute
>>>>>
>>>>>> your applicationhttps://cwiki.**apa**che.org/confluence/display/**<http://apache.org/confluence/display/**>
>>>>>> OFBIZ/Distributed+Entity+****Cache+Clear+Mechanism<http://**
>>>>>> cwiki.apache.org/confluence/**display/OFBIZ/Distributed+**
>>>>>> Entity+Cache+Clear+Mechanism<http://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism>
>>>>>> >
>>>>>>
>>>>>>
>>>>> Jacques,
>>>>>
>>>>> as a side note in trunk the issue you reports at the bottom of the page
>>>>> should be resolved: now we have the proper slf4j jar files in the
>>>>> classpath
>>>>> to redirect logging to log4j.
>>>>>
>>>>> Jacopo
>>>>>
>>>>> --
>>>>> Thanks,
>>>>> Deepak Agarwal,
>>>>>
>>>>> Paxcel Technologies Pvt Ltd.
>>>>> Hartron Complex, Sector 18, Gurgaon, India.
>>>>> E-Mail: [hidden email]
>>>>> Mobile: +91 9910322604
>>>>>
>>>>>
>>>>>
>>
>> --
>> Thanks,
>> Deepak Agarwal,
>>
>> Paxcel Technologies Pvt Ltd.
>> Hartron Complex, Sector 18, Gurgaon, India.
>> E-Mail: [hidden email]
>> Mobile: +91 9910322604
>>
>> --
>> Thanks,
>> Deepak Agarwal,
>>
>> Paxcel Technologies Pvt Ltd.
>> Hartron Complex, Sector 18, Gurgaon, India.
>> E-Mail: [hidden email]
>> Mobile: +91 9910322604
>>  <%2B91%209910322604>
>>
>