Proxy 伺服器接受物件的每個要求,並查詢帳戶、容器或物件的位置,然後正確傳遞這些要求。Proxy 伺服器也會處理 API 要求。
程序
- 如果您已登出,請重新登入物件儲存服務。
- 使用 SSH 登入 VMware Integrated OpenStack Manager。
- 從 VMware Integrated OpenStack Manager,使用 SSH 登入 controller01 節點。
- 切換至根使用者。
sudo su -
- 建立 /etc/swift/proxy-server.conf 檔案。
[DEFAULT] bind_port = BINDPORT user = swift swift_dir = /etc/swift [pipeline:main] pipeline = catch_errors gatekeeper healthcheck proxy-logging container_sync bulk \ ratelimit authtoken keystoneauth container-quotas account-quotas slo dlo \ versioned_writes proxy-logging proxy-server [app:proxy-server] use = egg:swift#proxy account_autocreate = True [filter:tempauth] use = egg:swift#tempauth user_admin_admin = admin .admin .reseller_admin user_test_tester = testing .admin user_test2_tester2 = testing2 .admin user_test_tester3 = testing3 user_test5_tester5 = testing5 service [filter:authtoken] paste.filter_factory = keystonemiddleware.auth_token:filter_factory auth_uri = http://INTERNAL_VIP:5000 auth_url = http://INTERNAL_VIP:35357 auth_type = password project_domain_name = default user_domain_name = default project_name = admin username = swift password = password delay_auth_decision = True [filter:keystoneauth] use = egg:swift#keystoneauth operator_roles = _member_,admin [filter:healthcheck] use = egg:swift#healthcheck [filter:cache] use = egg:swift#memcache [filter:ratelimit] use = egg:swift#ratelimit [filter:domain_remap] use = egg:swift#domain_remap [filter:catch_errors] use = egg:swift#catch_errors [filter:cname_lookup] use = egg:swift#cname_lookup [filter:staticweb] use = egg:swift#staticweb [filter:tempurl] use = egg:swift#tempurl [filter:formpost] use = egg:swift#formpost [filter:name_check] use = egg:swift#name_check [filter:list-endpoints] use = egg:swift#list_endpoints [filter:proxy-logging] use = egg:swift#proxy_logging [filter:bulk] use = egg:swift#bulk [filter:slo] use = egg:swift#slo [filter:dlo] use = egg:swift#dlo [filter:container-quotas] use = egg:swift#container_quotas [filter:account-quotas] use = egg:swift#account_quotas [filter:gatekeeper] use = egg:swift#gatekeeper [filter:container_sync] use = egg:swift#container_sync [filter:xprofile] use = egg:swift#xprofile [filter:versioned_writes] use = egg:swift#versioned_writes
- 為 auth_uri 和 auth_url 設定提供內部 VIP。
- 根據部署模式設定 bind_port 參數。
若要進行完整部署,請將 bind_port 參數設定為 8080。
若要進行精簡模式部署,請將 bind_port 參數設定為主機的已定義本機連接埠範圍內的值。
下一步
您現在可以建立並設定物件儲存信號。請參閱建立和設定物件儲存環。