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>
}
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
}