Sql 红移查询挂起在mule cloudhub上

Sql 红移查询挂起在mule cloudhub上,sql,mule,amazon-redshift,cloudhub,Sql,Mule,Amazon Redshift,Cloudhub,我面临一个简单的红移查询挂起的问题。我正在使用mule并将代码部署到cloudhub。相信这与结果集的大小有关。当结果集大小非常小(可能小于50行)时,它可以正常工作。但是,任何超出此范围的内容都会挂起,我偶尔(在大约2小时的请求之后)会在日志中看到此错误。我将连接url用作: jdbc:postgresql://xyz?tcpKeepAlive=true&useCursors=true&user=abc&password=123 顺便说一句,在我的本地mule运行时,

我面临一个简单的红移查询挂起的问题。我正在使用mule并将代码部署到cloudhub。相信这与结果集的大小有关。当结果集大小非常小(可能小于50行)时,它可以正常工作。但是,任何超出此范围的内容都会挂起,我偶尔(在大约2小时的请求之后)会在日志中看到此错误。我将连接url用作:

jdbc:postgresql://xyz?tcpKeepAlive=true&useCursors=true&user=abc&password=123
顺便说一句,在我的本地mule运行时,一切都很好

********************************************************************************
Message               : [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException). Message payload is of type: ParameterMap
Code                  : MULE_ERROR-29999
--------------------------------------------------------------------------------
Exception stack is:
1. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (com.amazon.support.exceptions.GeneralException)
  com.amazon.jdbc.communications.channels.MessagesSocketChannel:-1 (null)
2. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException)
  com.amazon.jdbc.communications.channels.MessagesSocketChannel:-1 (null)
3. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException). Message payload is of type: ParameterMap (org.mule.api.MessagingException)
  org.mule.module.db.internal.processor.AbstractDbMessageProcessor:93 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
com.amazon.support.exceptions.GeneralException: [Amazon](500150) Error setting/closing connection: Connection reset by peer.
    at com.amazon.jdbc.communications.channels.MessagesSocketChannel.readMessages(Unknown Source)
    at com.amazon.jdbc.communications.channels.AbstractMessagesSocketChannel.read(Unknown Source)
    + 2 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************

正如Guy在评论中提到的,问题似乎是使用固定MTU的红移


有关详细信息,请参阅MuleSoft知识库文章。

从何处运行SQL以及红移在何处?这可能是EC2到VPC在MTU设置上的差异。我从CloudHub运行它。检查此文档页面以了解可能的解决方案:登录到Mulesoft支持站点后,查找知识库编号00001042以了解解决方法。