Web application to monitor genetic algorithm
- pip install flask
- pip install gunicorn (optional)
- All log files must be under log directory defined in
config.txt
- file names should be
YYYY-MM-DD-hh-mm_instance_n.log
(year, month, day, hour, minute, number of instance) - Each line in each file should be
INFO:root:%f,%f,%f
(replace%f
with actual numbers, float or integer) - If you don't like this format, change
def refresh()
,def parse_file()
inmonitor.py
- Modify
config.txt
to change the password, your own python directory and log directory export FLASK_APP=monitor.py
python monitor.py
(run foreground)flask run --debugger -h 0.0.0.0
(optional)nohup gunicorn -w 4 -b 0.0.0.0:5000 monitor:app &
(4 threads, run background, optional)