File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -103,5 +103,5 @@ sudo systemd-run --unit "${VIRTUAL_CLUSTER_LABEL}" \
103
103
-p " MemoryMax=${MEMORY_MAX} " \
104
104
-p LimitCORE=infinity \
105
105
-p " LimitNOFILE=${NUM_FILES_LIMIT} " \
106
- ${AUTO_RESTART: +-p Restart=always -p RestartSec=5s} \
106
+ ${AUTO_RESTART: +-p Restart=always -p RestartSec=5s -p StartLimitIntervalSec=60s -p StartLimitBurst=3 } \
107
107
bash " ${0} " run
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ echo bar $HOME
20
20
MEMORY_MAX=81%
21
21
NUM_FILES_LIMIT=0
22
22
VIRTUAL_CLUSTER_LABEL=cockroach-system
23
+
24
+
23
25
ARGS=(
24
26
start
25
27
--log
@@ -103,6 +105,7 @@ sudo systemd-run --unit "${VIRTUAL_CLUSTER_LABEL}" \
103
105
-p "MemoryMax=${MEMORY_MAX}" \
104
106
-p LimitCORE=infinity \
105
107
-p "LimitNOFILE=${NUM_FILES_LIMIT}" \
108
+ ${AUTO_RESTART:+-p Restart=always -p RestartSec=5s -p StartLimitIntervalSec=60s -p StartLimitBurst=3} \
106
109
bash "${0}" run
107
110
----
108
111
----
You can’t perform that action at this time.
0 commit comments