Skip to content

Example method to prevent server crashing from uncaught exceptions, using the cluster module

Notifications You must be signed in to change notification settings

adamhenson/node-no-crash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-no-crash

Example technique to prevent server crashing from uncaught exceptions, using the cluster module.

Notes

I discovered that Express sessions don't support clusters and only work on a single instance :( read one report on stackoverflow.

Another technique is to let the server crash and automatically restart using things like "forever" or "forever-monitor". Here's an example from a different branch of this repo.

About

Example method to prevent server crashing from uncaught exceptions, using the cluster module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published