Skocz do zawartości

kacpi92

Użytkownicy
  • Zawartość

    3
  • Rejestracja

  • Ostatnio

Posty napisane przez kacpi92


  1. Dzień dobry,

    robiłem stress testy mojego serwisu postawionego na vpsie (3x Xeon E5, 4gb ram, ssd), wynik nie do końca był zadowalający, podczas testu loadimpacta (100 wirutualnych użytkowników online), procek się już prawie wysypywał, za to ram był na poziomie 600-700 mb, w związku z czym, chciałbym się was zapytać, w jaki sposób mogę trochę odciążyć procek.

     

    Teraz trochę o specyfikacji serwera - jest tam vesta cp, ubuntu 15, apache i nginx jako proxy, php5.6+opcache. Konfiguracja apache'a jest następująca:

    # It is split into several files forming the configuration hierarchy outlined
    # below, all located in the /etc/apache2/ directory:
    #
    #	/etc/apache2/
    #	|-- apache2.conf
    #	|	`--  ports.conf
    #	|-- mods-enabled
    #	|	|-- *.load
    #	|	`-- *.conf
    #	|-- conf.d
    #	|	`-- *
    
    # Global configuration
    PidFile ${APACHE_PID_FILE}
    Timeout 30
    KeepAlive Off
    MaxKeepAliveRequests 100
    KeepAliveTimeout 10
    
    <IfModule mpm_prefork_module>
        StartServers          8
        MinSpareServers       5
        MaxSpareServers      20
        ServerLimit         256
        MaxClients          200
        MaxRequestsPerChild 4000
    </IfModule>
    
    <IfModule mpm_worker_module>
        StartServers          2
        MinSpareThreads      25
        MaxSpareThreads      75 
        ThreadLimit          64
        ThreadsPerChild      25
        MaxClients          200
        MaxRequestsPerChild 4000
    </IfModule>
    
    <IfModule mpm_event_module>
        StartServers          2
        MinSpareThreads      25
        MaxSpareThreads      75 
        ThreadLimit          64
        ThreadsPerChild      25
        MaxClients          200
        MaxRequestsPerChild 4000
    </IfModule>
    
    # These need to be set in /etc/apache2/envvars
    User ${APACHE_RUN_USER}
    Group ${APACHE_RUN_GROUP}
    #User www-data
    #Group www-data
    
    AccessFileName .htaccess
    
    <Files ~ "^\.ht">
        Order allow,deny
        Deny from all
        Satisfy all
    </Files>
    
    DefaultType None
    HostnameLookups Off
    
    ErrorLog ${APACHE_LOG_DIR}/error.log
    LogLevel warn
    
    # Include module configuration:
    Include mods-enabled/*.load
    Include mods-enabled/*.conf
    
    # Include list of ports to listen on and which to use for name based vhosts
    Include ports.conf
    
    LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
    LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %O" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
    LogFormat "%b" bytes
    
    Include conf.d/
    
    # Include the virtual host configurations:
    #Include sites-enabled/
    
    

  2. Witam,

    czy ktoś z Was z powodzeniem odpierał na teamspeak na VPSach ovh ataki ddos? Mam aktualnie najmocniejszy pakiet VPS z OVH i w przypadku ataku działa to następująco, jest atak, dostaję maila od ovh z informacja o migracje serwera na anty ddos, no i strony internetowe postawione na vpsie działają, można się połączyć z serwerem przez ssh, no ale teamspeak leży, restart samej apki teamspeaka też nic nie pomaga, czy da się coś z tym zrobic?

×