Commit 2823a35c authored by Vincent Pelletier's avatar Vincent Pelletier

Change SQLQueue's MESSAGE_BUNDLE_SIZE from 10 to 1. This matches "historical"...

Change SQLQueue's MESSAGE_BUNDLE_SIZE from 10 to 1. This matches "historical" behaviour, and is a safer value.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26479 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 33c7fdd9
......@@ -54,7 +54,16 @@ MAX_VALIDATED_LIMIT = 1000
# Read this many messages to validate.
READ_MESSAGE_LIMIT = 1000
# Process this many messages in each dequeueMessage call.
MESSAGE_BUNDLE_SIZE = 10
# Downside of setting to a "small" value: the cost of reserving a batch of
# few messages increases relatively to the cost of executing activities,
# making CMFActivity overhead significant.
# Downside of setting to a "big" value: if there are many slow activities in
# a multi-activity-node environment, multiple slow activities will be reserved
# by a single node, making a suboptimal use of the parallelisation offered by
# the cluster.
# Before increasing this value, consider using SQLDict with group methods
# first.
MESSAGE_BUNDLE_SIZE = 1
class SQLQueue(RAMQueue, SQLBase):
"""
......
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