Re: configure jetty to use both http1.1 and H2

2018-02-26 Thread Jeff Dyke
Thanks for the reply Shawn, i certainly would not want to request a change
to solr code to support H2, for my needs.  I'll leave that up to the Solr
team. :)  as i don't see H/2 being a real improvement for something like
solr.

On Mon, Feb 26, 2018 at 10:29 AM, Shawn Heisey  wrote:

> On 2/23/2018 1:28 PM, Jeff Dyke wrote:
> > Answering a bit of my own question, the underlying jetty would have to be
> > built with it, and get pushed into its jar directory.
> >
> > I think i'll put nginx in front of this, do a quick proxy forcing 1.1 and
> > move on, but if anyone knows any tricks, it'll be good just for
> > thoroughness of this thread and my curiosity.
>
> The Jetty that Solr includes is unmodified.  When Solr is built, it does
> not compile Jetty, it just downloads it as-is.  Solr does not include
> all of the jars and config that a fully jetty download has, but what IS
> there has not been modified at all.  Solr does not include the jars
> necessary for http2.
>
> It will require a change to Solr's source code to enable http2.  I've
> been trying to find out from the Jetty team what exactly is needed, but
> they appear to have missed my query in their IRC channel.  I'll need to
> try again, and may need to use their mailing list.
>
> Thanks,
> Shawn
>
>


Re: configure jetty to use both http1.1 and H2

2018-02-26 Thread Shawn Heisey
On 2/23/2018 1:28 PM, Jeff Dyke wrote:
> Answering a bit of my own question, the underlying jetty would have to be
> built with it, and get pushed into its jar directory.
>
> I think i'll put nginx in front of this, do a quick proxy forcing 1.1 and
> move on, but if anyone knows any tricks, it'll be good just for
> thoroughness of this thread and my curiosity.

The Jetty that Solr includes is unmodified.  When Solr is built, it does
not compile Jetty, it just downloads it as-is.  Solr does not include
all of the jars and config that a fully jetty download has, but what IS
there has not been modified at all.  Solr does not include the jars
necessary for http2.

It will require a change to Solr's source code to enable http2.  I've
been trying to find out from the Jetty team what exactly is needed, but
they appear to have missed my query in their IRC channel.  I'll need to
try again, and may need to use their mailing list.

Thanks,
Shawn



Re: configure jetty to use both http1.1 and H2

2018-02-23 Thread Jeff Dyke
Answering a bit of my own question, the underlying jetty would have to be
built with it, and get pushed into its jar directory.

I think i'll put nginx in front of this, do a quick proxy forcing 1.1 and
move on, but if anyone knows any tricks, it'll be good just for
thoroughness of this thread and my curiosity.

Best,
Jeff

On Fri, Feb 23, 2018 at 3:11 PM, Jeff Dyke  wrote:

> Thanks for the tip Jason.  I didn't see the -j option there or here
> https://lucene.apache.org/solr/guide/7_2/solr-
> control-script-reference.html
>
> I'll keep this short, i tried to add it to the init.d script and then
> interacting directly with the solr binary, but ultimately saw that
> logs/solr-console-8983.log was updated with an exception saying dependency
> not met.
>
> It looks like only /opt/solr/server/lib/jetty-http-9.3.20.v20170531.jar
> is bundled.
>
> So i guess at this point i have one question that i don't think i'd go
> through with b/c i'd like to keep the application install clean, But for
> curiosity will solr pick up any jar in the lib directory and then i could
> pass -j --module=http2, perhaps or define if where module=http is defined,
> but that may just be passed at start i'd assume.
>
> Otherwise i may just put nginx in front of the master admin, which has A
> LOT of other security around it, b/c i am trying to access it from outside
> my VPC.
>
> Thanks again!
> Jeff
>
>
>
> On Fri, Feb 23, 2018 at 1:53 PM, Jason Gerlowski 
> wrote:
>
>> Hi Jeff,
>>
>> I haven't tested your exact use case regarding H/2, but the "bin/solr"
>> startup script has a special "-j" options that can be used to pass
>> arbitrary flags to the underlying Jetty server.  If you have options
>> that work with vanilla Jetty, they _should_ work when passed through
>> the "bin/solr" interface as well.  Check out "bin/solr start -help"
>> for more info.
>>
>> If it doesn't work out, please let us know, and post the commands you
>> tried, output, etc.
>>
>> Best,
>>
>> Jason
>>
>> On Fri, Feb 23, 2018 at 11:56 AM, Jeff Dyke  wrote:
>> > Hi, I've been googling around for a while and can't seem to find an
>> answer
>> > to this.  Is it possible to have the embedded jetty listen to H/2 as
>> well
>> > has HTTP/1.1, mainly i'd like to use this to access it on a private
>> subnet
>> > on AWS through HAProxy which is set up to prefer H/2.
>> >
>> > With base jetty its as simple as passing arguments to start.jar, but
>> can't
>> > find how to solve it with solr and the embedded jetty.
>> >
>> > Thanks,
>> > Jeff
>>
>
>


