Code Monkey home page Code Monkey logo

Comments (6)

timabbott avatar timabbott commented on July 3, 2024 1

Well there are two considerations:

  • debuggability -- it will likely be easier to debug some things in the multi-process configuration than the multithreaded configuration.
  • stability -- currently if a worker crashes, the rest of them keep running happily; with multithreading, it's possible for a worker crashing to bring them all down.

Both of these seem like things that shouldn't be a problem in the long term, but likely are important enough that I'd imagine we want to support both options for a transitional period...

from zulip.

timabbott avatar timabbott commented on July 3, 2024

The places in the code to start looking at this are zerver/worker/queue_processors.py and zerver/management/commands/process_queue.py.

To start with getting this working in the development environment, you can patch tools/run-dev.py to run things with your new tooling.

from zulip.

dosire avatar dosire commented on July 3, 2024

Would be very cool to make this multithreaded, the 4GB memory requirement for a production server is very high.

from zulip.

timabbott avatar timabbott commented on July 3, 2024

#367 will make the Zulip workers multithreaded in the development environment; there will be a bit more work to do this in production since we'll probably want to offer both configuration options...

from zulip.

dosire avatar dosire commented on July 3, 2024

@timabbott cool! I'm not sure why anyone would want non-multithreaded workers, or is it temporarily until multithreading is stable?

from zulip.

dosire avatar dosire commented on July 3, 2024

Totally agree about the transitional period.

from zulip.

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.