为了能够透明地切换,可以将应用程序编码为捕获StaleConnection异常,并重试指定的连接次数来获取新的连接句柄。
For transparent switch over, applications can be coded to catch the StaleConnection exception and retry a specified number of times to obtain new connection handles.
该方案中各节点数据库可以分布于wan或LAN中,对客户应用实现透明切换和数据的自动同步,系统恢复时延很短,开销较小。
In this scheme, the database nodes can be distributed in WAN or LAN and switched transparently to user applications and the system's disaster recovery time is short and the cost is low.
应用推荐