e7d / speedtest

A self-hosted, lightweight HTML5 speed test implemented in JavaScript, based on Web Workers and XMLHttpRequest.
https://hub.docker.com/r/e7db/speedtest
MIT License
212 stars 58 forks source link

Running behind a Load Balancer, with and without SSL #20

Open Guyverix opened 4 years ago

Guyverix commented 4 years ago

Wanted to let you know about some oddities seen when running this in AWS, both with and without an ELB sitting in front of it. It is rock solid running in AWS overall, however if you put an ELB in front of your application and try to make it look "pretty" and add SSL, etc it looses its mind. It appears to end up testing the ELB to the application rather than the client to the application.

Thought you might want to add that warning into your docs.

I know you said to avoid SSL, I was just testing it outside the app since I wanted to see what the behaviour looked like.

e7d commented 4 years ago

Hey @Guyverix

Thanks for you issue, that is a great piece of information. As you said, speed testing over SSL is currently giving absurd results. To be honest, it had been giving quite the headache to solve, and still is to fine a solution.

Regarding the ELB situation, i find myself in a similar position when i use my daily docker stack, sitting behind a Traefik balancer. Direct tests are running great, testing through Traefik is awfully slow.

Maybe i'll give it a look some day, but sadly, this project is currently not on my priorities.