-
-
Notifications
You must be signed in to change notification settings - Fork 16
Improve message distribution performance #61
Conversation
This pull request introduces 1 alert when merging 996d3ef into 4ddca09 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging ade0559 into 4ddca09 - view on LGTM.com new alerts:
|
83b2cb6
to
a361c63
Compare
This pull request introduces 1 alert when merging a361c63 into 4ddca09 - view on LGTM.com new alerts:
|
@mavam I'll make a separate PR for the docs update later this week. |
@mavam I updated the PR description with a recipe for testing everything interactively. |
I'm having trouble with
However, the The bigger issue is that I need a bit of handholding for getting the proper dev setup locally going. It'd be nice if we had something where we can call |
Use non-blocking RabbitMQ consumer Re-implement Consumer and Publisher as interruptable background threads
@mavam I rebased this branch on current master and quantified the improvements in the CHANGELOGs. Can you give this another spin, please?
Here's how I tested this: # Terminal 1
python3 -m venv venv
source venv/bin/activate
python -m venv --system-site-packages venv
make dev-mode
threatbus -c config.yaml
# Terminal 2
./pyvast_threatbus.py -c config.yaml
# Terminal 3
vast start
# Terminal 3
python /tmp/rabbitmq_sender.py At first, I had a
The I commented the transformation and could feed data to VAST via the
So my brief test seems to work. I'm going to review the code separately later. |
📔 Description
Improve (retro-matching) performance.
VAST Bridge:
ulimit
to control task countThreat Bus:
select
system call (possible via JoinableQueue) to speed up message distributionStoppableWorker
base-class for background threads📝 Checklist
🎯 Review Instructions
File-by-file.
Test this as follows:
virtualenv venv
source venv/bin/activate
make dev-mode
venv/bin/threatbus -c config.yaml