SQL Server BDC Hints and Tips: The node’s Journal can be your best friend

Published Feb 09 2022 08:30 AM 718 Views
Microsoft

Move from: bobsql.com

 

If you are new to Kubernetes (K8’s), like I am, you quickly learn that the servicing node’s journal holds a wealth of information.

In the lab I was encountering evictions due to memory, disk space and other resource limitations.  My collection scripts were connecting to the pods and not the nodes.  This approach lacks valuable, lineage information needed to fully troubleshoot issues.

 

For example, my master-0, SQL Server, pod was getting evicted and restarted.  I used SSH to connect to the master-0 pod. 

 

Note: the debug information and logs located on the pod are reset during the restart and limit troubleshooting.

 

Using kubectl and running kubectl get events or kubectl describe pod master-0 -n mssql-cluster did not give me what I needed to understand what happened with the kubelet interactions related to the evictions.

 

I then executed kubectl get pods -n mssql-cluster -o wide.  This output shows the node the master-0 pod is serviced by is node adlgh1-0 on my cluster.

 

NAMESPACE       NAME                                    READY   STATUS    RESTARTS   AGE     IP              NODE       NOMINATED NODE   READINESS GATES

mssql-cluster   master-0                                3/3     Running   0          4h36m   10.244.0.209    adlghl-0   <none>           <none>


I then executed kubectl get nodes -o wide and obtained the IP address of the adlgh1-0 node.  Using the ip address I established an SSH connection to the node and continued troubleshooting.

 

I exeuted various flavors of the journalctl command, spanning the time ranges the pod restarted and found events highlighting the eviction.

 

kubelet[1242]: I1205 02:54:35.371117    1242 image_gc_manager.go:300] [imageGCManager]: Disk usage on image filesystem is at 85% which is over the high threshold (85%). Trying to free 5214368563 bytes down to the low threshold (80%).

 

kubelet[1242]: I1205 02:55:10.469831    1242 eviction_manager.go:344] eviction manager: must evict pod(s) to reclaim ephemeral-storage

 

kubelet[1242]: I1205 02:55:10.471522    1242 eviction_manager.go:362] eviction manager: pods ranked for eviction: sparkhead-0_mssql-cluster(7bb01e5f-2e33-4b72-b8a7-7737010f56b5), app1-vqc87_mssql-cluster(21a3a235-dda4-44b0-8943-f1b4aa1aebf3), logsdb-0_mssql-cluster(90657763-ffcb-4df3-94c5-7791f4f60c58), gateway-0_mssql-cluster(ea099f36-de15-4e2f-aa59-364e21db97cb), master-0_mssql-cluster(9cef954d-0f2b-4eda-9d14-067214eafd87), compute-0-…

 

In a bit more complicated scenario all pods on a given node appeared to have been paused for ~5 hours.  The workload was running along and stalled for ~5 hours.  No performance counters, no query cancellations honored, no new connections honored, current connections didn’t make forward progress, no new log entries for any service of any pod assigned to by the node.  It was as if someone put the node into sleep mode for ~5 hours.

 

Using the time range and servicing node information I reviewed the CPU metrics using Grafana on my cluster:  https://mybdcclusterip:30777/grafana   (You can use kubectl cluster-info or azdata list endpoints to acquire the cluster ip address.)

 

The metrics collection showed the ~5 hour gap and the more troubleshooting I did the more it was clear that every pod on the same node encountered the same paused behavior.

BobDorr_0-1644424186989.png

 

Using the kubectl get pods and get nodes I determined the target node and studied the time range of events present in the journal.  The journal of the node is what told the real story and allowed me to understand the behavior.  

 

The journal shows the operating system on the node (host the pods in question) encountered an issue.  The issue was a stalled scheduler at the OS level preventing all threads in all pods assigned to the node from making forward progress.

 

Nov 01 23:47:46 adlghl-3 kernel: INFO: task khugepaged:47 blocked for more than 120 seconds.

Nov 01 23:47:46 adlghl-3 kernel:       Not tainted 4.4.0-165-generic #193-Ubuntu

Nov 01 23:47:46 adlghl-3 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

Messages like the one above repeated for ~5 hours until the oom killer a process.  Then the system came back to life as if the resume button had been pushed.

 

Nov 02 04:32:20 adlghl-3 kernel: monkey: wrk/0 invoked oom-killer: gfp_mask=0x24201ca, order=0, oom_score_adj=998

 

Recommendation

