Question: Zip Vs. Gzip
gravatar for Pieter Neerincx
8.0 years ago by
Pieter Neerincx360 wrote:
Hi, Can someone help me understand the automagic (un)zipping in Galaxy? In my universe_wsgi.ini there an option to enable gzip compression like this: # ---- HTTP gzip compression ---- # If planning to run Galaxy as a production service, we recommend running Galaxy # through a proxy and enabling gzip compression there (instructions at # central/wiki/Config/ProductionServer ) # but you may also turn on Paste's built-in gzip compressor by uncommenting the following lines # and also the 'filter-with = gzip' line under [app:main]. This will reduce network traffic # and should speed up the interface, especially the visualization module. # [filter:gzip] use = egg:Paste#gzip ... filter-with = gzip 1. I cannot find instructions on how to enable gzip compression in Apache at central/wiki/Config/ProductionServer, but I have enabled "Paste's built-in gzip compressor" and that does not generate errors, so I guess it works. 2. This is not the part that is responsible for automatically detecting *.gz files and unzipping them, or is it? Enabling or disabling the code above does not affect automagic unzipping of uploaded *.gz, which works for me with or without the code above. 2. Can I make automagic unzipping also work for *.zip files? Personally I prefer gzip, but many people in our lab are more familiar with things like winzip.... Cheers, Pi
galaxy • 713 views
ADD COMMENTlink modified 8.0 years ago by James Casbon370 • written 8.0 years ago by Pieter Neerincx360
gravatar for James Casbon
8.0 years ago by
James Casbon370
James Casbon370 wrote:
This means you should use something such as mod deflate: This is handled transparently by negotiation between the browser and the server. Your end user does not have to do anything - the browser unzips before rendering. hope this helps, James
ADD COMMENTlink written 8.0 years ago by James Casbon370
I've also added the missing information to the wiki: It may help to clarify that this only refers to compression of data sent from Apache to the client, so it does not include uploads or any data handling by Galaxy itself. In response to one of the original questions, we chose not to allow uploading zip files since they can contain multiple files and upload is only designed to handle one file at a time. gzip is not a file container, so it is always guaranteed to contain one file (even if that file is a tar archive). However, detecting the contents of a zip is simple, and we could simply reject any zips with > 1 file. So if people would find this to be useful, it's something we could add to our enhancements wishlist. --nate
ADD REPLYlink written 8.0 years ago by Nate Coraor3.1k
Hi Nate and James, Thanks! Thanks for clarifying. Yes that would be useful, please do! Cheers, Pi
ADD REPLYlink written 7.9 years ago by Pieter Neerincx360
Okay, I've created a bitbucket for that issue (which you may "follow") here: uploads
ADD REPLYlink written 7.9 years ago by Nate Coraor3.1k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 65 users visited in the last hour