Hi everyone,

I am setting up a galaxy instance in my university server that has 64 cores (4 cpus 16 threads each) and 512GB of memory and I am trying to figure out the best configuration in order to exploit it as best as we can. We are planning to use it for about 100-200 people.

So far I followed the instructions in

https://wiki.galaxyproject.org/Admin/GetGalaxy

https://wiki.galaxyproject.org/Admin/Config/Performance/ProductionServer

https://wiki.galaxyproject.org/Admin/Config/ApacheProxy

and

https://wiki.galaxyproject.org/Admin/Config/Performance/Scaling

but I found a little bit confusing the different instructions for Paste based processes and uwsgi. I'm planning to use uwsgi in Apache.

So I've been using mysql as the galaxy database
and added the following part in galaxy.ini

[uwsgi]
processes = 12
stats = 127.0.0.1:9191
socket = 127.0.0.1:4001
pythonpath = lib
threads = 4
logto = /home/galaxy/uwsgi.log
master = True

[server:handler0]
use = egg:Paste#http
port = 8090
use_threadpool = True
threadpool_workers = 10

[server:handler1]
use = egg:Paste#http
port = 8091
use_threadpool = True
threadpool_workers = 10

[server:handler2]
use = egg:Paste#http
port = 8092
use_threadpool = True
threadpool_workers = 10

[server:handler3]
use = egg:Paste#http
port = 8093
use_threadpool = True
threadpool_workers = 10

[server:handler4]
use = egg:Paste#http
port = 8094
use_threadpool = True
threadpool_workers = 10

[server:handler5]
use = egg:Paste#http
port = 8095
use_threadpool = True
threadpool_workers = 10

# The port on which to listen.
#port = 8090

>From a previous post i got that you are using 6 handlers for usegalaxy.org so I figured I'd start with that.

Could you help me configure my apache server? So far I've added the following in the apache configuration file:

RewriteEngine on
RewriteRule ^(.*) http://localhost:8090$1 [P]
RewriteRule ^/galaxy$ /galaxy/ [R]
RewriteRule ^/galaxy/static/style/(.*) /home/nate/galaxy-dist/static/june_2007_style/blue/$1 [L]
RewriteRule ^/galaxy/static/scripts/(.*) /home/nate/galaxy-dist/static/scripts/packed/$1 [L]
RewriteRule ^/galaxy/static/(.*) /home/nate/galaxy-dist/static/$1 [L]
RewriteRule ^/galaxy/favicon.ico /home/nate/galaxy-dist/static/favicon.ico [L]
RewriteRule ^/galaxy/robots.txt /home/nate/galaxy-dist/static/robots.txt [L]

<Location "/galaxy">
Sethandler uwsgi-handler
uWSGISocket 127.0.0.1:4001
uWSGImaxVars 512
</Location>

But I'm not sure how Apache will proxy the different ports from the handler. In the Apache configuration instructions it said I should use a balancer but in the Scaling instructions it states that this is for standalone paste-based processes.

Could you help me out please?

Thank you,
Makis