Skip to content

Commit

Permalink
[psud]: Fix for psud crash because of database connection reset (#3647)
Browse files Browse the repository at this point in the history
When database service is down, psud daemon throws an error because of DB connection reset, this because pmon service has no dependency with database service.

To resolve this issue, added database service dependency to the pmon service.

Also, increased the net.core.somaxconn value to 512 to solve the connection failure on the scaled setup.
  • Loading branch information
Kalimuthu-Velappan authored and lguohan committed Jan 10, 2020
1 parent aa67921 commit 6dcc08e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,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
Expand Down
4 changes: 2 additions & 2 deletions files/build_templates/pmon.service.j2
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down

0 comments on commit 6dcc08e

Please sign in to comment.