You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: configurable db pool, multi-preset detection, enter-submit wizards (#52)
* fix: configurable db pool, multi-preset detection, enter-submit wizards
- Add env vars for database connection pool tuning (TEMPS_DB_MAX_CONNECTIONS,
TEMPS_DB_MIN_CONNECTIONS, TEMPS_DB_ACQUIRE_TIMEOUT, TEMPS_DB_IDLE_TIMEOUT)
with idle_timeout support to recycle stale connections
- Refactor preset detection to return all matching presets per directory
instead of only the highest-priority one, allowing users to choose
- Add useEnterSubmit hook to domain, DNS provider, and import wizards
- Document new pool env vars in environment variables reference
* fix(ci): remove invalid --clobber flag from gh release create
* fix(ci): update repo references from davidviejo/temps to gotempsh/temps
Install script and Homebrew formula template pointed to the wrong
GitHub repo, causing 404s on download.
* docs(changelog): add unreleased section for post-0.0.7 changes
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Added
11
+
-**Multi-preset detection**: `detect_all_presets_from_files` returns all matching presets per directory (e.g., Dockerfile + Next.js + Docker Compose in the same root), letting users choose their preferred deployment method instead of silently picking the highest-priority match
12
+
-**Database pool configuration**: env vars `TEMPS_DB_MAX_CONNECTIONS` (default 100), `TEMPS_DB_MIN_CONNECTIONS` (default 1), `TEMPS_DB_ACQUIRE_TIMEOUT` (default 30s), and `TEMPS_DB_IDLE_TIMEOUT` (default 600s) for tuning the SQLx connection pool on resource-constrained servers
13
+
-**Enter-submit in wizards**: `useEnterSubmit` hook added to Domain, DNS Provider, Domain Creation, and Import wizards — pressing Enter advances to the next step or submits on the final step
14
+
- Documentation for new pool environment variables in the environment variables reference
15
+
16
+
### Fixed
17
+
- Database connections could accumulate without recycling due to missing `idle_timeout` on the connection pool; now defaults to 10 minutes
18
+
-`gh release create` failure on duplicate tags: removed invalid `--clobber` flag, then re-added correctly
19
+
- Install script and Homebrew formula pointed to `davidviejo/temps` instead of `gotempsh/temps`, causing 404s on binary download
|`TEMPS_DB_MAX_CONNECTIONS`|`100`| Maximum connections in the pool |
73
+
|`TEMPS_DB_MIN_CONNECTIONS`|`5`| Minimum idle connections kept open |
74
+
|`TEMPS_DB_ACQUIRE_TIMEOUT`|`30`| Seconds to wait for a connection |
75
+
|`TEMPS_DB_IDLE_TIMEOUT`|`600`| Seconds before idle connections are closed |
76
+
77
+
For small servers (2GB RAM), reduce `TEMPS_DB_MAX_CONNECTIONS` to `20-30`. If you see `slow_acquire_threshold` warnings in logs, it means the pool is saturated — either increase the max or investigate long-running queries.
78
+
79
+
```bash
80
+
# Example: tuning for a small VPS
81
+
export TEMPS_DB_MAX_CONNECTIONS=30
82
+
export TEMPS_DB_MIN_CONNECTIONS=2
83
+
export TEMPS_DB_IDLE_TIMEOUT=300
84
+
```
85
+
66
86
### Data Directory
67
87
68
88
Temps stores sensitive data in the data directory (`~/.temps` by default):
0 commit comments