Re: [infinispan-dev] Adjusting memory settings in template

2017-09-28 Thread Emmanuel Bernard
Just to clarify, What the user should be able to set is memory request according to the definition here https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/ and we chose a memory limit with reasonable margin (20%?) but aim at never going over memory request And to

Re: [infinispan-dev] Adjusting memory settings in template

2017-09-28 Thread Emmanuel Bernard
I am personally content if you provide the total amount of memory for Pod and you as OSB designer decide of the -Xms/Xmx for the services. Unlike what Sanne said I think, Amazon and the like they don’t give you x GB of cache. They give you an instance of Redis or Memcached within a VM that has

Re: [infinispan-dev] Adjusting memory settings in template

2017-09-28 Thread Sebastian Laskawiec
So how about exposing two parameters - Xms/Xmx and Total amount of memory for Pod (Request = Limit in that case). Would it work for you? On Thu, Sep 28, 2017 at 8:38 AM Emmanuel Bernard wrote: > Sebastian, > > What Galder, Sanne and others are saying is that in OpenShift

Re: [infinispan-dev] Adjusting memory settings in template

2017-09-28 Thread Emmanuel Bernard
Sebastian, What Galder, Sanne and others are saying is that in OpenShift on prem, there is no or at least a higher limit in the minimal container memory you can ask. And in these deployment, Infinispan should target the multi GB, not 512 MB. Of course, *if* you ask for a guaranteed 512MB, then

Re: [infinispan-dev] Adjusting memory settings in template

2017-09-25 Thread Sanne Grinovero
On 22 September 2017 at 16:58, Sebastian Laskawiec wrote: > > > On Fri, Sep 22, 2017 at 5:05 PM Sanne Grinovero > wrote: >> >> On 22 September 2017 at 13:49, Sebastian Laskawiec >> wrote: >> > It's very tricky... >> > >> > Memory

Re: [infinispan-dev] Adjusting memory settings in template

2017-09-25 Thread Galder Zamarreño
> On 25 Sep 2017, at 12:37, Sebastian Laskawiec wrote: > > > > On Mon, Sep 25, 2017 at 11:58 AM Galder Zamarreño wrote: > > > > On 22 Sep 2017, at 17:58, Sebastian Laskawiec wrote: > > > > > > > > On Fri, Sep 22, 2017 at 5:05

Re: [infinispan-dev] Adjusting memory settings in template

2017-09-25 Thread Sebastian Laskawiec
On Mon, Sep 25, 2017 at 11:58 AM Galder Zamarreño wrote: > > > > On 22 Sep 2017, at 17:58, Sebastian Laskawiec > wrote: > > > > > > > > On Fri, Sep 22, 2017 at 5:05 PM Sanne Grinovero > wrote: > > On 22 September 2017 at 13:49,

Re: [infinispan-dev] Adjusting memory settings in template

2017-09-25 Thread Sebastian Laskawiec
On Mon, Sep 25, 2017 at 11:54 AM Galder Zamarreño wrote: > I don't understand your reply here... are you talking about Infinispan > instances deployed on OpenShift Online? Or on premise? > TBH - I think there is no difference, so I'm thinking about both. > I can understand

Re: [infinispan-dev] Adjusting memory settings in template

2017-09-25 Thread Galder Zamarreño
> On 22 Sep 2017, at 17:58, Sebastian Laskawiec wrote: > > > > On Fri, Sep 22, 2017 at 5:05 PM Sanne Grinovero wrote: > On 22 September 2017 at 13:49, Sebastian Laskawiec > wrote: > > It's very tricky... > > > > Memory is

Re: [infinispan-dev] Adjusting memory settings in template

2017-09-22 Thread Sebastian Laskawiec
On Fri, Sep 22, 2017 at 5:05 PM Sanne Grinovero wrote: > On 22 September 2017 at 13:49, Sebastian Laskawiec > wrote: > > It's very tricky... > > > > Memory is adjusted automatically to the container size [1] (of course you > > may override it by

Re: [infinispan-dev] Adjusting memory settings in template

2017-09-22 Thread Sanne Grinovero
On 22 September 2017 at 13:49, Sebastian Laskawiec wrote: > It's very tricky... > > Memory is adjusted automatically to the container size [1] (of course you > may override it by supplying Xmx or "-n" as parameters [2]). The safe limit > is roughly Xmx=Xms=50% of container

Re: [infinispan-dev] Adjusting memory settings in template

2017-09-22 Thread Sebastian Laskawiec
It's very tricky... Memory is adjusted automatically to the container size [1] (of course you may override it by supplying Xmx or "-n" as parameters [2]). The safe limit is roughly Xmx=Xms=50% of container capacity (unless you do the off-heap, that you can squeeze Infinispan much, much more).

[infinispan-dev] Adjusting memory settings in template

2017-09-22 Thread Galder Zamarreño
Hi Sebastian, How do you change memory settings for Infinispan started via service catalog? The memory settings seem defined in [1], but this is not one of the parameters supported. I guess we want this as parameter? Cheers, [1]