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.

🚀 Feature Proposal

Add support for a --cluster flag that allow to launch fastify using Node.js cluster module.

Motivation

Node.js cluster module allow to exec several copies of a script in different processes sharing the same port, so with web servers you can make use of all cores.

Example

At https://github.com/piranna/clusterify I have some generic code that exec any Node.js script wrapped with cluster module, but would be nice if fastify CLI would have native support.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pirannacommented, Aug 23, 2019

Also, at https://gist.github.com/thearegee/3eea038b9f0c5e94de73f3c3482fa732 there’s an example about how to use it natively.

0reactions
stale[bot]commented, Oct 21, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cluster Flag Sets - MBR Marketing
Cluster Flag Sets ; Item #: ADC3. $56.00 ; Item #: ADC11. $45.00 ; Item #: MC3. $66.95 - $68.95 ; Item #:...
Read more >
US Cluster Flags 2ft. x 3 ft. - Dealer Supply Shop
Each Cluster Flag Kit consists of three nylon 2'x 3' flags, permanently attached to 11/16" x 48" straight grain pole complete with flag...
Read more >
US Cluster Flags - Flagman of America
Features: 3, 100% Polyester Flags; 3, 11/16" x 48" Wooden Poles; Brackets & Bands Included; Holds Flags at 45 Degree Angle; Fits Any...
Read more >
Cluster Flag - The Wiki of a Teenage Robot - Fandom
The Cluster Flag is the flag of Cluster Prime. Visually, it is a purple flag with the insignia of the Cluster in its...
Read more >
Cluster Flag Includes 4 Sharkfin Flags | Budget Banners
Cluster Flags are commonly known as flag fountains or cluster banners. The unique design of this advertising banner allows for the slightest breeze...
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