Setting up custom PostgreSQL configuration (VM)
You can customize your PostgreSQL configuration settings. Concert offers the capability to create a custom.conf file for PostgreSQL configuration and mount it as a volume in the PostgreSQL deployment. This is an optional feature that allows you to tailor the external PostgreSQL databases to meet youspecific requirements. By creating a custom.conf file, you can define custom configuration settings, such as connection limits, memory allocation, and query optimization, which can then be applied to your PostgreSQL databases.
Instructions
- Set the
$INSTALL_DIRvariable.export INSTALL_DIR=<install_directory>/ibm-concert - Create a new
custom.conffile in the following location:$INSTALL_DIR/ibm-concert-std/localstorage/volumes/infra/pg-custom/ - Add the required configuration settings in the following format:
setting1=value1 setting2=value2Example:max_connections=200 shared_buffers=3840MBAdd each configuration setting on a new line using the
setting=valueformat. - Save the
custom.conffile with the added configuration settings. - Restart the container by using the following command:
$INSTALL_DIR/ibm-concert-std/systemd/start_service
Unsupported customizations
The following PostgreSQL configuration settings are not supported:
ssl
ssl_ca_file
ssl_cert_file
ssl_key_file
unix_socket_directories
archive_mode
archive_command
listen_addresses
shared_preload_libraries
log_directory
pg_auto_failover
port
hot_standby
password_encryption
hba_file