第 12 章 配置 OpenShift 连接超时


默认情况下,OpenShift 路由配置为超时超过 30 秒的 HTTP 请求。这可能会导致 Business Central 中的会话超时问题,从而导致以下行为:

  • "无法完成您的请求。以下异常发生:(TypeError): Cannot read property 'indexOf' of null"。
  • "无法完成您的请求。以下异常发生:(TypeError): b is null"。
  • 当单击 Business Central 中的 ProjectServer 链接时,会显示空白页面。

所有 Business Central 模板均已包含扩展超时配置。

要在 Business Central OpenShift 路由中配置较长的超时时间,请在目标路由中添加 haproxy.router.openshift.io/timeout: 60s 注解:

  - kind: Route
    apiVersion: v1
    id: "$APPLICATION_NAME-rhdmcentr-http"
    metadata:
      name: "$APPLICATION_NAME-rhdmcentr"
      labels:
        application: "$APPLICATION_NAME"
      annotations:
        description: Route for Business Central's http service.
        haproxy.router.openshift.io/timeout: 60s
    spec:
      host: "$DECISION_CENTRAL_HOSTNAME_HTTP"
      to:
        name: "$APPLICATION_NAME-rhdmcentr"
Copy to Clipboard Toggle word wrap

有关特定于全局路由的超时注解的完整列表,请参阅 OpenShift 文档

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat