使用PolarDB-X集中式时,使用ProxySQL代理。springboot项目,使用druid连接池。
安装版本如下:
ProxySQL version 2.4.8-2-g2cc900a, codename Truls
PolarDB-X version 2.4.1(PolarDB-X-engine-8.4.19-20241112.el7.x86_64)
项目直连polardb-x主节点正常,但是连接ProxySQL时,提示超时,报错如下:
The last packet successfully received from the server was 59,999 milliseconds ago. The last packet sent successfully to the server was 60,001 milliseconds ago.
; Communications link failure
The last packet successfully received from the server was 59,999 milliseconds ago. The last packet sent successfully to the server was 60,001 milliseconds ago.; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet successfully received from the server was 59,999 milliseconds ago. The last packet sent successfully to the server was 60,001 milliseconds ago.
at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:100)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:79)
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
PolarDB 分布式版 (PolarDB for Xscale,简称“PolarDB-X”) 采用 Shared-nothing 与存储计算分离架构,支持水平扩展、分布式事务、混合负载等能力,100%兼容MySQL。 2021年开源,开源历程及更多信息访问:OpenPolarDB.com/about