I have knowledge since FreeBSD since 5.x, mostly on bare metal, but also with virtualized FreeBSD guests (on my own hardware). Managed to fix almost all problems, but this one is driving me mad.
Now, I have a FreeBSD guest 12.1-p3 with two jails. The host is with an external VPS-company and it's UNIX/KVM-based. VirtIO.
The jails run Apache2.4/PHP-FPM/MySQL. Since december 2019, once a day but not a fixed time of the day, the network loses connection to one of the jails (but not both). I monitor the jails via the hosting company on the ssh, 80 and 443 ports every 60 seconds. The network drop never exceeds 120 seconds.
I also monitor the FreeBSD host itself on it's ssh port; that one never goes away.
I have absolutely nothing in the logs (messages, php, etc.) that indicates a problem. The hosting company also can't find anything.
I think I tried for the last six weeks all the usual suspects, but now I have absolutely no idea where to investigate further or if it's maybe a problem in the routing / something in the virtualization platform of the provider.
I know jails inside a virtualized system maybe is a little bit exotic, but then I would also like to understand better why exactly that's a problem, because I always understood / thought that a jail is not a completely extra virtualization layer.
Much appreciated for any hints...
Now, I have a FreeBSD guest 12.1-p3 with two jails. The host is with an external VPS-company and it's UNIX/KVM-based. VirtIO.
The jails run Apache2.4/PHP-FPM/MySQL. Since december 2019, once a day but not a fixed time of the day, the network loses connection to one of the jails (but not both). I monitor the jails via the hosting company on the ssh, 80 and 443 ports every 60 seconds. The network drop never exceeds 120 seconds.
I also monitor the FreeBSD host itself on it's ssh port; that one never goes away.
I have absolutely nothing in the logs (messages, php, etc.) that indicates a problem. The hosting company also can't find anything.
Code:
rc.conf:
ifconfig_vtnet0="inet 37.97.a.x netmask 255.255.255.0 -rxcsum -rxcsum6 -txcsum -txcsum6 -lro -tso -vlanhwtso"
ifconfig_vtnet0_alias0="inet 37.97.a.y netmask 255.255.255.255"
ifconfig_vtnet0_alias1="inet 37.97.b.z netmask 255.255.255.255"
defaultrouter="37.97.a.1"
(tried it also without the whole -rxcsum -rxcsum6 -txcsum -txcsum6 -lro -tso -vlanhwtso)
sysctl:
net.inet.tcp.tso=0
I think I tried for the last six weeks all the usual suspects, but now I have absolutely no idea where to investigate further or if it's maybe a problem in the routing / something in the virtualization platform of the provider.
I know jails inside a virtualized system maybe is a little bit exotic, but then I would also like to understand better why exactly that's a problem, because I always understood / thought that a jail is not a completely extra virtualization layer.
Much appreciated for any hints...