From 8847162ef894b547ae41fb2bfcd46fe34dd4f3c1 Mon Sep 17 00:00:00 2001 From: dinama Date: Mon, 1 Feb 2021 19:07:24 +0300 Subject: [PATCH] +fix health_check demo config (#537) --- Jenkinsfile | 2 +- config/sys.config | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ae58783..36e4f4a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,5 +18,5 @@ build('hellgate', 'docker-host', finalHook) { pipeErlangService = load("${env.JENKINS_LIB}/pipeErlangService.groovy") } - pipeErlangService.runPipe(true, true, 'test') + pipeErlangService.runPipe(true, false, 'test') } diff --git a/config/sys.config b/config/sys.config index 0623a44..60f6368 100644 --- a/config/sys.config +++ b/config/sys.config @@ -61,12 +61,12 @@ transport_opts => #{ } }}, - {health_checkers, [ - {erl_health, disk , ["/", 99] }, - {erl_health, cg_memory, [99] }, - {erl_health, service , [<<"hellgate">>]}, - {dmt_client, health_check, [] } - ]}, + {health_check, #{ + disk => {erl_health, disk , ["/", 99]}, + memory => {erl_health, cg_memory, [70]}, + service => {erl_health, service , [<<"{{ service_name }}">>]}, + dmt_client => {dmt_client, health_check, [<<"hellgate">>]} + }}, {payment_retry_policy, #{ processed => {exponential, {max_total_timeout, 30}, 2, 1}, captured => no_retry,