PostgreSQL in our Production environment is configured using primary and secondary DB servers via Patroni. We have requirement to explicitly to set Max_Connection as 300 overriding default value. If we set Max_Connections in postgresql.config, it is getting reset post restart of Patroni.
Please advise us on the steps on how to configure and set Max_Connections in Replica DB servers.