Sequel 5.102.0 Released #2355
jeremyevans
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sequel 5.102.0 has been released!
New Features
A connection_checkout_event_callback Database extension has been
added, which allows for collecting telemetry information about
connection checkouts. This can be used to create metrics to see how
well the connection pool is functioning, which allows you to better
determine whether the current pool size is working well for the
application.
After loading the extension:
You then set the callback proc, which is yielded either one of three
symbols, or a Float if the checkout request had to wait for a
connection to become available from the pool.
This extension is only supported if the timed_queue or
sharded_timed_queue connection pool is used. These are the default
connection pools on Ruby 3.2+.
Other Improvements
correctly handle the sharded_timed_queue connection pool.
Previously, usage of these extensions with the sharded_timed_queue
connection pool would result in the pool reducing concurrency
whenever a connection was disconnected, eventually resulting in an
empty pool that thought it was full.
Thanks,
Jeremy
Beta Was this translation helpful? Give feedback.
All reactions