lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Heisey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-11752) add gzip to jetty
Date Tue, 15 May 2018 14:31:00 GMT

    [ https://issues.apache.org/jira/browse/SOLR-11752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16475913#comment-16475913
] 

Shawn Heisey commented on SOLR-11752:
-------------------------------------

It appears that all the config information related to mime types is commented, so not actually
active.  I think that all files from Jetty should be included as-is, with any modifications
that we require.  No modifications should be required for gzip-related files.

As I indicated on 26/Feb/18, I prefer the approach in this issue to the one in SOLR-10999.
 It enables gzip for the entire server, while the other only enables it for the Solr webapp.
 While it's true that we don't recommend installing any other apps, users may choose to do
so, and might want gzip support for anything they add.


> add gzip to jetty
> -----------------
>
>                 Key: SOLR-11752
>                 URL: https://issues.apache.org/jira/browse/SOLR-11752
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Server
>    Affects Versions: master (8.0)
>            Reporter: Matthew Sporleder
>            Priority: Trivial
>              Labels: jetty
>         Attachments: SOLR-11752.patch, SOLR-11752.patch
>
>
> with a little bit of typing I am able to add gzip to my solr's jetty, which is a big
help for SAN access and completely out-of-band to solr, *and* only happens if the client requests
it so I think it is is a good default.
> I will just inline my code to this ticket:
> {code}
> #server/etc/jetty-gzip.xml
> #just download it from here: http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jetty/jetty-server/9.3.0.v20150612/etc/jetty-gzip.xml?av=f
> {code}
> {code}
> #server/modules/gzip.mod
> [depend]
> server
> [xml]
> etc/jetty-gzip.xml
> {code}
> This is where you might want to add an option, but the result should look like this:
> {code}
> #bin/solr
> else
>   SOLR_JETTY_CONFIG+=("--module=http,gzip")
> fi
> {code}
> I can now do this:
> {code}
> curl -vvv --compressed localhost:8983/solr/ > /dev/null
> {code}
> With:
> {code}
> < Content-Encoding: gzip
> < Content-Length: 2890
> {code}
> Without:
> {code}
> < Content-Length: 13349
> {code}
> ---
> A regular query:
> With:
> {code}
> < Content-Encoding: gzip
> < Content-Length: 2876
> {code}
> Without:
> {code}
> < Content-Length: 17761
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message