fly-apps / postgres-ha

Postgres + Stolon for HA clusters as Fly apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set STOLONCTL environment variables

davissp14 opened this issue · comments

stolonctl is an invaluable tool, but the commands are currently very tedious to construct. We can make this easier by setting the necessary STOLONCTL environment variables at provision time.

https://github.com/sorintlab/stolon/blob/master/doc/stolonctl.md

Quick and dirty way to get this working:

  fly ssh console --app <app-name>
  export $(cat /data/.env | xargs)
  
  stolonctl status

Thank you for reporting this. Helped me figure out how to fix some issues with stolon!

commented

Those could be set by default in the shell, or at the very least this needs to be documented.

It was only after I found this issue that I was able to force a failover.