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