概述
在数据库中间件读写分离应用场景中,如何保证底层数据库出现故障节点的时,中间件可以快速断开或迁移数据库连接,让用户没有感觉呢?在MySQL数据库中,提供了一个session_track_transaction_info参数来提供解决方案。
A system and method for linking data objects and physical objects of various kinds to an identified user is described. The system provides to the identified user information relating to the delivery status of mail pieces directed to or sent by the user, and the user then tracks and traces the mail pieces.
2、session_track_transaction_info参数
2.1 参数介绍
MySQL5.7中,可以通过设置session_track_transaction_info变量来跟踪事务的状态。
该参数存在global以及session两个级别,可以动态修改。
该参数可以设置的值为0(默认OFF),1,2
/**
Transaction tracking level
*/
enum enum_session_track_transaction_info