Re: Memory usage per cache

2018-04-13 Thread Denis Magda
Vladimir, For now I would > only show total size of all indexes, and add something like > "indexSize(String indexName)" method later Is there any technical or architectural limitation that prevents us from adding this method right now? I thought that if we could show the size of a PK, then we

Re: Memory usage per cache

2018-04-13 Thread Vladimir Ozerov
Igniters, I have several questions regarding overall metrics design: 1) Why we split PK and non-PK indexes? This is merely implementation detail and It is not clear why we want to pin it on public API forever. Other database vendors allow users to get size of specific index. For now I would only

Re: Memory usage per cache

2018-04-12 Thread Denis Magda
Alex, Dmitriy, Please clarify/consider the following: - Can we get the size of a particular secondary index with a method like getIndexSize(indexName)? Vladimir Ozerov , it should be feasible, right? - The new

Re: Memory usage per cache

2018-04-12 Thread Alexey Goncharuk
Sounds good to me. Folks, any other feedback on metrics API in IGNITE-8078? 2018-04-06 21:36 GMT+03:00 Denis Magda : > Alex, > > Why not return cache group metrics from this method by default and properly > > document it? > > > What do you think about Dmitry's suggestion? It

Re: Memory usage per cache

2018-04-06 Thread Denis Magda
Alex, Why not return cache group metrics from this method by default and properly > document it? What do you think about Dmitry's suggestion? It sounds reasonable to me. -- Denis On Wed, Apr 4, 2018 at 12:22 PM, Dmitriy Setrakyan wrote: > On Wed, Apr 4, 2018 at 5:27

Re: Memory usage per cache

2018-04-04 Thread Dmitriy Setrakyan
On Wed, Apr 4, 2018 at 5:27 AM, Alexey Goncharuk wrote: > Denis, > > I think this particular metric should be deprecated. The most we can do > about it is to return the actual allocated size when a cache is the only > cache in a group and return -1 if there are

Re: Memory usage per cache

2018-04-04 Thread Alexey Goncharuk
gt; > > > > > alexey.goncha...@gmail.com> wrote: > > > > > > > > > > > > > > > Denis, > > > > > > > > > > > > > > > > Currently there is an easy way to add per-cache-group metrics > > for

Re: Memory usage per cache

2018-04-03 Thread Denis Magda
; > > >> > > > > > > Denis, >> > > > > > > >> > > > > > > Currently there is an easy way to add per-cache-group metrics >> for >> > > > data >> > > > > > and >> > >

Re: Memory usage per cache

2018-03-30 Thread Denis Magda
gt; > > > > index pages. There is an internal counter, but it is not > > published > > > as > > > > > an > > > > > > > MBean metric, we will do this as a part of IEP-6. > > > > > > > > > > > >

Re: Memory usage per cache

2018-03-30 Thread Alexey Goncharuk
d per-cache-group metrics for > > > data > > > > > and > > > > > > index pages. There is an internal counter, but it is not > published > > as > > > > an > > > > > > MBean metric, we will do this as a part of IEP-6. >

Re: Memory usage per cache

2018-03-30 Thread Dmitriy Setrakyan
, we will do this as a part of IEP-6. > > > > > > > > > > As for the per-cache metrics, this can be implemented, but it will > > > take a > > > > > significantly greater effort and most likely will affect > performance. > > > As > >

Re: Memory usage per cache

2018-03-30 Thread Alexey Goncharuk
As > > > > Andrey noted, when two caches share the same cache group, multiple > > > entries > > > > may be written to the same page, this needs special handling. I > suggest > > > we > > > > first start with per-cache-group metric

Re: Memory usage per cache

2018-03-30 Thread Dmitriy Setrakyan
oup metrics and then, if there is high > > demand, > > > start thinking about per-cache metrics. > > > > > > --AG > > > > > > 2018-03-27 15:18 GMT+03:00 Andrey Kuznetsov <stku...@gmail.com>: > > > > > > > I apo

Re: Memory usage per cache

2018-03-30 Thread Dmitriy Govorukhin
high > demand, > > start thinking about per-cache metrics. > > > > --AG > > > > 2018-03-27 15:18 GMT+03:00 Andrey Kuznetsov <stku...@gmail.com>: > > > > > I apologize for the previous message sent in hurry. It's imposible to > >

Re: Memory usage per cache

2018-03-29 Thread Denis Magda
trics and then, if there is high demand, > start thinking about per-cache metrics. > > --AG > > 2018-03-27 15:18 GMT+03:00 Andrey Kuznetsov <stku...@gmail.com>: > > > I apologize for the previous message sent in hurry. It's imposible to > > measure the difference

Re: Memory usage per cache

2018-03-29 Thread Dmitriy Setrakyan
On Thu, Mar 29, 2018 at 1:20 AM, Alexey Goncharuk < alexey.goncha...@gmail.com> wrote: > Denis, > > Currently there is an easy way to add per-cache-group metrics for data and > index pages. There is an internal counter, but it is not published as an > MBean metric, we will do this as a part of

Re: Memory usage per cache

2018-03-29 Thread Alexey Goncharuk
about per-cache metrics. --AG 2018-03-27 15:18 GMT+03:00 Andrey Kuznetsov <stku...@gmail.com>: > I apologize for the previous message sent in hurry. It's imposible to > measure the difference between 'precise' and 'estimated' page memory usage > per cache unless we fully imple

Re: Memory usage per cache

2018-03-27 Thread Andrey Kuznetsov
I apologize for the previous message sent in hurry. It's imposible to measure the difference between 'precise' and 'estimated' page memory usage per cache unless we fully implement approach 2. Current model allows to store objects from several caches in a single page. 2018-03-23 22:21 GMT+03:00

Re: Memory usage per cache

2018-03-23 Thread Andrey Kuznetsov
Denis, I'll need to conduct some experiments to estimate the difference. And the answer will depend on numerous parameters: object sizes, number of caches, that share the same data region and so on. пт, 23 марта 2018, 21:53 Denis Magda : > Andrey, > > How good will be the

Re: Memory usage per cache

2018-03-23 Thread Denis Magda
..@apache.org>: > > > Igniters, > > > > Glad to see that 2.4 made it possible to show memory usage in bytes for > > data regions. Good progress but it's definitely not enough. > > > > I'd like to discuss how we can support "memory usage per cache/table" i

Re: Memory usage per cache

2018-03-22 Thread Andrey Kuznetsov
gt; Glad to see that 2.4 made it possible to show memory usage in bytes for > data regions. Good progress but it's definitely not enough. > > I'd like to discuss how we can support "memory usage per cache/table" in > bytes. That's actually what the users are interested in. T

Memory usage per cache

2018-03-22 Thread Denis Magda
Igniters, Glad to see that 2.4 made it possible to show memory usage in bytes for data regions. Good progress but it's definitely not enough. I'd like to discuss how we can support "memory usage per cache/table" in bytes. That's actually what the users are interested in. Talking to