
This patch contains several misc. changes to queue, message, and claim limits to reduce confusion and bring the implementation in line with the v1 spec. 1. Removed a couple of WSGI driver config options that are no longer needed now that we have redefined (and simplified) how we constrain message and metadata size. metadata_max_length = 65536 content_max_length = 262144 2. Renamed options to be more readable and consistent 3. Moved options to [transport] section 4. Made max messages that can be claimed its own setting, to reduce confusion 5. Removed enforcing an upper limit on the number of messages that can be posted; this was never in the spec, and appears to be gold-plating. Now, the only upper limit is max_message_size. 6. Removed the check on the size of a create claim request since (1) it is not part of the API spec, and (2) sanity-checks like that are best done by the web server, before a request even touches the app. 7. Migrated limits for storage driver interface params to static values, since those defaults define the static contract between transport and storage drivers. 8. Wrapped validation error messages in gettextutils._, and converted them to use .format instead of %. Change-Id: I1372e5002f030f5c8c47774ab00ca8ee7e12232d Closes-Bug: #1270260
55 lines
1.3 KiB
Plaintext
55 lines
1.3 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 = True
|
|
|
|
# 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 = sqlite
|
|
|
|
[drivers:transport:wsgi]
|
|
bind = 127.0.0.1
|
|
port = 8888
|
|
|
|
;[drivers:transport:zmq]
|
|
;port = 9999
|
|
|
|
[limits:transport]
|
|
# The maximum number of queue records per page when listing queues
|
|
;max_queues_per_page = 20
|
|
|
|
# Maximum number of messages per page when listing messages.
|
|
;max_messages_per_page = 20
|
|
|
|
# Maximum number of messages that can be claimed at a time.
|
|
;max_messages_per_claim = 20
|
|
|
|
# Expiration limits; the minimal values are all 60 (seconds)
|
|
;max_message_ttl = 1209600
|
|
;max_claim_ttl = 43200
|
|
;max_claim_grace = 43200
|
|
|
|
# Maximum size in bytes allowed for queue metadata and bulk/single
|
|
# message post bodies (including whitespace and envelope fields).
|
|
;max_queue_metadata = 65536
|
|
;max_message_size = 262144
|