# Aggregations-only use case - performance tuning via config possible?

**URL:** <https://discuss.elastic.co/t/aggregations-only-use-case-performance-tuning-via-config-possible/18926>\
**Category:** Elasticsearch\
**Created:** [July 28, 2014, 9:06am UTC](https://discuss.elastic.co/t/aggregations-only-use-case-performance-tuning-via-config-possible/18926 "2014-07-28T09:06:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_2](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@Ben\_2](https://discuss.elastic.co/u/Ben_2)\
**Post date:** [July 28, 2014, 9:06am UTC](https://discuss.elastic.co/t/aggregations-only-use-case-performance-tuning-via-config-possible/18926/1 "2014-07-28T09:06:27Z")

</div>

Hi there,

I am using ES for calculating aggregations on a dataset of sales data  
(about 50,000,000 docs or 10GB of data). As an example, I am using the date  
histogram aggregation with term / sum sub-aggregations to get the sales sum  
per day and product. There is a product\_id, a date field, and a quantity  
field among others.

This use case has no live indexing (!). I bulk-index the new sales data  
once a day, shortly after midnight for the previous day only - during the  
rest of the day, no new data is added. I also do not use any result sets  
other than the aggregations results, so my result size is always set to 0  
(zero) in queries.

My machine has 128GB Ram (about 75GB reserved to ES via ES\_MIN\_MEM /  
ES\_MAX\_MEM) and 12 cores, and SSD disks.  
I am using a config of 1 shard and 0 replica (no cluster - this is a  
single, isolated machine).

My aim is to make the aggregation calculations perform as fast as possible.  
Are there any recommendations for config setting for ES or the Indexes?

Another questions is if there is a way to silence the bulk indexing logs (I  
am using Jörg Prante's JDBC plugin) to zero output? I was unable to find  
the right setting to do that.

Thank you!  
Ben

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a327d680-8917-41f2-83e3-ad013c94788a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a327d680-8917-41f2-83e3-ad013c94788a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [July 28, 2014, 9:57am UTC](https://discuss.elastic.co/t/aggregations-only-use-case-performance-tuning-via-config-possible/18926/2 "2014-07-28T09:57:35Z")

</div>

The logger name for bulk indexing in JDBC plugin is "NodeClient"

So if you want to mute the log messages, use something like

in config/logging.yml

logger:  
NodeClient: OFF

maybe with "log4j", I don't know:

logger:  
log4j:  
NodeClient: OFF

or if you use log4j, in log4j.properties:

logger.log4j.NodeClient = OFF

or if you use log4j2, then in log4j2.xml

\<?xml version="1.0" encoding="UTF-8"?\> 

Jörg

On Mon, Jul 28, 2014 at 11:06 AM, Ben [tonkatsufan@gmail.com](mailto:tonkatsufan@gmail.com) wrote:

> Hi there,
> 
> I am using ES for calculating aggregations on a dataset of sales data  
> (about 50,000,000 docs or 10GB of data). As an example, I am using the date  
> histogram aggregation with term / sum sub-aggregations to get the sales sum  
> per day and product. There is a product\_id, a date field, and a quantity  
> field among others.
> 
> This use case has no live indexing (!). I bulk-index the new sales data  
> once a day, shortly after midnight for the previous day only - during the  
> rest of the day, no new data is added. I also do not use any result sets  
> other than the aggregations results, so my result size is always set to 0  
> (zero) in queries.
> 
> My machine has 128GB Ram (about 75GB reserved to ES via ES\_MIN\_MEM /  
> ES\_MAX\_MEM) and 12 cores, and SSD disks.  
> I am using a config of 1 shard and 0 replica (no cluster - this is a  
> single, isolated machine).
> 
> My aim is to make the aggregation calculations perform as fast as  
> possible. Are there any recommendations for config setting for ES or the  
> Indexes?
> 
> Another questions is if there is a way to silence the bulk indexing logs  
> (I am using Jörg Prante's JDBC plugin) to zero output? I was unable to find  
> the right setting to do that.
> 
> Thank you!  
> Ben
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a327d680-8917-41f2-83e3-ad013c94788a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a327d680-8917-41f2-83e3-ad013c94788a%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/a327d680-8917-41f2-83e3-ad013c94788a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a327d680-8917-41f2-83e3-ad013c94788a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE2c87gB--edmu9S7qRZiyQj1qJhb%2BUVKZGy\_LTDhRk7w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE2c87gB--edmu9S7qRZiyQj1qJhb%2BUVKZGy_LTDhRk7w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ben\_2](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@Ben\_2](https://discuss.elastic.co/u/Ben_2)\
**Post date:** [July 28, 2014, 10:39am UTC](https://discuss.elastic.co/t/aggregations-only-use-case-performance-tuning-via-config-possible/18926/3 "2014-07-28T10:39:55Z")

</div>

Hello Jörg,

thank you. I wasn't aware that the correct key is called "NodeClient". It  
works.

Kind regards  
Ben

On Monday, July 28, 2014 11:57:44 AM UTC+2, Jörg Prante wrote:

> The logger name for bulk indexing in JDBC plugin is "NodeClient"
> 
> So if you want to mute the log messages, use something like
> 
> in config/logging.yml
> 
> logger:  
> NodeClient: OFF
> 
> maybe with "log4j", I don't know:
> 
> logger:  
> log4j:  
> NodeClient: OFF
> 
> or if you use log4j, in log4j.properties:
> 
> logger.log4j.NodeClient = OFF
> 
> or if you use log4j2, then in log4j2.xml
> 
> \<?xml version="1.0" encoding="UTF-8"?\> 
> 
> Jörg
> 
> On Mon, Jul 28, 2014 at 11:06 AM, Ben \<[tonka...@gmail.com](mailto:tonka...@gmail.com) \<javascript:\>\>  
> wrote:
> 
> > Hi there,
> > 
> > I am using ES for calculating aggregations on a dataset of sales data  
> > (about 50,000,000 docs or 10GB of data). As an example, I am using the date  
> > histogram aggregation with term / sum sub-aggregations to get the sales sum  
> > per day and product. There is a product\_id, a date field, and a quantity  
> > field among others.
> > 
> > This use case has no live indexing (!). I bulk-index the new sales data  
> > once a day, shortly after midnight for the previous day only - during the  
> > rest of the day, no new data is added. I also do not use any result sets  
> > other than the aggregations results, so my result size is always set to 0  
> > (zero) in queries.
> > 
> > My machine has 128GB Ram (about 75GB reserved to ES via ES\_MIN\_MEM /  
> > ES\_MAX\_MEM) and 12 cores, and SSD disks.  
> > I am using a config of 1 shard and 0 replica (no cluster - this is a  
> > single, isolated machine).
> > 
> > My aim is to make the aggregation calculations perform as fast as  
> > possible. Are there any recommendations for config setting for ES or the  
> > Indexes?
> > 
> > Another questions is if there is a way to silence the bulk indexing logs  
> > (I am using Jörg Prante's JDBC plugin) to zero output? I was unable to find  
> > the right setting to do that.
> > 
> > Thank you!  
> > Ben
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/a327d680-8917-41f2-83e3-ad013c94788a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a327d680-8917-41f2-83e3-ad013c94788a%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/a327d680-8917-41f2-83e3-ad013c94788a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a327d680-8917-41f2-83e3-ad013c94788a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1b75acf8-cc06-4454-8f8b-3e0959c33f9d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1b75acf8-cc06-4454-8f8b-3e0959c33f9d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:12am UTC](https://discuss.elastic.co/t/aggregations-only-use-case-performance-tuning-via-config-possible/18926/4 "2017-07-06T01:12:50Z")

</div>

Closed on July 6, 2017, 1:12am UTC


