Skip to content
Snippets Groups Projects
Commit 1a3868ed authored by Chrysostomos Nanakos's avatar Chrysostomos Nanakos
Browse files

plankton: Pass conf values to Pithos backend

Pass Archipelago config file, XSEG pool size and
mapfile check interval configuration values when
instantiating Pithos backend class.
parent 486a2d62
No related branches found
No related tags found
No related merge requests found
...@@ -19,3 +19,11 @@ ...@@ -19,3 +19,11 @@
# #
## The owner of the images that will be marked as "system images" by the UI ## The owner of the images that will be marked as "system images" by the UI
#SYSTEM_IMAGES_OWNER = 'okeanos' #SYSTEM_IMAGES_OWNER = 'okeanos'
#Archipelago Configuration File
#PITHOS_BACKEND_ARCHIPELAGO_CONF = '/etc/archipelago/archipelago.conf'
#
#Archipelagp xseg pool size
#PITHOS_BACKEND_XSEG_POOL_SIZE = 8
#
#The maximum interval (in seconds) for consequent backend object map checks
#PITHOS_BACKEND_MAP_CHECK_INTERVAL = 1
...@@ -19,3 +19,12 @@ DEFAULT_CONTAINER_FORMAT = 'bare' ...@@ -19,3 +19,12 @@ DEFAULT_CONTAINER_FORMAT = 'bare'
# The owner of the images that will be marked as "system images" by the UI # The owner of the images that will be marked as "system images" by the UI
SYSTEM_IMAGES_OWNER = 'okeanos' SYSTEM_IMAGES_OWNER = 'okeanos'
#Archipelago Configuration File
PITHOS_BACKEND_ARCHIPELAGO_CONF = '/etc/archipelago/archipelago.conf'
# Archipelagp xseg pool size
PITHOS_BACKEND_XSEG_POOL_SIZE = 8
# The maximum interval (in seconds) for consequent backend object map checks
PITHOS_BACKEND_MAP_CHECK_INTERVAL = 1
...@@ -81,7 +81,9 @@ def get_pithos_backend(): ...@@ -81,7 +81,9 @@ def get_pithos_backend():
service_token=settings.CYCLADES_SERVICE_TOKEN, service_token=settings.CYCLADES_SERVICE_TOKEN,
astakosclient_poolsize=settings.CYCLADES_ASTAKOSCLIENT_POOLSIZE, astakosclient_poolsize=settings.CYCLADES_ASTAKOSCLIENT_POOLSIZE,
db_connection=settings.BACKEND_DB_CONNECTION, db_connection=settings.BACKEND_DB_CONNECTION,
block_path=settings.BACKEND_BLOCK_PATH) archipelago_conf_file=settings.PITHOS_BACKEND_ARCHIPELAGO_CONF,
xseg_pool_size=settings.PITHOS_BACKEND_XSEG_POOL_SIZE,
map_check_interval=settings.PITHOS_BACKEND_MAP_CHECK_INTERVAL)
return _pithos_backend_pool.pool_get() return _pithos_backend_pool.pool_get()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment