-
Notifications
You must be signed in to change notification settings - Fork 448
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
Showing
11 changed files
with
51 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,36 @@ | ||
# Upgrading from v0.4.0 to v0.5.0 | ||
|
||
Stolon v0.5.0 received a big rework to improve its internal data model and implement new features. To upgrade an existing cluster from v0.4.0 to v0.5.0 you can follow these steps. | ||
## Removed commands options | ||
|
||
* Annotate the master keeperUID (previously called keeper id). You can retrieve this using `stolonctl status` | ||
These stolon commands options were removed. You should update your scripts invoking the stolon components removing them. | ||
|
||
### stolon-keeper | ||
`--listen-address` | ||
`--port` | ||
`--pg-conf-dir` | ||
`--id` has been deprecated (but yet available). `--uid` should be used instead. | ||
|
||
### stolon-sentinel | ||
`--listen-address` | ||
`--port` | ||
`--discovery-type` | ||
`--initial-cluster-config` (the equivalent for the new cluster spec format is `--initial-cluster-spec`) | ||
`--keeper-kube-label-selector` | ||
`--keeper-port` | ||
`--kubernetes-namespace` | ||
|
||
### Upgrade for new cluster data | ||
|
||
Stolon v0.5.0 received a big rework to improve its internal data model and implement new features. To upgrade an existing cluster from v0.4.0 to v0.5.0 you can follow the steps below (we suggest to try them in a test environment). | ||
|
||
* Annotate the master keeperUID (previously called keeper id). You can retrieve this using `stolonctl status`. | ||
* Stop all the cluster processes (keepers, sentinels and proxies) | ||
* Upgrade the binaries to stolon v0.5.0 | ||
* Relaunch all the cluster processes. They will loop reporting `unsupported clusterdata format version 0`. | ||
* Initialize a new cluster data using the master keeperUID: | ||
|
||
``` | ||
stolonctl init '{ "initMode": "existing", "existingConfig": { "keeperUID": "keeper01" } }' | ||
``` | ||
|
||
The leader sentinel will choose the other keepers as standbys and they'll resync with the current master (they will do this also if before the upgrade they were already standbys since this is needed to adapt to the new cluster data format). |
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
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