---
title: "Comment by Christian Dimas on \"10 things you shouldn't do while running Node.js in production\" | Hashnode"
description: "Hi, sorry to bump up on an old post. But this shows up when I search for clustering in PM2. I&#39;m still new in nodejs. My question is, does it really needed i"
url: "https://hashnode.com/posts/10-things-you-shouldnt-do-while-running-nodejs-in-production/57bee46e93309a25047c619a/comment/58fcb943d23bc81fe858f330"
---

[Discussion](https://hashnode.com/posts/10-things-you-shouldnt-do-while-running-nodejs-in-production/57bee46e93309a25047c619a)

Comment [10 things you shouldn't do while running Node.js in production](https://hashnode.com/posts/10-things-you-shouldnt-do-while-running-nodejs-in-production/57bee46e93309a25047c619a)

[Christian Dimas](https://hashnode.com/@christiandimas)

[Apr 23, 2017](https://hashnode.com/posts/10-things-you-shouldnt-do-while-running-nodejs-in-production/57bee46e93309a25047c619a/comment/58fcb943d23bc81fe858f330)

Hi, sorry to bump up on an old post. But this shows up when I search for clustering in PM2.

I'm still new in nodejs. My question is, does it really needed in all production use case?

Yes I'm aware that it improves the speed a lot, but in my use case, I use chokidar to watch a directory, and then fork a child\_process for uploading it to S3 every time new file added.

When I tried to run PM2 in cluster mode, and it does the same thing twice. How can I improve the app performance without getting this?

[Munif Tanjim](https://hashnode.com/@MunifTanjim)

[Oct 16, 2018](https://hashnode.com/posts/10-things-you-shouldnt-do-while-running-nodejs-in-production/57bee46e93309a25047c619a/comment/58fcb943d23bc81fe858f330#reply-5bc60f64d381428c637527b3)

It's a little late 😅 but,

Extract chokidar in a separate process so that you don't have to run it in the cluster.
