Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed creating pyroscope: compactor block range periods should be divisible by the max block duration, but 1h0m0s is not divisible by 3h0m0s #2768

Closed
Raghav65 opened this issue Nov 28, 2023 Discussed in #2764 · 3 comments

Comments

@Raghav65
Copy link

Discussed in #2764

Originally posted by Raghav65 November 27, 2023
I'm using grafana/pyroscope version v1.2.0

I have configured compactor block_ranges as default and I'm getting below error message as by default block_ranges: | = 1h0m0s,2h0m0s,8h0m0s.

failed creating pyroscope: compactor block range periods should be divisible by the max block duration, but 1h0m0s is not divisible by 3h0m0s

When I try to add below compactor config in compactor block in config.yaml I'm getting - " failed parsing config: /etc/pyroscope/config.yaml: yaml: unmarshal errors: line x: cannot unmarshal !!str 3h0m0s into compactor.DurationList"

-compactor.block-ranges value
List of compaction time ranges. (default 3h0m0s,6h0m0s,12h0m0s)

compactor:
    block_ranges: 3h0m0s

max_block_duration is set to 3h0m0s

@cyriltovena
Copy link
Contributor

So you do need your compactor to use 3h block ranges since that's your current max block duration. If you running a large cluster I suggest you switch to our default 1h.

Now for your error:

compactor:
    block_ranges: [3h0m0s]

Add [] like if it was an array. Sorry for the confusion.

@cyriltovena
Copy link
Contributor

Let me know if you need more help

@Raghav65
Copy link
Author

Thanks @cyriltovena It worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants