Couch 3.1 restarts on all nodes but only 2 come back online sportically
Description
We are having issues with all our Production CloudDB clusters running Ubuntu 18.04 we have about 14 clusters of 3 nodes each so a total of 52 hosted in Azure. Since last Friday we saw that the nodes were falling in traffic & CPU (suspect losing connections or something was restarting) then they would ramp up but only 2 out of the 3 nodes would rejoin the cluster. Although we saw sporadic issues in the days leading up to it but also a few months prior but they were recovering faster without outages. We suspect something has changed recently but are unsure what exactly, we did note a new kernel was installed a few weeks prior.
Needless to say this is causing great hardship to the team with a person monitoring the servers 24/7 and manually restarting them.
Problem start time id say 7:30Pm on last Friday the 2nd as no one was around to restart them, it lasted a good hour.
Steps to Reproduce
Expected Behaviour
Your Environment
- CouchDB version used:
- Browser name and version:
- Operating system and version:
Additional Context

Any help would be much appreciated, some of the clusters are 1-4 months old, the others a few years, but it seems to be effecting all of them... its really quite perplexing,.. we havnt had too much change interims of load, and we also doubled the CPUS to 8 cores over the last few weeks to cope with XMas, which is even stranger.
here is a screen shot of some more metrics, notice the network sockets increase until
it maxes out at 5000
image
Any interesting in your log files, when the issues are rising?
we suspect that the new kernel was buggy, we doubled the size of the machines a few days prior or when it started happening, we believe this kicked in the new kernal install and then we had issues. There was a new one that fixed some socket/tcp race conditions Friday we installed this on all the clusters and it looks like the issue has gone away.. luckily.... So i put it down to OS Kernal update for now, or Santa.
Question 1: What was the cause of instability? Answer: Bad Ubuntu kernel (Version: 5.4.0-1095.101~18.04.1)
Question 2: Why it all started Friday, 2nd Dec? Answer: This is when we started upsizing VMs in anticipation of holidays load
Question 3: How did the instability crawl in? Answer: The bad kernel was downloaded around 18th of Nov. However Ubuntu requires VM to reboot for the new kernel to kick in. That reboot happened on 2nd, 3rd and 4th of Dec (Fri, Sat, Sun)
Question 3: What was the fix? Answer: Ubuntu issued a fixed kernel 9th Dec (Friday). VMs were patched manually (with exception of NZ and MISC clusters ) between 3 am and 4:30 am today
https://www.ubuntuupdates.org/package/core/bionic/main/updates/linux-azure-5.4
Closing this for now, if happen again, please re-open this and put a paste from your logs.