# BROKER + CLUSTER - stuck

**URL:** <https://community.zeek.org/t/broker-cluster-stuck/4710>\
**Category:** Zeek\
**Created:** [March 8, 2017, 10:22am UTC](https://community.zeek.org/t/broker-cluster-stuck/4710 "2017-03-08T10:22:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![william\_de\_ping](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william\_de\_ping](https://community.zeek.org/u/william_de_ping)\
**Post date:** [March 8, 2017, 10:22am UTC](https://community.zeek.org/t/broker-cluster-stuck/4710/1 "2017-03-08T10:22:15Z")

</div>

Hello all,

Short version : On bro2.5 I cannot seem to get the cluster working with a broker script. that same script is working on a single instance of bro.

Detailed version :

a.bro has a Broker listener linked to myevent. Once myevent is occurring, the string it received is added to a table named tb. On a pybroker remote machine I send updates to the listener.

This scenario works with a single bro instance.

However when I try to run broctl deploy, its stuck on “checking configurations …” and never finish executing.  
I do see 7 bro processes that are up (1 manager, 1 proxy + 4 workers).

Any ideas on why is this occurring ?

Also, if I state in a.bro that the Broker should listen to 9999/tcp, what happens in the case of a cluster ? do all instances try to bind to the same address+port ?

How can I send one update from my pybroker script to several bro instances (workers) ?

Thanks in advance

B

---

<div class="post-metadata">

**Author:** ![dopheide](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@dopheide](https://community.zeek.org/u/dopheide)\
**Post date:** [March 8, 2017, 3:11pm UTC](https://community.zeek.org/t/broker-cluster-stuck/4710/2 "2017-03-08T15:11:15Z")

</div>

For just the hanging issue… Do you perhaps have “exit\_only\_after\_terminate” set in your policy for testing? I’ve seen that hang the config checker.

Dop

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)\
**Post date:** [March 8, 2017, 3:39pm UTC](https://community.zeek.org/t/broker-cluster-stuck/4710/3 "2017-03-08T15:39:33Z")

</div>

Have your pybroker script listen for connections and have all the workers connect to it. Or if you just send updates to the manager but mark the table as &synchronized updates will propagate to the other workers.

---

<div class="post-metadata">

**Author:** ![william\_de\_ping](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william\_de\_ping](https://community.zeek.org/u/william_de_ping)\
**Post date:** [March 8, 2017, 4:01pm UTC](https://community.zeek.org/t/broker-cluster-stuck/4710/4 "2017-03-08T16:01:08Z")

</div>

Thanks, the exit\_only\_after\_terminate helped

about the &synchronized, only the manager is listening and all nodes are familiar with tb: table[string] of string &create\_expire=10min &synchronized.

manager successfully updates tb but it is not synchronized across cluster :

broctl print TEST::tb

manager TEST:tb = {

[“hi”] = [name=“bye”]  
}

proxy-1 TEST:tb = {  
}  
worker-0 TEST:tb = {  
}

do I need to invoke something after adding an element to tb, or &synchronized should be taking care of it ?

Thanks

B

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:44pm UTC](https://community.zeek.org/t/broker-cluster-stuck/4710/5 "2022-05-06T15:44:42Z")

</div>


