Commit Graph
14 Commits
Author SHA1 Message Date
Feike Steenbergen a56b346295 Hardened the health checks and implemented a real status page.
For the postgresql helper, hardened the code to get "the" cursor of the postgresql instance.
For the statuspage, a small status json is returned.
To find out what status a PostgreSQL cluster is in we use the cursor (instead of the provided query() function), as the query function does some retrying etc. For the healthcheck we want to simple provide an answer to a simple query, if we have to reconnect, we are not *that* healthy anyway.

Dropped catching exceptions in the do_GET block, as the HTTPServer will do that nicely for us anyway.
2015-05-12 11:58:47 +02:00
Oleksii Kliukin 39667f6e92 allow connections for all hosts and ports, not just postgres. 2015-04-30 12:11:46 +02:00
Oleksii Kliukin 221ba39c0f Remove WITH invokations from CREATE ROLE. 2015-04-30 12:04:57 +02:00
Oleksii Kliukin e8345e5e90 fix a typo. 2015-04-30 11:56:13 +02:00
Oleksii Kliukin 10dbf990f1 Allow md5 connections from outside and create connection roles.
Create a superuser role with a given name and password (or change
the postgres role if the name is not given). Also, create an admin
role with the name and the password provided. The admin role has
CREATEDB and CREATEROLE permisssions, effectively making it the
most powerful role after the superuser.
2015-04-30 10:58:07 +02:00
Oleksii Kliukin 8184efbf45 Add an option to use AWS instance address in a PostgreSQL connection string.
When PostgreSQL is running inside the docker container, it should provide
the address of the host it's running on and not the address from inside
of the container to the outside world.
2015-04-29 12:54:29 +02:00
Oleksii Kliukin c3ea0ebccd use samehost instead of the host's ip address. 2015-04-24 18:06:20 +02:00
Oleksii Kliukin 60db8d6adb Allow connections to the host's own IP address from the host itself. 2015-04-24 16:23:38 +02:00
Christopher Grim b979c12c9d Use timestamped logs 2015-04-03 17:27:47 -04:00
Anthony Scalisi f167bbaddc python tweaks 2015-03-26 12:35:20 -07:00
Christopher Winslett 289620746b remove postgresql pid 2015-03-19 09:08:41 -07:00
Christopher Winslett 0d75152d54 make healthiest node work 2015-03-16 09:47:52 -07:00
Christopher Winslett 450b9912d7 clean up some debugging statements 2015-03-16 08:30:15 -07:00
Christopher Winslett 3749883328 first commit 2015-03-15 23:16:48 -07:00