You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every now and then (30 seconds by default) the framework asks the connector if the setup of the connector is valid. For GitHub connector it causes validation of names for the repositories which for elastic organisation for me does 23 API calls. This is 2640 requests per hour.
GitHub throttling limits for GraphQL are 5000 requests per hour. So idle connector eats >50% of github throttling limits per hour. We need to fix this and make the connector not validate so aggressively. It looks like we cannot validate repository names without affecting throttling.
To Reproduce
Steps to reproduce the behavior:
Create a github connector and point it to a large enough org (elastic works for internal users)
Leave the connector running with service.log_level: DEBUG
Count number of calls done per hour
It's gonna be thousands of requests
Expected behavior
Very small number of requests is done per hour. (ideally 1 per heartbeat, resulting in 120 requests per hour)
The text was updated successfully, but these errors were encountered:
What are the reasons for validating periodically, instead of only validating when the configuration changes?
Validating upon change would drastically reduce the number of requests to Github, and could provide a better UX since users would get near-immediate feedback on their config changes
That is correct. However original idea was to call remote source periodically to give early feedback about source configuration - without running a sync.
However original idea was to call remote source periodically to give early feedback about source configuration
The problem I'm experiencing is that feedback is too slow. I change the config, and don't see the warning banner change for several minutes - it's also not clear from the UI whether the validation is in-progress or actually finished.
What about changing the periodic validation to something much less infrequent, like every hour. And then doing on-demand validation whenever the configuration changes?
Additionally the validation that happens now was supposed to be lightweight, so we want to refactor the connector itself to do lightweight periodic validation + do full proper validation when running a sync.
Bug Description
Every now and then (30 seconds by default) the framework asks the connector if the setup of the connector is valid. For GitHub connector it causes validation of names for the repositories which for
elastic
organisation for me does 23 API calls. This is 2640 requests per hour.GitHub throttling limits for GraphQL are 5000 requests per hour. So idle connector eats >50% of github throttling limits per hour. We need to fix this and make the connector not validate so aggressively. It looks like we cannot validate repository names without affecting throttling.
To Reproduce
Steps to reproduce the behavior:
elastic
works for internal users)service.log_level: DEBUG
Expected behavior
Very small number of requests is done per hour. (ideally 1 per heartbeat, resulting in 120 requests per hour)
The text was updated successfully, but these errors were encountered: