From 7f8712a2fbd621f058a2ebf40ac6e4be49d7ca3e Mon Sep 17 00:00:00 2001
From: Roman Tsisyk <roman@tarantool.org>
Date: Thu, 25 May 2017 11:14:44 +0300
Subject: [PATCH] systemd: increase default LimitNOFILE for Vinyl

Set LimitNOFILE to 65535 to provide the best Vinyl experience
out of the box.

Closes #2465
---
 debian/control                   | 2 +-
 extra/dist/tarantool@.service.in | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 86777cef9a..742a7b51b5 100644
--- a/debian/control
+++ b/debian/control
@@ -53,7 +53,7 @@ Package: tarantool
 Architecture: i386 amd64 armhf arm64
 Priority: optional
 Depends: ${shlibs:Depends}, ${misc:Depends}, netbase, binutils, libgomp1,
- libyaml-0-2, openssl, tarantool-common (>= 1.7.3.716)
+ libyaml-0-2, openssl, tarantool-common (>= 1.7.4.47)
 Replaces: tarantool-lts
 Conflicts: tarantool-lts-modules,
  tarantool-lts-postgresql-module,
diff --git a/extra/dist/tarantool@.service.in b/extra/dist/tarantool@.service.in
index 6905e3bf0d..948e533b51 100644
--- a/extra/dist/tarantool@.service.in
+++ b/extra/dist/tarantool@.service.in
@@ -5,7 +5,7 @@
 # place a drop-in file name.conf there that only changes the specific
 # settings one is interested in.
 #
-# For example, if you want to increase the maximum number of open files
+# For example, if you want to change the maximum number of open files
 # for example.lua instance, you need to perform the following steps:
 #
 # 1. Create directory /etc/systemd/system/tarantool@example.service.d/ with
@@ -44,6 +44,8 @@ User=@TARANTOOL_USER@
 Group=@TARANTOOL_USER@
 # Disable OOM killer
 OOMScoreAdjust=-1000
+# Increase fd limit for Vinyl
+LimitNOFILE=65535
 
 ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/tarantoolctl start %I
 ExecStop=@CMAKE_INSTALL_FULL_BINDIR@/tarantoolctl stop %I
-- 
GitLab