Commit Graph

25 Commits

Author SHA1 Message Date
wiz
f80c99576b
ops: Update prod scripts for testnet4 2024-05-07 01:01:09 +09:00
wiz
f9948055e4
ops: Update build/unfurler stuff for onbtc 2024-04-29 17:12:51 +09:00
wiz
83dbae3a70
Merge pull request #4786 from mempool/simon/remove-bisq
Removing Bisq
2024-04-02 15:06:23 +09:00
wiz
ce057bad20
ops: Bump NodeJS to v20.12.0 in start script 2024-04-02 14:58:55 +09:00
wiz
8bec0cacdb
ops: Remove bisq from start script 2024-04-02 14:58:21 +09:00
wiz
5a7a78cddc
ops: Add new nginx hot cacher 2024-01-26 10:40:21 -05:00
wiz
72fdcb749f
Bump NodeJS version to v20.7.0 2023-09-27 14:23:07 +09:00
wiz
0fde6dd908
ops: Bump prod NodeJS version to v20.5.1 2023-08-25 23:34:50 +09:00
wiz
2c9e20dd87
ops: Always start xorg for unfurler even if no GPU detected 2023-08-17 18:38:17 +09:00
wiz
fa48c6f025
ops: Use NodeJS v18 to build, v20 to run backend 2023-07-18 08:52:51 +09:00
wiz
0b4f17c129
Add unfurler configs for 3 sites 2022-08-30 11:28:25 +02:00
wiz
73bf52dc58
Use mainnet repo for nginx cache warmer script 2022-08-29 10:58:07 +02:00
wiz
8ec61dd603
Update ops scripts for unfurler and cache warmer 2022-08-28 14:00:20 +02:00
wiz
bb74a25adc
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
fa92ba4478
Refactor nginx.conf and other ops scripts for lightning 2022-07-06 17:13:09 +02:00
Stephan Oeste
4a6f3e189d
Change shebang in scripts to be universal for prod install 2022-07-06 12:11:13 +02:00
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