LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Release new code: Scheduler for distributed caching

To: Thomas Proell <Thomas.Proell@xxxxxxxxxx>
Subject: Re: Release new code: Scheduler for distributed caching
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Julian Anastasov <ja@xxxxxx>
Date: Wed, 25 Oct 2000 00:31:54 +0000 (GMT)
        Hello,

On Mon, 23 Oct 2000, Thomas Proell wrote:

> What is it for?
> ***************
>
> With the "Consistent Hashing Scheduler" you can set up a cache
> farm with LVS. It is NOT useable for a SERVER-farm, it is designed
> for CACHES.

        What about such setup (not tested):

# 1. Schedule based on Class C destinations: select squid server
ipchains -A input -d 0.0.0.0/0.0.3.0 80 -p TCP -m 1
ipchains -A input -d 0.0.1.0/0.0.3.0 80 -p TCP -m 2
ipchains -A input -d 0.0.2.0/0.0.3.0 80 -p TCP -m 3
ipchains -A input -d 0.0.3.0/0.0.3.0 80 -p TCP -m 4


# 2. Split the incoming traffic
ip rule add prio 101 fwmark 1 table 101
ip rule add prio 102 fwmark 2 table 102
ip rule add prio 103 fwmark 3 table 103
ip rule add prio 104 fwmark 4 table 104

# 3. Route the packets to the squid servers
ip route add table 101 0/0 via squid1 dev eth0
ip route add table 102 0/0 via squid2 dev eth0
ip route add table 103 0/0 via squid3 dev eth0
ip route add table 104 0/0 via squid4 dev eth0

> Thomas
>
>
> P.S. For those who wonder how LVS can distribute load among caches:
> You can set up the "ipchains" which seems to be a firewall. With
> that you can mark all incoming packets. Then, you can set up LVS that
> way, that it handles all marked packets. It's that easy!

        Yes, it is simple even without using LVS :) You can even
create netfilter module for 2.4 to mark the packets in different
way (hashes, etc). Then it is a plain routing.


Regards

--
Julian Anastasov <ja@xxxxxx>



<Prev in Thread] Current Thread [Next in Thread>