Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Baris Balic
    @barisbalic
    Ayo!
    I was making the assumption that Thin like Unicorn can be told how many workers it should spawn, and so be controlled. Although that would only have worked between deploys when things kicked off again
    And obviously you'd then need to coordinate between dynos as you suggested, so its certainly less trivial than I first thought
    Daniel Barber
    @danbee
    Thin is evented, so it doesn't really have the concept of threads or workers
    Baris Balic
    @barisbalic
    Then I was totally wrong from the outset
    Daniel Barber
    @danbee
    Not sure how that relates to the number of database connections, but I would have thought 1 per dyno
    Also, we're assuming codebar.io runs on Thin ;)
    Baris Balic
    @barisbalic
    I don't know how many you get etc, just assumed that Heroku would know that + dyno count + threads/workers/things needing connnections, and then be able to dyna,dynamically allocate and reallocate, but I dont think thats anywhere near as simple as I was suggesting
    Daniel Barber
    @danbee
    You get a maximum number of database connections depending on what tier you choose for your PostgreSQL instance
    Both the hobby tiers max out at 20 connections
    Baris Balic
    @barisbalic
    Sounds familiar
    Daniel Barber
    @danbee
    Sounds like the connection pool defaults to 5 per dyno. At least that's what it is on one of my basic Heroku apps!
    Baris Balic
    @barisbalic
    I really thought they were going ahead with the Thin injection
    Daniel Barber
    @danbee
    So any more than 4 dynos = too many DB connectins
    Baris Balic
    @barisbalic
    yeah
    Despo Pentara
    @despo
    well you know, anyone up for helping im up for granting heroku access. just saying.
    hint :P
    Baris Balic
    @barisbalic
    happy enough to move it over to unicorn :D
    Despo Pentara
    @despo
    no pressure
    Daniel Barber
    @danbee
    @despo Happy to take a look!
    Despo Pentara
    @despo
    emails plese, dm might be better as the chat is always visible
    Daniel Barber
    @danbee
    @barisbalic Puma is good on Heroku as it is threaded
    Baris Balic
    @barisbalic
    @danbee ahh I recall reading about it being design for rubinius but still performant under MRI
    Daniel Barber
    @danbee
    I wasn't aware of it being designed for Rubinius
    Ah: "Second, Puma is designed to be used on a Ruby implementation which provides true parallelism, such as Rubinius and JRuby."
    Right there on puma.io
    Baris Balic
    @barisbalic
    It still does well on MRI as you've probably noticed from what you said before
    I'll give it a try some time soon.
    Daniel Barber
    @danbee
    Rubinius is interesting though, going to have to learn more :)
    Baris Balic
    @barisbalic
    Im tempted to write a transparent image-caching proxy backed by redis. Someone talk me out of it
    Daniel Barber
    @danbee
    No Procfile, which means it's probably running on Webrick
    Despo Pentara
    @despo
    i did the bare minimum, so yes default setup.
    my experience with heavy app prod releases on heroku is not great i have to admit.
    Daniel Barber
    @danbee
    No worries
    At a minimum you want to be moving off Webrick
    It's only really designed for development
    Despo Pentara
    @despo
    @danbee released the patch on staging. crashing, do i need a PORT variable setup?
    2014-04-22T16:27:10.864428+00:00 heroku[web.1]: Starting process with command bundle exec puma -p 20079 -e $RACK_ENV -t 0:5
    2014-04-22T16:27:13.553180+00:00 app[web.1]: [2] Puma starting in cluster mode...
    2014-04-22T16:27:13.553233+00:00 app[web.1]: [2] Version 2.8.2 (ruby 2.0.0-p451), codename: Sir Edmund Percival Hillary
    2014-04-22T16:27:13.553351+00:00 app[web.1]: [2]
    Min threads: 1, max threads: 5
    2014-04-22T16:27:13.553374+00:00 app[web.1]: [2] Environment: production
    2014-04-22T16:27:13.553414+00:00 app[web.1]: [2]
    Preloading application
    2014-04-22T16:27:13.553395+00:00 app[web.1]: [2] Process workers: 3
    2014-04-22T16:27:18.310762+00:00 app[web.1]: [2]
    Listening on tcp://0.0.0.0:20079
    2014-04-22T16:27:18.312162+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/puma-2.8.2/lib/puma/binder.rb:195:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
    Daniel Barber
    @danbee
    Looks like the port is already set up. Not sure why it's crashing
    Despo Pentara
    @despo
    2014-04-22T16:27:10.864428+00:00 heroku[web.1]: Starting process with command `bundle exec puma -p 20079 -e $RACK_ENV -t 0:5`
    2014-04-22T16:27:13.553180+00:00 app[web.1]: [2] Puma starting in cluster mode...
    2014-04-22T16:27:13.553233+00:00 app[web.1]: [2] * Version 2.8.2 (ruby 2.0.0-p451), codename: Sir Edmund Percival Hillary
    2014-04-22T16:27:13.553351+00:00 app[web.1]: [2] * Min threads: 1, max threads: 5
    2014-04-22T16:27:13.553374+00:00 app[web.1]: [2] * Environment: production
    2014-04-22T16:27:13.553414+00:00 app[web.1]: [2] * Preloading application
    2014-04-22T16:27:13.553395+00:00 app[web.1]: [2] * Process workers: 3
    2014-04-22T16:27:18.310762+00:00 app[web.1]: [2] * Listening on tcp://0.0.0.0:20079
    2014-04-22T16:27:18.312162+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/puma-2.8.2/lib/puma/binder.rb:195:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
    no worries, i can take a look in a bit. sure it wont be hard to figure out
    Daniel Barber
    @danbee
    I'm trying a fix.
    Sorted!
    The Procfile wasn't set to pick up the puma.rb config file
    Dan Hassan
    @dan-mi-sun
    Hello all, will be coming through to help where I can on Wednesday in London. Looking forward to meeting you :)
    Despo Pentara
    @despo
    Hi @dan-mi-sun it will be great to have you around!
    Alex Jahraus
    @fanaugen
    Now this is REALLY off-topic. But if you like hiking and want to see the green outskirts around London, enjoy the beautiful British weather and breathe some non-polluted air, come join a jolly bunch of friendly CouchSurfers this Sunday for the first section of the LOOP London Outer Orbital Path. Info at https://www.couchsurfing.org/n/events/london-loop-walks-london
    Dan Hassan
    @dan-mi-sun
    @despo thanks for the warm welcome :)
    Dan Hassan
    @dan-mi-sun
    sure this has been linked to but just in case not it is a fun resource: https://rubymonk.com