Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
congregate
Advanced tools
Readme
_
| |
___ ___ _ __ __ _ _ __ ___ __ _ __ _| |_ ___
/ __/ _ \| '_ \ / _` | '__/ _ \/ _` |/ _` | __/ _ \
| (_| (_) | | | | (_| | | | __/ (_| | (_| | || __/
\___\___/|_| |_|\__, |_| \___|\__, |\__,_|\__\___|
__/ | __/ |
|___/ |___/
Node.js cluster on top of Flatiron CLI & Native cluster. Built with love!
To install, run the following command:
npm install congregate -g
Once done, you can simply spin your shards by the following method:
congregate spin --app /var/www/myapp/index.js --shards 8
OR
CONG_APP_PATH=/var/www/myapp.js congregate spin --shards 8
--shards = You can put any number of instances you want. If undefined, then it will count your CPU cores and start same count processes.
--app = You need to pass absolute url to your application. Else, set your environment variable of CONG_APP_PATH
Tons of more useful commands including:
The list command helps you figure out how many relevant shard processes are running over the desired instance. There are 2 ways to find them.
1 - Find By Title.
2 - Find By Port
If you know the desired port, all you have to do is to refer your port
to congregate.
$ congregate list --port <port>
where <port>
would be replaced with the port serving the application i.e 80
.
However, if you want to find by process title
, you have to be aware that congregate
spins with congregate-*
where *
is the PID.
$ congregate list --name congregate-
This will retrieve all processes which are running under the title of congregate
.
To shutdown your congregate
shards running over a particular port
, invoke the shutdown
command with --port
of parameter as argument.
$ congregate shutdown --port <port>
Here, <port>
would be the port where your application is already running and you're willing to terminate.
Congregate has been initialized by Hamza Waqas inspired from Jonathan Warner
's trick!
FAQs
Node.js cluster on top of Flatiron CLI & Native cluster. Built with love!
The npm package congregate receives a total of 3 weekly downloads. As such, congregate popularity was classified as not popular.
We found that congregate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.