-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP implementation of WAL compaction
- Loading branch information
1 parent
a25bdb7
commit f0ed155
Showing
6 changed files
with
491 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# `tglogutil-compaction` - トランザクションログを再編し、ディスク容量を削減する | ||
|
||
`tglogutil compaction` コマンドは Tsurugi トランザクションログを再編し、ディスク容量を削減する | ||
|
||
## SYNOPSIS | ||
|
||
``` | ||
$ tglogutil compaction [options] <dblogdir> | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
`<dblogdir>` で指定されたトランザクションログを再編する. | ||
Specify the location set in the `log_location` parameter in the `[datastore]` section of the configuration file of Tsurugi server (`tsurugi.ini`). | ||
|
||
Options: | ||
* `--thread-num=<number>` | ||
* Number (default `1`) of concurrent processing thread of reading log files | ||
* `--epoch=<epoch>` | ||
* Upper limit epoch number to be accepted as valid data (default is the value recorded in the transaction log directory) | ||
* `--force=<bool>` | ||
* 実行開始前のプロンプトを出さない (default `false`) | ||
* `--dry-run=<bool>` (**未実装**) | ||
* トランザクションログファイルを変更しない. 作業ディレクトリに再編したデータを作成するが, その生成物を採用せず破棄する (default `false`) | ||
* `--verbose=<bool>` | ||
* verbose mode (default `false`) | ||
* `--make-backup=<bool>` | ||
* 作業ディレクトリ上で再編したデータを作成したあと, 元の dblogdir の内容のバックアップを残すかどうか. `false` の場合には元のディレクトリの内容は消去される (default `false`) | ||
|
||
## EXIT STATUS | ||
|
||
* 0: No errors | ||
* Compaction process completed successfully | ||
* 16: Error | ||
* 一時ディレクトリの削除に失敗した (処理を継続) | ||
* 64 or more: Unable to handle | ||
* `dblogdir` does not exist | ||
* `dblogdir` is inaccessible | ||
* `dblogdir` has file format error | ||
* Specified a directory that is not the transaction log directory | ||
* Specified a transaction log directory of unsupported format version | ||
* `epoch` file does not exist | ||
* files in `dblogdir` are damaged | ||
|
||
## PRECAUTIONS FOR USE | ||
|
||
The compaction process involves rewriting data, so it is recommended to back up the entire directory before using this tool. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.