RPC 超时查错

由于网络速度缓慢或网络链接断开,RPC 连接有时会超时。这会导致软件包下载或批处理作业挂起或运行时间超过预期。您可以通过编辑配置文件来调整 RPC 连接可以花费的最长时间。虽然这不能解决网络问题,但可以使进程失败而不是挂起。

过程:解决 RPC 连接超时
  1. On the SUSE Multi-Linux Manager Server, open the /etc/rhn/rhn.conf file and set a maximum timeout value (in seconds):

    server.timeout =`数字`

    On the SUSE Multi-Linux Manager Proxy, open the /etc/uyuni/proxy/config.yaml file and set a maximum timeout value (in seconds). The proxy containers need to be restarted for the change to be effective:

    timeout: `number`
  2. On a SUSE Linux Enterprise Server client that uses zypper, open the /etc/zypp/zypp.conf file and set a maximum timeout value (in seconds):

    ## 有效值:[0,3600]
    ## 默认值:180
    download.transfer_timeout = 180
  3. On a Red Hat Enterprise Linux client that uses yum, open the /etc/yum.conf file and set a maximum timeout value (in seconds):

    timeout =`数字`

如果您将 RPC 超时限制为小于 180 秒,可能会中止完全正常的操作。