oceanbase / obproxy

A proxy server for OceanBase Database.
https://open.oceanbase.com
Other
114 stars 79 forks source link

OB集群内,对于部署在远端的只读节点,可以配置obproxy只做弱一致性读请求 #19

Open yu34po opened 2 years ago

yu34po commented 2 years ago

原始需求,同一个集群本地部署了一部分全功能副本,远端部署了一部分只读副本,业务在远端的请求只需要进行弱一致读, 目前的实现需要在请求SQL加hint或者在session上加变量,想通过配置obproxy的方式,达到访问到远端的obproxy的请求进行默认弱一致性读。

longdafeng commented 2 years ago

开源官网搜索 只读副本,

https://open.oceanbase.com/docs/oceanbase-cloud-platform/oceanbase-cloud-platform-community/V3.1.1/add-copy

yu34po commented 2 years ago

https://github.com/yu34po/obproxy/pull/1