我们正在Cloud Foundry下的Spring Cloud Dataflow 1.5.1中部署流。
应用注册方式如下:
app register --name MySource --type source --force --uri maven://com.test:mySource:jar:0.0.19-SNAPSHOT
app register --name MySink --type sink --force --uri maven://com.test:mySink:jar:0.0.2-SNAPSHOT
app register --name MyProcessor --type processor --force --uri maven://com.test:myProcessor:jar:0.0.1-SNAPSHOT
像这样创建流:
stream create --name MyStream --definition "MySource | MySink | MyProcessor"
从数据流Shell部署时,出现以下错误:
dataflow> stream deploy MyStream
Command failed org.springframework.web.client.HttpServerErrorException: 504 Gateway Time-out
在scdf服务器日志中,我们可以阅读:
2018-06-25T16:52:58.28+0200 [APP/PROC/WEB/0] OUT 2018-06-25 14:52:58.283 INFO 14 --- [nio-8080-exec-4] .s.c.d.s.s.i.AppDeploymentRequestCreator : Creating resource with [maven://com.test:mySink:jar:0.0.2-SNAPSHOT] for application [MySink]
2018-06-25T16:53:28.20+0200 [RTR/0] OUT scdf-server.domainName - [2018-06-25T14:52:58.202+0000] "POST /streams/deployments/MyStream HTTP/1.1" 499 2 22 "-" "Apache-HttpClient/4.5.5 (Java/9.0.4)" "192.168.99.41:51134" ... response_time:30.001992167 app_id:"..." ...
2018-06-25T16:53:28.20+0200 [RTR/0] OUT
在scdf服务器和maven存储库之间可能是超时错误(30秒)(在缓慢的网络互连上,我们的应用jar大约为100Mo)
是否可以更改此超时?如何更改?