Hi Dannon,
Sorry for the delay in getting back to you. Below are the configuration changes we do to get load balancing set.
We are installing the following packages on the machine:

Install packages:
apt-get install build-essential
apt-get install python-dev
pip install uwsgi

=============================

In the galaxy.ini file we are making the following modifications:

config galaxy.ini:
[uwsgi]
processes = 8
stats = 127.0.0.1:9191
socket = 127.0.0.1:8080
pythonpath = lib
threads = 4
logto = /var/log/genomics/galaxy.log
master = True

[app:main]
static_enabled = False
track_jobs_in_database = True

=============================

And for Nginx we make the following modifications:

In Nginx config, add:
    uwsgi_read_timeout 180;

    location / {
        uwsgi_pass 127.0.0.1:8080;
        uwsgi_param UWSGI_SCHEME $scheme;
        include uwsgi_params;
    }

=============================

Any suggestions will help greatly!

Thanks,

Alex


On Jul 25, 2016, at 8:35 AM, Dannon Baker <dannon.baker@gmail.com> wrote:

Can you elaborate on the load balancing that you've implemented which seems to be causing the problem?  This might help figure out what's going on.

On Mon, Jul 25, 2016 at 8:56 AM Alex Rodriguez <a.rodriguez1215@gmail.com> wrote:
Dear Galaxy developers,
I am interested in adding a download link to the “Download or Export Workflow” page of a workflow. I am able to add the link through the files in the templates directory and correctly add the necessary API functions in the lib/webapps/galaxy/controllers/workflow.py file.
I wanted to ask for some help in figuring out what I might be missing when I try to download a file when I have load balancing feature activated. The page looks something like this:

As you can see I added the “New test Download” link.
I have added and tested the function which gets me the information about the workflow I want correctly. For now it’s just a “hello world” string.
When I don’t use load balancing I get the contents I want downloaded to the file correctly.
However, when I activate load balancing, it only downloads an empty file. I can print the contents of the test download file to the galaxy log, but as I said nothing gets printed on the actual file.

Is there some javascript code I also need to add for this functionality that I might be missing such that the download works with load balancing? As I mentioned I do get a proper download when load balancing is not activated. BTW, all other existing download links work properly with both load balancing and no load balancing.

Thanks,

Alex




___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
 https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
 http://galaxyproject.org/search/mailinglists/