16 Commits

Author SHA1 Message Date
wiz
7f93673083 ops: Use NodeJS v18 to build, v20 to run backend 2023-07-18 08:52:51 +09:00
wiz
1b60ca1d1c Add unfurler configs for 3 sites 2022-08-30 11:28:25 +02:00
wiz
793ee89b11 Use mainnet repo for nginx cache warmer script 2022-08-29 10:58:07 +02:00
wiz
6962efa807 Update ops scripts for unfurler and cache warmer 2022-08-28 14:00:20 +02:00
wiz
095869821c Merge pull request #1977 from Emzy/ops/fix-shebang-scripts
Disable confirmation prompt for rust and change shebang in scripts to be universal for prod install
2022-07-06 18:51:18 +02:00
wiz
63f4c5a003 Refactor nginx.conf and other ops scripts for lightning 2022-07-06 17:13:09 +02:00
Stephan Oeste
cfbee5d33f Change shebang in scripts to be universal for prod install 2022-07-06 12:11:13 +02:00
wiz
fd56259472 Add support for liquidtestnet in production backend and nginx 2021-12-28 15:20:11 +09:00
wiz
3152ac22f7 Don't start production instances if backend folder doesn't exist 2021-02-25 02:38:38 +09:00
wiz
79879bffe5 Modify production startup scripts to support signet 2021-02-21 03:44:33 +09:00
wiz
0a0edc0315 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
12e388a61c Update production scripts to install/load NodeJS/npm using nvm 2020-09-18 21:53:58 +09:00
wiz
0e3de8b75f Add production 4th instance for bisq backend 2020-07-24 21:53:57 +09:00
wiz
961e69e4db Remove duplicate npm install and build steps in production scripts 2020-05-26 21:52:50 +09:00
wiz
d0d578350a Fix start/upgrade scripts to properly restart the backend processes 2020-05-26 13:23:55 +09:00
wiz
2e3ff685f8 Update misc files used for mempool.space production website 2020-05-25 18:42:00 +09:00