ba44d1c384
These generic factories allow us to dump the copied and pasted app_factory and filter_factory methods in the codebase. The main difference is the paste configuration changes from: [app:apiv1app] paste.app_factory = glance.api.v1:app_factory ... [filter:cache] paste.filter_factory = glance.api.middleware.cache:filter_factory to this: [app:apiv1app] paste.app_factory = glance.common.wsgi:app_factory glance.app_factory = glance.api.v1:API ... [filter:cache] paste.filter_factory = glance.common.wsgi:filter_factory glance.filter_factory = glance.api.middleware.cache:CacheFilter Apart from reducing code duplication, this will also allow us to have the generic factories inject other data into the apps and filters. Change-Id: I1d2be5630ab61d29b8948ff88d58e6e1b11c2e5f
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
[DEFAULT]
|
|
# Show more verbose log output (sets INFO log level output)
|
|
verbose = True
|
|
|
|
# Show debugging output in logs (sets DEBUG log level output)
|
|
debug = False
|
|
|
|
# Log to this file. Make sure you do not set the same log
|
|
# file for both the API and registry servers!
|
|
log_file = /var/log/glance/scrubber.log
|
|
|
|
# Send logs to syslog (/dev/log) instead of to file specified by `log_file`
|
|
use_syslog = False
|
|
|
|
# Should we run our own loop or rely on cron/scheduler to run us
|
|
daemon = False
|
|
|
|
# Loop time between checking for new items to schedule for delete
|
|
wakeup_time = 300
|
|
|
|
# Directory that the scrubber will use to remind itself of what to delete
|
|
# Make sure this is also set in glance-api.conf
|
|
scrubber_datadir = /var/lib/glance/scrubber
|
|
|
|
# Only one server in your deployment should be designated the cleanup host
|
|
cleanup_scrubber = False
|
|
|
|
# pending_delete items older than this time are candidates for cleanup
|
|
cleanup_scrubber_time = 86400
|
|
|
|
# Address to find the registry server for cleanups
|
|
registry_host = 0.0.0.0
|
|
|
|
# Port the registry server is listening on
|
|
registry_port = 9191
|
|
|
|
[app:glance-scrubber]
|
|
paste.app_factory = glance.common.wsgi:app_factory
|
|
glance.app_factory = glance.store.scrubber:Scrubber
|