mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Change default port for the health check to 8008.
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ def main():
|
||||
governor = Governor(config)
|
||||
|
||||
# Start the http_server to serve a simple healthcheck
|
||||
http_server = getHTTPServer(governor.postgresql, http_port=config.get('healtcheck_port', 8080), listen_address='0.0.0.0')
|
||||
http_server = getHTTPServer(governor.postgresql, http_port=config.get('healtcheck_port', 8008), listen_address='0.0.0.0')
|
||||
http_thread = threading.Thread(target=http_server.serve_forever, args=())
|
||||
http_thread.daemon = True
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
loop_wait: 10
|
||||
aws_use_host_address: "on"
|
||||
healthcheck_port: 8080
|
||||
healthcheck_port: 8008
|
||||
etcd:
|
||||
scope: batman
|
||||
ttl: 30
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
loop_wait: 10
|
||||
aws_use_host_address: "on"
|
||||
healthcheck_port: 8081
|
||||
healthcheck_port: 8009
|
||||
etcd:
|
||||
scope: batman
|
||||
ttl: 30
|
||||
|
||||
Reference in New Issue
Block a user