Skip to content

Commit 27d820d

Browse files
committed
Merge pull request #3311 from mboersma/etcd-file-handles
Use LimitNOFILE for etcd service
2 parents d1cdd57 + cf8a825 commit 27d820d

2 files changed

Lines changed: 20 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

tests/bin/test-setup.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@ function dump_logs {
134134
get_logs deis-router@3 deis-store-volume deis-store-volume-3
135135
get_logs deis-store-gateway
136136

137+
# get debug-etcd logs
138+
fleetctl -strict-host-key-checking=false ssh deis-router@1 journalctl --no-pager -u etcd \
139+
> $FAILED_LOGS_DIR/debug-etcd-1.log
140+
fleetctl -strict-host-key-checking=false ssh deis-router@2 journalctl --no-pager -u etcd \
141+
> $FAILED_LOGS_DIR/debug-etcd-2.log
142+
fleetctl -strict-host-key-checking=false ssh deis-router@3 journalctl --no-pager -u etcd \
143+
> $FAILED_LOGS_DIR/debug-etcd-3.log
144+
137145
# tarball logs
138146
BUCKET=jenkins-failure-logs
139147
FILENAME=deis-test-failure-$TIMESTAMP.tar.gz

0 commit comments

Comments
 (0)