Merge "Colorado: Rebase git submodules on stable/mitaka."
[armband.git] / patches / fuel-plugin-opendaylight / 0002-Increase-open-file-limit-for-OpenDaylight.patch
1 From: Stanislaw Kardach <stanislaw.kardach@cavium.com>
2 Date: Sat, 14 May 2016 17:24:48 -0700
3 Subject: [PATCH] Increase open file limit for OpenDaylight
4
5 Upstart scripts by default do not run scripts in a shell which results
6 in limits from `/etc/security/limits.conf` not be taken into account
7 and results in the default value (4096) to be taken. This may prove
8 problematic for OpenDaylight during initialization. On Cavium ThunderX
9 we have noticed OpenFlow controller initialization failures caused by
10 hitting this limit.
11 OPNFV is increasing the `nofile` limit to 112640 for OpenStack services
12 which is why I'm using this value here.
13
14 Signed-off-by: Stanislaw Kardach <stanislaw.kardach@cavium.com>
15 ---
16  odl_package/ubuntu/opendaylight | 2 +-
17  1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/odl_package/ubuntu/opendaylight b/odl_package/ubuntu/opendaylight
20 index 6e5ff7b..52a3159 100644
21 --- a/odl_package/ubuntu/opendaylight
22 +++ b/odl_package/ubuntu/opendaylight
23 @@ -14,7 +14,7 @@ env JAVA_OPTS="-server -Xms256M -Xmx2048M -XX:+UnlockDiagnosticVMOptions -XX:+Un
24  env OPTS="-Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true"
25  env MAIN="org.apache.karaf.main.Main"
26  
27 -
28 +limit nofile 102400 112640
29  chdir /opt/opendaylight
30  
31  script