Tech Titans Tweak Restart Timing to Boost System Resilience
New PM2 configuration introduces strategic delay, enhancing app stability and performance.
Commit Details:
fix: Add restart_delay to PM2 configuration (#1743) ## Motivation Since hubs themselves have a shutdown timeout of 30s, only attempt a restart after 35s. ## Change Summary Add `restart_delay`. ## Merge Checklist - [x] PR title adheres to the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard - [ ] PR has a [changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets) - [x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore) - [x] PR includes [documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs) if necessary. - [x] All [commits have been signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits) <!-- start pr-codex --> --- ## PR-Codex overview This PR increases restart delay in `pm2.config.cjs` to prevent frequent restarts. ### Detailed summary - Increased `restart_delay` to 35,000 ms - Set `min_uptime` to 60,000 ms for app startup - Adjusted `listen_timeout` to 30,000 ms - Updated `kill_timeout` to 60,000 ms > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->