Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add default-disabled endpoint to trigger update over HTTP #135

Merged
merged 1 commit into from
Feb 22, 2025

Conversation

ties
Copy link
Collaborator

@ties ties commented Feb 22, 2025

Add /api/update endpoint to immediately read new the payload/slurm file without waiting for the next update cycle.

This is not generally needed.

However if you want to observe a lower latency between rpki and rtr (e.g. for an experiment), you can use this to observe payloads quickly, without a very low refresh interval.

Add `/api/update` endpoint to immediately read the validated
payload/SLURM content without waiting for the next update cycle.

This is not generally needed.

However if you want to observe a lower latency between RPKI and
RTR, you can use this to observe payloads quickly, without
configuring a very low refresh interval.
@ties ties requested a review from job February 22, 2025 10:07
ExportPath = flag.String("export.path", "/rpki.json", "Export path")
EnableUpdateEndpoint = flag.Bool("update.endpoint", false, "Enable HTTP endpoint that expedites the next fetch")

RTRVersion = flag.Int("protocol", 1, "RTR protocol version. Default is version 1 (RFC 8210)")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should add gofmt in ci/cd to check that merged code is formatted already

@job job merged commit 36ea035 into bgp:master Feb 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants