Commit Graph

9 Commits

Author SHA1 Message Date
wiz
96e8f45e5b
Add support for liquidtestnet in production backend and nginx 2021-12-28 15:20:11 +09:00
wiz
6a7d5fbe6a
Don't start production instances if backend folder doesn't exist 2021-02-25 02:38:38 +09:00
wiz
7d858a8abd
Modify production startup scripts to support signet 2021-02-21 03:44:33 +09:00
wiz
befb192651
Reduce backend heap size setting to 2G since cache memory usage was optimized (#345)
On powerful servers, nodejs automatically sets the limit at 4GB
```
% node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'
node heap limit = 4144 Mb
```

On a Raspberry Pi with 8GB RAM, nodejs automatically sets the limit at 1GB
```
% node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'
node heap limit = 1048 Mb
```

On a Raspberry Pi with 4GB RAM, nodejs automatically sets the limit at 740MB
```
% node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'
node heap limit = 739.4694900512695 Mb
```

After testing with manually setting the limit to 768MB, mempool starts
up fine, but crashes when saving the cache when the mempool is quite
large (over 400MB with custom bitcoin.conf setting).

So it's probably safe to reduce the 4GB limit setting to 2GB for
all devices and and just use the automatically set values, now that the
backend's disk cache memory usage was recently optimized.

However, a new npm script for `npm run start-production` will be added
so we can keep our production mempool.space servers running with a very
large bitcoin.conf mempool
2021-02-14 22:25:29 +07:00
wiz
91815072d5
Update production scripts to install/load NodeJS/npm using nvm 2020-09-18 21:53:58 +09:00
wiz
6ded0f54c4
Add production 4th instance for bisq backend 2020-07-24 21:53:57 +09:00
wiz
b9d9875e98
Remove duplicate npm install and build steps in production scripts 2020-05-26 21:52:50 +09:00
wiz
01ac06b096
Fix start/upgrade scripts to properly restart the backend processes 2020-05-26 13:23:55 +09:00
wiz
003361befb
Update misc files used for mempool.space production website 2020-05-25 18:42:00 +09:00