fly-apps / postgres-ha

Postgres + Stolon for HA clusters as Fly apps.
Apache License 2.0
318 stars 131 forks source link

Single Node in Local Development #98

Closed tyrauber closed 1 year ago

tyrauber commented 1 year ago

Is it possible to enable single node and disable consul in local development through an ENV variable?

I'd love to be able to disable consul locally to develop around the image, but it seems that consul is required.

Panic: FLY_CONSUL_URL or CONSUL_URL are required

Issue #48 and flyctl/pull/625 seem to indicate that this was done through the fly api by setting a vmSizeName of ''. Is it possible to replicate this functionality locally with an ENV variable?

davissp14 commented 1 year ago

Nope, if you're just looking for a simple single node setup that runs without consul, you can look at: https://github.com/fly-apps/postgres-standalone

This setup will not horizontally scale though in the event you need it to, you'd have to manage all of that manually.

tyrauber commented 1 year ago

Alright, Thank @davissp14, appreciate the response. I'll just swap the image with flyio/postgres-standalone:14.1 when developing and test locally. Thank you.

davissp14 commented 1 year ago

@tyrauber We no longer provide support for those images. That being said, I would recommend you clone/fork the repo and deploy manually.