不会丢失。
后续记得手动制定一下--transfer-timeout 3600 --wait-timeout 3600
,默认情况下是300s超时
Usage:
tiup cluster upgrade <cluster-name> <version> [flags]
Flags:
--force Force upgrade without transferring PD leader
-h, --help help for upgrade
--ignore-config-check Ignore the config check result
--offline Upgrade a stopped cluster
--post-upgrade-script string (EXPERIMENTAL) Custom script to be executed on each server after the server is upgraded
--pre-upgrade-script string (EXPERIMENTAL) Custom script to be executed on each server before the server is upgraded
--transfer-timeout uint Timeout in seconds when transferring PD and TiKV store leaders, also for TiCDC drain one capture (default 600)
Global Flags:
-c, --concurrency int max number of parallel tasks allowed (default 5)
--format string (EXPERIMENTAL) The format of output, available values are [default, json] (default "default")
--ssh string (EXPERIMENTAL) The executor type: 'builtin', 'system', 'none'.
--ssh-timeout uint Timeout in seconds to connect host via SSH, ignored for operations that don't need an SSH connection. (default 5)
--wait-timeout uint Timeout in seconds to wait for an operation to complete, ignored for operations that don't fit. (default 120)
-y, --yes Skip all confirmations and assumes 'yes'
tikv升级时会把上面所有的leader转移到其他节点,默认300秒超时,leader多的话很容易超时,建议修改超时时间
升级完成,感觉7.0的tiflash和6.5的性能差不多