Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-01-2004, 05:49 PM   #1
jpv
Confirmed User
 
Join Date: Aug 2001
Posts: 301
load balancing servers for gallery submitting...

I am thinking about setting up 2 servers each with their own ip. so when visitors a load a gallery they can be taken to either server. is this a good idea for gallery submitting? I am not sure about the features of tgp and mgp scripts so I don't know if they would pick up the 2 different ips as cheating.
jpv is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 06:02 PM   #2
demented
Confirmed User
 
Industry Role:
Join Date: Dec 2002
Location: Cincinnati Ohio
Posts: 2,388
I don't think you need to do anything like that just for galleries unless you will be getting more than normal traffic. I can handle over 100k uniques a day of movie gallery traffic with no problem at all on one single server..
demented is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 06:08 PM   #3
WarChild
Let slip the dogs of war.
 
WarChild's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
Quote:
Originally posted by demented
I don't think you need to do anything like that just for galleries unless you will be getting more than normal traffic. I can handle over 100k uniques a day of movie gallery traffic with no problem at all on one single server..
When you get up around the 1,000,000 per day mark on movie galleries, you NEED to have two severs. It will pin 100mbits line which could be solved with another NIC .. but the large number of HTML files that galleries create (all the recips) will eventually start to bog down the server.

I'm using two servers, but just have domains seperated. If you're running less than 500,000 hits a day, even the least talented server admin's optimization should eliminate the need for a second server.
WarChild is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 06:09 PM   #4
jpv
Confirmed User
 
Join Date: Aug 2001
Posts: 301
I don't know what you consider normal but I get alot more than 100k per day. I need two servers.

Anyone load balance their servers for submitting?
jpv is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 06:13 PM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally posted by jpv
I don't know what you consider normal but I get alot more than 100k per day. I need two servers.

Anyone load balance their servers for submitting?
if you want to talk about load balancing i would talk to the people at techiemedia, they host ogrish, ogrish is on loadbalancing servers, so they have theres setup good.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 06:16 PM   #6
jpoker
Confirmed User
 
Join Date: Feb 2003
Location: Vancouver
Posts: 362
jpv, you can indeed do this. There are several advantages to setting things up this way even if one given server
can handle the load. This is especially true
if you are hosting with places like servermatrix where a
given server with 1200 GB is really cheap, but overage
is expensive.

1) if one of your servers has a hardware failure you still
have the other one in operation and can direct all
the load to it.

2) when your traffic does grow you already have
a plan in place on how to scale.

There are some disadvantages though.

1) you'll need to keep your content mirrored across
the two (or more) servers. rsync over ssh is probably
the most common method of doing this and is
quite fast.

2) if you are using DNS round robin to distribute the load
you can run into some unsual issues if you have approx
23 or more servers in your rotation. The DNS system
normally uses UDP packets to communicate. However,
if the response from the DNS server is over a certain
size, the communication switches to TCP. Now,
this shouldn't pose a problem, but for some reason
it does. I found that when i exceed 23 servers in
my rotation that some people would start complaining
that they couldn't reach my site. I never figured out
the exact cause though and why it only occured on
some computers and not others.

3) 2 or more servers means more server administration.

As for your question regarding TGP/MGP scripts... to the best
of my knowledge, i have never had a gallery rejected
because it is on a load balanced system.


- jpoker
jpoker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 06:25 PM   #7
jpv
Confirmed User
 
Join Date: Aug 2001
Posts: 301
Quote:
Originally posted by jpoker

As for your question regarding TGP/MGP scripts... to the best
of my knowledge, i have never had a gallery rejected
because it is on a load balanced system.


- jpoker
This is what I need to know. I have already decided to go with a round robin between two servers IF the tgp/mgp scripts out there don't see the redirecting between two ips as cheating.
jpv is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 06:26 PM   #8
demented
Confirmed User
 
Industry Role:
Join Date: Dec 2002
Location: Cincinnati Ohio
Posts: 2,388
Quote:
Originally posted by jpv
I don't know what you consider normal but I get alot more than 100k per day. I need two servers.

