Applies ToSQL Server 2017 Developer Linux SQL Server 2017 Enterprise on Linux SQL Server 2017 Enterprise Core on Linux SQL Server 2017 Standard on Linux

徵狀

假設您已設定 AlwaysOn 可用性 使用 Pacemaker 針對 Linux 上的 SQL Server 2017 進行分組。 連線至 SQL Server 時,您會注意到 [間歇可用性] 群組 當 AG 協助程式連接逾時時,就會發生容錯移轉。

狀態

Microsoft 已確認<適用於>一節所列的 Microsoft 產品確實有上述問題。

解決方案

此問題已在下列 SQL Server 累積更新中修正:

關於 SQL Server 的累積更新:

每個新的 SQL Server 累計更新都包含所有的修正程式,以及前一個累積更新中所包含的所有安全性修正程式。 查看 SQL Server 的最新累計更新:

其他相關資訊

假設您已在 Linux 上使用 Pacemaker for SQL Server 2017 來設定可用性群組(AG)。 請考慮 pacemaker AG 協助者資源代理程式  是以醒目提示的方式使用下列群集配置檔案  。 AG 協助程式是使用10秒的連線間隔、30秒的連線超時,以及監視狀態檢查的90秒超時。

主 id = "ha_cluster-master" <>

<基本類別 = "ocf" id = "ha_cluster" provider = "mssql" 類型 = "ag" >

<instance_attributes id="ha_cluster-instance_attributes">

<nvpair 識別碼 = "ha_cluster-instance_attributes-ha_name" name = "ha_name" value = "TEST_AG"/>

<nvpair 識別碼 = "ha_cluster-instance_attributes-trace_ra" name = "trace_ra" value = "1"/>

</instance_attributes>

<operations>

<op id = "ha_cluster 降級-interval-0" interval = "0" name = "降級" timeout = "300"/>

<op id = "ha_cluster-monitor-間隔-60s" interval = "60s" name = "monitor" timeout = "100"/>

            <op id = "ha_cluster-monitor-11" 間隔 = "10" name = "monitor" 角色 = "Master" timeout = "90"/>

<op id = "ha_cluster-monitor-12" 間隔 = "12" name = "monitor" role = "從屬" 超時 = "60"/>

<op id = "ha_cluster-通知間隔-0" 間隔 = "0" name = "notify" timeout = "60"/>

<op id = "ha_cluster-提升間隔-0" 間隔 = "0" 名稱 = "升級" 超時 = "60"/>

<op id = "ha_cluster-開始-interval-0" interval = "0" name = "start" timeout = "60"/>

<op id = "ha_cluster-停止間隔-0" 間隔 = "0" name = "stop" timeout = "300"/>

</operations>

<meta_attributes id="ha_cluster-meta_attributes">

            <nvpair 識別碼 = "ha_cluster-meta_attributes-timeout" name = "timeout" 值 = "30s"/>

<nvpair 識別碼 = "ha_cluster-meta_attributes-失敗-timeout" name = "失敗-timeout" 值 = "60s"/>

</meta_attributes>

</primitive>

<meta_attributes id="ha_cluster-master-meta_attributes">

<nvpair 識別碼 = "ha_cluster-master-meta_attributes 通知" name = "notify" 值 = "true"/>

<nvpair 識別碼 = "ha_cluster-master-meta_attributes-trace_ra" name = "trace_ra" 值 = "1"/>

</meta_attributes>

</master>

在 SQL Server 2017 的累積更新21(CU21)之前,如果在連線至 SQL Server 時,AG 健康情況檢查連接逾時,就會啟動降級動作,以將 AG 轉移至次要節點。

從 CU21 向上,如果發生連線超時,AG 協助程式資源代理程式將會使用90秒的監視器超時,並嘗試兩個連線。 如果所有三個連線嘗試都失敗,AG 協助程式資源代理程式會將 SQL Server 宣告成無回應,並開始將可用性群組容錯移轉到輔助節點的降級動作。

參考

瞭解Microsoft 用於描述軟體更新的詞彙 。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。