You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Stu Hood (JIRA)" <ji...@apache.org> on 2010/09/01 20:36:57 UTC
[jira] Created: (AVRO-649) Allow pluggable ThreadPools in Java
HttpServer
Allow pluggable ThreadPools in Java HttpServer
----------------------------------------------
Key: AVRO-649
URL: https://issues.apache.org/jira/browse/AVRO-649
Project: Avro
Issue Type: Improvement
Components: java
Reporter: Stu Hood
Fix For: 1.4.1, 1.5.0
The easiest way to tune the threading implementation of an RPC server is to provide an alternate threadpool implementation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AVRO-649) Allow pluggable ThreadPools in Java
HttpServer
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stu Hood updated AVRO-649:
--------------------------
Attachment: 0001-Allow-an-alternate-ThreadPool-to-be-passed-to-the-Je.patch
Adds constructors with parameters for pluggable ThreadPools.
> Allow pluggable ThreadPools in Java HttpServer
> ----------------------------------------------
>
> Key: AVRO-649
> URL: https://issues.apache.org/jira/browse/AVRO-649
> Project: Avro
> Issue Type: Improvement
> Components: java
> Reporter: Stu Hood
> Fix For: 1.4.1, 1.5.0
>
> Attachments: 0001-Allow-an-alternate-ThreadPool-to-be-passed-to-the-Je.patch
>
>
> The easiest way to tune the threading implementation of an RPC server is to provide an alternate threadpool implementation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-649) Allow pluggable ThreadPools in Java
HttpServer
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905214#action_12905214 ]
Doug Cutting commented on AVRO-649:
-----------------------------------
Philip: not sure what you have in mind. Would you add a method like:
public void addServlet(String path, Servlet servlet);
or somesuch, so that folks could mount more servlets on this server?
I'd expected that folks who wanted to do complicated deployments would use ResponderServlet directly, and not Avro's HttpServer.
> Allow pluggable ThreadPools in Java HttpServer
> ----------------------------------------------
>
> Key: AVRO-649
> URL: https://issues.apache.org/jira/browse/AVRO-649
> Project: Avro
> Issue Type: Improvement
> Components: java
> Reporter: Stu Hood
> Fix For: 1.4.1, 1.5.0
>
> Attachments: 0001-Allow-an-alternate-ThreadPool-to-be-passed-to-the-Je.patch
>
>
> The easiest way to tune the threading implementation of an RPC server is to provide an alternate threadpool implementation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-649) Allow pluggable ThreadPools in Java
HttpServer
Posted by "Philip Zeyliger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905198#action_12905198 ]
Philip Zeyliger commented on AVRO-649:
--------------------------------------
Could we reverse the dependency, and say that HttpServer requires a servlet container, and folks can pass in whatever they want? I've been wanting to re-use the servlet container that AVRO uses for my own nefarious purposes (there's no reason to open up two ports if you've already got one open). We should still have methods that work out of the box, as well.
> Allow pluggable ThreadPools in Java HttpServer
> ----------------------------------------------
>
> Key: AVRO-649
> URL: https://issues.apache.org/jira/browse/AVRO-649
> Project: Avro
> Issue Type: Improvement
> Components: java
> Reporter: Stu Hood
> Fix For: 1.4.1, 1.5.0
>
> Attachments: 0001-Allow-an-alternate-ThreadPool-to-be-passed-to-the-Je.patch
>
>
> The easiest way to tune the threading implementation of an RPC server is to provide an alternate threadpool implementation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-649) Allow pluggable ThreadPools in Java
HttpServer
Posted by "Philip Zeyliger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905221#action_12905221 ]
Philip Zeyliger commented on AVRO-649:
--------------------------------------
Good point, I didn't realize that ResponderServlet is public and could be used directly. That works, then. (Are the paths used in HTTP requests specified?)
> Allow pluggable ThreadPools in Java HttpServer
> ----------------------------------------------
>
> Key: AVRO-649
> URL: https://issues.apache.org/jira/browse/AVRO-649
> Project: Avro
> Issue Type: Improvement
> Components: java
> Reporter: Stu Hood
> Fix For: 1.4.1, 1.5.0
>
> Attachments: 0001-Allow-an-alternate-ThreadPool-to-be-passed-to-the-Je.patch
>
>
> The easiest way to tune the threading implementation of an RPC server is to provide an alternate threadpool implementation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-649) Allow pluggable ThreadPools in Java
HttpServer
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905237#action_12905237 ]
Doug Cutting commented on AVRO-649:
-----------------------------------
> Are the paths used in HTTP requests specified?
A service is described with a URI. If it's an HTTP service, then that path is used. HttpServer runs a service at /.
> Allow pluggable ThreadPools in Java HttpServer
> ----------------------------------------------
>
> Key: AVRO-649
> URL: https://issues.apache.org/jira/browse/AVRO-649
> Project: Avro
> Issue Type: Improvement
> Components: java
> Reporter: Stu Hood
> Fix For: 1.4.1, 1.5.0
>
> Attachments: 0001-Allow-an-alternate-ThreadPool-to-be-passed-to-the-Je.patch
>
>
> The easiest way to tune the threading implementation of an RPC server is to provide an alternate threadpool implementation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (AVRO-649) Allow pluggable ThreadPools in Java
HttpServer
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stu Hood resolved AVRO-649.
---------------------------
Resolution: Invalid
As pointed out on CASSANDRA-1440, ipc.HttpServer is a very thin layer around Jetty: rather than making a change to Avro, we'll access Jetty directly.
Thanks!
> Allow pluggable ThreadPools in Java HttpServer
> ----------------------------------------------
>
> Key: AVRO-649
> URL: https://issues.apache.org/jira/browse/AVRO-649
> Project: Avro
> Issue Type: Improvement
> Components: java
> Reporter: Stu Hood
> Fix For: 1.4.1, 1.5.0
>
> Attachments: 0001-Allow-an-alternate-ThreadPool-to-be-passed-to-the-Je.patch
>
>
> The easiest way to tune the threading implementation of an RPC server is to provide an alternate threadpool implementation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-649) Allow pluggable ThreadPools in Java
HttpServer
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905194#action_12905194 ]
Doug Cutting commented on AVRO-649:
-----------------------------------
I like that the public API for HttpServer is independent of the underlying Http server implementation: we could easily switch it to use Tomcat or Resin without breaking any users. I'm a little reluctant to lose that.
> Allow pluggable ThreadPools in Java HttpServer
> ----------------------------------------------
>
> Key: AVRO-649
> URL: https://issues.apache.org/jira/browse/AVRO-649
> Project: Avro
> Issue Type: Improvement
> Components: java
> Reporter: Stu Hood
> Fix For: 1.4.1, 1.5.0
>
> Attachments: 0001-Allow-an-alternate-ThreadPool-to-be-passed-to-the-Je.patch
>
>
> The easiest way to tune the threading implementation of an RPC server is to provide an alternate threadpool implementation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.