Skip to content

Commit cf8a825

Browse files
committed
fix(user-data): use LimitNOFILE for etcd service
1 parent 16ef6b6 commit cf8a825

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

contrib/coreos/user-data.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ coreos:
2020
units:
2121
- name: etcd.service
2222
command: start
23+
content: |
24+
[Unit]
25+
Description=etcd
26+
[Service]
27+
User=etcd
28+
PermissionsStartOnly=true
29+
Environment=ETCD_DATA_DIR=/var/lib/etcd
30+
Environment=ETCD_NAME=%m
31+
ExecStart=/usr/bin/etcd
32+
Restart=always
33+
RestartSec=10s
34+
LimitNOFILE=40000
2335
- name: fleet.service
2436
command: start
2537
- name: stop-update-engine.service

0 commit comments

Comments
 (0)