开发者社区 > PolarDB开源 > PolarDB 分布式版 > 正文

开源PolarDB-X|proxy连接超时

使用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时,提示超时,报错如下:

Cause: 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.
; 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)

展开
收起
游客lfuoa2luk4pz4 2025-01-03 13:26:53 33 0
0 条回答
写回答
取消 提交回答

PolarDB 分布式版 (PolarDB for Xscale,简称“PolarDB-X”) 采用 Shared-nothing 与存储计算分离架构,支持水平扩展、分布式事务、混合负载等能力,100%兼容MySQL。 2021年开源,开源历程及更多信息访问:OpenPolarDB.com/about

相关产品

  • 云原生分布式数据库 PolarDB-X
  • 相关电子书

    更多
    PolarDB+AnalyticDB助力交通物流行业系统升级 立即下载
    PolarDB NL2SQL: 帮助您写出准确、优化的SQL 立即下载
    云栖大会:开源 PolarDB 架构演进、关键技术与社区建设 立即下载