blob: 27d6b8a7e228f7f43cb24f6b888dd90669a217c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
user root;
worker_processes 2;
# run nginx workers on cpus 5-6.
worker_cpu_affinity 100000 1000000;
#with TLDK daemon mode is not supported right now.
daemon off;
pid /local/nginx.cfg/logs/nginx.pid;
events {
use epoll;
worker_connections 10240;
accept_mutex off;
}
http {
include mime.types;
default_type application/octet-stream;
access_log off;
error_log /local/nginx.cfg/logs/error.log emerg;
#with TLDK sendfile is not supported right now.
sendfile off;
keepalive_timeout 0;
keepalive_requests 0;
output_buffers 1 2m;
open_file_cache max=20000 inactive=1h;
open_file_cache_valid 1h;
open_file_cache_min_uses 1;
open_file_cache_errors on;
server {
listen 6000 backlog=4096;
server_name www.xz1;
location / {
root /local/nginx.cfg/html;
index index.html index.htm;
}
}
}
tldk_main {
#create 2 DPDK slave lcores on cpus 9-10.
eal_cmd --lcores=8-10 -n 4;
port 0 rx_offload 0xf tx_offload 0xf ipv4 192.168.1.60;
}
tldk_ctx {
worker 0;
lcore 9;
# for benchmarking purposes set TCP TIMEWAIT to zero.
tcp_timewait 0;
# remove next line to make TLDK back-end to run a DPDK slave lcore 9
# within nginx master process.
be_in_worker;
mbufs 0x20000;
streams 0x8000;
sbufs 0x100;
rbufs 0x800;
dev 0 port 0 queue 0;
dest dev 0 addr 192.168.1.0 masklen 24 mac 3C:FD:FE:9F:D1:E1;
}
tldk_ctx {
worker 1;
lcore 10;
tcp_timewait 0;
be_in_worker;
mbufs 0x20000;
streams 0x8000;
sbufs 0x100;
rbufs 0x800;
dev 0 port 0 queue 1;
dest dev 0 addr 192.168.1.0 masklen 24 mac 3C:FD:FE:9F:D1:E1;
}
|