Merge branch '17830-fix-rails-request_id-logging'
[arvados.git] / services / keepstore / keepstore.service
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 [Unit]
6 Description=Arvados Keep Storage Daemon
7 Documentation=https://doc.arvados.org/
8 After=network.target
9
10 # systemd>=230 (debian:9) obeys StartLimitIntervalSec in the [Unit] section
11 StartLimitIntervalSec=0
12
13 [Service]
14 # trigger Go garbage collection when the ratio of freshly allocated data to live data
15 # remaining after the previous collection reaches 10% rather than the default 100%, so
16 # that Keepstore's memory use is tightly coupled to the number of buffers it is
17 # configured to use.
18 Environment=GOGC=10
19 Type=notify
20 ExecStart=/usr/bin/keepstore
21 # Set a reasonable default for the open file limit
22 LimitNOFILE=65536
23 Restart=always
24 RestartSec=1
25
26 # systemd<=219 (centos:7, debian:8, ubuntu:trusty) obeys StartLimitInterval in the [Service] section
27 StartLimitInterval=0
28
29 [Install]
30 WantedBy=multi-user.target