Re: configure jetty to use both http1.1 and H2

2018-02-23 Thread Jeff Dyke
Thanks for the tip Jason.  I didn't see the -j option there or here
https://lucene.apache.org/solr/guide/7_2/solr-control-script-reference.html

I'll keep this short, i tried to add it to the init.d script and then
interacting directly with the solr binary, but ultimately saw that
logs/solr-console-8983.log was updated with an exception saying dependency
not met.

It looks like only /opt/solr/server/lib/jetty-http-9.3.20.v20170531.jar is
bundled.

So i guess at this point i have one question that i don't think i'd go
through with b/c i'd like to keep the application install clean, But for
curiosity will solr pick up any jar in the lib directory and then i could
pass -j --module=http2, perhaps or define if where module=http is defined,
but that may just be passed at start i'd assume.

Otherwise i may just put nginx in front of the master admin, which has A
LOT of other security around it, b/c i am trying to access it from outside
my VPC.

Thanks again!
Jeff



On Fri, Feb 23, 2018 at 1:53 PM, Jason Gerlowski 
wrote:

> Hi Jeff,
>
> I haven't tested your exact use case regarding H/2, but the "bin/solr"
> startup script has a special "-j" options that can be used to pass
> arbitrary flags to the underlying Jetty server.  If you have options
> that work with vanilla Jetty, they _should_ work when passed through
> the "bin/solr" interface as well.  Check out "bin/solr start -help"
> for more info.
>
> If it doesn't work out, please let us know, and post the commands you
> tried, output, etc.
>
> Best,
>
> Jason
>
> On Fri, Feb 23, 2018 at 11:56 AM, Jeff Dyke  wrote:
> > Hi, I've been googling around for a while and can't seem to find an
> answer
> > to this.  Is it possible to have the embedded jetty listen to H/2 as well
> > has HTTP/1.1, mainly i'd like to use this to access it on a private
> subnet
> > on AWS through HAProxy which is set up to prefer H/2.
> >
> > With base jetty its as simple as passing arguments to start.jar, but
> can't
> > find how to solve it with solr and the embedded jetty.
> >
> > Thanks,
> > Jeff
>


Re: configure jetty to use both http1.1 and H2

2018-02-23 Thread Jason Gerlowski
Hi Jeff,

I haven't tested your exact use case regarding H/2, but the "bin/solr"
startup script has a special "-j" options that can be used to pass
arbitrary flags to the underlying Jetty server.  If you have options
that work with vanilla Jetty, they _should_ work when passed through
the "bin/solr" interface as well.  Check out "bin/solr start -help"
for more info.

If it doesn't work out, please let us know, and post the commands you
tried, output, etc.

Best,

Jason

On Fri, Feb 23, 2018 at 11:56 AM, Jeff Dyke  wrote:
> Hi, I've been googling around for a while and can't seem to find an answer
> to this.  Is it possible to have the embedded jetty listen to H/2 as well
> has HTTP/1.1, mainly i'd like to use this to access it on a private subnet
> on AWS through HAProxy which is set up to prefer H/2.
>
> With base jetty its as simple as passing arguments to start.jar, but can't
> find how to solve it with solr and the embedded jetty.
>
> Thanks,
> Jeff


configure jetty to use both http1.1 and H2

2018-02-23 Thread Jeff Dyke
Hi, I've been googling around for a while and can't seem to find an answer
to this.  Is it possible to have the embedded jetty listen to H/2 as well
has HTTP/1.1, mainly i'd like to use this to access it on a private subnet
on AWS through HAProxy which is set up to prefer H/2.

With base jetty its as simple as passing arguments to start.jar, but can't
find how to solve it with solr and the embedded jetty.

Thanks,
Jeff