Skip to content
GitHub

Deployment Configuration

Guardian application can be configured via environment variables. These settings control the behavior of the Guardian server itself, including database connections, server ports, and HTTP client settings.

Configuration NameEnvironment VariableTypeDefault ValueDescription
mysql_writer_hostGUARDIAN_MYSQL_WRITER_HOSTStringlocalhostJDBC connection URL for the database writer
mysql_reader_hostGUARDIAN_MYSQL_READER_HOSTStringlocalhostJDBC connection URL for read replica
mysql_databaseGUARDIAN_MYSQL_DATABASEStringguardianDatabase name
mysql_userGUARDIAN_MYSQL_USERStringrootUsername for database authentication
mysql_passwordGUARDIAN_MYSQL_PASSWORDStringrootPassword for database authentication
mysql_writer_max_pool_sizeGUARDIAN_MYSQL_WRITER_MAX_POOL_SIZEInteger10Maximum database connection pool size for writer
mysql_reader_max_pool_sizeGUARDIAN_MYSQL_READER_MAX_POOL_SIZEInteger40Maximum database connection pool size for reader
portGUARDIAN_PORTInteger8080Port number for the Guardian server
redis_hostGUARDIAN_REDIS_HOSTStringlocalhostHostname for Redis cache server
redis_portGUARDIAN_REDIS_PORTInteger6379Port number for Redis server
redis_typeGUARDIAN_REDIS_TYPEStringSTANDALONEType of redis setup, valid values: STANDALONE, ClUSTER
http_connect_timeoutGUARDIAN_HTTP_CONNECT_TIMEOUTInteger1000Connection timeout value for external services in ms
http_read_timeoutGUARDIAN_HTTP_READ_TIMEOUTInteger1000Read timeout value for external services in ms
http_write_timeoutGUARDIAN_HTTP_WRITE_TIMEOUTInteger1000Write timeout value for external services in ms
tenant_config_refresh_intervalGUARDIAN_TENANT_CONFIG_REFRESH_INTERVALInteger10Expiry time for tenant config in seconds
http_client_keep_aliveGUARDIAN_HTTP_CLIENT_KEEP_ALIVEBooleantrueEnable HTTP keep-alive for client connections
http_client_keep_alive_timeoutGUARDIAN_HTTP_CLIENT_KEEP_ALIVE_TIMEOUTInteger8000Keep-alive timeout for HTTP client connections in ms (must be > 1000)
http_client_idle_timeoutGUARDIAN_HTTP_CLIENT_IDLE_TIMEOUTInteger6000Idle timeout for HTTP client connections in ms
http_client_connection_pool_max_sizeGUARDIAN_HTTP_CLIENT_CONNECTION_POOL_MAX_SIZEInteger256Maximum size of HTTP client connection pool