-
1. Re: Meaning of Paging Max Global Size
jmesnil Aug 4, 2009 10:45 AM (in response to clebert.suconic)ok, it's starting to be clearer for me.
I'm fine with the global paging mode preventing an OOME by putting messages in the pages and not route them.
What is still not clear in the user example was why was it possible to consume messages from destinationA and not from destinationB?
In other words, once we hit the global paging mode, how can we consume the paged messages?
I'm wondering if we shouldn't be restrictive with producers and permissive with consumers.
Even when we've reached the global page mode, we should still allow a consumer to consume messages (even if it will consume memory). wdyt? -
2. Re: Meaning of Paging Max Global Size
clebert.suconic Aug 4, 2009 10:51 AM (in response to clebert.suconic)What is still not clear in the user example was why was it possible to consume messages from destinationA and not from destinationB?
In other words, once we hit the global paging mode, how can we consume the paged messages?
from the user's example, I' m assuming destinationA is the destination that will receive MESSAGE_COUNT (10000) messages, and destinationB the destination that will only receive one message.
At the current definition: You need to first consume the messages that are in memory for destinationA. As soon as you free up memory, destinationB will have their messages on queue.
ATM: The user just needs to configure paging at the address level. As that's probably what the user wants. -
3. Re: Meaning of Paging Max Global Size
clebert.suconic Aug 4, 2009 12:26 PM (in response to clebert.suconic)New definition?: The global max size is the limit where all the destinations enter into page mode. And any destination will have at least a minimal limit of data in memory equivalent to 1 page. (the default will be 10MiB).
This will also mean: We won't be able to protect the server from OMEs. If the user created a huge ammount of addresses (say.... 1000), each address will have at least 10MiB (pre-configured) in memory.
This would be exactly the same as: Set GlobalPageMaxSize = -1, and set maxPage = 10MiB on each individual pages.
GlobalPageMaxSize should be something rarely used by the user.
If we decide for this definition, I would just remove the option for GlobalPageMode. (which I would actually love to do it.. I never liked GlobalPageModel anyway ;-) ) -
4. Re: Meaning of Paging Max Global Size
clebert.suconic Aug 4, 2009 12:26 PM (in response to clebert.suconic)Well... not exactly the same :-) Ok... we only start paging everything after the maxSize.
-
5. Re: Meaning of Paging Max Global Size
timfox Aug 4, 2009 12:38 PM (in response to clebert.suconic)Ok fair enough.
So let's document it clearly that global max size is a *hard* limit and limiting sizes on an address level is preferable.