• [^] # Re: montée en charge : Mattermost / reverse-proxy Apache

    Posté par . En réponse à la dépêche Vie dématérialisée. Évalué à 4.

    voici ma conf actuelle pour apache :

     cat /etc/apache2/mods-available/mpm_event.conf
     ...
     <IfModule mpm_event_module>
     ServerLimit 2800
     StartServers 6
     MinSpareThreads 25
     MaxSpareThreads 75
     ThreadLimit 64
     ThreadsPerChild 25
     MaxRequestWorkers 2800
     MaxConnectionsPerChild 2000
     </IfModule>
    

    j'ai aussi placé ceci dans /etc/rc.local ; moins certain que ca serve et que ce soit adapté à mon contexte.

    sysctl net.core.somaxconn=4096
    echo 20000500 > /proc/sys/fs/nr_open
    ulimit -n 20000500
    

    je tiens la charge sans trop de soucis. Hier matin, ce fut un peu fastidieux.