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

Organize WAL logs of all indexes into one file #210

Open
xiangwanpeng opened this issue Mar 31, 2023 · 0 comments
Open

Organize WAL logs of all indexes into one file #210

xiangwanpeng opened this issue Mar 31, 2023 · 0 comments
Labels
enhancement New feature or request performance All issues related to Tatris performance, including reporting, optimization, and regressions.

Comments

@xiangwanpeng
Copy link
Contributor

Describe This Problem

Now Tatris maintains a WAL file for each shard for the sake of clear classification, but this brings the I/O resource consumption of the same order of magnitude as the number of shards, the waste seems particularly unreasonable especially when most of shards only have sporadic write traffic.

Proposal

These scattered WAL logs can be organized into the same file, as long as we can distinguish the index and shard it belongs to for each line of log.

image

Additional Context

Please consider this issue together with issue #209 : when multiple shards' WAL logs are converged to a single file, maintaining a POINT for truncating expired logs seems to become more complicated, since you need to know exactly how many logs are consumed by all indexes in a certain period of time.

@xiangwanpeng xiangwanpeng added enhancement New feature or request performance All issues related to Tatris performance, including reporting, optimization, and regressions. labels Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance All issues related to Tatris performance, including reporting, optimization, and regressions.
Projects
None yet
Development

No branches or pull requests

1 participant