Skip to content

Commit f502f68

Browse files
committed
Remove memlock suggestion from systemd service
The systemd service file that ships with Elasticsearch installs on systemd-based systems contains a suggestion for setting LimitMEMLOCK if the user wants to enable bootstrap.memory_lock. However, this setting this in the installed service file goes against best practices for working with systemd, and goes against our existing documentation for how to set this. Therefore, we should not have this suggestion in the service file otherwise users might be led to think they should edit it there. Relates #25979
1 parent fdc1a86 commit f502f68

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

distribution/src/main/packaging/systemd/elasticsearch.service

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ LimitNPROC=2048
4444
# Specifies the maximum file size
4545
LimitFSIZE=infinity
4646

47-
# Specifies the maximum number of bytes of memory that may be locked into RAM
48-
# Set to "infinity" if you use the 'bootstrap.memory_lock: true' option
49-
# in elasticsearch.yml and 'MAX_LOCKED_MEMORY=unlimited' in ${path.env}
50-
#LimitMEMLOCK=infinity
51-
5247
# Disable timeout logic and wait until process is stopped
5348
TimeoutStopSec=0
5449

0 commit comments

Comments
 (0)