diff --git a/CHANGELOG.md b/CHANGELOG.md index 9be95ab..6e7f502 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # 更新日志 +v1.7.2 +--- +CHANGE: 为`nocache`版本加入测试性的故障熔断机制 + v1.7.1 --- - CHANGE: 更新Go版本至1.23.3 diff --git a/VERSION b/VERSION index 081af9a..0a182f2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.7.1 \ No newline at end of file +1.7.2 \ No newline at end of file diff --git a/docker/dockerfile/nocache/config.toml b/docker/dockerfile/nocache/config.toml index f28b683..66a16ca 100644 --- a/docker/dockerfile/nocache/config.toml +++ b/docker/dockerfile/nocache/config.toml @@ -1,6 +1,6 @@ [server] host = "0.0.0.0" -port = 80 +port = 80 #修改此配置会导致容器异常 sizeLimit = 125 # MB [pages] diff --git a/docker/dockerfile/nocache/init.sh b/docker/dockerfile/nocache/init.sh index 7820e43..5d0c53f 100644 --- a/docker/dockerfile/nocache/init.sh +++ b/docker/dockerfile/nocache/init.sh @@ -16,6 +16,10 @@ fi /data/${APPLICATION}/${APPLICATION} -cfg /data/${APPLICATION}/config/config.toml > /data/${APPLICATION}/log/run.log 2>&1 & -while true; do - sleep 1 +sleep 30 + +while [[ true ]]; do + # Failure Circuit Breaker + curl -f -max-time 5 -retry 3 http://localhost:80/api/healthcheck || exit 1 + sleep 120 done \ No newline at end of file