Prohibit/Exclude a specific entity to use DCC mechanism

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

Prohibit/Exclude a specific entity to use DCC mechanism

vipin nirwal
Hi All,

We have implemented a DCC(Distributed Entity Cache Clear) mechanism in our
clustered production environment. There is one specific entity where we are
making a lot of transactions, so a lot of DCC events are being generated
for that entity too.

Is there any way I can remove/exclude this entity from the DCC mechanism.
Just to clarify, i can update/delete/insert on this entity but i do not
want any other ofbiz instance in my cluster to be notified about the same.

--
Thanks & Regards
Vipin Nirwal
Reply | Threaded
Open this post in threaded view
|

Re: Prohibit/Exclude a specific entity to use DCC mechanism

Jacques Le Roux
Administrator
Hi Vipin,

AFAIK, there is no option to exclude an entity from DCC. There are 2 Entity attributes which are somehow related but not sure you would want to use
them: auto-clear-cache and never-cache.

This said it should not be too hard to make a custom change in EntityCacheServices.java (disclaimer I did not look into details)

HTH

Jacques

Le 15/08/2020 à 13:13, vipin nirwal a écrit :

> Hi All,
>
> We have implemented a DCC(Distributed Entity Cache Clear) mechanism in our
> clustered production environment. There is one specific entity where we are
> making a lot of transactions, so a lot of DCC events are being generated
> for that entity too.
>
> Is there any way I can remove/exclude this entity from the DCC mechanism.
> Just to clarify, i can update/delete/insert on this entity but i do not
> want any other ofbiz instance in my cluster to be notified about the same.
>
Reply | Threaded
Open this post in threaded view
|

Re: Prohibit/Exclude a specific entity to use DCC mechanism

vipin nirwal
Hi Jacques,

Thanks for quick response. I will check the file that you mentioned. Thanks.

BR//
Vipin

On Sat, Aug 15, 2020 at 9:52 PM Jacques Le Roux <
[hidden email]> wrote:

> Hi Vipin,
>
> AFAIK, there is no option to exclude an entity from DCC. There are 2
> Entity attributes which are somehow related but not sure you would want to
> use
> them: auto-clear-cache and never-cache.
>
> This said it should not be too hard to make a custom change in
> EntityCacheServices.java (disclaimer I did not look into details)
>
> HTH
>
> Jacques
>
> Le 15/08/2020 à 13:13, vipin nirwal a écrit :
> > Hi All,
> >
> > We have implemented a DCC(Distributed Entity Cache Clear) mechanism in
> our
> > clustered production environment. There is one specific entity where we
> are
> > making a lot of transactions, so a lot of DCC events are being generated
> > for that entity too.
> >
> > Is there any way I can remove/exclude this entity from the DCC mechanism.
> > Just to clarify, i can update/delete/insert on this entity but i do not
> > want any other ofbiz instance in my cluster to be notified about the
> same.
> >
>


--
Thanks & Regards
Vipin Nirwal