Anyone load balance their servers for submitting?
Well these days I don't think there are many "regular" gallery submitters that get even close to 100k uniques per day. It's pretty hard to get that without submitting good galleries every day and using good partner accounts and/or paid spots IMO.
demented is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 06:35 PM   #9
rickholio
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
Quote:
Originally posted by jpoker
jpv, you can indeed do this. There are several advantages to setting things up this way even if one given server
can handle the load. This is especially true
if you are hosting with places like servermatrix where a
given server with 1200 GB is really cheap, but overage
is expensive.

1) if one of your servers has a hardware failure you still
have the other one in operation and can direct all
the load to it.

2) when your traffic does grow you already have
a plan in place on how to scale.

There are some disadvantages though.

1) you'll need to keep your content mirrored across
the two (or more) servers. rsync over ssh is probably
the most common method of doing this and is
quite fast.

2) if you are using DNS round robin to distribute the load
you can run into some unsual issues if you have approx
23 or more servers in your rotation. The DNS system
normally uses UDP packets to communicate. However,
if the response from the DNS server is over a certain
size, the communication switches to TCP. Now,
this shouldn't pose a problem, but for some reason
it does. I found that when i exceed 23 servers in
my rotation that some people would start complaining
that they couldn't reach my site. I never figured out
the exact cause though and why it only occured on
some computers and not others.

3) 2 or more servers means more server administration.

As for your question regarding TGP/MGP scripts... to the best
of my knowledge, i have never had a gallery rejected
because it is on a load balanced system.


- jpoker
I wouldn't recommend the DNS method of load distribution. DNS entries cache, and tend to produce 'clumps' of hits... not very evenly spread. There's a couple of ways to get load spread out nice and evenly across multiple servers.

The expensive way is to invest in a hardware load balancer. There's a variety of them on the market but they all basically do the same job: Take in hits on a virtual IP address and farm them out to real servers inside your network.

Advantages: They're standalone bits of hardware. All they do is load-balance stuff. You can usually point MRTG at them and get statistics too, if you like pretty graphs. Many come with pretty front-ends so setup is a breeze.

Disadvantages: Can be a substantial cost to small-medium webmasters. Fault-tolerant operation requires multiple units, multiplying the cost.

The cheaper (and in my opinion, more flexible) way is to run a unix box with virtual server support. It's free software, and unless you're pushing a WHOLE bunch of traffic (500mbps+) it'll handle your load easily assuming you put the software on a box with sufficiently advanced hardware. You can easily get 250mbps+ out of a stock P4 Dell 1u box with 2x GigE copper ports.

Advantages: Cheap, and very flexable. If you have a resident geek, he can make this sort of setup do backflips.

Disadvantages: More difficult to set up. Will require someone with reasonably advanced technical know-how to get it running (although it's a fire-and-forget type of tool that requires very little maintenance once set up).

Load balanced servers do require data synchonization. Rsync works but multiplies your data storage requirements (not an issue if your data set is small). Another alternative is to centrally locate your files and mount them as NFS, so changes to the master immediately take effect on the front-end slave boxes.

The only other caveat is data storage. If you have scripts writing data to a file local to the machine when submissions are made, then that submission won't be known to other boxes in your load group until you sync them. If submissions come from 2 or more machines in your group simultaneously, you could lose data in a 'collision'. Scripts which use central database stores (postgres, mysql, oracle etc) don't have these problems. If your script uses MySQL, chances are this won't be an issue for you.

Hope this helps some, and doesn't just confuse you more.
rickholio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 06:38 PM   #10
SinisterStudios
Confirmed User
 
Join Date: Nov 2003
Location: New Joisey
Posts: 3,087
We run a cluster of 4 front end servers that we load balance with LVS and IPVS, if you are going to do it yourself make sure you look into load balancing with ipvs and lvs on linux. The best part of this setup is you can add or remove servers as needed with no impact on the production sites. This setup for us handles massive amounts of traffic and the servers are never bogged down.
__________________
SEOIP.com
Multiple IP Webhosting
Shared and Dedicated IP's - Multiple Class A's - From $1.99/ip
SinisterStudios is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 06:45 PM   #11
kong
Confirmed User
 
Join Date: Mar 2001
Posts: 188
We have some load balanced servers at candid that do a great job. Pretty scalable... when needed we just pop a new server up, all the content gets copied over. If one server goes down, the rest take over its load, so little downtime, :-) I think they only charge about $100 each sever.
kong is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 06:55 PM   #12
Superterrorizer
Confirmed User
 
