./docker.sh
Build & upload to gcloud: gcloud builds submit --tag gcr.io/typeworld2/messagequeue
docker attach $(echo $(docker container ls) | cut -d ' ' -f9)
docker exec -it $(echo $(docker container ls) | cut -d ' ' -f9) /bin/bash
Reload Compute Engine: gcloud compute instances update-container messagequeue
After an actual measurement, the number of connections maxxed out at 65K, using 1912MB memory, or 294MB per 1K connections. Therefore, a machine with roughly 3GB memory should be used (ca. 600MB system base usage + 1912MB = 2512MB)
Number of connections: ulimit -n
Global limit: cat /proc/sys/fs/file-max