You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Xuesong Luo <xl...@successfactors.com> on 2007/07/17 23:54:00 UTC
multiple slaves on the same box
Hi, there,
We have one master server and multiple slave servers. The multiple slave
servers can be run either on the same box or different boxes. For
slaves on the same box, is there any best practice that they should use
the same index or each should have separate indexes?
Thanks
Xuesong
Re: multiple slaves on the same box
Posted by James liu <li...@gmail.com>.
2007/7/18, Ryan McKinley <ry...@gmail.com>:
>
> Xuesong Luo wrote:
> > Hi, there,
> > We have one master server and multiple slave servers. The multiple slave
> > servers can be run either on the same box or different boxes. For
> > slaves on the same box, is there any best practice that they should use
> > the same index or each should have separate indexes?
> >
>
> I'm not sure about 'best' practices, but I can tell you my experience...
>
> We have a master and single slave on the same server using the same
> index. Since it is the same index, there really is no 'distribution'
> scripts, only something that periodically calls 'commit' on the slave
> index. This is working great.
I don't know why "We have a master and single slave on the same server using
the same
index."
master which do index? or do other thing? search will use slave or master,
or first master and second to slave?
My experience: every paritition have their index, and index not same.
Master Index do backup and it in other server.
I can't think of any reason to have more then one slave server on the
> same machine. What are you trying to do?
>
> ryan
>
--
regards
jl
RE: multiple slaves on the same box
Posted by Chris Hostetter <ho...@fucit.org>.
: Thanks for sharing your experience. We have multiple slaves for load
: balance (performance reason) and failover(in case one server dies or
: hung).
if your goal is reliability and performacne, i can't really think of many
reasons why it would make senseto run multiple slaves of the same master
on the same machine ... they're going to be competing for resources (ram,
network i/o, file i/o, CPU, etc...) and you still have a single point of
failure at the hardware level (ram, network interface, disk, cpu,
motherboard, power supply, etc...)
off the top of my head, the only reasons i can think of to run multiple
slaves of a single ndex on the same physical machine are the same reasons
ryn runs a slave on the same machine as a master: differnet config options
for things that affect queries (caches, request handlers, etc...) and
different rates of re-opening readers (which affects that lifespan objects
in caches)
-Hoss
RE: multiple slaves on the same box
Posted by Xuesong Luo <xl...@successfactors.com>.
Thanks for sharing your experience. We have multiple slaves for load
balance (performance reason) and failover(in case one server dies or
hung).
Thanks
Xuesong
-----Original Message-----
From: Ryan McKinley [mailto:ryantxu@gmail.com]
Sent: Tuesday, July 17, 2007 3:00 PM
To: solr-user@lucene.apache.org
Subject: Re: multiple slaves on the same box
Xuesong Luo wrote:
> Hi, there,
> We have one master server and multiple slave servers. The multiple
slave
> servers can be run either on the same box or different boxes. For
> slaves on the same box, is there any best practice that they should
use
> the same index or each should have separate indexes?
>
I'm not sure about 'best' practices, but I can tell you my experience...
We have a master and single slave on the same server using the same
index. Since it is the same index, there really is no 'distribution'
scripts, only something that periodically calls 'commit' on the slave
index. This is working great.
I can't think of any reason to have more then one slave server on the
same machine. What are you trying to do?
ryan
Re: multiple slaves on the same box
Posted by Ryan McKinley <ry...@gmail.com>.
Xuesong Luo wrote:
> Hi, there,
> We have one master server and multiple slave servers. The multiple slave
> servers can be run either on the same box or different boxes. For
> slaves on the same box, is there any best practice that they should use
> the same index or each should have separate indexes?
>
I'm not sure about 'best' practices, but I can tell you my experience...
We have a master and single slave on the same server using the same
index. Since it is the same index, there really is no 'distribution'
scripts, only something that periodically calls 'commit' on the slave
index. This is working great.
I can't think of any reason to have more then one slave server on the
same machine. What are you trying to do?
ryan