Questo contenuto non è disponibile nella lingua selezionata.
6.3.7. Removing Districts
When deleting a district, first remove all the node hosts from the district, then delete the district.
Procedure 6.5. To Remove Districts:
- On the broker host, set the district's capacity to
0
:oo-admin-ctl-district -c remove-capacity -n district_name -s 6000
# oo-admin-ctl-district -c remove-capacity -n district_name -s 6000oo-admin-ctl-district -c remove-capacity -n district_name -s 6000oo-admin-ctl-district -c remove-capacity -n district_name -s 6000
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Remove all the node hosts from the district you want to delete by running the following commands for each node:
oo-admin-ctl-district -c deactivate-node -i node_hostname oo-admin-ctl-district -c remove-node -n district_name -i node_hostname
# oo-admin-ctl-district -c deactivate-node -i node_hostnameoo-admin-ctl-district -c deactivate-node -i node_hostname # oo-admin-ctl-district -c remove-node -n district_name -i node_hostnameoo-admin-ctl-district -c remove-node -n district_name -i node_hostnameoo-admin-ctl-district -c remove-node -n district_name -i node_hostnameoo-admin-ctl-district -c remove-node -n district_name -i node_hostname
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Delete the empty district:
oo-admin-ctl-district -c destroy -n district_name
# oo-admin-ctl-district -c destroy -n district_nameoo-admin-ctl-district -c destroy -n district_name
Copy to Clipboard Copied! Toggle word wrap Toggle overflow