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 vrindavda <vr...@gmail.com> on 2017/03/23 08:46:38 UTC
Architecture suggestions
Hello,
My production index is expected to contain 50 million documents, with
addition of around 1 million every year.
Should I go for 64GB RAM (4 Shards /4 Replicas) Or 128GB (2 Shards/ 2
Replicas) ?
Please suggest if above assumptions are incorrect. What all parameters
should I consider ?
Thank you,
Vrinda Davda
--
View this message in context: http://lucene.472066.n3.nabble.com/Architecture-suggestions-tp4326436.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Architecture suggestions
Posted by Shawn Heisey <ap...@elyograg.org>.
On 3/24/2017 7:47 AM, vrindavda wrote:
> In my case query rate will be average or say low, 100-120 concorrent
> requests.
That is not a low query rate. A low query rate would be X queries per
second, where X is a small single-digit number. If there are 100
*simultaneous* requests, then the query rate is likely at least several
hundred per second, which is very high. Handling that many requests per
second with an index of the size you have mentioned is almost certainly
going to require more than two servers/replicas.
> As per my understanding replica too aid shards in getting result documents,
> correct if I am wrong.
SolrCloud will automatically load balance requests sent to a single
server across the cloud, taking advantage of multiple replicas.
Depending on what kind of client software is in use, a separate load
balancer might still be a good idea, so the IP address and port isn't a
single point of failure. If you have software that can move the IP
address to another machine in the event of a failure, that would
probably be enough.
Thanks,
Shawn
Re: Architecture suggestions
Posted by vrindavda <vr...@gmail.com>.
Thanks Shawn,
In my case query rate will be average or say low, 100-120 concorrent
requests.
As per my understanding replica too aid shards in getting result documents,
correct if I am wrong.
Moreover, I intend to have fault tolerant architecture, hence opting for
shards/replicas on different server.
Please advice.
Thanks,
Vrinda Davda
On 24-Mar-2017 6:53 PM, "Shawn Heisey-2 [via Lucene]" <
ml-node+s472066n4326641h59@n3.nabble.com> wrote:
On 3/24/2017 1:15 AM, vrindavda wrote:
> Thanks Erick and Emir , for your prompt reply.
>
> We are expecting around 50M documents to sit on 80GB . I understand that
> there is no equation to predict the number/size of server. But
considering
> to have minimal fault tolerant architecture, Will 2 shards and 2 replicas
> with 128GB RAM, 4 core solr instance be advisable ? Will that suffice ?
>
> I am planning to use two solr instances for shards and replicas each and
3
> instances for zookeeper. Please suggest if I am in right direction.
If you have two servers with 128GB and the entire index will be 80GB in
size, this should work well. The heap would likely be fine at around
8GB, so each server would have a complete copy of the index and would
have enough memory available to cache it entirely. With two servers,
you want two replicas, regardless of the number of shards. When I say
two replicas, I am talking about a total of two copies -- not a leader
and two followers.
If the query rate is very low, then sharding would be worthwhile,
because multiple CPUs will be used by a single query. If the query rate
is high, then you would want all the documents in a single shard, so the
CPUs are not overwhelmed. If you don't know what the query rate will
be, assume it will be high.
A more detailed discussion:
https://wiki.apache.org/solr/SolrPerformanceProblems
Thanks,
Shawn
------------------------------
If you reply to this email, your message will be added to the discussion
below:
http://lucene.472066.n3.nabble.com/Architecture-
suggestions-tp4326436p4326641.html
To unsubscribe from Architecture suggestions, click here
<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4326436&code=dnJpbmRhdmRhQGdtYWlsLmNvbXw0MzI2NDM2fDk1NzAxODI5NA==>
.
NAML
<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
--
View this message in context: http://lucene.472066.n3.nabble.com/Architecture-suggestions-tp4326436p4326642.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Architecture suggestions
Posted by Shawn Heisey <ap...@elyograg.org>.
On 3/24/2017 1:15 AM, vrindavda wrote:
> Thanks Erick and Emir , for your prompt reply.
>
> We are expecting around 50M documents to sit on 80GB . I understand that
> there is no equation to predict the number/size of server. But considering
> to have minimal fault tolerant architecture, Will 2 shards and 2 replicas
> with 128GB RAM, 4 core solr instance be advisable ? Will that suffice ?
>
> I am planning to use two solr instances for shards and replicas each and 3
> instances for zookeeper. Please suggest if I am in right direction.
If you have two servers with 128GB and the entire index will be 80GB in
size, this should work well. The heap would likely be fine at around
8GB, so each server would have a complete copy of the index and would
have enough memory available to cache it entirely. With two servers,
you want two replicas, regardless of the number of shards. When I say
two replicas, I am talking about a total of two copies -- not a leader
and two followers.
If the query rate is very low, then sharding would be worthwhile,
because multiple CPUs will be used by a single query. If the query rate
is high, then you would want all the documents in a single shard, so the
CPUs are not overwhelmed. If you don't know what the query rate will
be, assume it will be high.
A more detailed discussion:
https://wiki.apache.org/solr/SolrPerformanceProblems
Thanks,
Shawn
Re: Architecture suggestions
Posted by vrindavda <vr...@gmail.com>.
Thanks Erick and Emir , for your prompt reply.
We are expecting around 50M documents to sit on 80GB . I understand that
there is no equation to predict the number/size of server. But considering
to have minimal fault tolerant architecture, Will 2 shards and 2 replicas
with 128GB RAM, 4 core solr instance be advisable ? Will that suffice ?
I am planning to use two solr instances for shards and replicas each and 3
instances for zookeeper. Please suggest if I am in right direction.
--
View this message in context: http://lucene.472066.n3.nabble.com/Architecture-suggestions-tp4326436p4326612.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Architecture suggestions
Posted by David Hastings <ha...@gmail.com>.
Yeah coming up with a "perfect" machine for your use is completely trial
and error. for me personally i found that on one machine with 24 cores,
148gb ram, handles one solr instance with 4 cores, a 16mil records sitting
at 400gb, a 53mil records sitting at 160gb, and a 108mil records sitting at
300gb. the data sets are all different (kind of) but one machine can
handle this with no issues, running less than 4/10 a second on average on
only one solr instance.
On Thu, Mar 23, 2017 at 11:15 AM, Erick Erickson <er...@gmail.com>
wrote:
> I've seen single nodes handle 10M docs using 64G of heap (using Zing).
> I've seen 300M in 12G of memory. There's absolutely no way to tell.
>
> See: https://lucidworks.com/2012/07/23/sizing-hardware-in-the-
> abstract-why-we-dont-have-a-definitive-answer/
> for a methodology to answer the question with _your_ data and _your_
> query pattern...
>
> Best,
> Erick
>
> On Thu, Mar 23, 2017 at 5:08 AM, Emir Arnautovic
> <em...@sematext.com> wrote:
> > Hi Vrindavda,
> >
> > It is hard to tell anything without testing and details on what/how is
> > indexed, how it is going to be queried and what are latency/throughput
> > requirements.
> >
> > 25M or 12.5M documents per shard might be too much if you have strict
> > latency requirements, but testing is the only way to tell. I would
> suggest
> > that you set up index with single shard and see how many documents you
> can
> > put into it to meet latency requirements under expected load (if you
> plan to
> > have 2 replicas that is roughly the half of the expected load). Leave
> some
> > room for distributed query overhead. After you get that number you can
> see
> > how many shards you need to have.
> >
> > HTH,
> > Emir
> >
> >
> >
> > On 23.03.2017 09:46, vrindavda wrote:
> >>
> >> Hello,
> >>
> >> My production index is expected to contain 50 million documents, with
> >> addition of around 1 million every year.
> >>
> >> Should I go for 64GB RAM (4 Shards /4 Replicas) Or 128GB (2 Shards/ 2
> >> Replicas) ?
> >>
> >> Please suggest if above assumptions are incorrect. What all parameters
> >> should I consider ?
> >>
> >>
> >> Thank you,
> >> Vrinda Davda
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://lucene.472066.n3.nabble.com/Architecture-
> suggestions-tp4326436.html
> >> Sent from the Solr - User mailing list archive at Nabble.com.
> >
> >
> > --
> > Monitoring * Alerting * Anomaly Detection * Centralized Log Management
> > Solr & Elasticsearch Support * http://sematext.com/
> >
>
Re: Architecture suggestions
Posted by Erick Erickson <er...@gmail.com>.
I've seen single nodes handle 10M docs using 64G of heap (using Zing).
I've seen 300M in 12G of memory. There's absolutely no way to tell.
See: https://lucidworks.com/2012/07/23/sizing-hardware-in-the-abstract-why-we-dont-have-a-definitive-answer/
for a methodology to answer the question with _your_ data and _your_
query pattern...
Best,
Erick
On Thu, Mar 23, 2017 at 5:08 AM, Emir Arnautovic
<em...@sematext.com> wrote:
> Hi Vrindavda,
>
> It is hard to tell anything without testing and details on what/how is
> indexed, how it is going to be queried and what are latency/throughput
> requirements.
>
> 25M or 12.5M documents per shard might be too much if you have strict
> latency requirements, but testing is the only way to tell. I would suggest
> that you set up index with single shard and see how many documents you can
> put into it to meet latency requirements under expected load (if you plan to
> have 2 replicas that is roughly the half of the expected load). Leave some
> room for distributed query overhead. After you get that number you can see
> how many shards you need to have.
>
> HTH,
> Emir
>
>
>
> On 23.03.2017 09:46, vrindavda wrote:
>>
>> Hello,
>>
>> My production index is expected to contain 50 million documents, with
>> addition of around 1 million every year.
>>
>> Should I go for 64GB RAM (4 Shards /4 Replicas) Or 128GB (2 Shards/ 2
>> Replicas) ?
>>
>> Please suggest if above assumptions are incorrect. What all parameters
>> should I consider ?
>>
>>
>> Thank you,
>> Vrinda Davda
>>
>>
>>
>> --
>> View this message in context:
>> http://lucene.472066.n3.nabble.com/Architecture-suggestions-tp4326436.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
> --
> Monitoring * Alerting * Anomaly Detection * Centralized Log Management
> Solr & Elasticsearch Support * http://sematext.com/
>
Re: Architecture suggestions
Posted by Emir Arnautovic <em...@sematext.com>.
Hi Vrindavda,
It is hard to tell anything without testing and details on what/how is
indexed, how it is going to be queried and what are latency/throughput
requirements.
25M or 12.5M documents per shard might be too much if you have strict
latency requirements, but testing is the only way to tell. I would
suggest that you set up index with single shard and see how many
documents you can put into it to meet latency requirements under
expected load (if you plan to have 2 replicas that is roughly the half
of the expected load). Leave some room for distributed query overhead.
After you get that number you can see how many shards you need to have.
HTH,
Emir
On 23.03.2017 09:46, vrindavda wrote:
> Hello,
>
> My production index is expected to contain 50 million documents, with
> addition of around 1 million every year.
>
> Should I go for 64GB RAM (4 Shards /4 Replicas) Or 128GB (2 Shards/ 2
> Replicas) ?
>
> Please suggest if above assumptions are incorrect. What all parameters
> should I consider ?
>
>
> Thank you,
> Vrinda Davda
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Architecture-suggestions-tp4326436.html
> Sent from the Solr - User mailing list archive at Nabble.com.
--
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/