[Mailman-Developers] REST API speed

2015-07-08 Thread Eric Searcy
I'm curious about how the REST interface scales out. I've posted a bug to Gitlab about Postorius making a REST request for every list member on the list info page [1], but aside from waiting for a fix for that, I've also been looking more into the performance of the Mailman3 REST interface itself.

Re: [Mailman-Developers] REST API speed

2015-07-09 Thread Barry Warsaw
On Jul 08, 2015, at 05:13 PM, Eric Searcy wrote: >Testing with siege (15 concurrent users) on a production VM, I get 29 >requests/sec and a concurrency of just 1.3x requesting the >"/3.0/domains" URL. For "/3.0/system/versions" I get only about 0.2x >concurrency. This may not scale too well to a

Re: [Mailman-Developers] REST API speed

2015-07-09 Thread Andrew Stuart
I’ve fumbled around here to see if I can make it work with gunicorn. Correct me if I’m wrong but effectively gunicorn would need to run the rest server within itself, so it would be necessary to run the rest server outside the mailman runners? I’m not sure how to do so. rest/wsgiapp.py says: #

Re: [Mailman-Developers] REST API speed

2015-07-10 Thread Barry Warsaw
On Jul 10, 2015, at 10:47 AM, Andrew Stuart wrote: >Correct me if I’m wrong but effectively gunicorn would need to run the rest >server within itself, so it would be necessary to run the rest server outside >the mailman runners? I’m not sure how to do so. Most of the RESTRunner is probably not ap

Re: [Mailman-Developers] REST API speed

2015-07-10 Thread Barry Warsaw
On Jul 10, 2015, at 10:43 AM, Barry Warsaw wrote: >My thinking is that a gunicorn -or other external wsgi server- based REST >runner wouldn't do much more than run gunicorn with the proper commands in a >subprocess, and manage its PID so that the runner itself could response to >`mailman stop` and

Re: [Mailman-Developers] REST API speed

2015-07-29 Thread Eric Searcy
On 7/10/15 11:16 AM, Barry Warsaw wrote: > On Jul 10, 2015, at 10:43 AM, Barry Warsaw wrote: > >> My thinking is that a gunicorn -or other external wsgi server- based REST >> runner wouldn't do much more than run gunicorn with the proper commands in a >> subprocess, and manage its PID so that the

Re: [Mailman-Developers] REST API speed

2015-07-29 Thread Abhilash Raj
Hi Eric, It's curious to me that Mailman Bundler makes references to Gunicorn > support, but it seems there code would run into the same problems I did > (multiple initiations and argument count mismatch). Is anybody using > this from Bundler currently and can help me figure out why the differenc

Re: [Mailman-Developers] REST API speed

2015-07-30 Thread Eric Searcy
On 7/29/15 10:38 PM, Abhilash Raj wrote: > Hi Eric, > > It's curious to me that Mailman Bundler makes references to Gunicorn > support, but it seems there code would run into the same problems I did > (multiple initiations and argument count mismatch). Is anybody using > this from