# Database Settings Source: https://documentation-external.onezero.com:4434/Hub_help_9_0/Content/HubReferences/Settings/HubAppSettings/Hub_App_DBSettings.htm Database Settings Use these settings to configure the Hub database. Setting Description Setting Description DB Host Database host. DB Host is 127.0.0.1 by default. DB Host Database host. DB Host is 127.0.0.1 by default. DB Port Database port. DB Port is 5432 by default. DB Port Database port. DB Port is 5432 by default. DB Name Database name. Username is postgres by default. DB Name Database name. Username is postgres by default. DB User Database username. Username is postgres by default. DB User Database username. Username is postgres by default. DB Password Database password, whatever was set when PGSQL was installed. DB Password Database password, whatever was set when PGSQL was installed. Validate Database Configuration at Startup If enabled, the system examines the database configuration at start-up and issues warnings about potential configuration issues. Validate Database Configuration at Startup If enabled, the system examines the database configuration at start-up and issues warnings about potential configuration issues. These settings determine the version of the Orders View in the database. Setting Description Setting Description Version Indicates the version number of the Orders View. Version Indicates the version number of the Orders View. Auto Upgrade to Latest Version If enabled, the Hub upgrades automatically when an upgrade is available. If disabled, you may select the version number of the Orders view in the field above. Auto Upgrade to Latest Version If enabled, the Hub upgrades automatically when an upgrade is available. If disabled, you may select the version number of the Orders view in the field above. These settings determine the version of the Trades View in the database. Setting Description Setting Description Version Indicates the version number of Trades View. Version Indicates the version number of Trades View. Auto Upgrade to Latest Version If enabled, the Hub upgrades automatically when an upgrade is available. If disabled, you may select the version number of the Trades View in the field above. Auto Upgrade to Latest Version If enabled, the Hub upgrades automatically when an upgrade is available. If disabled, you may select the version number of the Trades View in the field above. These settings determine the version of the Maker Trades View in the database. Setting Description Setting Description Version Indicates the version number of Maker Trades View. Version Indicates the version number of Maker Trades View. Auto Upgrade to Latest Version If enabled, the Hub upgrades automatically when an upgrade is available. If disabled, you may select the version number of the Maker Trades View in the field above. Auto Upgrade to Latest Version If enabled, the Hub upgrades automatically when an upgrade is available. If disabled, you may select the version number of the Maker Trades View in the field above. These settings allow you to adjust database monitoring and replication. Setting Description Setting Description Should Monitor DB Replication If enabled, the Hub periodically monitors the state of the database replication, which involves checking that a database slave connection exists and isn't too far behind the master. If either of these conditions fail an alert is sent. If disabled, this process does not occur. Should Monitor DB Replication If enabled, the Hub periodically monitors the state of the database replication, which involves checking that a database slave connection exists and isn't too far behind the master. If either of these conditions fail an alert is sent. If disabled, this process does not occur. DB Replication Max Lag Before Alerting KB The maximum allowed difference in the master and slave database connections before an alert is sent. DB Replication Max Lag Before Alerting KB The maximum allowed difference in the master and slave database connections before an alert is sent. DB Replication Monitoring Update Period The interval at which the Hub checks the database replication monitoring to make sure it's in a good state in HHHH:MM:SS:UUUUUU. DB Replication Monitoring Update Period The interval at which the Hub checks the database replication monitoring to make sure it's in a good state in HHHH:MM:SS:UUUUUU. DB Replication Monitoring Email Alert Period How often the Hub sends emails when the database replication monitoring detects something wrong in HHHH:MM:SS:UUUUUU. DB Replication Monitoring Email Alert Period How often the Hub sends emails when the database replication monitoring detects something wrong in HHHH:MM:SS:UUUUUU. DB Replication Monitoring Log Period How often the Hub logs issues that database replication detects in HHHH:MM:SS:UUUUUU. DB Replication Monitoring Log Period How often the Hub logs issues that database replication detects in HHHH:MM:SS:UUUUUU. DB Execution Time Warning Threshold Database max query execution time before warnings are logged in in HHHH:MM:SS:UUUUUU. DB Execution Time Warning Threshold Database max query execution time before warnings are logged in in HHHH:MM:SS:UUUUUU. Use this setting to avoid sending alerts during specific time frames, such as weekends and maintenance periods. If an alert is triggered within the Start and End time that you set here, the alert is sent. If the alert is triggered outside of this period, it is not sent. DB Execution Warning Check Time Range Description DB Execution Warning Check Time Range Description Start Start time during which alerts may be sent. Start Start time during which alerts may be sent. Time of Day / Timezone Time of Day / Timezone End End during which alerts may be sent. End End during which alerts may be sent. Time of Day / Time Zone Time of Day / Time Zone Database Maintenance Description Database Maintenance Description Vacuum Database on Startup If enabled, scans and optimizes stale database data according to the DB Routing Vacuum Schedule set in the fields below. Vacuum Database on Startup If enabled, scans and optimizes stale database data according to the DB Routing Vacuum Schedule set in the fields below. DB Routing Vacuum Schedule DB Routing Vacuum Schedule Day of the Week Schedule the time at which to run a VACUUM command on the database. Note: Vacuum command helps optimize database performance and resource usage by recovering / reusing disc space and updating data statistics. Day of the Week Schedule the time at which to run a VACUUM command on the database. Note: Vacuum command helps optimize database performance and resource usage by recovering / reusing disc space and updating data statistics. Time Of Day / Time Zone Time Of Day / Time Zone Controls various threads of the database connection working concurrently. Warning: Contact oneZero Support support@onezero.com before changing Database Worker Threads. Settings Description Settings Description DB Trade Connections Number of worker threads to use for trade-related connections to the database. The minimum and default value is 6. DB Trade Connections Number of worker threads to use for trade-related connections to the database. The minimum and default value is 6. DB Regular Connections Number of worker threads to use for regular / general connections to the database. The minimum and default value is 3. DB Regular Connections Number of worker threads to use for regular / general connections to the database. The minimum and default value is 3. DB Quote Channel Allocation Of Regular Connections Number of regular connections to allocate to Quote channels for quote-related database updates. The minimum and default value is 3. Note: Must be <= DB Regular Connections. DB Quote Channel Allocation Of Regular Connections Number of regular connections to allocate to Quote channels for quote-related database updates. The minimum and default value is 3. Note: Must be <= DB Regular Connections. DB Non Critical Connections Number of worker threads to use for non-critical connections to the database. The minimum and default value is 2. DB Non Critical Connections Number of worker threads to use for non-critical connections to the database. The minimum and default value is 2.