]> git.proxmox.com Git - mirror_ovs.git/commitdiff
ovn-ctl: Set max open files limit for SB DB.
authorHan Zhou <hzhou8@ebay.com>
Tue, 14 May 2019 22:15:29 +0000 (15:15 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 24 May 2019 20:11:03 +0000 (13:11 -0700)
Increase the limit on the number of open file descriptors, because
SB DB may connect to large number of chassises.

Acked-by: aginwala <aginwala@ebay.com>
Signed-off-by: Han Zhou <hzhou8@ebay.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovn/utilities/ovn-ctl

index cca5facdcf55ca7ffa5a52f213be8746038e777a..d348b47f6e2c2504e00776dfa51a1d82b82a3eb0 100755 (executable)
@@ -236,6 +236,14 @@ start_nb_ovsdb() {
 }
 
 start_sb_ovsdb() {
+    # Increase the limit on the number of open file descriptors, because
+    # SB DB may connect to large number of chassises, on top of connections
+    # for cluster members, northd, and serveral local unix sockets.
+    MAXFD=8192
+    if [ $(ulimit -n) -lt $MAXFD ]; then
+        ulimit -n $MAXFD
+    fi
+
     start_ovsdb__ SB sb OVN_Southbound SB_Global
 }