"""Opensearch config.""" import os OPENSEARCH_HOST = os.environ.get('OPENSEARCH_HOST') OPENSEARCH_PORT = int(os.environ.get('OPENSEARCH_PORT', 443)) # the number of connections kept open to this host. Default is no pooling. pool_maxsize = os.environ.get('OPENSEARCH_POOL_MAXSIZE') OPENSEARCH_POOL_MAXSIZE = int(pool_maxsize) if pool_maxsize else None # Default request timeout in seconds. OPENSEARCH_DEFAULT_TIMEOUT = float( os.environ.get('OPENSEARCH_DEFAULT_TIMEOUT') or 60)