Giter Site home page Giter Site logo

Worker count when using rackup? about agoo HOT 12 CLOSED

ohler55 avatar ohler55 commented on May 21, 2024
Worker count when using rackup?

from agoo.

Comments (12)

ohler55 avatar ohler55 commented on May 21, 2024 1

Use the rackup option -O NAME[=VALUE]. So for a worker count of 2 you would do something like this:

$ rackup -r agoo -s agoo -O wc=2

from agoo.

tomas avatar tomas commented on May 21, 2024

Gotcha. And thanks for the quick response!

By the way, I forked your repo to fix a few compilation issues. If you're interested I can submit a PR.

from agoo.

ohler55 avatar ohler55 commented on May 21, 2024

By all means. I use a C11 compiler so miss some of those. If you have them covered a fix would be really helpful.

from agoo.

tomas avatar tomas commented on May 21, 2024

Great! Will do.

By the way, does agoo support a) listening on a unix socket, and b) hot restarts? (Via USR2 or some other method)

from agoo.

ohler55 avatar ohler55 commented on May 21, 2024

It does support unix sockets. Checkout the bind_test.rb file.

Agoo does not support hot restarts today. On the plus side it starts pretty fast. :-)

from agoo.

tomas avatar tomas commented on May 21, 2024

I see. So unix socket not possible via rackup, right? (Couldn't find anything related to it on the rack handler definition)

from agoo.

ohler55 avatar ohler55 commented on May 21, 2024

Good point. I can add that. If you want to open an issue for that I'll use that for the addition.

I'm curious, rackup introduces a lot over overhead. What are your reasons for using it?

from agoo.

tomas avatar tomas commented on May 21, 2024

I actually don't use the rackup command regularly. I've always just fired puma or unicorn directly, and have them read the config.ru file and start serving. The only reason I'm using it now is because I'm testing agoo in some of my apps, and want to be able to swap one for another without too much fuss.

I'm not sure what your reasons are not to do it that way, but I think supporting config.ru from the agoo command might make adoption easier.

from agoo.

ohler55 avatar ohler55 commented on May 21, 2024

I suppose Agoo could look at the file suffix and if a .ru it could assume it is rack. That would be easy enough.

from agoo.

tomas avatar tomas commented on May 21, 2024

;)

from agoo.

ohler55 avatar ohler55 commented on May 21, 2024

Created issue #50 and #51.

from agoo.

ohler55 avatar ohler55 commented on May 21, 2024

I'll put something up for both those issues in the next few days. You comments would be appreciated.

from agoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.