Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Fix get hostname dns load #1048

Merged
merged 13 commits into from
Sep 15, 2019
Merged

Conversation

jlamaille
Copy link
Contributor

Description

Too much DNS load on pod readiness with kubernetes

Motivation and Context

We use zalenium with kubernetes, the readiness status causes a heavy load on our DNS.
Indeed the use of the method "getent" causes calls to the DNS which tries to solve urls of the type:

  • disulfur-40000-c757p.google.internal
  • disulfur-40000-c757p.x.c.f ..... internal
  • etc.
    A call made by the readiness status generates at least 4 calls on the DNS times the number pods with a short frequency, the load is very important.

How Has This Been Tested?

I successfully restarted all the unit tests and deployed the new image by hand, then launched grid on kubernetes environment.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov-io
Copy link

Codecov Report

Merging #1048 into master will increase coverage by 0.26%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master    #1048      +/-   ##
============================================
+ Coverage     54.75%   55.01%   +0.26%     
- Complexity      671      676       +5     
============================================
  Files            58       58              
  Lines          4562     4562              
  Branches        429      429              
============================================
+ Hits           2498     2510      +12     
+ Misses         1831     1818      -13     
- Partials        233      234       +1

@diemol diemol changed the base branch from master to merge-pr-1048 September 15, 2019 11:27
Copy link
Contributor

@diemol diemol left a comment

Choose a reason for hiding this comment

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

Thanks for the detailed explanation and your contribution @jlamaille!
I will merge this to a protected branch to run all the CI jobs.

@diemol diemol changed the base branch from merge-pr-1048 to master September 15, 2019 11:34
@diemol diemol merged commit 12fa8d2 into zalando:master Sep 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants