Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.63 KB | None | 0 0
  1. database95Parameters:
  2.   Type: AWS::RDS::DBParameterGroup
  3.   Properties:
  4.     Description: parameter group for services db
  5.     Family: postgres9.5
  6.     Parameters:
  7.      # max_locks_per_transaction: to be able to pg_dump database (we have lots of tables in multiple schemas)
  8.       # PG locks all these tables as it takes a pg_dump
  9.       max_locks_per_transaction: 500
  10.       log_min_error_statement: NOTICE # http://www.postgresql.org/docs/9.3/static/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHEN
  11.       log_min_duration_statement: 900 # milliseconds
  12.       rds.log_retention_period: 10080 # week
  13.       work_mem: 5196 # 5mb, specified in kb. default 1mb.
  14.       # possibly useful, turns on all statements. log_statement: all
  15. database96Parameters:
  16.   Type: AWS::RDS::DBParameterGroup
  17.   Properties:
  18.     Description: parameter group for services db
  19.     Family: postgres9.6
  20.     Parameters:
  21.      # max_locks_per_transaction: to be able to pg_dump database (we have lots of tables in multiple schemas)
  22.       # PG locks all these tables as it takes a pg_dump
  23.       max_locks_per_transaction: 500
  24.       log_min_error_statement: NOTICE # http://www.postgresql.org/docs/9.3/static/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHEN
  25.       log_min_duration_statement: 900 # milliseconds
  26.       rds.log_retention_period: 10080 # week
  27.       work_mem: 5196 # 5mb, specified in kb. default 1mb.
  28.       # possibly useful, turns on all statements. log_statement: all
  29. #databaseSubnetGroup:
  30. #  Type: AWS::RDS::DBSubnetGroup
  31.  
  32. database:
  33.   Type: AWS::RDS::DBInstance
  34.   DependsOn:
  35.    - database96Parameters
  36.     - databaseSg
  37.   DeletionPolicy: Snapshot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement