From bc71d1a5146bbde6efe3bdb41b279386d7f13100 Mon Sep 17 00:00:00 2001 From: Kevin Codex Date: Wed, 18 Nov 2026 17:02:15 +0800 Subject: [PATCH] chore(infra): node2 and node3 Fly configs as deployed for 0.8.1 The live configs had never received TWIGPINE_P2P_KEY (added to these files in #324 but not deployed). 0.8.1 keeps the libp2p key in a file, so both nodes now set it to /data/keys/p2p.key on their volume, and cap the new connection pools for their 100-connection Postgres: 30 main, 24 lock pool, 16 concurrent pushes. Deployed with the released ghcr.io/twigpine/node:0.8.1 image on 2026-11-18. --- infra/fly/gitlawb-node-2.fly.toml | 11 ++++++++--- infra/fly/gitlawb-node-3.fly.toml | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/infra/fly/gitlawb-node-2.fly.toml b/infra/fly/gitlawb-node-2.fly.toml index 16037afe9..0d23bdfd1 100644 --- a/infra/fly/gitlawb-node-2.fly.toml +++ b/infra/fly/gitlawb-node-2.fly.toml @@ -1,6 +1,6 @@ -# fly.toml app configuration file generated for gitlawb-node-2 on 2026-07-22T09:47:18+08:00 +# fly.toml app configuration file generated for gitlawb-node-2 on 2026-11-18T16:59:01+08:00 # -# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# See https://docs.fly.io/reference/configuration for information about how to use this file. # app = 'gitlawb-node-2' @@ -10,12 +10,17 @@ primary_region = 'sjc' dockerfile = '../../Dockerfile' [env] + # 0.8.1: keep the libp2p key on the volume (new PeerId once, then stable) + TWIGPINE_P2P_KEY = '/data/keys/p2p.key' + # 0.8.1 pools sized for this node's Postgres (max_connections 100) + TWIGPINE_DB_MAX_CONNECTIONS = '30' + TWIGPINE_DB_LOCK_POOL_MAX_CONNECTIONS = '24' + TWIGPINE_MAX_CONCURRENT_GIT_PUSHES = '16' GITLAWB_AUTO_SYNC = 'true' GITLAWB_BOOTSTRAP_PEERS = 'https://node.gitlawb.com,https://node3.gitlawb.com' GITLAWB_HOST = '0.0.0.0' GITLAWB_KEY = '/data/keys/identity.pem' GITLAWB_MAX_PACK_BYTES = '524288000' - GITLAWB_P2P_KEY = '/data/keys/p2p.key' GITLAWB_P2P_PORT = '7546' GITLAWB_PORT = '7545' GITLAWB_PUBLIC_URL = 'https://node2.gitlawb.com' diff --git a/infra/fly/gitlawb-node-3.fly.toml b/infra/fly/gitlawb-node-3.fly.toml index 85d49302d..8b594a45c 100644 --- a/infra/fly/gitlawb-node-3.fly.toml +++ b/infra/fly/gitlawb-node-3.fly.toml @@ -1,6 +1,6 @@ -# fly.toml app configuration file generated for gitlawb-node-3 on 2026-07-22T09:47:19+08:00 +# fly.toml app configuration file generated for gitlawb-node-3 on 2026-11-18T16:58:59+08:00 # -# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# See https://docs.fly.io/reference/configuration for information about how to use this file. # app = 'gitlawb-node-3' @@ -10,12 +10,17 @@ primary_region = 'nrt' dockerfile = '../../Dockerfile' [env] + # 0.8.1: keep the libp2p key on the volume (new PeerId once, then stable) + TWIGPINE_P2P_KEY = '/data/keys/p2p.key' + # 0.8.1 pools sized for this node's Postgres (max_connections 100) + TWIGPINE_DB_MAX_CONNECTIONS = '30' + TWIGPINE_DB_LOCK_POOL_MAX_CONNECTIONS = '24' + TWIGPINE_MAX_CONCURRENT_GIT_PUSHES = '16' GITLAWB_AUTO_SYNC = 'true' GITLAWB_BOOTSTRAP_PEERS = 'https://node.gitlawb.com,https://node2.gitlawb.com' GITLAWB_HOST = '0.0.0.0' GITLAWB_KEY = '/data/keys/identity.pem' GITLAWB_MAX_PACK_BYTES = '524288000' - GITLAWB_P2P_KEY = '/data/keys/p2p.key' GITLAWB_P2P_PORT = '7546' GITLAWB_PORT = '7545' GITLAWB_PUBLIC_URL = 'https://node3.gitlawb.com'