G-Research / fasttrackml

Experiment tracking server focused on speed and scalability
https://fasttrackml.io/
Apache License 2.0
98 stars 19 forks source link

WAL file keeps growing until server is restarted #446

Open jgiannuzzi opened 1 year ago

jgiannuzzi commented 1 year ago

We are experiencing checkpoint starvation, as described in https://www.sqlite.org/wal.html#avoiding_excessively_large_wal_files. In combination with #445, this means that a FastTrackML server running on Kubernetes with the SQLite backend will have an ever-growing WAL file and will quickly run into disk space issues!

suprjinx commented 1 year ago

perhaps starting the server goroutine with a timeout context, which makes it periodically exit -- then do the truncate and restart (in a loop)?

jgiannuzzi commented 1 year ago

I got a POC running that simply tunes the connection pools so that we don't keep idle connections constantly open and this works fine — however I want to make sure I understand the potential performance implications of that

dsuhinin commented 8 months ago

perhaps starting the server goroutine with a timeout context, which makes it periodically exit -- then do the truncate and restart (in a loop)?

ohh, it sounds like a NodeJS application :)

suprjinx commented 4 months ago

@jgiannuzzi should we PR your branch?