For a SQL Server Big-Data-Cluster (BDC), or any K8’s cluster, deploy a solution that collects the journal and other relevant metrics from the servicing nodes.  

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3144244%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3ESQL%20Server%20BDC%20Hints%20and%20Tips%3A%20The%20node%E2%80%99s%20Journal%20can%20be%20your%20best%20friend%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3144244%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3E%3CSPAN%20style%3D%22%5C%26quot%3Bcolor%3A%22%20inherit%3D%22%22%3EMove%20from%3A%20bobsql.com%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22%5C%26quot%3BWordSection1%5C%26quot%3B%22%3E%5Cn%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EIf%20you%20are%20new%20to%20Kubernetes%20(K8%E2%80%99s)%2C%20like%20I%20am%2C%20you%20quickly%20learn%20that%20the%20servicing%20node%E2%80%99s%20journal%20holds%20a%20wealth%20of%20information.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EIn%20the%20lab%20I%20was%20encountering%20evictions%20due%20to%20memory%2C%20disk%20space%20and%20other%20resource%20limitations.%26nbsp%3B%20My%20collection%20scripts%20were%20connecting%20to%20the%20pods%20and%20not%20the%20nodes.%26nbsp%3B%20This%20approach%20lacks%20valuable%2C%20lineage%20information%20needed%20to%20fully%20troubleshoot%20issues.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EFor%20example%2C%20my%20master-0%2C%20SQL%20Server%2C%20pod%20was%20getting%20evicted%20and%20restarted.%26nbsp%3B%20I%20used%20SSH%20to%20connect%20to%20the%20master-0%20pod.%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin-left%3A%22%20.5in%3D%22%22%3E%3CSTRONG%3ENote%3A%26lt%3B%5C%2FSTRONG%26gt%3B%20the%20debug%20information%20and%20logs%20located%20on%20the%20pod%20are%20reset%20during%20the%20restart%20and%20limit%20troubleshooting.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin-left%3A%22%20.5in%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EUsing%20kubectl%20and%20running%20%3CI%3Ekubectl%20get%20events%26lt%3B%5C%2FI%26gt%3B%20or%20%3CI%3Ekubectl%20describe%20pod%20master-0%20-n%20mssql-cluster%26lt%3B%5C%2FI%26gt%3B%20did%20not%20give%20me%20what%20I%20needed%20to%20understand%20what%20happened%20with%20the%20kubelet%20interactions%20related%20to%20the%20evictions.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FI%3E%3C%2FI%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EI%20then%20executed%20%3CI%3Ekubectl%20get%20pods%20-n%20mssql-cluster%20-o%20wide%26lt%3B%5C%2FI%26gt%3B.%26nbsp%3B%20This%20output%20shows%20the%20node%20the%20master-0%20pod%20is%20serviced%20by%20is%20node%20%3CSTRONG%3Eadlgh1-0%26lt%3B%5C%2FSTRONG%26gt%3B%20on%20my%20cluster.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSTRONG%3E%3C%2FI%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin-bottom%3A%22%200in%3D%22%22%3E%3CSPAN%20style%3D%22%5C%26quot%3Bfont-size%3A%22%209.0pt%3D%22%22%3ENAMESPACE%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NAME%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20READY%26nbsp%3B%26nbsp%3B%20STATUS%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RESTARTS%26nbsp%3B%26nbsp%3B%20AGE%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20IP%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NODE%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NOMINATED%20NODE%26nbsp%3B%26nbsp%3B%20READINESS%20GATES%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin-bottom%3A%22%200in%3D%22%22%3E%3CSPAN%20style%3D%22%5C%26quot%3Bfont-size%3A%22%209.0pt%3D%22%22%3Emssql-cluster%26nbsp%3B%26nbsp%3B%20%3CSTRONG%3Emaster-0%26lt%3B%5C%2FSTRONG%26gt%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B3%2F3%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204h36m%26nbsp%3B%26nbsp%3B%2010.244.0.209%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSTRONG%3Eadlghl-0%26lt%3B%5C%2FSTRONG%26gt%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FSTRONG%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%3CBR%20%2F%3EI%20then%20executed%20%3CI%3Ekubectl%20get%20nodes%20-o%20wide%26lt%3B%5C%2FI%26gt%3B%20and%20obtained%20the%20IP%20address%20of%20the%20adlgh1-0%20node.%26nbsp%3B%20Using%20the%20ip%20address%20I%20established%20an%20SSH%20connection%20to%20the%20node%20and%20continued%20troubleshooting.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FI%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EI%20exeuted%20various%20flavors%20of%20the%20%3CI%3Ejournalctl%26lt%3B%5C%2FI%26gt%3B%20command%2C%20spanning%20the%20time%20ranges%20the%20pod%20restarted%20and%20found%20events%20highlighting%20the%20eviction.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FI%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin%3A%22%200in%3D%22%22%200in%3D%22%22%200in%3D%22%22%2027.0pt%3D%22%22%3E%3CSPAN%20style%3D%22%5C%26quot%3Bfont-size%3A%22%209.0pt%3D%22%22%3Ekubelet%5B1242%5D%3A%20I1205%2002%3A54%3A35.371117%26nbsp%3B%26nbsp%3B%26nbsp%3B%201242%20image_gc_manager.go%3A300%5D%20%5BimageGCManager%5D%3A%20Disk%20usage%20on%20image%20filesystem%20is%20at%2085%25%20which%20is%20over%20the%20high%20threshold%20(85%25).%20Trying%20to%20free%205214368563%20bytes%20down%20to%20the%20low%20threshold%20(80%25).%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin%3A%22%200in%3D%22%22%200in%3D%22%22%200in%3D%22%22%2027.0pt%3D%22%22%3E%3CSPAN%20style%3D%22%5C%26quot%3Bfont-size%3A%22%209.0pt%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin%3A%22%200in%3D%22%22%200in%3D%22%22%200in%3D%22%22%2027.0pt%3D%22%22%3E%3CSPAN%20style%3D%22%5C%26quot%3Bfont-size%3A%22%209.0pt%3D%22%22%3Ekubelet%5B1242%5D%3A%20I1205%2002%3A55%3A10.469831%26nbsp%3B%26nbsp%3B%26nbsp%3B%201242%20eviction_manager.go%3A344%5D%20eviction%20manager%3A%20must%20evict%20pod(s)%20to%20reclaim%20ephemeral-storage%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin%3A%22%200in%3D%22%22%200in%3D%22%22%200in%3D%22%22%2027.0pt%3D%22%22%3E%3CSPAN%20style%3D%22%5C%26quot%3Bfont-size%3A%22%209.0pt%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin%3A%22%200in%3D%22%22%200in%3D%22%22%200in%3D%22%22%2027.0pt%3D%22%22%3E%3CSPAN%20style%3D%22%5C%26quot%3Bfont-size%3A%22%209.0pt%3D%22%22%3Ekubelet%5B1242%5D%3A%20I1205%2002%3A55%3A10.471522%26nbsp%3B%26nbsp%3B%26nbsp%3B%201242%20eviction_manager.go%3A362%5D%20eviction%20manager%3A%20pods%20ranked%20for%20eviction%3A%20sparkhead-0_mssql-cluster(7bb01e5f-2e33-4b72-b8a7-7737010f56b5)%2C%20app1-vqc87_mssql-cluster(21a3a235-dda4-44b0-8943-f1b4aa1aebf3)%2C%20logsdb-0_mssql-cluster(90657763-ffcb-4df3-94c5-7791f4f60c58)%2C%20gateway-0_mssql-cluster(ea099f36-de15-4e2f-aa59-364e21db97cb)%2C%20%3CSTRONG%3Emaster-0%26lt%3B%5C%2FSTRONG%26gt%3B_mssql-cluster(9cef954d-0f2b-4eda-9d14-067214eafd87)%2C%20compute-0-%E2%80%A6%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin%3A%22%200in%3D%22%22%200in%3D%22%22%200in%3D%22%22%2027.0pt%3D%22%22%3E%3CSPAN%20style%3D%22%5C%26quot%3Bfont-size%3A%22%209.0pt%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EIn%20a%20bit%20more%20complicated%20scenario%20all%20pods%20on%20a%20given%20node%20appeared%20to%20have%20been%20paused%20for%20~5%20hours.%26nbsp%3B%20The%20workload%20was%20running%20along%20and%20stalled%20for%20~5%20hours.%26nbsp%3B%20No%20performance%20counters%2C%20no%20query%20cancellations%20honored%2C%20no%20new%20connections%20honored%2C%20current%20connections%20didn%E2%80%99t%20make%20forward%20progress%2C%20no%20new%20log%20entries%20for%20any%20service%20of%20any%20pod%20assigned%20to%20by%20the%20node.%26nbsp%3B%20It%20was%20as%20if%20someone%20put%20the%20node%20into%20sleep%20mode%20for%20~5%20hours.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EUsing%20the%20time%20range%20and%20servicing%20node%20information%20I%20reviewed%20the%20CPU%20metrics%20using%20Grafana%20on%20my%20cluster%3A%26nbsp%3B%20%3CA%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fmybdcclusterip%3A30777%2Fgrafana%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnoopener%20nofollow%20noopener%20noreferrer%22%20nofollow%3D%22%22%20noreferrer%3D%22%22%3Ehttps%3A%2F%2Fmybdcclusterip%3A30777%2Fgrafana%26lt%3B%5C%2FA%26gt%3B%26nbsp%3B%26nbsp%3B%20(You%20can%20use%20%3CI%3Ekubectl%20cluster-info%26lt%3B%5C%2FI%26gt%3B%20or%20%3CI%3Eazdata%20list%20endpoints%26lt%3B%5C%2FI%26gt%3B%20to%20acquire%20the%20cluster%20ip%20address.)%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FI%3E%3C%2FI%3E%3C%2FA%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EThe%20metrics%20collection%20showed%20the%20~5%20hour%20gap%20and%20the%20more%20troubleshooting%20I%20did%20the%20more%20it%20was%20clear%20that%20every%20pod%20on%20the%20same%20node%20encountered%20the%20same%20paused%20behavior.%26lt%3B%5C%2FP%26gt%3B%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F346786i7C8DE8BBAC14DA5F%2Fimage-dimensions%2F858x148%3Fv%3Dv2%5C%26quot%3B%22%20width%3D%22%5C%26quot%3B858%5C%26quot%3B%22%20height%3D%22%5C%26quot%3B148%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22BobDorr_0-1644424186989.png%22%20alt%3D%22%5C%26quot%3BBobDorr_0-1644424186989.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EUsing%20the%20%3CI%3Ekubectl%20get%20pods%26lt%3B%5C%2FI%26gt%3B%20and%20%3CI%3Eget%20nodes%26lt%3B%5C%2FI%26gt%3B%20I%20determined%20the%20target%20node%20and%20studied%20the%20time%20range%20of%20events%20present%20in%20the%20journal.%26nbsp%3B%20The%20journal%20of%20the%20node%20is%20what%20told%20the%20real%20story%20and%20allowed%20me%20to%20understand%20the%20behavior.%26nbsp%3B%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FI%3E%3C%2FI%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EThe%20journal%20shows%20the%20operating%20system%20on%20the%20node%20(host%20the%20pods%20in%20question)%20encountered%20an%20issue.%26nbsp%3B%20The%20issue%20was%20a%20stalled%20scheduler%20at%20the%20OS%20level%20preventing%20all%20threads%20in%20all%20pods%20assigned%20to%20the%20node%20from%20making%20forward%20progress.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin%3A%22%200in%3D%22%22%200in%3D%22%22%200in%3D%22%22%20.75in%3D%22%22%3ENov%2001%2023%3A47%3A46%20adlghl-3%20kernel%3A%20INFO%3A%20task%20khugepaged%3A47%20blocked%20for%20more%20than%20120%20seconds.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin%3A%22%200in%3D%22%22%200in%3D%22%22%200in%3D%22%22%20.75in%3D%22%22%3ENov%2001%2023%3A47%3A46%20adlghl-3%20kernel%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Not%20tainted%204.4.0-165-generic%20%23193-Ubuntu%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin%3A%22%200in%3D%22%22%200in%3D%22%22%200in%3D%22%22%20.75in%3D%22%22%3ENov%2001%2023%3A47%3A46%20adlghl-3%20kernel%3A%20%22echo%200%20%26gt%3B%20%2Fproc%2Fsys%2Fkernel%2F%3CSTRONG%3Ehung_task_timeout_secs%26lt%3B%5C%2FSTRONG%26gt%3B%22%20disables%20this%20message.%3CBR%20%2F%3E%3CBR%20%2F%3E%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EMessages%20like%20the%20one%20above%20repeated%20for%20~5%20hours%20until%20the%20oom%20killer%20a%20process.%26nbsp%3B%20Then%20the%20system%20came%20back%20to%20life%20as%20if%20the%20resume%20button%20had%20been%20pushed.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%20style%3D%22%5C%26quot%3Bmargin%3A%22%200in%3D%22%22%200in%3D%22%22%200in%3D%22%22%20.75in%3D%22%22%3ENov%2002%2004%3A32%3A20%20adlghl-3%20kernel%3A%20monkey%3A%20wrk%2F0%20%3CSTRONG%3Einvoked%20oom-killer%26lt%3B%5C%2FSTRONG%26gt%3B%3A%20gfp_mask%3D0x24201ca%2C%20order%3D0%2C%20oom_score_adj%3D998%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3E%3CSTRONG%3E%3CU%3ERecommendation%26lt%3B%5C%2FU%26gt%3B%26lt%3B%5C%2FSTRONG%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3BMsoNormal%5C%26quot%3B%22%3EFor%20a%20SQL%20Server%20Big-Data-Cluster%20(BDC)%2C%20or%20any%20K8%E2%80%99s%20cluster%2C%20deploy%20a%20solution%20that%20collects%20the%20journal%20and%20other%20relevant%20metrics%20from%20the%20servicing%20nodes.%26nbsp%3B%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%26lt%3B%5C%2FDIV%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-TEASER%20id%3D%22%5C%26quot%3Blingo-teaser-3144244%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3C%2FLINGO-TEASER%3E%3C%2FP%3E%3CP%3ESQL%20Server%20Bing%20Data%20Cluster%2C%20the%20node%E2%80%99s%20Journal%20can%20be%20your%20best%20friend.%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-teaser%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3144244%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3EBobSQL%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E
Co-Authors
Version history
Last update:
‎Feb 09 2022 08:30 AM
Updated by: