mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Change Intel framework to round-robin insertion events across proxies
This commit is contained in:
parent
45178f3051
commit
fe478877c6
6 changed files with 119 additions and 1 deletions
|
@ -54,7 +54,11 @@ event Cluster::node_up(name: string, id: string)
|
|||
# has to be distributed.
|
||||
event Intel::new_item(item: Item) &priority=5
|
||||
{
|
||||
Broker::publish(indicator_topic, Intel::insert_indicator, item);
|
||||
if ( Cluster::proxy_pool$alive_count == 0 )
|
||||
Broker::publish(indicator_topic, Intel::insert_indicator, item);
|
||||
else
|
||||
Cluster::relay_rr(Cluster::proxy_pool, "Intel::new_item_relay_rr",
|
||||
indicator_topic, Intel::insert_indicator, item);
|
||||
}
|
||||
|
||||
# Handling of item insertion triggered by remote node.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue