v1.0.1
Version 1.0.1 (January, 8th 2024)
Warning
If you use pgSimload in the Patroni watcher mode, please modify your patroni.json file
to add a line corresponding to the SSH port you use, thru the new configuration parameter
Remote_port. It is breaking change from version 1.0.0 for you.
An exemple is:
[...]
"Remote_user" : "yourusername",
"Remote_port" : 22,
"Use_sudo" : "yes",
[...]
- new SSHManager for Patroni Watched mode
The way the Patroni watcher is handled in SSH (i.e not in Kubernetes modes)
has been refactored. Previously, an SSH connection was initiated at each loop
of the Patroni watcher. This was not very efficient, because at each
Watch_timer an SSH connection was opened, the patronictl command
initiated, the output shown, then the SSH connection was closed.
An SSHManager has then been added to manage this, at not only it is more
efficient, and an unique SSH connection is used, but also, it will manage any
disconnections of the SSH server itself, trying to reinitiate the SSH
connection if the previous died.
A bit more of code refactoring has been added too, so the dependances to the
bytes and net packages have been removed.
- new parameter in
patroni.jsonfile :Remote_portparameter has been
added (integer), so you can specify the port of your SSH Server explicitery. - updated Go modules
- rebuild of binaries
- tagging version 1.0.1
- updated any
patroni.jsonfile types in the examples to addRemote_port - updated the documentation about
Remote_portinpatroni.jsonfiles