You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Josh Cummings <jo...@workfront.com> on 2016/11/11 15:49:56 UTC

How is maxMemorySize calculated in the presence of backups?

For example, if I have an LruEvictionPolicy on a cache with one backup, and
I say the maxMemorySize is 1G, will it evict when the primary has 1G or
when the primary and the backup together have 1G?

-- 

*JOSH CUMMINGS*

Principal Engineer

[image: Workfront] <https://www.workfront.com/>

*O*  801.477.1234  |  *M*  8015562751

joshcummings@workfront.com | www.workfront.com
Address <https://www.workfront.com/contact-us/>  |  Twitter
<http://twitter.com/Workfront_Inc>  |  LinkedIn
<http://www.linkedin.com/company/48453>  |  Facebook
<http://www.facebook.com/workfront>

[image: Workfront] <https://www.workfront.com/email-promo>

Re: How is maxMemorySize calculated in the presence of backups?

Posted by Andrey Gura <ag...@apache.org>.
Josh,

Eviction policies track entries on local node only regardless of fact that
this node is primary or backup for particular entry. So the policy will
evict entries on particular node when this node will have 1G of heap.

On Fri, Nov 11, 2016 at 6:49 PM, Josh Cummings <jo...@workfront.com>
wrote:

> For example, if I have an LruEvictionPolicy on a cache with one backup,
> and I say the maxMemorySize is 1G, will it evict when the primary has 1G or
> when the primary and the backup together have 1G?
>
> --
>
> *JOSH CUMMINGS*
>
> Principal Engineer
>
> [image: Workfront] <https://www.workfront.com/>
>
> *O*  801.477.1234  |  *M*  8015562751
>
> joshcummings@workfront.com | www.workfront.com
> Address <https://www.workfront.com/contact-us/>  |  Twitter
> <http://twitter.com/Workfront_Inc>  |  LinkedIn
> <http://www.linkedin.com/company/48453>  |  Facebook
> <http://www.facebook.com/workfront>
>
> [image: Workfront] <https://www.workfront.com/email-promo>
>