summaryrefslogtreecommitdiff
path: root/readme.md
blob: dc6eb9cb453edfd75631d9af58eec031e94f3168 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# ��װ����

## �����

| ����ϵͳ | Centos7.4             |
| -------- | --------------------- |
| �ڴ�     | 128G                  |
| CPU      | Inter E5 2630 V3      |
| ����     | ˫��������Intel 82599 |
| Ӳ��     | 500G                  |

## ��ʼ��

Redis��̬���ÿ��ʼ��

ʱ��ͬ��		����ʱ����ʱ�����һ��

������			���ظ����������»���

ϵͳ����		UTF-8

ϵͳ����		��������ڴ������TCP�����Ż�

������			ҵ���������һ�£�������������һ��

## ������

librdkafka.so.1  

libhiredis_vip.so.0.4  

libmaatframe.so.2.5	

libMESA_handle_logger.so 	

libMESA_htable.so		

libMESA_prof_load.so		

libMESA_field_stat2.so		

librulescan.so

openssl	1.0.1e-16���ϰ汾��Python			2.6�汾������

## �����ļ�

ȫ�����ö���`web_focus/bin/conf/web_focus.conf`�ļ��С�

ϵͳ������

```
[SYSTEM]
thread_num=1 #�߳���
domain_min_voter_num=1 #domain\sip�ԵIJ�ͬclient ip���������ڵ��ڴ�ֵʱ��Ϊ��Ч
dyn_config_expire_time=300 #�·��Ķ�̬���ó�ʱʱ�䣬��λ��
raidus_config_expire_time=86400 #�·���Radius��Subscribe ID)���õij�ʱʱ�䣬��λ��
```

IP����ҵ������:

```
[IP_REUSE]
ir_pick_cli_num=100	#ΪIP Reuseҵ��ÿ���·��Ŀͻ���IP����
tcp_record_sample_rate=0.05  #tcp��־�IJ���������ȡֵ0.001~1.0
```

MAAT ���ã� 

```
[NTC_MAAT] #ֻ��
instance_name=ntc
table_info_path=./conf/ntc_table_info.conf
redis_ip = 10.4.34.4
redis_port = 6380
redis_index = 2

[PROXY_MAAT] #ֻ��
instance_name=proxy
table_info_path=./conf/proxy_table_info.conf
redis_ip = 10.4.34.4
redis_port = 6380
redis_index = 4

[OUTPUT_MAAT] #�
instance_name=wbf
table_info_path=./conf/output_maat_table_info.conf
redis_ip = 10.4.20.151
redis_port = 6379
redis_index = 0
```

����ѡ�

```
[DEBUG]
#no more than 64, seperate with ","
trace_keys=www.mesalab.cn, ietf.org, askar_legalkz.in
```



## ��װ����

����

`unzip web_focus.zip`

`cd web_focus/src`

 `make clean;make`

����

`cd web_focus/bin/`

 `./web_focus` or ` ./wf_r2`

״̬���

`watch -d cat ipd_fs.stat`

## ��������

1. ���Ӵ���

���� `cannot find -lsqlite3`

���������`ln -s  /usr/lib64/libsqlite3.so.0 /usr/lib64/libsqlite3.so`