Skip to content
This repository was archived by the owner on Oct 27, 2018. It is now read-only.

add clustering support#11

Open
zachpendleton wants to merge 1 commit into
HubSpot:masterfrom
zachpendleton:master
Open

add clustering support#11
zachpendleton wants to merge 1 commit into
HubSpot:masterfrom
zachpendleton:master

Conversation

@zachpendleton
Copy link
Copy Markdown

not sure if this feature is interesting to anyone else, but I'd like to see easier clustering support in bucky.

feature is managed through a CLUSTER environment variable that allows a number of processes to launch to be passed to the app on start. if multiple instances are launched, they run on PORT, PORT + 1, PORT + 2, PORT + n.

if passed a cluster count through the CLUSTER environment
variable (e.g. CLUSTER=4 ./start.js), the server now runs
n processes on PORT, PORT+1, PORT+2, PORT+n.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant