Skip to content

Commit

Permalink
bug fix: fix connection reset by peer log triggered by consul health
Browse files Browse the repository at this point in the history
check
  • Loading branch information
Vonng committed Apr 2, 2021
1 parent fdf8863 commit a736898
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion roles/postgres/templates/svc-postgres.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"version": "{{ pg_version }}"
},
"check": {
"tcp": "127.0.0.1:{{ pg_port }}",
"args": ["{{ pg_bin_dir }}/pg_isready", "-p", "{{ pg_port }}", "-U", "{{ pg_monitor_username|default('dbuser_monitor') }}"],
"interval": "15s",
"timeout": "1s"
}
Expand Down
5 changes: 0 additions & 5 deletions roles/service/templates/svc-cluster-role.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
"service": "{{ pg_cluster }}-{{ service.name }}",
"cluster": "{{ pg_cluster }}",
"version": "{{ pg_version }}"
},
"check": {
"tcp": "127.0.0.1:{{ service.src_port }}",
"interval": "15s",
"timeout": "1s"
}
}
}

0 comments on commit a736898

Please sign in to comment.