Join Date: Sep 2003
Posts: 509
Quote:
Originally posted by rickholio

The cheaper (and in my opinion, more flexible) way is to run a unix box with virtual server support. It's free software, and unless you're pushing a WHOLE bunch of traffic (500mbps+) it'll handle your load easily assuming you put the software on a box with sufficiently advanced hardware. You can easily get 250mbps+ out of a stock P4 Dell 1u box with 2x GigE copper ports.
Just curious what you mean by "Stock P4 dell" I don't know of any "stock" server (Stock meaning no frills) that's going to push 100mbit nevermind 250mbit. (This is purely based on hard drive I/O.)
Superterrorizer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 07:07 PM   #13
modF
Confirmed User
 
Join Date: Aug 2002
Posts: 1,888
Also, to answer your question of cheating, with a hardware loadbalancer your domain will point to a vip of the router. So the gallery scanner will see that ip address, the actual ip address of the server will show up in the logs beyond that. (to the sponsors, not that they care)
__________________

I do things
skype:themodF
modF is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 07:14 PM   #14
Big Ray
Confirmed User
 
Join Date: Dec 2003
Posts: 464
Come to Jupiter Hosting. We'll show you how load balanced gallery servers are done.

We do them for most of the major adult company on the net.

(quick note... NFS is the way to go vs. rsync). You can scale more effectively. DNS Round Robin = bad)

Contact me with the info below and I'll show you some examples.
__________________

Five of the Top 10 Largest Programs Host with Jupiter. Find out why at http://www.jupiterhosting.com
Big Ray is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 07:32 PM   #15
rickholio
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
Quote:
Originally posted by Superterrorizer
Just curious what you mean by "Stock P4 dell" I don't know of any "stock" server (Stock meaning no frills) that's going to push 100mbit nevermind 250mbit. (This is purely based on hard drive I/O.)
Yes, when I say 'stock' I mean basic, no-frills boxes. I could have been more specific there.

When you're dealing with LVS action, the packets never reach the disk subsystem. The packet gets read in, header modified, and right out the other network card. Very efficient.

Now if it had to hit the disk, that WOULD slow things up substantially... but it's not an issue in this case, unless you're talking about disk subsystem performance required to push 250mbit of actual content. That's a case where load balancing pretty much becomes a requirement... 10 boxes with the same data pushing out 250mbit aggregate only requires a max capacity of 30mbit, and any cheapo beige box with IDE drives can handle that.

Last edited by rickholio; 09-01-2004 at 07:34 PM..
rickholio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 07:36 PM   #16
jpv
Confirmed User
 
Join Date: Aug 2001
Posts: 301
thanks for the information. I sent some of it on to my host to see what they can do. I thought round robin would be the best because it seemed easy but now I think the best way is through hardware.

Thanks Ray for the info. I will pass on coming to jupiter. I have a solid host now
jpv is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 08:30 PM   #17
jpoker
Confirmed User
 
Join Date: Feb 2003
Location: Vancouver
Posts: 362
Quote:
Originally posted by jpv
thanks for the information. I sent some of it on to my host to see what they can do. I thought round robin would be the best because it seemed easy but now I think the best way is through hardware.

Thanks Ray for the info. I will pass on coming to jupiter. I have a solid host now

Despite the comments mentioned here, Round Robin is
actually just fine. Its not perfect, but I haven't
experienced any problems with it (other than when i introduced more than 23 servers in the rotation) nor have I have seen
the clumping that was mentioned above.

Load Balancers are indeed the ideal solution but if you
are using only one of them then you are introducing a single
point of failure which defeats one of the purposes of
having a load balanced system. If you can afford it, redundant
load balancers are the nice cadillac solution. But for galleries,
i would tend to stay with simple and cheap.



