• Nicolas Wavrant's avatar
    monitor: remove mpm configuration from httpd conf · ec3473d8
    Nicolas Wavrant authored
    With the mpm limits, the webrunner fails often to instanciate because of the error in promise below :
    
    2020-04-28 07:45:23 slapos[4284] INFO Checking promise monitor-httpd-listening-on-tcp.py...
    2020-04-28 07:45:28 monitor-httpd-listening-on-tcp.py[4284] ERROR ERROR: HTTPSConnectionPool(host='2001:67c:1254:e:8e:66f4:0:4e9c', port=8386): Read timed out. (read timeout=5)
    
    Checking the open connection with ss, I could find many lines like :
    
    tcp    CLOSE-WAIT  518     0        [2001:67c:1254:e:8e:66f4:0:4e9c]:8386                           [2001:67c:1254:e:8e:66f4:0:4e9c]:49540
    
    So apache was too slow to answer, or busy doing something. Connections
    to it were getting queued, making promise fail, making another "slapos
    node instance" required, creating more frozen tcp connections.
    
    For this change, I took inspiration from the webrunner apache config,
    which doesn't define these parameters at all neither.
    
    I did a fast performance check, with this commit, when apache is started
    it consumes ~40Mo. I didn't check before this commit, but I doubt it
    would be much less than that.
    ec3473d8
monitor-httpd.conf.in 3.38 KB