没事。欢迎试用,如果在使用过程之中遇到了问题,可以联系我。

Best,
Shengkai

TonyChen <[email protected]> 于2022年10月20日周四 09:45写道:

> 找到了,打扰了列位
> public static final ConfigOption<Duration>
> SQL_GATEWAY_SESSION_IDLE_TIMEOUT =
>         key("sql-gateway.session.idle-timeout")
>                 .durationType()
>                 .defaultValue(Duration.ofMinutes(10))
>                 .withDescription(
>                         "Timeout interval for closing the session when the
> session hasn't been accessed during the interval. "
>                                 + "If setting to zero or negative value,
> the session will not be closed.");
>
>
>
> Best,
> TonyChen
>
> > 2022年10月20日 09:28,TonyChen <[email protected]> 写道:
> >
> > Hi all
> >
> > 根据 Flink 1.16 官方文档中的 Sql Gateway / Rest Endpoint 部分给出的 API,需要手动维护
> session 的心跳,否则如果 session 会根据配置的超时时间关闭。
> >
> > 不知道我理解的对不对?
> > 如果是这样的话,那么需要配置哪个配置项?
> >
> > 谢谢列位
> >
> > [1]
> https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/dev/table/sql-gateway/rest/#sessions-session_handle-heartbeat
> <
> https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/dev/table/sql-gateway/rest/#sessions-session_handle-heartbeat
> >
> >
> >
> > Best,
> > TonyChen
> >
>
>

回复