From 1a0035e4f631f57173dee062e4ac8dd5dd097edb Mon Sep 17 00:00:00 2001 From: Kalimuthu Velappan Date: Wed, 9 Oct 2019 02:28:31 -0700 Subject: [PATCH] Fix for psud crash because of database connection reset --- build_debian.sh | 3 +++ files/build_templates/pmon.service.j2 | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build_debian.sh b/build_debian.sh index c1a13d1ae7d3..fd98922a4450 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -388,6 +388,9 @@ set /files/etc/sysctl.conf/net.ipv4.udp_l3mdev_accept 1 set /files/etc/sysctl.conf/net.core.rmem_max 2097152 set /files/etc/sysctl.conf/net.core.wmem_max 2097152 + +set /files/etc/sysctl.conf/net.core.somaxconn 512 + " -r $FILESYSTEM_ROOT if [[ $CONFIGURED_ARCH == amd64 ]]; then diff --git a/files/build_templates/pmon.service.j2 b/files/build_templates/pmon.service.j2 index 9c4226256818..60024fffc30e 100644 --- a/files/build_templates/pmon.service.j2 +++ b/files/build_templates/pmon.service.j2 @@ -1,7 +1,7 @@ [Unit] Description=Platform monitor container -Requires=updategraph.service -After=updategraph.service +Requires=database.service updategraph.service +After=database.service updategraph.service {% if sonic_asic_platform == 'mellanox' %} After=syncd.service {% endif %}