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

Houston Putman commented on SOLR-11752:
---------------------------------------

[~ctargett], considered adding something but decided against it for two reasons.

* Didn't think there was a need to add something in the ref guide stating that 
Solr supports {{curl --compressed}}, since that should just be the assumption? 
Also not exactly sure where this would go if we want to call it out.
* There is not a large amount of configuration a user would need to do. 
Basically what we support by default is merely disabling the compression, which 
I (and other people) have no idea why someone would want to do it. This option 
is somewhat self-documented in solr.in.sh, if someone is looking for it.

If you have an idea for where something should go, I would be happy to add it.

> add gzip to jetty
> -----------------
>
>                 Key: SOLR-11752
>                 URL: https://issues.apache.org/jira/browse/SOLR-11752
>             Project: Solr
>          Issue Type: New Feature
>          Components: Server
>            Reporter: Matthew Sporleder
>            Assignee: Houston Putman
>            Priority: Trivial
>              Labels: jetty
>             Fix For: 8.10
>
>         Attachments: SOLR-11752.patch, SOLR-11752.patch
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> with a little bit of typing I am able to add gzip to my solr's jetty, which 
> is a big help for WAN 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:java}
> #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:java}
> #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:java}
> #bin/solr
> else
>   SOLR_JETTY_CONFIG+=("--module=http,gzip")
> fi
> {code}
> I can now do this:
> {code:java}
> curl -vvv --compressed localhost:8983/solr/ > /dev/null
> {code}
> With:
> {code:java}
> < Content-Encoding: gzip
> < Content-Length: 2890
> {code}
> Without:
> {code:java}
> < Content-Length: 13349
> {code}
> —
> A regular query:
>  With:
> {code:java}
> < Content-Encoding: gzip
> < Content-Length: 2876
> {code}
> Without:
> {code:java}
> < Content-Length: 17761
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to