[SAC] [OSGeo] #2706: Set up load balancing configuration for download.osgeo.org
OSGeo
trac_osgeo at osgeo.org
Tue Jan 25 10:49:28 PST 2022
#2706: Set up load balancing configuration for download.osgeo.org
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2022-I
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+---------------------------------------
Comment (by robe):
This as a feared doesn't work for our needs. I tested using
bottle.downoad.osgeo.org
using the download backup on osgeo4.
osgeo4 upload is around 10 / 13 MB/s, much faster than osgeo7, perhaps
because it isn't pounded on so much.
But setting up as noted in load_balancing. I still ended up with slow
osgeo7 speed.
My nginx script for bottle.download.osgeo.org on osgeo7-nginx looked
something like this:
{{{
upstream bottle-app {
#least_conn;
#server download.lxd;
server bottle.staging.osgeo.org;
}
server {
server_name bottle.download.osgeo.org;
listen 80 proxy_protocol; # managed by Certbot
set_real_ip_from 140.211.15.0/24;
real_ip_header proxy_protocol;
access_log /var/log/nginx/bottle.download.osgeo.org.access_log
pcombined;
error_log /var/log/nginx/bottle.download.osgeo.org.error_log info;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;
client_max_body_size 0;
include /etc/nginx/proxy_protocol_params;
proxy_pass http://bottle-app/;
proxy_redirect off;
}
#listen 80 proxy_protocol; # managed by Certbot
listen 443 ssl proxy_protocol; # managed by Certbot
:
}
}}}
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2706#comment:1>
OSGeo <https://osgeo.org/>
OSGeo committee and general foundation issue tracker.
More information about the Sac
mailing list