-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added multinode install via --nodes flag & dev upgrade along with so… #3279
Conversation
|
||
post_cmapi_install_configuration() { | ||
|
||
systemctl daemon-reload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I know package manager should do it after install.
fi | ||
} | ||
|
||
poll_for_cmapi_online() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have mcs cmapi is-ready
command in current version.
--node
param could be provided with node IP otherwise it checks 127.0.0.1
|
||
if command -v mcs &> /dev/null ; then | ||
printf "%-35s ..." " - Adding Node $dbroot: $node " | ||
if mcs_output=$( timeout 120s mcs cluster node add --node $node ); then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use one mcs cluster node add
command with multiple --node
param.
EG: mcs cluster node add --node node1 --node node2 --node node3
Using this command CMAPI will add nodes one by one.
|
||
configure_cluster_via_cmapi() { | ||
|
||
if [ -z $api_key ]; then get_set_cmapi_key; fi; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JFYI: to set api key could be used sudo mcs cluster set api-key --key <api-key>
But depends on use case. For old enough versions we don't have even mcs
command
…me help texts