-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/storage: Add automatic storage backend detection
The new default storage backend is "auto" which attempts to detect the storage backend that should be used based on existing data directories. When none exist, "pathbadger" is used. When multiple exist, the most recently modified one is used. This should make newly deployed nodes default to pathbadger.
- Loading branch information
Showing
6 changed files
with
180 additions
and
2 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,12 @@ | ||
The pathbadger storage backend is now the default for new nodes | ||
|
||
When a node is provisioned into an empty data directory it will default to | ||
using the `pathbadger` storage backend. | ||
|
||
For existing nodes, the storage backend is automatically detected based on | ||
the data directory. When multiple storage directories exist, the one most | ||
recently modified is used. | ||
|
||
In case one does not want this new behavior, it is still possible to set | ||
the `storage.backend` to `badger`/`pathbadger` to explicitly configure the | ||
desired storage backend and disable autodetection. |
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,8 @@ | ||
go/storage: Add automatic storage backend detection | ||
|
||
The new default storage backend is "auto" which attempts to detect the | ||
storage backend that should be used based on existing data directories. | ||
When none exist, "pathbadger" is used. When multiple exist, the most | ||
recently modified one is used. | ||
|
||
This should make newly deployed nodes default to pathbadger. |
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
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