Project: Stolon (App Definition and Development / Database)
File: CHANGELOG.md

Support PostgreSQL 13 () Add configurable store timeouts () and changes. A big Thank You to everybody who contributed to this release! k8s store: patch pod annotations instead of doing a full update () Make proxyCheckInterval and proxyTimeout configurable () Make DefaultSyncTimeout infinite () Document SyncTimeout cluster spec option () and changes. A big Thank You to everybody who contributed to this release! Support PostgreSQL 12 () Added wal-g examples () Stolonctl spec: don't show null clusterspec options () Prevent stolonctl init with empty clusterspec file () Do pg_rewind only against primary instance () and changes. A big Thank You to everybody who contributed to this release! Add sentinel prometheus metrics () Store only the last 2 postgres timeline histories to not exceed the max value size of the underlying store () Add keeper prometheus metrics () stolonctl status can output status in json format () Enable all k8s client auth plugins ( ) It's now possible to define the advertise address and port in stolon keeper () A new `stolonctl register` command was added to set service discovery information about keepers to an external service (currently only consul) () Ability to auto restart an instance when updating a postgres parameter that requries a restart () Add stolon clusterdata read/write subcommands () Enable verbose e progress logging for pg_basebackup () Implement timeouts for kubernetes api calls () Avoid unneeded postgres instance reloads () Allow special characters in pg-su-username () Fix failover process if a keeper has filesystem errors () postgres: use go database/sql context functions () Use go database/sql context functions () Fix hanging sentinels () and changes. The `stolonctl clusterdata` command has been split into two subcommands: `stolonctl clusterdata read` which will be used to read the current clusterdata. `stolonctl clusterdata write` which will be used to write the new clusterdata into the new store. A big Thank You to everybody who contributed to this release: Anton Markelov (@strangeman) Arunvel Sriram (@arunvelsriram) Aswin Karthik (@aswinkarthik) Ben Wheatley (@benwh) David Eichin (@daMupfel) Dinesh B (@dineshba) Don Bowman (@donbowman) Harry Maclean (@hmac) Krishnaswamy Subramanian (@jskswamy) Lawrence Jones (@lawrencejones) Milyutin Maksim (@maksm90) Mosab Ibrahim (@mos3abof) Nicolas Juhel (@nabbar) Prabhu Jayakumar (@prabhu43) Add a `stolonctl` command to force fail a keeper () Overcome PostgreSQL synchronous replication limitation that could cause lost transactions under some events () Users can now define `archiveRecoverySettings` in the cluster spec of a standby cluster. One of the possible use cases is to feed the standby cluster only with archived logs without streaming replication. (See Upgrade Notes) () Keeper: remove trailing new lines from provided passwords () Sort keepers addresses in `pg_hba.conf` to avoid unneeded postgres instance reloads () Set `recoverytargetaction` to promote when using recovery target settings () Fixed wrong listen address used in

