Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
406
Merge Requests
65
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
902e149b
Commit
902e149b
authored
1 minute ago
by
Mark Harding
Browse files
Options
Download
(chore): reduce memory to 300M to test SIGKILL failover
#2545
parent
a3bb24b4
master
No related merge requests found
Pipeline
#116696466
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
containers/server/Dockerfile
View file @
902e149b
...
...
@@ -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
This diff is collapsed.
server.ts
View file @
902e149b
...
...
@@ -205,3 +205,5 @@ app.get('*', cache(), (req, res) => {
app
.
listen
(
PORT
,
()
=>
{
console
.
log
(
`Node server listening on http://localhost:
${
PORT
}
`
);
});
app
.
keepAliveTimeout
=
65000
;
This diff is collapsed.
Please
register
or
sign in
to comment