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

Support secondary log directory #257

Closed
tabokie opened this issue Aug 5, 2022 · 2 comments · Fixed by #294
Closed

Support secondary log directory #257

tabokie opened this issue Aug 5, 2022 · 2 comments · Fixed by #294
Assignees
Labels
enhancement New feature or request

Comments

@tabokie
Copy link
Member

tabokie commented Aug 5, 2022

It can be useful to configure raft engine on a separate (smaller) disk. And when that disk is full, we should provide a way for raft-engine to locate newly created log files on the main disk volume.

@tabokie tabokie added the enhancement New feature or request label Aug 5, 2022
@tabokie tabokie changed the title Support backup log directory Support secondary log directory Aug 5, 2022
@LykxSassinator
Copy link
Contributor

U mean that we need a new configuration such as sub-dir or assist-dir to store logs on different disk?

With this pre-requisite, the main dir, that is, the current configuration dir, is still used as the default main directory to store logs. Only if the main dir is FULL or not accessible, we will use the assist-dir or sub-dir to store the incoming logs.

Meanwhile, about the abnormal circumstance:

  • sub-dir is None or belongs to the same volumn of disk, if the disk is full, the newly file creation should fail.

@LykxSassinator
Copy link
Contributor

/assign @LykxSassinator Let me tackle it.

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

Successfully merging a pull request may close this issue.

2 participants