代理服务器接收对象的每个请求,查找帐户、容器或对象的位置,并正确路由这些请求。代理服务器还处理 API 请求。

过程

  1. 如果已注销,请重新登录对象存储服务。
    1. 使用 SSH 登录到 VMware Integrated OpenStack Manager。
    2. VMware Integrated OpenStack Manager,使用 SSH 登录 controller01 节点。
    3. 切换到 root 用户。
      sudo su -
  2. 创建 /etc/swift/proxy-server.conf 文件。

    在命令中输入内部 VIP。

    根据您的部署模式配置 bind_port 参数。

    • 对于完整部署,请将 bind_port 参数设置为 8080

    • 对于紧凑模式部署,请将 bind_port 参数设置为主机的已定义本地端口范围内的值。

    [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 = local
    user_domain_name = local
    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

下一步做什么

现在,您可以创建并配置对象存储环。请参见创建并配置对象存储环