-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0190f4e
commit fbc9e1e
Showing
6 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
doc/code_snippets/snippets/config/instances.enabled/force_recovery/README.md
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,18 @@ | ||
# Force recovery | ||
|
||
A sample application demonstrating how to start an instance with a corrupted write-ahead log file. | ||
|
||
## Running | ||
|
||
- To start the instance using the `tt` utility, execute the following command in the [config](../../../config) directory: | ||
|
||
```console | ||
$ TT_FORCE_RECOVERY=true tt start force_recovery | ||
``` | ||
|
||
- To start the instance using the `tarantool` command, you can use both the `TT_FORCE_RECOVERY` environment variable and add the `--force-recovery` option. | ||
In the example below, the `tarantool` command is executed in the [config/instances.enabled/force_recovery](../../../config/instances.enabled/force_recovery) directory: | ||
|
||
```console | ||
$ tarantool --name instance001 --config config.yaml --force-recovery -i | ||
``` |
9 changes: 9 additions & 0 deletions
9
doc/code_snippets/snippets/config/instances.enabled/force_recovery/config.yaml
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,9 @@ | ||
groups: | ||
group001: | ||
replicasets: | ||
replicaset001: | ||
instances: | ||
instance001: | ||
iproto: | ||
listen: | ||
- uri: '127.0.0.1:3301' |
1 change: 1 addition & 0 deletions
1
doc/code_snippets/snippets/config/instances.enabled/force_recovery/instances.yml
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 @@ | ||
instance001: |
Binary file added
BIN
+4.97 KB
...ets/config/instances.enabled/force_recovery/var/lib/instance001/00000000000000000000.snap
Binary file not shown.
Binary file added
BIN
+849 Bytes
...ets/config/instances.enabled/force_recovery/var/lib/instance001/00000000000000000000.xlog
Binary file not shown.
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