- jpoker.
jpoker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 10:15 PM   #18
Big Ray
Confirmed User
 
Join Date: Dec 2003
Posts: 464
Quote:
Originally posted by jpoker
Despite the comments mentioned here, Round Robin is
actually just fine. Its not perfect, but I haven't
experienced any problems with it (other than when i introduced more than 23 servers in the rotation) nor have I have seen
the clumping that was mentioned above.

Load Balancers are indeed the ideal solution but if you
are using only one of them then you are introducing a single
point of failure which defeats one of the purposes of
having a load balanced system. If you can afford it, redundant
load balancers are the nice cadillac solution. But for galleries,
i would tend to stay with simple and cheap.



- jpoker.
What does the end user see when a load balanced server goes down?

What does the end user see what a RR DNS server foes down?

Very different outcomes. With RR, you loose a significant portion of your traffic. Load Balance, the hardware takes the server out of rotation.

Trust me when I say I know what I am talking about. I have been doing this since Local Director was a startup (not owned by Cisco) shipping me demo boxes to test back at my days at Schwab.
Big Ray is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 10:29 PM   #19
VeriSexy
Join The Royal Family
 
VeriSexy's Avatar
 
Join Date: Apr 2002
Posts: 25,463
I heard good things about F5 Networks. They are not really that expensive on Ebay

BIG-IP® LoadBalancer
http://www.f5.com/f5products/bigip/LB520/



Looks sweet too
__________________
Looking for a KICK ASS TEEN SPONSOR? Check out ROYAL CASH - THE KING OF TEEN!
Incredible webmaster tools FHGs, Morphing Blog and RSS Feeds, Embedded FLV & WMV Videos
.
With TOP RATIO Sites like


ATMovs.com | iTeenVideo.com |
TeenSexMovs.com | TeenSexMania.com


VeriSexy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-01-2004, 10:32 PM   #20
VeriSexy
Join The Royal Family
 
VeriSexy's Avatar
 
Join Date: Apr 2002
Posts: 25,463
__________________
Looking for a KICK ASS TEEN SPONSOR? Check out ROYAL CASH - THE KING OF TEEN!
Incredible webmaster tools FHGs, Morphing Blog and RSS Feeds, Embedded FLV & WMV Videos
.
With TOP RATIO Sites like


ATMovs.com | iTeenVideo.com |
TeenSexMovs.com | TeenSexMania.com


VeriSexy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-02-2004, 09:38 AM   #21
jpoker
Confirmed User
 
Join Date: Feb 2003
Location: Vancouver
Posts: 362
Quote:
Originally posted by Big Ray
What does the end user see when a load balanced server goes down?

What does the end user see what a RR DNS server foes down?

Very different outcomes. With RR, you loose a significant portion of your traffic. Load Balance, the hardware takes the server out of rotation.

Trust me when I say I know what I am talking about. I have been doing this since Local Director was a startup (not owned by Cisco) shipping me demo boxes to test back at my days at Schwab.
Big Ray, everything you are saying is accurate and I'm in no
way doubting that you know what you are doing.
You
are correct in saying that when a RR server goes down
that one can lose some traffic until such time as you've
taken the broken server out of the rotation and all
name servers have refreshed with new info. If you
keep your TTL fairly low, 15 minutes or so, and if you
are quick to take broken servers out of rotation (perhaps
automatically by an outage detection script) then this
can be minimized. Anyway, all i'm suggesting is that
its a cost versus benefit situation. For hosting galleries
i personally don't think that having redudant hardware
load balancers is worth the expense (actually, to be honest, i haven''t looked at recent prices - its entirely possible they
are really cheap now, but they certainly were not
a couple years ago) If thats the case, just ignore me
entirely and pretend i didn't open my mouth).

- jpoker
jpoker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-02-2004, 09:48 AM   #22
johnbosh
Confirmed User
 
Join Date: Aug 2002
Location: The Netherlands, Rotterdam
Posts: 8,965
do you really need it?
johnbosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.