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}" \
103103 -p " MemoryMax=${MEMORY_MAX} " \
104104 -p LimitCORE=infinity \
105105 -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 } \
107107 bash " ${0} " run
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ echo bar $HOME
2020MEMORY_MAX=81%
2121NUM_FILES_LIMIT=0
2222VIRTUAL_CLUSTER_LABEL=cockroach-system
23+
24+
2325ARGS=(
2426start
2527--log
@@ -103,6 +105,7 @@ sudo systemd-run --unit "${VIRTUAL_CLUSTER_LABEL}" \
103105 -p "MemoryMax=${MEMORY_MAX}" \
104106 -p LimitCORE=infinity \
105107 -p "LimitNOFILE=${NUM_FILES_LIMIT}" \
108+ ${AUTO_RESTART:+-p Restart=always -p RestartSec=5s -p StartLimitIntervalSec=60s -p StartLimitBurst=3} \
106109 bash "${0}" run
107110----
108111----
You can’t perform that action at this time.
0 commit comments