From e8306a3123ec03616c9a5523a32f8b3d8423b309 Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <me@adhisimon.org>
Date: Wed, 6 Nov 2019 15:09:52 +0700
Subject: [PATCH] Disable cluster mode

---
 lib/webservice/index.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/webservice/index.js b/lib/webservice/index.js
index 7ca9f32..cdafe83 100644
--- a/lib/webservice/index.js
+++ b/lib/webservice/index.js
@@ -1,3 +1,4 @@
+const CLUSTER_MODE = false;
 const cluster = require('cluster');
 const numCPUs = require('os').cpus().length;
 const express = require('express');
@@ -12,7 +13,7 @@ const routerPriceplan = require('./router/priceplan');
 
 app.use('/apikey/:apikey/priceplan', routerPriceplan);
 
-if (cluster.isMaster) {
+if (CLUSTER_MODE && cluster.isMaster) {
     logger.info(`Master ${process.pid} is running`);
 
     // Fork workers.
-- 
1.9.0