Files
520e2cd0b15e2311ef75b1b60cd451e5edf92eee
swift /etc /proxy-server.conf-sample

88 lines
2.6 KiB
Plaintext
Raw Normal View History

2010年08月20日 00:42:38 +00:00
[DEFAULT]
2010年07月12日 17:03:45 -05:00
# bind_ip = 0.0.0.0
# bind_port = 80
# swift_dir = /etc/swift
2010年08月20日 00:42:38 +00:00
# workers = 1
# user = swift
2010年07月12日 17:03:45 -05:00
# cert_file = /etc/swift/proxy.crt
# key_file = /etc/swift/proxy.key
2010年08月20日 00:42:38 +00:00
[pipeline:main]
2010年10月29日 11:10:40 -05:00
pipeline = catch_errors healthcheck cache ratelimit auth proxy-server
2010年08月20日 00:42:38 +00:00
2010年09月01日 15:56:37 +00:00
[app:proxy-server]
2010年08月20日 00:42:38 +00:00
use = egg:swift#proxy
# log_name = proxy-server
# log_facility = LOG_LOCAL0
# log_level = INFO
2010年07月12日 17:03:45 -05:00
# log_headers = False
# recheck_account_existence = 60
# recheck_container_existence = 60
# object_chunk_size = 8192
# client_chunk_size = 8192
# node_timeout = 10
# client_timeout = 60
# conn_timeout = 0.5
# How long without an error before a node's error count is reset. This will
# also be how long before a node is reenabled after suppression is triggered.
# error_suppression_interval = 60
# How many errors can accumulate before a node is temporarily ignored.
# error_suppression_limit = 10
2010年07月14日 15:11:08 -07:00
2010年08月20日 00:42:38 +00:00
[filter:auth]
use = egg:swift#auth
# attempting to validate it with the external authentication server. Also, with
# authorization, only Swift storage accounts with this prefix will be
# authorized by this middleware. Useful if multiple auth systems are in use for
# one Swift cluster.
# reseller_prefix = AUTH
2010年07月14日 15:11:08 -07:00
# ip = 127.0.0.1
# port = 11000
2010年08月14日 09:46:32 -07:00
# ssl = false
2010年07月14日 15:11:08 -07:00
# node_timeout = 10
2010年08月20日 00:42:38 +00:00
[filter:healthcheck]
use = egg:swift#healthcheck
[filter:cache]
use = egg:swift#memcache
2010年08月20日 00:42:38 +00:00
# Default for memcache_servers is below, but you can specify multiple servers
# with the format: 10.1.2.3:11211,10.1.2.4:11211
# memcache_servers = 127.0.0.1:11211
2010年10月04日 14:11:48 -07:00
[filter:ratelimit]
use = egg:swift#ratelimit
# clock_accuracy should represent how accurate the proxy servers' system clocks
2010年10月12日 16:07:27 -07:00
# are with each other. 1000 means that all the proxies' clock are accurate to
# each other within 1 millisecond. No ratelimit should be higher than the
# clock accuracy.
2010年10月12日 16:07:27 -07:00
# clock_accuracy = 1000
# max_sleep_time_seconds = 60
2010年10月22日 11:43:39 -07:00
# log_sleep_time_seconds of 0 means disabled
# log_sleep_time_seconds = 0
2010年10月12日 16:07:27 -07:00
# account_ratelimit of 0 means disabled
# account_ratelimit = 0
# these are comma separated lists of account names
2010年10月12日 16:07:27 -07:00
# account_whitelist = a,b
# account_blacklist = c,d
2010年10月04日 14:11:48 -07:00
# with container_limit_x = r
2010年10月12日 16:07:27 -07:00
# for containers of size x limit requests per second to r. The container
# rate will be linearly interpolated from the values given. With the values
# below, a container of size 5 will get a rate of 75.
2010年10月13日 13:51:11 -07:00
# container_ratelimit_0 = 100
# container_ratelimit_10 = 50
# container_ratelimit_50 = 20
2010年10月29日 11:10:40 -05:00
use = egg:swift#domain_remap
# storage_domain = example.com
# path_root = v1
2010年11月03日 13:04:04 -05:00
2010年10月29日 11:10:40 -05:00
[filter:cate_errors]
2010年11月03日 13:04:04 -05:00
use = egg:swift#catch_errors