diff options
author | Mohammed Junaid <junaid@redhat.com> | 2013-04-12 06:41:29 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-04-12 13:49:48 -0700 |
commit | 6d6205ede5e90a919d082b4413055d684114253a (patch) | |
tree | 627dfe550cf216d9493d311a713cdb61ac5ed02a | |
parent | bf7b83d2bcc490a9a70ddd0fcf71e8a81c5430a2 (diff) |
object-storage: provide more common cfg defaults
Provide more common configuration defaults, as seen and recommended across
many large customer installations, as well as provide some guidance on how to
set the parameters.
See BZ 904629 (https://bugzilla.redhat.com/show_bug.cgi?id=904629).
Change-Id: Id9f20aafd75f2a0b589c67654dce87534bf80c33
BUG: 904629
Signed-off-by: Mohammed Junaid <junaid@redhat.com>
Reviewed-on: http://review.gluster.org/4789
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r-- | ufo/etc/object-server/1.conf-gluster | 21 | ||||
-rw-r--r-- | ufo/etc/proxy-server.conf-gluster | 38 |
2 files changed, 56 insertions, 3 deletions
diff --git a/ufo/etc/object-server/1.conf-gluster b/ufo/etc/object-server/1.conf-gluster index fe157a9b53d..0d85546cdc0 100644 --- a/ufo/etc/object-server/1.conf-gluster +++ b/ufo/etc/object-server/1.conf-gluster @@ -2,14 +2,31 @@ devices = /mnt/gluster-object mount_check = true bind_port = 6010 -user = root -log_facility = LOG_LOCAL2 +# If not doing the above, setting this value initially to match the number of +# CPUs is a good starting point for determining the right value. +workers = 1 [pipeline:main] pipeline = object-server [app:object-server] use = egg:gluster_swift_ufo#object +user = root +log_facility = LOG_LOCAL2 +# Timeout clients that don't read or write to the proxy server after 5 +# seconds. +conn_timeout = 5 +# For high load situations, once connected to a container server, allow for +# delays communicating with it. +node_timeout = 60 +# Adjust this value to match the stripe width of the underlying storage array +# (not the stripe element size). This will provide a reasonable starting point +# for tuning this value. +disk_chunk_size = 65536 +# Adjust this value match whatever is set for the disk_chunk_size +# initially. This will provide a reasonable starting point for tuning this +# value. +network_chunk_size = 65556 [object-replicator] vm_test_mode = yes diff --git a/ufo/etc/proxy-server.conf-gluster b/ufo/etc/proxy-server.conf-gluster index 30eb745bff8..e04efecea52 100644 --- a/ufo/etc/proxy-server.conf-gluster +++ b/ufo/etc/proxy-server.conf-gluster @@ -2,14 +2,47 @@ bind_port = 8080 user = root log_facility = LOG_LOCAL1 +# Consider using 1 worker per CPU +workers = 1 [pipeline:main] pipeline = healthcheck cache tempauth proxy-server [app:proxy-server] use = egg:gluster_swift_ufo#proxy -allow_account_management = true +log_facility = LOG_LOCAL1 +# The API allows for account creation and deletion, but since Gluster/Swift +# automounts a Gluster volume for a given account, there is no way to create +# or delete an account. So leave this off. +allow_account_management = false account_autocreate = true +# Only need to recheck the account exists once a day +recheck_account_existence = 86400 +# May want to consider bumping this up if containers are created and destroyed +# infrequently. +recheck_container_existence = 60 +# Timeout clients that don't read or write to the proxy server after 5 +# seconds. +client_timeout = 5 +# Give more time to connect to the object, container or account servers in +# cases of high load. +conn_timeout = 5 +# For high load situations, once connected to an object, container or account +# server, allow for delays communicating with them. +node_timeout = 60 +# May want to consider bumping up this value to 1 - 4 MB depending on how much +# traffic is for multi-megabyte or gigabyte requests; perhaps matching the +# stripe width (not stripe element size) of your storage volume is a good +# starting point. See below for sizing information. +object_chunk_size = 65536 +# If you do decide to increase the object_chunk_size, then consider lowering +# this value to one. Up to "put_queue_length" object_chunk_size'd buffers can +# be queued to the object server for processing. Given one proxy server worker +# can handle up to 1,024 connections, by default, it will consume 10 * 65,536 +# * 1,024 bytes of memory in the worse case (default values). Be sure the +# amount of memory available on the system can accommodate increased values +# for object_chunk_size. +put_queue_depth = 10 [filter:tempauth] use = egg:swift#tempauth @@ -31,3 +64,6 @@ use = egg:swift#healthcheck [filter:cache] use = egg:swift#memcache +# Update this line to contain a comma separated list of memcache servers +# shared by all nodes running the proxy-server service. +memcache_servers = localhost:11211 |