# Loki Configuration change

**URL:** <https://community.grafana.com/t/loki-configuration-change/44209>\
**Category:** Grafana Loki\
**Created:** [March 9, 2021, 6:20am UTC](https://community.grafana.com/t/loki-configuration-change/44209 "2021-03-09T06:20:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikrantgarg](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@vikrantgarg](https://community.grafana.com/u/vikrantgarg)\
**Post date:** [March 9, 2021, 6:20am UTC](https://community.grafana.com/t/loki-configuration-change/44209/1 "2021-03-09T06:20:47Z")

</div>

what is the impact of increasing the chunk\_target\_size from 1.5mb to 3mb or even higher

---

<div class="post-metadata">

**Author:** ![wlargou](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/wlargou/32/14374_2.png) [@wlargou](https://community.grafana.com/u/wlargou)\
**Post date:** [March 9, 2021, 10:22am UTC](https://community.grafana.com/t/loki-configuration-change/44209/2 "2021-03-09T10:22:38Z")

</div>

> [@vikrantgarg](#):
>
> chunk\_target\_size

Hi,

Did you have a look at this paragraph ?

### Target Chunk Size

[PR 1406](https://github.com/grafana/loki/pull/1406) added the `chunk_target_size` configuration, which instructs Loki to try to fill chunks to the target size before flushing. This allows you to create bigger chunks than before, which can help reduce overhead on storage systems as well as overhead on querying. We are currently targeting 1572864bytes (1.5MB) chunks, which is helping our GCS burden. But it has also caused a number of problems for Memcached, which does not like storing objects this big. We will be looking soon to see if Redis performs better with objects of this size.

Hope it helps.

Good Luck

---

<div class="post-metadata">

**Author:** ![ewelch](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/ewelch/32/13744_2.png) [@ewelch](https://community.grafana.com/u/ewelch)\
**Post date:** [March 17, 2021, 12:21pm UTC](https://community.grafana.com/t/loki-configuration-change/44209/3 "2021-03-17T12:21:03Z")

</div>

@wlargou found a very helpful note indeed!

A few other considerations, chunks are downloaded for queries as well but are done in batches to help control memory usage.

I don’t see any problems really increase from 1.5MB to 3MB but the higher you go the more memory your queriers will consume fulfilling queries.

I would say feel free to experiment here if you are able to and if you learn anything interesting please respond back with what you find!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [March 17, 2022, 12:21pm UTC](https://community.grafana.com/t/loki-configuration-change/44209/4 "2022-03-17T12:21:34Z")

</div>

Closed on March 17, 2022, 12:21pm UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
