I want to set the idle_in_transaction_session_timeout parameter group setting of our RDS postgres database. Any suggestions on how I should approach this? Whats the right value? What should I look at to decide on the optimal value.
Question posted in Amazon Web Sevices
The official Amazon Web Services documentation can be found here.
The official Amazon Web Services documentation can be found here.
2
Answers
idle_in_transaction_session_timeout
defines the maximum time an idle transaction can stay open before being automatically rolled back.To choose an optimal value for the parameter you can follow below steps:
Now based on the metrics and observations Adjust and monitor:
Ask the people who coded the application how long a database transaction can take in the worst case. Then set
idle_in_transaction_session_timeout
to ten times that value. I would suggest 10 seconds as a reasonable minimum value for this parameter, but typically it will be much higher.