diff --git a/doc/source/configuring.rst b/doc/source/configuring.rst index e473ce44c3..3b96f78a5b 100644 --- a/doc/source/configuring.rst +++ b/doc/source/configuring.rst @@ -161,12 +161,11 @@ Optional. Default: ``600`` * ``workers=PROCESSES`` -Number of Glance API worker processes to start. Each worker -process will listen on the same port. Increasing this -value may increase performance (especially if using SSL -with compression enabled). Typically it is recommended -to have one worker process per CPU. The value `0` will -prevent any new processes from being created. +Number of Glance API or Registry worker processes to start. Each worker +process will listen on the same port. Increasing this value may increase +performance (especially if using SSL with compression enabled). Typically +it is recommended to have one worker process per CPU. The value `0` +will prevent any new processes from being created. Optional. Default: ``1`` diff --git a/etc/glance-registry.conf b/etc/glance-registry.conf index 698e9e816b..cab4110299 100644 --- a/etc/glance-registry.conf +++ b/etc/glance-registry.conf @@ -29,6 +29,13 @@ backlog = 4096 # package. #data_api = glance.db.sqlalchemy.api +# Number of Glance Registry worker processes to start. +# On machines with more than one CPU increasing this value +# may improve performance (especially if using SSL with +# compression turned on). It is typically recommended to set +# this value to the number of CPUs present on your machine. +workers = 1 + # Enable Registry API versions individually or simultaneously #enable_v1_registry = True #enable_v2_registry = True diff --git a/glance/common/wsgi.py b/glance/common/wsgi.py index 551b917bfc..10692452a3 100644 --- a/glance/common/wsgi.py +++ b/glance/common/wsgi.py @@ -76,7 +76,7 @@ socket_opts = [ eventlet_opts = [ cfg.IntOpt('workers', default=1, help=_('The number of child process workers that will be ' - 'created to service API requests.')), + 'created to service requests.')), cfg.StrOpt('eventlet_hub', default='poll', help=_('Name of eventlet hub to use. Traditionally, we have ' 'only supported \'poll\', however \'selects\' may be '