Single app with multiple processes vs multiple apps with single process

2013-04-15 Thread Jonas Windey
What are the benefits of putting multiple dyno's (ex. web and worker) on a 
single app compared to putting each dyno on a separate app?
In terms of scalability, it would be the same since each dyno can be scaled 
no matter how it's setup.

The only real advantage I could see is that env variables are shared on the 
same app, but that is something that can be overruled in the latter setup 
too.

The biggest advantage for the second setup is of course a free dyno/month 
for each app.


-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
heroku+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




502 Bad Gateway, is there a way to discover what Heroku objected to in the response?

2013-04-15 Thread William Billingsley
Is there a way to find out *what* Heroku's proxy objected to in a response?

I have an app which on its Server Sent Events url gets a 502 Bad Gateway on 
Heroku (but for which its other urls work fine, and the app's own log 
messages suggest the app did try to respond)

When I run the app on localhost, this is the output from cURL to the event 
stream, and I'm trying to work out if there's any part of this response 
that Heroku's proxy would object to, that would cause it to "502 Bad 
Gateway" on Heroku.

$ curl -N -v http://localhost:9000/eventRoom/ssevents
* About to connect() to localhost port 9000 (#0)
*   Trying ::1...
* connected
* Connected to localhost (::1) port 9000 (#0)
> GET /eventRoom/ssevents HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 
OpenSSL/0.9.8r zlib/1.2.5
> Host: localhost:9000
> Accept: */*
> 
< HTTP/1.1 200 OK
< Connection: close
* Negative content-length: -1, closing after transfer
< Content-Length: -1
< Content-Type: text/event-stream
< Set-Cookie: 
PLAY_SESSION=c115bf50b75969eeb9b9751b66f481829a1fd5c0-sessionkey%3A516cc2339acb3a6b00380eac;
 
Path=/; HTTPOnly
< 
data: {"type":"ignore"}

data: {"type":"connected","listenerName":"516cc2339acb3a6b00380eab"}

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
heroku+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.