postgres slowness is happening again

And your DATABASE_URL is set to top1.nearest.of...? Can you try fly dig top1.nearest.of.pg-app-name.internal -a appname? Does the IP there match the IP of fly dig fra.pg-app-name.internal -a appname?