Skip to content

allow queue size to be configurable and use an array as local queue as t...#213

Merged
abrandoned merged 2 commits into3-0-stablefrom
abrandoned/zmq_queue_work
Aug 26, 2014
Merged

allow queue size to be configurable and use an array as local queue as t...#213
abrandoned merged 2 commits into3-0-stablefrom
abrandoned/zmq_queue_work

Conversation

@abrandoned
Copy link
Copy Markdown
Contributor

...he broker is single threaded

We were using a Queue in the Zmq broker, but the broker runs in it's own thread so access does not need to be synchronized when storing data for the local queue

Also elevated the backlog of the broker queue to be managed by an environment variable as we are seeing greater throughput with queue size being 25% of worker size which is also configurable via ENV variables

@localshred

@abrandoned
Copy link
Copy Markdown
Contributor Author

I moved to checking the negative because any? will yield and check for the presence of truthi-ness as opposed to looking at the size and not allocating an enumerator (but also clarity)

@abrandoned
Copy link
Copy Markdown
Contributor Author

also updated it to reflect the zmq and server nature of the PB env var

abrandoned added a commit that referenced this pull request Aug 26, 2014
allow queue size to be configurable and use an array as local queue as t...
@abrandoned abrandoned merged commit 2867745 into 3-0-stable Aug 26, 2014
@abrandoned abrandoned deleted the abrandoned/zmq_queue_work branch August 26, 2014 22:42
@liveh2o
Copy link
Copy Markdown
Contributor

liveh2o commented Aug 26, 2014

🆒 :shipit:

@tamird
Copy link
Copy Markdown
Contributor

tamird commented Sep 29, 2014

Hi folks, this PR broke tests. Sadly, at the time of this PR tests were not being run in travis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants