-
Notifications
You must be signed in to change notification settings - Fork 31
Description
If [series] in the galicaster configuration is left unconfigured (it is not configured by default) Galicaster will attempt to retrieve all series from the opencast it is pointed at. This happens at galicaster init and it also does this on every long heartbeat (default 60 seconds). Normally this would be OK however if you have 1000+ series in opencast and many Galicaster capture agents it may become a bit of a problem. for two reasons:
- it impacts opencast performance calling the series REST endpoint so frequently
- the call from galicaster may be seen by firewalls as malicious as many many HTTP calls are made in a single second
I would suggest a few changes around the default behaviour maybe? possible ideas could be to increase the results per page hard-coded variable or have this also in the [series] configuration https://github.com/teltek/Galicaster/blob/c066b5abd3b32ed038a633cd2a9069c37bdafb5a/galicaster/opencast/series.py#L23
maybe also have the ability to make series polling less frequent? say once at initialisation then just nightly?