18216: Move keepstore into arvados-server binary.
[arvados.git] / cmd / arvados-server / 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 AssertPathExists=/etc/arvados/config.yml
10
11 # systemd>=230 (debian:9) obeys StartLimitIntervalSec in the [Unit] section
12 StartLimitIntervalSec=0
13
14 [Service]
15 # trigger Go garbage collection when the ratio of freshly allocated data to live data
16 # remaining after the previous collection reaches 10% rather than the default 100%, so
17 # that Keepstore's memory use is tightly coupled to the number of buffers it is
18 # configured to use.
19 Environment=GOGC=10
20 Type=notify
21 ExecStart=/usr/bin/keepstore
22 # Set a reasonable default for the open file limit
23 LimitNOFILE=65536
24 Restart=always
25 RestartSec=1
26
27 # systemd<=219 (centos:7, debian:8, ubuntu:trusty) obeys StartLimitInterval in the [Service] section
28 StartLimitInterval=0
29
30 [Install]
31 WantedBy=multi-user.target