ca26627ec4
This patch brings together oslo.cache, oslo.config, and stevedore to provide pluggable, hierarchical catalogue caching for marconi proxy. Here's the list of changes: - add configuration/driver loading at the app level - remove select from proxy storage driver - unnecessary intelligence at storage layer - node.weighted_select -> partition.weighted_select (clearer name) - forwarding logic further refactored, placed in own module - caching logic placed in lookup module - selector passed down at app level to handle round-robin state globally * open to becoming configurable - adds several TODOs for a better proxy Change-Id: I3bc568315e685486d63cdce3ec278c89e3f2b2bc Implements: blueprint placement-service
105 lines
3.0 KiB
Plaintext
105 lines
3.0 KiB
Plaintext
[DEFAULT]
|
|
# Show more verbose log output (sets INFO log level output)
|
|
;verbose = False
|
|
|
|
# Show debugging output in logs (sets DEBUG log level output)
|
|
;debug = False
|
|
|
|
# Log to this file!
|
|
log_file = /var/log/marconi/server.log
|
|
|
|
;auth_strategy =
|
|
|
|
# ================= Syslog Options ============================
|
|
|
|
# Send logs to syslog (/dev/log) instead of to file specified
|
|
# by `log_file`
|
|
;use_syslog = False
|
|
|
|
# Facility to use. If unset defaults to LOG_USER.
|
|
;syslog_log_facility = LOG_LOCAL0
|
|
|
|
|
|
[drivers]
|
|
# Transport driver module (e.g., wsgi, zmq)
|
|
transport = wsgi
|
|
# Storage driver module (e.g., mongodb, sqlite)
|
|
storage = mongodb
|
|
|
|
# transport and storage drivers for use with marconi-proxy
|
|
[drivers:proxy]
|
|
storage = mongodb
|
|
|
|
[drivers:transport:wsgi]
|
|
;bind = 0.0.0.0
|
|
;port = 8888
|
|
|
|
# Maximum Content-Length allowed for metadata updating and
|
|
# message posting.
|
|
;metadata_max_length = 65536
|
|
;content_max_length = 262144
|
|
|
|
;[drivers:transport:zmq]
|
|
;port = 9999
|
|
|
|
[drivers:storage:mongodb]
|
|
uri = mongodb://db1.example.net,db2.example.net:2500/?replicaSet=test&ssl=true&w=majority
|
|
database = marconi
|
|
|
|
# Maximum number of times to retry a failed operation. Currently
|
|
# only used for retrying a message post.
|
|
;max_attempts = 1000
|
|
|
|
# Maximum sleep interval between retries (actual sleep time
|
|
# increases linearly according to number of attempts performed).
|
|
;max_retry_sleep = 0.1
|
|
|
|
# Maximum jitter interval, to be added to the sleep interval, in
|
|
# order to decrease probability that parallel requests will retry
|
|
# at the same instant.
|
|
;max_retry_jitter = 0.005
|
|
|
|
# Frequency of message garbage collections, in seconds
|
|
;gc_interval = 300
|
|
|
|
# Threshold of number of expired messages to reach in a given
|
|
# queue, before performing the GC. Useful for reducing frequent
|
|
# locks on the DB for non-busy queues, or for worker queues
|
|
# which process jobs quickly enough to keep the number of in-
|
|
# flight messages low.
|
|
#
|
|
# Note: The higher this number, the larger the memory-mapped DB
|
|
# files will be.
|
|
;gc_threshold = 1000
|
|
|
|
[drivers:proxy:storage:mongodb]
|
|
uri = mongodb://localhost:27017
|
|
database = marconi_proxy
|
|
|
|
[limits:transport]
|
|
# The maximum number of queue records per page when listing queues
|
|
;queue_paging_uplimit = 20
|
|
# The maximum number of messages in a message posting, maximum
|
|
# number of messages per page when listing or claiming messages,
|
|
# and maximum number of messages involved in a bulk operation.
|
|
;message_paging_uplimit = 20
|
|
# Expiration limits; the minimal values are all 60 (seconds)
|
|
;message_ttl_max = 1209600
|
|
;claim_ttl_max = 43200
|
|
;claim_grace_max = 43200
|
|
|
|
# Maximum compact-JSON (without whitespace) size in bytes allowed
|
|
# for each metadata body and each message body
|
|
;metadata_size_uplimit = 65536
|
|
;message_size_uplimit = 262144
|
|
|
|
[limits:storage]
|
|
# The default number of queue records per page when listing queues
|
|
;default_queue_paging = 10
|
|
# The default number of messages per page when listing or claiming messages
|
|
;default_message_paging = 10
|
|
|
|
# caching mechanism
|
|
[oslo_cache]
|
|
cache_backend = memory
|
|
;cache_prefix = my_prefix |