-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[inferno-ml] Use connection pool (#149)
Currently, the entire server runs within `withConnect` and holds a single `Connection` within its `Env`. If Postgres is unreachable for some reason when the server starts, the process will hang until it's killed by an exception (which takes quite some time). If the connection fails while the server is running, the entire process will be brought down. This switches the server to use a `Pool` from `resource-pool` instead to create/hold connections on demand
- Loading branch information
Showing
6 changed files
with
65 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,42 @@ | ||
# Revision History for `inferno-ml-server` | ||
|
||
## 2023.11.26 | ||
## 2024.11.29 | ||
* Use `Pool` to hold Postgres connections | ||
|
||
## 2024.11.26 | ||
* Add creation date to models and versions | ||
|
||
## 2023.10.18 | ||
## 2024.10.18 | ||
* Add new testing route | ||
* Some improvements to model caching | ||
* Make `/status` not awful and confusing | ||
|
||
## 2023.9.27 | ||
## 2024.9.27 | ||
* Change entity DB representation to `numeric` | ||
|
||
## 2023.7.2 | ||
## 2024.7.2 | ||
* Use new `loadModel` primitive and pass model names to script evaluator | ||
|
||
## 2023.6.19 | ||
## 2024.6.19 | ||
* Save `BridgeInfo` to DB | ||
|
||
## 2023.6.5 | ||
## 2024.6.5 | ||
* Support linking multiple models to inference parameters | ||
|
||
## 2023.6.1 | ||
## 2024.6.1 | ||
* Add `resolution` to `InferenceParam` | ||
|
||
## 2023.5.29 | ||
## 2024.5.29 | ||
* Change representation of script inputs/outputs | ||
|
||
## 2023.5.22 | ||
## 2024.5.22 | ||
* Add support for tracking evaluation info | ||
|
||
## 2023.4.3 | ||
## 2024.4.3 | ||
* Add `terminated` column to DB types | ||
|
||
## 2023.3.26 | ||
## 2024.3.26 | ||
* Move to `inferno` repo | ||
|
||
## 2023.3.6 | ||
## 2024.3.6 | ||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters