Hi,
The causal_reads feature of readwritesplit should help you solve the problem. It will make sure the server has replicated the previous transaction the connection did before proceeding with the SELECT statement. The causal_reads=local mode should be suitable for your use-case.
Remember to add the last_gtid into session_track_system_variables: MaxScale needs this to detect the latest GTID in order for it to be able to instruct the server to wait until that transaction has been replicated.
Markus
--
You received this message because you are subscribed to the Google Groups "MaxScale" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxscale+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/maxscale/9e649fe5-d4b9-49d8-b986-cdc70906647fn%40googlegroups.com.
-- Markus Mäkelä, Senior Software Engineer MariaDB Corporation
Hi,
Yes, the feature currently only works with MariaDB GTIDs.
Markus
To view this discussion on the web, visit https://groups.google.com/d/msgid/maxscale/10f79d06-87b1-44ad-b4b9-c650c9e6b937n%40googlegroups.com.