This repo contains simple server and client code to reproduce the lingering connections issue with gcloud HTTP load balancer.
sudo vim /etc/apt/sources.list.d/java-8-debian.list
add these two lines
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update
sudo apt-get install -y git oracle-java8-installer
Provision 3 instances:
- machine type: n1-standard-16, boot image: /debian-cloud/debian-8-jessie-v20160511
- 1 for server, fronted with HTTP load balancer
- 2 for load generator
./gradlew clean jettyRun
./gradlew clean loadtest -Pargs="64 64"