Sharing RAID0 between LAMP servers?

This is a discussion on Sharing RAID0 between LAMP servers? within the Storage forums, part of the Systems category; Hello Our LAMP application is showing I/O latency. I was wondering if we could move to multiple Apache servers, each connected through their own disk controller to a single, shared ...

Go Back   Unix Linux Forum > Technologies & Tools > Systems > Storage

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-25-2008, 06:08 AM
Default Sharing RAID0 between LAMP servers?

Hello

Our LAMP application is showing I/O latency. I was wondering if we
could move to multiple Apache servers, each connected through their
own disk controller to a single, shared RAID0 bay?

Our hoster recommends that we use a NAS, but I'm concerned about
network + NFS latency.

Thank you for any tip.
Reply With Quote
  #2  
Old 08-25-2008, 08:15 AM
Default Re: Sharing RAID0 between LAMP servers?

Gilles Ganault wrote:
> Hello
>
> Our LAMP application is showing I/O latency. I was wondering if we
> could move to multiple Apache servers, each connected through their
> own disk controller to a single, shared RAID0 bay?
>
> Our hoster recommends that we use a NAS, but I'm concerned about
> network + NFS latency.
>
> Thank you for any tip.


Where's the latency being seen? Between the user and the application or
from the application to the storage? If you have latency from the
application (mysql/apache) to the storage then higher performance
storage is needed - more disks and/or more cache - regardless of the
number of servers.

If you need several servers accessing the same dataset and it's largely
reads, NFS is the easiest way. If you want to directly connect several
servers to the same storage you'll need a storage controller which
allows multiple devices to access the storage and you'll need to install
a cluster filesystem. That's a load of complexity that you could
probably do without.

If you have a dedicated network, then the latency of NFS & the network
is going to be insignificant compared to the latency of a disk access.

Pete
Reply With Quote
  #3  
Old 08-25-2008, 11:38 AM
Default Re: Sharing RAID0 between LAMP servers?

Gilles Ganault wrote:
> Hello
>
> Our LAMP application is showing I/O latency. I was wondering if we
> could move to multiple Apache servers, each connected through their
> own disk controller to a single, shared RAID0 bay?
>
> Our hoster recommends that we use a NAS, but I'm concerned about
> network + NFS latency.
>
> Thank you for any tip.


You sound confused about all this.

What is the problem you're experiencing, or how did you arrive at "showing
I/O latency" as the bottlneck in this case?



Reply With Quote
  #4  
Old 08-26-2008, 05:54 AM
Default Re: Sharing RAID0 between LAMP servers?

On Mon, 25 Aug 2008 12:15:01 GMT, Pete
wrote:
>Where's the latency being seen? Between the user and the application or
>from the application to the storage?


Thanks guys for the input.

It was between the www servers and the MySQL + JPGs server. We asked
the hoster to add a filer, and performance is much better now, with
the filter being shared between two Apache servers

If demande keeps rising, I guess we'll have to investigate MySQL
clusters, so that the DB doesn't become the bottleneck again.

> If you want to directly connect several servers to the same storage
> you'll need a storage controller which allows multiple devices
> to access the storage and you'll need to install a cluster filesystem.
> That's a load of complexity that you could probably do without.


Yes, that's what I suspected :-/ So I guess the standard solution to
scaling databases is to add some kind of load balancer, and 2 or more
DB servers behind it.
Reply With Quote
  #5  
Old 08-27-2008, 04:45 PM
Default Re: Sharing RAID0 between LAMP servers?

Gilles Ganault wrote:
> On Mon, 25 Aug 2008 12:15:01 GMT, Pete
> wrote:
>>Where's the latency being seen? Between the user and the application or
>>from the application to the storage?

>
> Thanks guys for the input.
>
> It was between the www servers and the MySQL + JPGs server. We asked
> the hoster to add a filer, and performance is much better now, with
> the filter being shared between two Apache servers
>
> If demande keeps rising, I guess we'll have to investigate MySQL
> clusters, so that the DB doesn't become the bottleneck again.
>
>> If you want to directly connect several servers to the same storage
>> you'll need a storage controller which allows multiple devices
>> to access the storage and you'll need to install a cluster filesystem.
>> That's a load of complexity that you could probably do without.

>
> Yes, that's what I suspected :-/ So I guess the standard solution to
> scaling databases is to add some kind of load balancer, and 2 or more
> DB servers behind it.


It's really to tune things first, then as a last resort, start adding more
hardware. More hardware and more layers is always harder to manage.

As junior as mysql is, there's lots of stuff that can be tweaked. The
apps using it should be examined as well if you are running into
performance problems.
Reply With Quote
  #6  
Old 08-28-2008, 02:40 AM
Default Re: Sharing RAID0 between LAMP servers?

On Wed, 27 Aug 2008 20:45:11 +0000 (UTC), Cydrome Leader
wrote:
>It's really to tune things first, then as a last resort, start adding more
>hardware. More hardware and more layers is always harder to manage.


I'll make sure MySQL + queries are configured as best as possible.
Thanks.
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 11:28 PM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger