question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow the server to run with multiple workers

See original GitHub issue

JavaScript is single-threaded, but Node.js can run an HTTP server with multiple workers such that different HTTP requests are handled independently with different threads.

In order to realize this, we need to:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:28 (28 by maintainers)

github_iconTop GitHub Comments

1reaction
RubenVerborghcommented, Apr 27, 2022

Would you have some example of this? I can’t really seem to find what you are saying.

If we do add the worker metadata to the logger at construction time, then it can be easy to filter it somewhere down the line. Winston log calls accept a third meta argument that can be an arbitrary object, so we can store in there what we want and use it for filtering later: https://github.com/winstonjs/winston#filtering-info-objects

1reaction
RubenVerborghcommented, Apr 27, 2022

Perfect, love it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running multiple workers using Celery - python - Server Fault
I have now updated my answer following the comment from MartinP regarding worker spawning child processes not threads: Celery worker and worker processes...
Read more >
Installing Multiple Workers On the Same Server (Linux) - Support
1. Browse to where the Retain install script is located. · 2. Run the command installer script as follows: ./RetainInstall.sh addworker · 3....
Read more >
[RR2] Question: Using multiple workers and supervisor #632
Hey @jwillp . At the moment RR2 supports only 1 server inside it with 1 command to start workers. I guess you can...
Read more >
Celery - run different workers on one server - Stack Overflow
I have two Pyramid apps running on the same physical hardware, each with its own celery instance(within their own virtualenvs).
Read more >
Django Channels: best way to launch multiple workers
Each server is single-threaded, so it's recommended you run around one or two per core on each machine; it's safe to run as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found