Posts

Showing posts from November, 2015

Tweaked sysctl.conf for ubuntu

Image
Tweak nginx performance is not enough. High performance web server also need tune sysctl.conf file.

edit file /etc/sysctl.conf

# # /etc/sysctl.conf - Configuration file for setting system variables # See /etc/sysctl.d/ for additional system variables. # See sysctl.conf (5) for information. # #kernel.domainname = example.com # Uncomment the following to stop low-level messages on console #kernel.printk = 3 4 1 3 ##############################################################3 # Functions previously found in netbase # # Uncomment the next two lines to enable Spoof protection (reverse-path filter) # Turn on Source Address Verification in all interfaces to # prevent some spoofing attacks #net.ipv4.conf.default.rp_filter=1 #net.ipv4.conf.all.rp_filter=1 # Uncomment the next line to enable TCP/IP SYN cookies # See http://lwn.net/Articles/277146/ # Note: This may impact IPv6 TCP sessions too #net.ipv4.tcp_syncookies=1 # Uncomment the…

Setup sputnik server for teradek bond

Image
The Teradek Bond is cellular bonding solutions allows you to transmit 1080p HD video over aggregated bandwidth from several network interfaces, including 3G/4G/LTE, WiFi, BGAN, and Ethernet*

Sputnik Server using to combine the data packets from Bond’s modems into a cohesive video stream, your live broadcast must first be transmitted to a Sputnik server hosted on Amazon’s EC2 cloud or on your own Linux computer with a publicly addressable TCP port. Sputnik is Teradek’s free software application between Bond and your streaming destination, whether its a content delivery network or an IPTV decoder. (see below diagram)




If you are not favour on Linux, You can buy Baseserver. Base is an integrated link aggregation and H.264 decoding solution for video broadcasts transmitted over the Teradek Link or Bond. Inside Base is Cent-OS Linux + Sputnik + Cube 305 Decoder (1 SDI output). 

But if you  no need any SDI output.  May you interested Preconfigured Sputnik Server. It is cheap dell computer Opti…

varnish 4: force cache all

Image
note: for varnish 4.x


sub vcl_backend_response { # client browser and server cache # Force cache: remove expires, Cache-control & Pragma header coming from the backend if (beresp.http.Cache-Control ~ "(no-cache|private)" || beresp.http.Pragma ~ "no-cache") { unset beresp.http.Expires; unset beresp.http.Cache-Control; unset beresp.http.Pragma; # Marker for vcl_deliver to reset Age: / set beresp.http.magicmarker = "1"; # Leveraging browser, cache set the clients TTL on this object / set beresp.http.Cache-Control = "public, max-age=60"; # cache set the clients TTL on this object / set beresp.ttl = 1m; # Allow stale content, in case the backend goes down. # make Varnish keep all objects for 6 hours beyond their TTL set beresp.grace = 6h; return (deliver); } } sub vcl_deliv…

tweak nginx performance

nginx.confuser www-data; worker_processes auto; pid /run/nginx.pid; # Number of file descriptors used for Nginx. This is set in the OS with 'ulimit -n 200000' # or using /etc/security/limits.conf worker_rlimit_nofile 200000; events { worker_connections 4000; multi_accept on; # essential for linux, optmized to serve many clients with each thread use epoll; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 30; keepalive_requests 100000; reset_timedout_connection on; client_body_timeout 10; send_timeout 2; # Caches information about open FDs, freqently accessed files. open_file_cache max=200000 inactive=20s; open_file_cache_valid 30s; open_file_cache_min_uses 2; open_file_cache_errors on; client_max_body_size 100m; types_hash_max_size 2048; # server_tokens off; # server_names_hash_bucket_size 64…

Wowza Streaming Engine 4.3.0.01 released

Image
Wowza Streaming Engine 4.3.0.01 build 16210 Changes lists (since 4.3.0 released)Implemented MPEG-DASH WebVTT VOD captionsImproved ServerListenerStreamDemoPublisher by adding and modifying the following configuration items:
Renamed "repeat" to "playlistRepeat" ("repeat" is also supported) - If true, playlist items are repeatedAdded "publishDuration" - Time, in seconds, the stream will publish (format: HH:MM:SS.mmm)Added "publishRepeat" - If true, the stream is re-published in a loop after the "publishDuration" time has elapsed ("publishDuration" must be greater than zero, default is false)Added "publishPauseTime" - Time, in seconds, the stream pauses before being republished if "publishRepeat" it set to true (format: HH:MM:SS.mmm, default is 1 second)Added Apple HLS (cupertino) LiveStreamPacketizers/Properties integer property cupertinoMaxTimecodeGap (in milliseconds). If the gap in time be…