Commit 902e149b authored by Mark Harding's avatar Mark Harding
Browse files

(chore): reduce memory to 300M to test SIGKILL failover #2545

parent a3bb24b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ COPY . /dist
RUN npm install pm2 -g

CMD pm2-runtime /dist/server \
    --max-memory-restart 1G \
    --max-memory-restart 300M \
    --instances 2

VOLUME ["/dist"]
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -205,3 +205,5 @@ app.get('*', cache(), (req, res) => {
app.listen(PORT, () => {
  console.log(`Node server listening on http://localhost:${PORT}`);
});

app.keepAliveTimeout = 65000;