Skip to content

Commit

Permalink
Merge pull request #20 from European-XFEL/kafka-docs
Browse files Browse the repository at this point in the history
Fix the instructions for connecting to XFELs broker offline
  • Loading branch information
JamesWrigley authored Jul 7, 2023
2 parents 535cbd8 + 30095dd commit 36c355c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ at the command line.
## Kafka
The GUI is updated by Kafka messages sent by the backend. Currently we use
XFEL's internal Kafka broker at `exflwebstor01.desy.de:9102`, but this is only
accessible inside the control network.
accessible inside the DESY network.

DAMNIT can run offline, but if you want updates from the backend and you're
running DAMNIT outside the network and not using a VPN, you'll first have to
Expand All @@ -50,7 +50,14 @@ forward the broker port to your machine:
ssh -L 9102:exflwebstor01.desy.de:9102 max-exfl.desy.de
```

And then set the `AMORE_BROKER` variable:
And then add a line in your `/etc/hosts` file to resolve `exflwebstor01.desy.de`
to `localhost` (remember to remove it afterwards!):
```
127.0.0.1 exflwebstor01.desy.de
```

And then DAMNIT should be able to use XFELs broker. If you want to use a specific
broker you can set the `AMORE_BROKER` variable:
```bash
export AMORE_BROKER=localhost:9102
```
Expand Down

0 comments on commit 36c355c

Please sign in to comment.