diff --git a/bin/linspector b/bin/linspector index 0a237a1..96ae35a 100755 --- a/bin/linspector +++ b/bin/linspector @@ -33,7 +33,7 @@ from linspector.core.monitors import Monitors # i currently only increase the 3rd number because the goal is that 0.19.* will become the first # stable version. -__version__ = '0.19.58.dev1' +__version__ = '0.19.59.dev1' __author__ = 'Johannes Findeisen ' diff --git a/etc/linspector.conf b/etc/linspector.conf index d2e9925..644e643 100644 --- a/etc/linspector.conf +++ b/etc/linspector.conf @@ -43,7 +43,7 @@ max_threads = 2048 ; i recommend to set this to your number of CPU cores available when running on a dedicated Linspector host. but if the ; system is running other services you should lower this value when you have too high CPU load. if you have enough ; resources this value really can be higher then your available CPU cores. -max_processes = 12 +max_processes = 24 ; if timezone is not set, UTC is used by default. timezone = CET ; this is for scheduling jobs to not run all at the same time. this should be set to the lowest interval you use. it diff --git a/linspector/core/logger.py b/linspector/core/logger.py index 994746c..3476c73 100644 --- a/linspector/core/logger.py +++ b/linspector/core/logger.py @@ -23,6 +23,11 @@ logger = getLogger('linspector') # https://stackoverflow.com/questions/641420/how-should-i-log-while-using-multiprocessing-in-python/48668567 # or i can log to one single file using stdout data and let the operating system do the file # rotation but if the pythonic way works fine i should implement it directly in Linspector. +# more stuff: +# https://pythondjangorestapi.com/python-logging-the-ultimate-guide-to-logging/ +# and now i found another libray for handling this, but it would make Linspector depending on the +# next 3rd party library in the core (need to discover features because i want log rotating): +# https://pypi.org/project/loguru/ # maybe subclass it from logging.Logger...? class Log: def __init__(self, configuration, stdout, verbose):