when `SUReplAccessStrict` mode was enabled () and bug fixes and documentation improvements. Thanks to everybody who contributed to this release. The clusterspec `standbySettings` option as been replaced by the `standbyConfig` option. Internally it can contain two fields `standbySettings` and `archiveRecoverySettings` (see the clusterspec doc with the descriptors of this new option). If you're updating a standby cluster, BEFORE starting it you should update, using `stolonctl`, the clusterspec with the new `standbyConfig` option. Detect and report when keeper persistent data dir is not the expected one (usually due to wrong configuration, non persistent storage etc...) () Support PostgresSQL 11 (beta) () Replication slots declared in the clusterspec `additionalMasterReplicationSlots` option will now be prefixed with the `stolon_` string to let users be able to manually create/drop custom replication slots (See Upgrade Notes) () fix wrong address in pg_hba.conf when clusterspec `defaultSUReplAccessMode` is `strict` () and bug fixes and documentation improvements. Thanks to everybody who contributed to this release: Alexandre Assouad, Lothar Gesslein, @nseyvet Replication slots declared in the clusterspec `additionalMasterReplicationSlots` option will now be prefixed with the `stolon` string to let users be able to manually create/drop custom replication slots (they shouldn't start with `stolon`). Users of these feature should upgrade all the references to these replication slots adding the `stolon_` prefix. In the k8s store backend, stolon components discovery now uses the `component` label instead of the `app` label (See Upgrade Notes) () Improved docker swarm examples to resemble the k8s one () If the user enabled ssl/tls use it also for replication/pg_rewind connections () Remove final newline from example base64 password in k8s example () Fixed wrong libkv store election path (See Upgrade Notes) () Fixed a check in synchronous replication that will block future synchronous standbys updates under some circumstances () Fixed atomic writes of postgresql genenerated files () Thanks to everybody who contributed to this release: Bill Helgeson, Niklas Hambchen, Sylvere Richard, Tyler Kellen In the k8s store backend, the label that defines the kind of stolon component has changed from `app` to `component`. When upgrading you should update the various resource descriptors setting the k8s component name (`stolon-keeper`, `stolon-sentinel`, `stolon-proxy`) inside the `component` label instead of the `app` label. When using the etcdv2 store, due to a wrong leader election path introduced in the last release and now fixed, if your sentinel returns an election error like `election loop error {"error": "102: Not a file ...` you should stop all the sentinels and remove the wrong dir using `etcdctl rmdir /stolon/cluster/$STOLONCLUSTER/sentinel-leader` where `$STOLONCLUSTER` should be substituted with the stolon cluster name (remember to set

Initial support for native kubernetes store () Improved sync standby management () Ability to use strict and dynamic hba entries for keeper replication () Ability to define additional replication slots for external clients () Improved wal level selection () Thanks to everybody who contributed to this release: Pierre Alexandre Assouad, Arun Babu Neelicattu, Sergey Kim The logs will be colored only when on a tty or when `--log-color` is provided () Now the store prefix is configurable `--store-prefix` () Fixed keeper missing waits for instance ready () Fixed etcdv3 store wrong get leader timeout causing `stolonctl status` errors () Thanks to everybody who contributed to this release: Pierre Fersing, Dmitry Andreev Added support for etcd v3 api (using --store-backend etcdv3) () Now the stolon-proxy has tcp keepalive enabled by default and provides options for tuning its behavior () Added `removekeeper` command to stolonctl () Added the ability to choose the authentication method for su and replication user (currently one of md5 or trust) () Fixed and improved db startup logic to handle a different pg_ctl start behavior between postgres 9 and 10 () Fixed keeper datadir locking () and bug fixes and documentation improvements. Thanks to everybody who contributed to this release: AmberBee, @emded, Pierre Fersing Added ability to define custom pg_hba.conf entries () Added ability to set Locale, Encoding and DataChecksums when initializing a new pg db cluster () Added stolonctl `clusterdata` command to dump the current clusterdata saved in the store () Detect if a standby cannot sync due to missing wal files on primary () Various improvements to proxy logic () () Added cluster spec option to define additional wal senders () Added various postgresql recovery target settings for point in time recovery () Added `--log-level` argument to stolon commands (deprecating `--debug`) () IPV6 fixes () Handle null values in pgfilesettings view () and bug fixes and documentation improvements Thanks to everybody who contributed to this release: Albert Vaca, @emded, Niklas Hambchen, Tim Heckman This version introduces various interesting new features (like support for upcoming PostgreSQL 10 and standby cluster) and different bug fixes. Support for PostgreSQL 10 () Standby cluster (for multi site disaster recovery and near zero downtime migration) () Old dead keeper removal () On asynchronous clusters elect master only if behind a user defined lag () Docker standalone, swarm and compose examples () and () Fix incorrect parsing of `synchronousstandbynames` when using synchronous replication with two or more synchronous standbys () Fix non atomic writes of local state files () and Thanks to everybody who contributed to this release: Alexander Ermolaev, Dario Nieuwenhuis, Euan Kemp, Ivan Sim, Jasper Siepkes, Niklas Hambchen, Sajal Kayan This version is a big step forward previous releases and provides many new features and a better cluster management. Now the configuration is fully declarative (see documentation)

Ability to create a new cluster starting from a previous backup (point in time recovery) () Wal-e backup/restore example () Better synchronous replication, the user can define a min and a max number of required synchronous standbys and the master will always block waiting for acknowledge by the required sync standbys. Only synchronous standbys will be elected as new master. () Production ready kubernetes examples (just change the persistent volume provider) () To keep an unique managed central configuration, the postgresql parameters can now only be managed only using the cluster specification () When (re)initializing a new cluster (with an empty db, from an existing instance or from a backup) the postgresql parameters are automatically merged in the cluster spec () Use only store based communication and discovery (removed all the kubernetes specific options) () Ability to use TLS communication with the store (for both etcd and consul) () Better standby monitoring and replacement () Improved logging () Many other Some cleanups and changes in preparation for release v0.5.0 that will receive a big refactor (with different breaking changes) needed to bring a lot of new features. Support multiple stores via (). Currently etcd and consul are supported. Can use pg_rewind to sync slaves instead of doing a full resync (). The `--initial-cluster-config` option has been added to the `stolon-sentinel` to provide an initial cluster configuration (). A cluster config option for initializing the cluster also if multiple keepers are registred has been added (). By default a sentinel won't initialize a new if multiple keepers are registered since it cannot know which one should be the master. With this option a random keeper will be choosed as the master. This is useful when an user wants to create a new cluster with an empty database and starting all the keeper together instead of having to start only one keeper, wait it to being elected as master and then starting the other keepers. The `--discovery-type` option has been added to the `stolon-sentinel` to choose if keeper discovery should be done using the store or kubernetes (). Various options has been added to the `stolon-keeper` for setting postgres superuser, replication and initial superuser usernames and passwords (). Numerous enhancements and bugfixes. Thanks to all the contributors! A stolon client (stolonctl) is provided. At the moment it can be used to get clusters list, cluster status and get/replace/patch cluster config ( ). In future multiple additional functions will be added. See . The cluster config is now configurable using stolonctl (). See . Users can directly put their preferred postgres configuration files inside a configuration directory ($dataDir/postgres/conf.d or provided with --pg-conf-dir) (see ) Users can centrally manage global postgres parameters. They can be configured in the cluster configuration (see ) Now the stolon-proxy closes connections on etcd error. This will help load balancing multiple stolon proxies ( ). kubernetes: added readiness probe for stolon proxy () The keeper takes an exclusive fs lock on its datadir () Numerous bug fixes and improved tests.