cloudflare / gortr

The RPKI-to-Router server used at Cloudflare
https://rpki.cloudflare.com
BSD 3-Clause "New" or "Revised" License
309 stars 39 forks source link

evaluate slurm file at start #99

Open DonOtuseGH opened 1 year ago

DonOtuseGH commented 1 year ago

I think it is important that the slurm config file is evaluated not only when changes are made but also right at the first start of goRTR.

a possible use case would be to run several goRTR instances in kubernetes clusters, check the locallyAddedAssertions via rtrdump and use them to control the readinessProbe.

Of course an evaluation after changing the slurm file content as proposed here could be useful as well.

ties commented 1 year ago

Do you happen to know how stayrtr handles this? I think the same issue may exist, or have existed there

DonOtuseGH commented 1 year ago

I saw the merge request in the stayrtr project and tried to get this app to run a few days ago, but it somehow failed. I can't remember what exactly the problem was, but i can try to reproduce it again. Since i'm not a Go expert, i don't know how they handle it. Maybe I should give it a try and go for stayrtr since it seems goRTR is no longer maintained?