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

chore: use default value for StorageOptions #455

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

jiacai2050
Copy link
Contributor

Which issue does this PR close?

Closes #

Rationale for this change

Use default value for StorageOptions, otherwise server will throw following errors when those options are not configured

thread 'main' panicked at 'Failed to parse config.: ParseToml { path: "/tmp/db.toml", source: Error { inner: ErrorInner { kind: Custom, line: Some(33), col: 0, at: Some(674), message: "missing field `disk_cache_capacity`", key: ["analytic", "storage"] } }, backtrace: Backtrace(   0: backtrace::backtrace::libunwind::trace

What changes are included in this PR?

Are there any user-facing changes?

No

How does this change test

Start server locally

Copy link
Contributor

@Rachelint Rachelint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Rachelint Rachelint merged commit ca5ed3f into apache:main Dec 7, 2022
Comment on lines +29 to +31
disk_cache_path: root_path.clone(),
disk_cache_capacity: ReadableSize::gb(5),
disk_cache_page_size: ReadableSize::mb(2),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should disable disk cache by default because local storage is used by default, to which the disk cache makes no sense.

chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants