@@ -106,3 +106,22 @@ In case of existing installation (just updated image)
```
systemctl restart systemd-nspawn@xcache
```
# Configure server for VP
For the servers that participate in the VP queue we need to additionally configure and start/enable services for sending heartbeats and monitoring information. These service files/scripts are included in the git branches for the corresponding xcache servers (e.g. xcache3/4, check the [diff w.r.t master](https://gitlab.physik.uni-muenchen.de/etp-computing/xcache-nspawn-lrz/-/compare/master..xcache3)).
For configuration we need to
- set the correct hostname in `/etc/systemd/nspawn/xcache.nspawn`
- set the correct ip and server label in `/etc/systemd/system/xcache-vp-heartbeat.service`
- start and enable the `gStream2TCP` service that sends the monitoring information to elastic search
```bash
systemctl start gStream2tcp
systemctl enable gStream2tcp
```
- start and enable the heartbeats that tell VP the server is up once a minute (stop it to take it out of VP)