It seems likely that Phoenix can experience connection pool exhaustion or stale connections when running against AWS Aurora, leading to UI errors while tracing may still function. This is a known issue, especially if the database closes idle connections or if the pool size is too small for your workload. Increasing the connection pool size (e.g., `pool_size=10, max_overflow=20`) and ensuring proper database connection handling may help, but there is no explicit recommendation in the data sources to use pgbouncer with Phoenix, and some users have reported issues with prepared statements when using pgbouncer in certain modes (<https://github.com/Arize-ai/phoenix/issues/6296|see here>).
Additionally, errors like `no pg_hba.conf entry ... no encryption` suggest that SSL/TLS settings or Aurora's network policies may intermittently block connections, especially after idle periods (<https://arize-ai.slack.com/archives/C04R3GXC8HK/p1733534274.490479|see here>). Using the correct connection string with `sslmode=require` is important, but there have been reports that Phoenix may strip SSL parameters in some cases. There is no clear evidence that pgbouncer is officially supported or recommended for Phoenix, and using it may require additional configuration (e.g., session pooling mode).
Would you like more detail on connection pool configuration or troubleshooting Aurora-specific issues?
Sources:
- <https://github.com/Arize-ai/phoenix/issues/6296|pgbouncer compatibility and issues>
- <https://arize-ai.slack.com/archives/C04R3GXC8HK/p1733534274.490479|see here>