Outdated Version
You are viewing an older version of this section. View current production version.
MEMSQL-UPGRADE
MemSQL Ops has been deprecated
Please follow this guide to learn how to migrate to SingleStore tools.
Available since MemSQL Ops version 4.1.8.
Stop, upgrade, and restart all MemSQL nodes in the cluster.
Usage
usage: memsql-ops memsql-upgrade [--settings-file SETTINGS_FILE] [--async]
[--file-path FILE_PATH | --version VERSION | --version-hash VERSION_HASH]
[--no-prompt] [--skip-snapshot]
[--skip-version-check]
[--backup-data-directories | --no-backup-data-directories]
Stop, upgrade, and restart all MemSQL nodes in the cluster.
optional arguments:
--settings-file SETTINGS_FILE
A path to a MemSQL Ops settings.conf file. If not set,
we will use the file in the same directory as the
MemSQL Ops binary.
--async If this option is true, we will exit without waiting
for the cluster to be fully upgraded.
--file-path FILE_PATH
A .tar.gz file that contains a MemSQL binary to use
during the upgrade.
--version VERSION The MemSQL version to which all nodes will be upgraded
(e.g. 4.0.0). If this is not set, we will attempt to
upgrade all nodes to the latest available MemSQL
version.
--version-hash VERSION_HASH
A MemSQL version hash to use.
--no-prompt If this option is specified, we will upgrade the
cluster without prompting. We will also assume
--backup-data-directories is set to true unless
otherwise specified.
--skip-snapshot Do not run SNAPSHOT on all the databases in the
cluster before upgrading. This may cause the upgrade
to take longer.
--skip-version-check Do not check to see that we're upgrading to a newer
version of MemSQL. Warning: downgrading to an older
version of MemSQL can result in data loss.
--backup-data-directories
Backup data directories during the upgrade. If both
this and --no-backup-data-directories are not
specified, we will prompt before the upgrade.
--no-backup-data-directories
Do not backup data directories during the upgrade.
Specifying this option will result in faster upgrades
and will use less disk space during the upgrade at the
risk of data loss. If both this and --backup-data-
directories are not specified, we will prompt before
the upgrade.