Commit 65d5415f authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

plankton: Make pithos backend pool size a setting

Make the pool size of the pithos backends a configurable setting,
namely PITHOS_BACKEND_POOL_SIZE.
parent a2f8e3c4
......@@ -6,6 +6,7 @@
## Backend settings
#BACKEND_DB_CONNECTION = 'sqlite:////usr/share/synnefo/pithos/backend.db'
#BACKEND_BLOCK_PATH = '/usr/share/synnefo/pithos/data/'
#PITHOS_BACKEND_POOL_SIZE = 8
#
## The Pithos container where images will be stored by default
#DEFAULT_PLANKTON_CONTAINER = 'images'
......
......@@ -6,6 +6,7 @@
# Backend settings
BACKEND_DB_CONNECTION = 'sqlite:////usr/share/synnefo/pithos/backend.db'
BACKEND_BLOCK_PATH = '/usr/share/synnefo/pithos/data/'
PITHOS_BACKEND_POOL_SIZE = 8
# The Pithos container where images will be stored by default
DEFAULT_PLANKTON_CONTAINER = 'images'
......
......@@ -72,10 +72,9 @@ PLANKTON_META = ('container_format', 'disk_format', 'name', 'properties',
'status')
from pithos.backends.util import PithosBackendPool
POOL_SIZE = 8
_pithos_backend_pool = \
PithosBackendPool(
POOL_SIZE,
settings.PITHOS_BACKEND_POOL_SIZE,
astakos_url=settings.ASTAKOS_BASE_URL,
service_token=settings.CYCLADES_SERVICE_TOKEN,
astakosclient_poolsize=settings.CYCLADES_ASTAKOSCLIENT_POOLSIZE,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment