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 a ping tester to check latency to different servers #2

Merged
merged 4 commits into from
Jun 24, 2020

Conversation

sudermanjr
Copy link
Member

@sudermanjr sudermanjr commented Jun 23, 2020

Example output:

└─ ./agones-allocator-client ping-test -t http://34.70.84.25,http://34.82.245.49
[
  {
    "host": "http://34.70.84.25",
    "dnsLookupTime": "0s",
    "response": "hurricane-1",
    "responseTime": "76.819223ms"
  },
  {
    "host": "http://34.82.245.49",
    "dnsLookupTime": "0s",
    "response": "tornado-1",
    "responseTime": "97.106097ms"
  }
]

responseTime is first connection to first byte
dnsLookupTime is the actual dns resolution time if you pass a hostname

@sudermanjr sudermanjr requested a review from ejether June 23, 2020 21:56
@sudermanjr sudermanjr merged commit e553935 into master Jun 24, 2020
@sudermanjr sudermanjr deleted the sudermanjr/ping-test branch June 24, 2020 16:16
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.

1 participant