postgresql_cluster icon indicating copy to clipboard operation
postgresql_cluster copied to clipboard

How to use the tool to setup PG HA without internet?

Open dashng opened this issue 1 year ago • 5 comments

Hi, Is it possible to setup HA without internet? May I downloaded all dependencies and install manually then call the script to install HA cluster?

dashng avatar May 30 '24 16:05 dashng

Hi @dashng

For environments where there is no direct Internet access from servers, they can use a proxy server.

  • Related issue: https://github.com/vitabaks/postgresql_cluster/issues/522#issuecomment-1843536021

Or use the (more complex) offline installation method - installation_method: file https://github.com/vitabaks/postgresql_cluster/blob/master/vars/Debian.yml#L145

  • Related issue https://github.com/vitabaks/postgresql_cluster/issues/10#issuecomment-1917394005

vitabaks avatar May 30 '24 21:05 vitabaks

Hi @vitabaks, thanks for your comments. I will try the offline mode on RHEL9. By the way, does it possible to have only 2 nodes, master and slavor as the minimal size of the cluster?

dashng avatar May 30 '24 21:05 dashng

Yes, provided that you use a dedicated DCS cluster (etcd or consul) consisting of 3 or more servers.

vitabaks avatar May 30 '24 21:05 vitabaks

I will try the offline mode on RHEL9.

Feel free to suggest a PR with improvement, as offline installation is the most rarely used mode.

vitabaks avatar May 30 '24 21:05 vitabaks

Sure, we will try and update here.

dashng avatar May 30 '24 22:05 dashng