Find the Postgresql Database Configuration in the Helm Chart Values

Display Helm Chart Values

helm show values dify/dify

This is an example of the Postgresql database configuration in the Helm chart values.

externalPostgres:
  enabled: true
  address: localhost
  port: 5432
  credentials:
    dify:
      database: "dify"
      username: "postgres"
      password: "#REPLACE_ME#"
      sslmode: "require"
    enterprise:
      database: "enterprise"
      username: "postgres"
      password: "#REPLACE_ME#"
      sslmode: "require"

max_connections configuration

  • If you encounter the error message FATAL: remaining connection slots are reserved for non-replication superuser connections, you need to increase the max_connections configuration for the Postgresql database.
  • Suggestions:
    • The default value is 100.
    • Suggest setting the max_connections value to 2000.