SUSE / teuthology

Ceph test suite
MIT License
5 stars 4 forks source link

Compression of logs #100

Open branch-predictor opened 7 years ago

branch-predictor commented 7 years ago

"Teuthology.log" files compress very well. Having them compressed would reduce bandwidth needed by http client by ~80%. There are two approaches to this: 1) To make http (gzip) compression work in Nginx that sits between Pulpito and user, one needs to add

        gzip_types text/html text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

in /etc/nginx/nginx.conf

and replace line

    text/plain                            txt;

with

    text/plain                            txt log;

in /etc/nginx/mime.conf.

2) More complicated, but even more beneficial would be having them stored as compressed once the job is done.

smithfarm commented 7 years ago

Regarding option #1, would it still be possible to click on the log in pulpito and display it directly? Or would the user have to save (and gunzip) it, first?

branch-predictor commented 7 years ago

For me it displays directly. You can try it on http://213.32.79.53/.

branch-predictor commented 7 years ago

I mean http://213.32.79.53:8081/ obviously.

smithfarm commented 7 years ago

Yes, that's very nice. I'll implement it ASAP.