Skip to content

v1.5.0

Compare
Choose a tag to compare
@Tusamarco Tusamarco released this 20 Jan 08:27
· 3 commits to main since this release
4255853

When the proxysql cluster feature was activated scheduler update the epoch of the node owning the lock at each cycle.
This injects not needed writes that could create conflicts especially in an environment like k8.

solution: Refresh epoch after few cycles but inside the lockclustertimeout value ideally every 3/4 of the lockclustertimeout value.
Example:
scheduler loop every 2 seconds
lockclustertimeout = 600 seconds
lockrefreshtime = 450

Implementation:

add parameter lockrefreshtime
add check for sanity for the parameter lockrefreshtime to never be higher than 3/4 of lockclustertimeout
add a check in findLock method to return true only if lockrefreshtime has been exceeded
add proper information in log (INFO)