Last active
          December 21, 2015 08:15 
        
      - 
      
- 
        Save hodzanassredin/90ce5d5eb0b8fc2dc5e2 to your computer and use it in GitHub Desktop. 
    suave test
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | session [default=1] pam_permit.so | |
| session requisite pam_deny.so | |
| session required pam_permit.so | |
| session optional pam_umask.so | |
| session required pam_unix.so | |
| session optional pam_systemd.so | |
| session required pam_limits.so | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | session [default=1] pam_permit.so | |
| session requisite pam_deny.so | |
| session required pam_permit.so | |
| session optional pam_umask.so | |
| session required pam_unix.so | |
| session required pam_limits.so | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | root soft nofile 100000 | |
| root hard nofile 100000 | |
| * soft nofile 100000 | |
| * hard nofile 100000 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | [tank] | |
| plugin_web=yatank_OnlineReport | |
| [phantom] | |
| address = xxx.xxx.xxx.xxx | |
| port = 80 | |
| rps_schedule=line(100,40000,2m) | |
| header_http = 1.1 | |
| headers = [Host: xxx] | |
| [User-Agent: Yandex-tank] | |
| [Connection: close] | |
| [Accept-Encoding:gzip,deflate] | |
| uris = xxx | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | open Suave.Http // for config | |
| open Suave.Http.Successful // for OK-result | |
| let port = 80 | |
| let conf = { defaultConfig with bindings = [ HttpBinding.mkSimple HTTP "0.0.0.0" port ]; | |
| tcpServerFactory = LibUvServerFactory() | |
| bufferSize = 2048 | |
| maxOps = 100} | |
| startWebServer conf (OK "Hello Suave") | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | vm.overcommit_memory=1 # Linux kernel overcommit memory setting | |
| vm.swappiness=0 # turn off swapping | |
| net.ipv4.tcp_sack=1 # enable selective acknowledgements | |
| net.ipv4.tcp_timestamps=1 # needed for selective acknowledgements | |
| net.ipv4.tcp_window_scaling=1 # scale the network window | |
| net.ipv4.tcp_congestion_control=cubic # better congestion algorythm | |
| net.ipv4.tcp_syncookies=1 # enable syn cookied | |
| net.ipv4.tcp_tw_recycle=1 # recycle sockets quickly | |
| net.ipv4.tcp_max_syn_backlog=100000 # backlog setting | |
| net.core.somaxconn=100000 # up the number of connections per port | |
| fs.file-max=100000 | |
| net.ipv4.ip_local_port_range = 1024 65535 | |
| net.ipv4.tcp_tw_reuse = 1 | |
| net.core.rmem_max = 16777216 | |
| net.core.wmem_max = 16777216 | |
| kernel.sched_migration_cost_ns = 5000000 | |
| kernel.sched_autogroup_enabled = 0 | |
| kernel/mm/transparent_hugepage/enabled = never | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | kernel/mm/transparent_hugepage/enabled = never | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment