Giter VIP home page Giter VIP logo

awsping's Introduction

awsping's People

Contributors

davidurias avatar ekalinin avatar jocgir avatar lucamurante avatar neuroscr avatar rbarazzutti avatar rinogo avatar srisco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

awsping's Issues

panic for service that's not in all regions

The behaviour seems to be correct for bogus service names:

$ go run main.go -service=not-a-service
US-East (Virginia)                      NaN ms
US-East (Ohio)                          NaN ms
US-West (California)                    NaN ms
US-West (Oregon)                        NaN ms
Canada (Ceentral)                       NaN ms
Europe (Ireland)                        NaN ms
Europe (Frankfurt)                      NaN ms
Europe (London)                         NaN ms
Asia Pacific (Tokyo)                    NaN ms
Asia Pacific (Seoul)                    NaN ms
Asia Pacific (Singapore)                NaN ms
Asia Pacific (Mumbai)                   NaN ms
Asia Pacific (Sydney)                   NaN ms
South America (São Paulo)               NaN ms

but panics for partially available services:

$ go run main.go -service=ecr
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x11f4345]

goroutine 7 [running]:
main.(*AWSRegion).CheckLatencyTCP(0xc4200bc5b0, 0xc4200164d0)
	/tmp/workspace/awsping/main.go:85 +0x295
created by main.CalcLatency
	/tmp/workspace/awsping/main.go:141 +0x357
exit status 2

Question: How to pull the awsping docker image from GHCR?

Using a PAT with packages: read scope, I can't pull it from my machine

$ echo "$GHCR_PAT" | docker login ghcr.io --password-stdin --username user
WARNING! Your password will be stored unencrypted in /home/lestephane/snap/docker/1779/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

$ docker pull ghcr.io/ekalinin/awsping:v2.0.1
Error response from daemon: denied

Unless I can actually pull the image locally, I won't be able to troubleshoot issues I'm having pulling this container from a GitHub workflow. I'm not even sure the image in question is available publicly. The docker pull command is taken directly from the release notes.

Unexpected TCP latency results

There's not much you can do about it, but thought I should raise it as an FYI for future users.

When running awsping TCP test I got the following results from Australia, which was really confusing until I realised there was a transparent proxy in place.

$ ./awsping -verbose 2 -repeats 3
      Code            Region                             Try #1          Try #2          Try #3     Avg Latency
    0 sa-east-1       South America (São Paulo)         5.94 ms         5.42 ms         5.21 ms         5.52 ms
    1 eu-west-1       Europe (Ireland)                  5.36 ms         6.09 ms         5.40 ms         5.62 ms
    2 us-east-2       US-East (Ohio)                    6.59 ms         5.50 ms         4.85 ms         5.65 ms
    3 ap-northeast-2  Asia Pacific (Seoul)              6.30 ms         5.27 ms         5.49 ms         5.69 ms
    4 ap-south-1      Asia Pacific (Mumbai)             6.44 ms         5.46 ms         5.16 ms         5.69 ms
    5 us-west-1       US-West (California)              7.09 ms         5.21 ms         4.94 ms         5.75 ms
    6 ap-southeast-1  Asia Pacific (Singapore)          6.25 ms         5.51 ms         5.93 ms         5.89 ms
    7 us-east-1       US-East (Virginia)                6.73 ms         5.33 ms         5.64 ms         5.90 ms
    8 us-west-2       US-West (Oregon)                  6.19 ms         5.91 ms         5.70 ms         5.94 ms
    9 eu-central-1    Europe (Frankfurt)                6.63 ms         6.05 ms         5.42 ms         6.03 ms
   10 ap-southeast-2  Asia Pacific (Sydney)             7.18 ms         5.77 ms         5.96 ms         6.31 ms
   11 ap-northeast-1  Asia Pacific (Tokyo)              8.49 ms         5.02 ms         5.43 ms         6.31 ms

Perhaps docs need to be updated to explain what the 'TCP' test does (3 way handshake RTT to http endpoint), or make HTTP the default.

Ability to specify AWS service

Ping is hardcoded against dynamodb. Take cmd line argument to accept AWS service, eg: ec2, sdb, sns, sqs

All should follow the naming pattern http://<service>.<region>.amazonaws.com/ping

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.