From: kamen <kamen@evrocom.net>
To: lartc@vger.kernel.org
Subject: [LARTC] Re: optimizing traffic to a web server
Date: Sat, 24 Nov 2007 01:45:49 +0000 [thread overview]
Message-ID: <uve7sl8ky.fsf@evrocom.net> (raw)
On Fri, Nov 23 2007, Radek 'Goblin' Pieczonka wrote:
> this task should be an easy objective to acomplish, do you have some
> kind of shaping in place at this moment ? anyway, please supply more
> info on priv and i may be able to help you.
>
Cool... here is how I tried to optimize the traffic:
helper () {
...
iptables -t mangle -A $CHAIN -p tcp -m tcp --sport 80 --source my-domain.com -j MARK --set-mark 0x2
iptables -t mangle -A $CHAIN -p tcp -m tcp --sport 80 -j RETURN
...
}
OPR=start CHAIN=OUTPUT helper
OPR=start CHAIN=PREROUTING helper
tc_helper () {
...
tc qdisc add dev ${WAN_IF} root handle 1: htb default 15 r2q 1
tc class add dev ${WAN_IF} parent 1: classid 1:1 htb rate ${UPLINK} ceil ${UPLINK} burst 6k
tc class add dev ${WAN_IF} parent 1:1 classid 1:10 htb rate 64kbit ceil 64kbit prio 0
tc class add dev ${WAN_IF} parent 1:1 classid 1:11 htb rate 64kbit ceil ${UPLINK} prio 1
tc filter add dev ${WAN_IF} parent 1:0 protocol ip prio 1 handle 1 fw classid 1:10
tc filter add dev ${WAN_IF} parent 1:0 protocol ip prio 2 handle 2 fw classid 1:11
...
}
WAN_IF=eth2 tc_helper
Please tell me if you need more information.
Thanks,
--
Kamen
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next reply other threads:[~2007-11-24 1:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-24 1:45 kamen [this message]
2007-11-26 15:20 ` [LARTC] Re: optimizing traffic to a web server kamen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uve7sl8ky.fsf@evrocom.net \
--to=kamen@evrocom.net \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox