[ English | русский | Deutsch | Indonesia | English (United Kingdom) ]
Tambahkan host komputasi¶
Gunakan prosedur berikut untuk menambahkan host komputasi ke cluster operasional.
Configure the host as a target host. See the target hosts configuration section of the deploy guide for more information.
Edit file
/etc/openstack_deploy/openstack_user_config.yml
dan tambahkan host ke bait (stanza)compute_hosts
.Jika perlu, ubah juga bait (stanza)
used_ips
.Jika cluster menggunakan Telemetry/Metering (ceilometer), edit file
/etc/openstack_deploy/conf.d/ceilometer.yml
dan tambahkan host ke stanzametering-compute_hosts
.Jalankan perintah berikut untuk menambahkan host. Ganti
NEW_HOST_NAME
dengan nama host baru.# cd /opt/openstack-ansible/playbooks # openstack-ansible openstack.osa.setup_hosts --limit localhost,NEW_HOST_NAME # openstack-ansible openstack.osa.openstack_hosts_setup -e openstack_hosts_group=nova_compute --tags openstack_hosts-file # openstack-ansible openstack.osa.setup_openstack --limit localhost,NEW_HOST_NAME
Atau Anda dapat mencoba menggunakan skrip penyebaran node komputasi baru
/opt/openstack-ansible/scripts/add-compute.sh
.You can provide this script with extra tasks that will be executed before or right after OpenStack-Ansible roles. To do so you should set environment variables
PRE_OSA_TASKS
orPOST_OSA_TASKS
with plays to run devided with semicolon:# export POST_OSA_TASKS="/opt/custom/setup.yml --limit HOST_NAME;/opt/custom/tasks.yml --tags deploy" # /opt/openstack-ansible/scripts/add-compute.sh HOST_NAME,HOST_NAME_2
Uji node komputasi baru¶
After creating a new node, test that the node runs correctly by launching an instance on the new node:
$ openstack server create --image IMAGE --flavor m1.tiny \
--key-name KEY --availability-zone ZONE:HOST:NODE \
--nic net-id=UUID SERVER
Pastikan instance baru dapat menanggapi tes koneksi jaringan melalui perintah ping. Masuk ke sistem pemantauan Anda, dan verifikasi bahwa monitor mengembalikan sinyal hijau untuk simpul node.