Update settings.py

This commit is contained in:
zandercymatics 2023-10-13 11:56:31 -06:00
parent f6d287cf21
commit c165fd8401
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -534,9 +534,15 @@ SECRET_REGISTRY_KEY = secret_registry_key
SECRET_REGISTRY_KEY_PASSPHRASE = secret_registry_key_passphrase
SECRET_REGISTRY_HOSTNAME = secret_registry_hostname
# Question for reviewers: For one client, the performance difference
# between a pool of size 1 vs a pool of size 10 isn't noticeable.
# The main performance increase comes from an open connection.
# We would need to do load testing to determine the ideal number,
# my recommendation now would be 3 as it is a good balance between
# overhead vs capacity.
# Use this variable to set the size of our connection pool in client.py
# WARNING: Setting this value too high could cause frequent app crashes!
EPP_CONNECTION_POOL_SIZE = 3
EPP_CONNECTION_POOL_SIZE = 1
# Determines the interval in which we ping open connections in seconds
# Calculated as POOL_KEEP_ALIVE / EPP_CONNECTION_POOL_SIZE