LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-20-2016, 12:15 PM   #1
markotitel
Member
 
Registered: Feb 2009
Location: Titel - Serbia
Posts: 181

Rep: Reputation: 18
streaming server bandwidth overload solution with iptables. Question.


I have several servers that are used with nginx and mp4 module for streaming.

I was searching several variants of the same topic regarding iptables, tc, htb and rate limiting.

What I cannot find is: is it possibile to create a rule which will limit every connection on port 80 to specific speed.

What will I achieve with this is equal bandwidth alocation for each user that is downloading the stream.

Thing is that IP addresses are not known upfront.
 
Old 07-20-2016, 04:16 PM   #2
markotitel
Member
 
Registered: Feb 2009
Location: Titel - Serbia
Posts: 181

Original Poster
Rep: Reputation: 18
After little bit of a break, I will go for the Squid reverse proxy with delay pools.

Here is config that works fine. Limits all stream downloaders.

About 300 hundred users per server cpu barely notices anything.

Quote:
http_access allow localhost manager
http_access deny manager
http_access allow all
http_port 80 accel defaultsite=HOST no-vhost
cache_peer HOST parent 81 0 no-query originserver
coredump_dir /var/spool/squid
client_delay_pools 1
client_delay_parameters 1 256000 256000
client_delay_access 1 allow all

Last edited by markotitel; 07-20-2016 at 05:54 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bandwidth overload famsinyi Linux - Networking 1 01-14-2011 02:25 PM
Restricting bandwidth to streaming video and flash Histamine Linux - Networking 0 02-25-2008 01:43 PM
mysql using 50%-110% of cpu / Getting [statscheck] Stats/Server Overload on server!!! CrewXp Linux - Server 2 05-16-2007 05:28 AM
Server overload Nistor.Mihai Linux - Networking 3 02-02-2007 02:36 PM
Streaming solution sewer_monkey Linux - Software 6 04-28-2004 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration