Skip to content
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

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

mariadb-AllenHerrera
Copy link
Collaborator

…me help texts


post_cmapi_install_configuration() {

systemctl daemon-reload
Copy link
Contributor

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() {
Copy link
Contributor

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
Copy link
Contributor

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;
Copy link
Contributor

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

@drrtuy drrtuy merged commit 0d78f2f into develop Aug 28, 2024
1 check failed
@drrtuy drrtuy deleted the cs_package_manager_v3.4 branch August 28, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants