3.7. nginx¶
3.7.1. default suite¶
3.7.1.1. Apply Nginx configuration on DUT¶
Setup for suites which uses VCL or LDP Nginx on DUT. Arguments: - dut - DUT node. Type: string - phy_cores - vpp used phy cores number. Example: | Apply Nginx configuration on DUT | ${dut} ${phy_cores}
Import Library resources.libraries.python.NginxConfigGenerator WITH NAME nc_manager
Run Keyword nc_manager.Set Node ${dut}
Run Keyword nc_manager.Set Nginx Path ${packages_dir} ${nginx_version}
Run Keyword nc_manager.Add Worker Processes ${phy_cores} ${smt_used}
Run Keyword nc_manager.Add Master Process
Run Keyword nc_manager.Add Daemon
Run Keyword nc_manager.Add Worker Rlimit Nofile
Run Keyword nc_manager.Add Events Use
Run Keyword nc_manager.Add Events Worker Connections
Run Keyword nc_manager.Add Events Accept Mutex
Run Keyword nc_manager.Add Events Multi Accept
Run Keyword nc_manager.Add Http Access Log
Run Keyword nc_manager.Add Http Include
Run Keyword nc_manager.Add Http Default Type
Run Keyword nc_manager.Add Http Sendfile
Run Keyword nc_manager.Add Http Keepalive Timeout ${keep_time}
Run Keyword If ${keep_time} > 0 nc_manager.Add Http Keepalive Requests ${r_total}
Run Keyword nc_manager.Add Http Server Listen ${listen_port}
Run Keyword nc_manager.Add Http Server Root
Run Keyword nc_manager.Add Http Server Index
Run Keyword nc_manager.Add Http Server Location ${0}
Run Keyword nc_manager.Add Http Server Location ${64}
Run Keyword nc_manager.Add Http Server Location ${1024}
Run Keyword nc_manager.Add Http Server Location ${2048}
Run Keyword nc_manager.Apply Config