ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitriy Setrakyan <dsetrak...@apache.org>
Subject Re: CacheEntryEventFilter with Replicated caches
Date Wed, 09 Mar 2016 23:09:20 GMT
Hi Andrey.

The replicated cache is just a partitioned cache with more backups. I think
the filter is deployed on all nodes, but is only invoked on the primary
node (correct me if I am wrong). In that case, it will be impossible to
deploy it only on the node that registered it.


On Wed, Mar 9, 2016 at 1:44 PM, Andrey Kornev <andrewkornev@hotmail.com>

> Hello,
> It's come to my attention, when registering the cache event listener, the
> filters get deployed on all the nodes of the cache, despite the fact that
> the cache is configured as REPLICATED.  This seems redundant since it's
> sufficient to have the filter deployed only on the node that has the local
> cache listener (in other words, the same node that registers the listener).
> Since the filter may execute some non-trivial computationally intensive
> logic and it doesn't make sense to waste CPU on the nodes that are not
> going to call back the listener. Not deploying filters to remote nodes
> would also reduce the registration/unregistration overhead since only the
> local node needs to be involved.
> The only case that would require special attention would be the case when
> a listener is registered from a node which doesn't have the cache started.
> Please advise.
> Andrey

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message