diff --git a/mktxp/cli/config/_mktxp.conf b/mktxp/cli/config/_mktxp.conf index 6e14f1c..9059495 100644 --- a/mktxp/cli/config/_mktxp.conf +++ b/mktxp/cli/config/_mktxp.conf @@ -13,7 +13,7 @@ [MKTXP] listen = '0.0.0.0:49090' # Space separated list of socket addresses to listen to, both IPV4 and IPV6 - socket_timeout = 2 + socket_timeout = 4 initial_delay_on_failure = 120 max_delay_on_failure = 900 @@ -27,7 +27,7 @@ fetch_routers_in_parallel = False # Set to True if you want to fetch multiple routers parallel max_worker_threads = 5 # Max number of worker threads that can fetch routers (parallel fetch only) - max_scrape_duration = 10 # Max duration of individual routers' metrics collection (parallel fetch only) - total_max_scrape_duration = 30 # Max overall duration of all metrics collection (parallel fetch only) + max_scrape_duration = 30 # Max duration of individual routers' metrics collection (parallel fetch only) + total_max_scrape_duration = 90 # Max overall duration of all metrics collection (parallel fetch only) compact_default_conf_values = False # Compact mktxp.conf, so only specific values are kept on the individual routers' level \ No newline at end of file diff --git a/mktxp/utils/utils.py b/mktxp/utils/utils.py index 5de8e05..54e1a90 100755 --- a/mktxp/utils/utils.py +++ b/mktxp/utils/utils.py @@ -23,7 +23,6 @@ from multiprocessing import Process, Event from datetime import timedelta from packaging.version import parse - ''' Utilities / Helpers ''' @contextmanager @@ -305,7 +304,7 @@ def get_available_updates(channel, ttl_hash=get_ttl_hash()): for child in channel: # iterate over all updates if child.tag == 'item': - title, _, _, _, _, _ = child + title, _, _, _, _ = child # extract and parse the version number from title version_text = re.findall(r'[\d+\.]+', title.text)[0] version_number = parse(version_text)