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

[kube] Reduce apiserver request count for pod_service_mapper #3387

Merged
merged 1 commit into from
Jun 15, 2017

Conversation

xvello
Copy link
Contributor

@xvello xvello commented Jun 14, 2017

#3381 reported a high apiserver traffic since 5.14 and the introduction of kubernetes.pod_service_mapper. This couple of PR changes the logic to only pools events every 5 minutes (configurable) instead of every run.

  • add collect_service_tags to disable collection completely
  • add a delay parameter to throttle requests to the apiserver
  • remove check_services_cache_freshness and use process_events only for cache invalidation
  • disable podmapper freshness check from SD, rely on event from the kubernetes check

Needs changes in integration-core: DataDog/integrations-core#476

- disable podmapper freshness check from SD, rely on event from the kubernetes check
- add a delay parameter to throttle requests to the apiserver
- remove check_services_cache_freshness and use process_events only for cache invalidation
- add collect_service_tags to disable collection completely

Needs changes in integration-core
@xvello xvello force-pushed the xvello/kubeservicemapper_delay branch from 2dc6d74 to c96cf43 Compare June 15, 2017 09:41
@xvello xvello requested a review from hkaj June 15, 2017 09:57
@xvello xvello merged commit b38817f into master Jun 15, 2017
@xvello xvello deleted the xvello/kubeservicemapper_delay branch June 21, 2017 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants