Skip to content

psqli/gcloud_ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

copy-paste tool for measuring RTT for Google Cloud Platform regions

This is based on the Google's official tool gcping.

Usage:

gcloud_ping.py [-h] [--csv] [-c PING_COUNT] [-i PING_INTERVAL] [--sort] [--list] [regions ...]

Positional arguments:

  • regions Regions to ping / list (if omitted, defaults to all regions).

Options:

  • -h --help Show the help message and exit.
  • --csv Output in CSV format.
  • -c --ping-count PING_COUNT Number of ping cycles. Default is 64.
  • -i --ping-interval PING_INTERVAL Interval (in seconds) between ping cycles. Default is 1.
  • -s --sort Sort regions by average RTT (ascending) when printing the results.
  • -l --list List regions without pinging.

A ping cycle is the pinging of all regions specified.

The average is calculated using a Winsorized Mean, which is basically a Trimmed Mean but clamps outliers instead of discarding them. The lower and upper limits were chosen carefully arbitrarily.

Google's current IP addresses

About

Python script for measuring RTT for a set of Google Cloud Platform (GCP) regions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages