From: Han Zhou <[email protected]> Increase the limit on the number of open file descriptors, because SB DB may connect to large number of chassises.
Signed-off-by: Han Zhou <[email protected]> --- ovn/utilities/ovn-ctl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ovn/utilities/ovn-ctl b/ovn/utilities/ovn-ctl index cca5fac..d348b47 100755 --- a/ovn/utilities/ovn-ctl +++ b/ovn/utilities/ovn-ctl @@ -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 } -- 2.1.0 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
