Skip to content

How to change the size of object storage chunk? #6121

@btdan

Description

@btdan

Hello.
I want to change the size of chunk which is stored in object storage.
For example, there are 6 chunks for every minute in object storage, and I want to store one chunk for each minute. just as shown below:
8C0456D8-D2A8-47db-BA33-B88AC28B1FC5

I have modified the configuration as follow:

    ingester:
      wal:
        enabled: true
        dir: /tmp/wal
      lifecycler:
        ring:
          replication_factor: 1
          kvstore:
            consul:
              consistent_reads: false
              host: consul:8500
              http_client_timeout: 20s
              watch_burst_size: 1
              watch_rate_limit: 1
            store: consul
        final_sleep: 0s
      chunk_idle_period: 12h
      max_chunk_age: 12h
      chunk_retain_period: 1m
      max_transfer_retries: 0
      chunk_target_size: 12582912
      chunk_encoding: snappy

However, it does not work at all. And that is to say, the size of each chunk is still 1.8MB
Can anyone be kind to tell me how to solve this problem?
Thanks very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleA stale issue or PR that will automatically be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions