Configuration [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:dpi:dpi_components:mediaserver:cache_config [2018/03/19 11:50] – created lexx26en:dpi:dpi_components:mediaserver:cache_config [2024/09/26 15:29] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Configuration ======+====== Configuration ======
 {{indexmenu_n>3}} {{indexmenu_n>3}}
 The Clickstream((Clickstream - detailed information on browsing internet resources by the user)) information must be made available on DPI for media server for its correct operation. Please add the following settings to DPI configuration file /etc/dpi/fastdpi.conf: The Clickstream((Clickstream - detailed information on browsing internet resources by the user)) information must be made available on DPI for media server for its correct operation. Please add the following settings to DPI configuration file /etc/dpi/fastdpi.conf:
-<code>+<code bash>
 cache_server=192.168.0.1 cache_server=192.168.0.1
 ipfix_dev=eth2 ipfix_dev=eth2
Line 9: Line 9:
 dbg_log_mask=0x80 dbg_log_mask=0x80
 </code> </code>
-Here cache_server is the address or the name of media server that sends a content to subscribers +Here  
-ipfix_dev is the name of network interface that supports Clickstream data transmission in ipfix format +  * cache_server is the address or the name of media server that sends a content to subscribers 
-172.31.155.95:1500 is the address and the port of ipfix collector on media server.+  ipfix_dev is the name of network interface that supports Clickstream data transmission in ipfix format 
 +  172.31.155.95:1500 is the address and the port of ipfix collector on media server 
 +  * cache_options=38 - 38 is a bit mask 100110 (38 in binary). 
 + 
 +2 bits = 1 - do not redirect youtube (disabled as it does not work after YouTube had moved to https) 
 +3 bits = 1 - do not redirect vk (disabled as it does not work after VK.COM had moved to https) 
 +4 bits = 0 - redirect rutube 
 +5 bits = 0 - redirect the remaining requests to the preloaded list of resources 
 +6 bits = 1 - apply caching to all subscribers (except for those with the activated service. This means that in this case the service disables caching for certain subscribers) 
 += 0 - apply caching only to subscribers with the activated service
  
 Data uploading and cache control are handled by ccu (Cache Control Utility). Data uploading and cache control are handled by ccu (Cache Control Utility).
Line 17: Line 26:
 The command description for this utility is available via its 'help' command: The command description for this utility is available via its 'help' command:
  
-Описание комманд утилиты доступны при запуске ее с командой "help": 
 <code> <code>
 ccu help ccu help
Line 26: Line 34:
 To start auto uploading service to file storage on media server: To start auto uploading service to file storage on media server:
 <code>   <code>  
-ccu online --conf /var/cache/nginx/cs/.cs/cs.conf  --daemon+service ccuo start
 </code> </code>
  
 To stop auto uploading service: To stop auto uploading service:
 <code>   <code>  
-ccu stop --conf /var/cache/nginx/cs/.cs/cs.conf+service ccuo stop
 </code> </code>
  
 The WEB interface on http://cache_server:8000/cs.html allows to check cache statistics. Here cache_server is ip address or the name of media server. The WEB interface on http://cache_server:8000/cs.html allows to check cache statistics. Here cache_server is ip address or the name of media server.
  
-To stat statitics service:+To start statitics service:
 <code>   <code>  
-ccu monitor --conf /var/cache/nginx/cs/.cs/cs.conf  --daemon+service ccum start
 </code> </code>
  
 To stop statistics service: To stop statistics service:
 <code>   <code>  
-ccu monitor --conf /var/cache/nginx/cs/.cs/cs.conf  --stop+service ccum stop
 </code> </code>
  
Line 51: Line 59:
 </code> </code>
  
-Execution of most of commands is logged into log files located in /var/cache/nginx/cs/.cs/logs. /var/cache/nginx/cs/.cs/logs. +Execution of most of commands is logged into log files located in ///var/log/ccu//.
- +
-Media server'log files are stored in /var/log/nginx.+
  
 +Media server's log files are stored in ///var/log/nginx//.