Skip to content

Commit

Permalink
opt cluster scale out
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Sep 5, 2019
1 parent 7ab3076 commit 62a073a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pk1/engines/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def remedy_scale_ambari_fast_scale_out():
"pip -qq install -U ambari\n" \
'yum -q -y install nmap-ncat 2>&1\n' \
'while ! echo exit | nc master1.packone 8080; do sleep 3; done 2>&1\n' \
"ambari master1.packone:8080 host clone slave.packone `hostname`"
"ambari master1.packone:8080 host clone slave.packone `hostname`\n" \
'ambari master1.packone:8080 service start'

def remedy_scale_ambari_fast_scale_in():
return '#ambari master1.packone:8080 host delete `hostname`'

0 comments on commit 62a073a

Please sign in to comment.