Closed benwaffle closed 1 year ago
cc @rubys @dalperin
@MichaelDeBoey can you take a look at this PR when you get some time?
What about adding the FLY_REGION prefix only if the host ends with .internal
? Or not adding it if it ends with .flycast
?
I'd appreciate it if this were expedited, developers are seeing problems with apps v2 and we are making a push to move people off of apps v1.
@rubys The updated code looked good to me. Merged! :)
New versions of
flyctl
, when runningfly postgres attach
, use flycast URLs to connect to the DB. This provides the same geo-aware load balancing that the stack already achieves today by prefixing the hostname with the region. Flycast doesn't support region prefixes. This has been causing failures for new apps.For example:
Old:
postgres://top2.nearest.of.my-postgres.internal
New:postgres://my-postgres.flycast
The old format supports a region prefix, but the new one does not.
Closes #88 Closes #101 Closes #182