Broker hierarchy on one machine? #1611
-
As a user guide example I'm trying to get a broker hierarchy example running on a single computer. I recognize that I need to use unique ports for each of the brokers. connecting to federates but I'm less certain I've correctly configured the hierarchy correctly. I've posted what I've got in the HELICS-examples repo. Any suggestions or help on getting this working would be appreciated. Here are the helics_cli configurations I'm using to launch the co-sim:
Right now, I'm getting errors related to not connecting to the broker from all executables (except BrokerA). Note that everybody is trying to connect to one port higher than what I specified in the configs. Similar error messages to the multi-broker problem I'm having. Broker B log:
Broker C log:
Battery log:
Charger log
Controller log
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'm still not able to get this to work under v3.0.0-alpha.2 and could use a little help when its convenient. |
Beta Was this translation helpful? Give feedback.
-
After working with @ebereleim, we've figured out the winning combination of parameters and values valid as of v3.0.0-alpha.2. Theses will be posted in the User Guide Examples but here are the salient points: Parent (root) broker:
Child brokers:
Federates:
|
Beta Was this translation helpful? Give feedback.
After working with @ebereleim, we've figured out the winning combination of parameters and values valid as of v3.0.0-alpha.2. Theses will be posted in the User Guide Examples but here are the salient points:
Parent (root) broker:
"exec": "helics_broker --loglevel=7 --timeout='10s' --port=25200",
Child brokers:
"exec": "helics_broker -f 2 --loglevel=7 --timeout='10s' --port=25400 --broker_address=tcp://127.0.0.1:25200"
Federates:
"brokerAddress": "tcp://127.0.0.1:25400",