Put this in the default location for Nginx of /etc/nginx/sites-available/default

upstream tiles {
	server machine1:59005;
	server machine2:59005;
	server machine3:59005;
	server machine4:59005;
	server machine5:59005;
	server machine6:59005;
	server machine7:59005;
	server machine8:59005;
	server machine9:59005;
	server machine10:59005;
}

server {
	listen 80;

	location / {
		proxy_pass http://tiles;
		proxy_read_timeout 1800;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection 'upgrade';
		proxy_set_header Host $host;
		proxy_cache_bypass $http_upgrade;
	}
}