mongodb - ElasticSearch architecture and hosting -
i looking use elastic search mongodb support our full text search requirements. struggling find information on architecture , hosting , help. planning host es on premise rather in cloud. have mongodb running in replica set 3 nodes.
- how many servers required run elasticsearch high availability?
- what recommended server specification. thoughts 2 x cpu, 4gb ram, c drive: 40gb , d drive: 40gb
- how es support failover
thanks
tariq
- how many servers required run elasticsearch high availability?
at least 2
what recommended server specification. thoughts 2 x cpu, 4gb ram, c drive: 40gb , d drive: 40gb
it depends on amount of data you're indexing, amount of ram , (i'm assuming decent dual core cpu) should enough started
how es support failover
you set clustering multiple nodes in such way each node has replica of
so in simple example cluster consist of 2 servers, each 1 node on them. you'd set replicas 1 shards in node, have backup copy stored on other node , vice versa.
so if node goes down, elasticsearch detect failure , route requests node replica on node, until fix problem.
of course make more robust having 4 servers 1 node each , 2 replicas, example. must understand elasticsearch optimize distribution of replicas , primary shards based on number of shards have.
so 2 nodes , 1 replica example above, added 2 servers/nodes (1 node/server recommended), elasticsearch move replicas off nodes , own node, you'd have 2 nodes 1 primary shard(s) , nothing else 2 other nodes 1 copy of shards (replicas) each.
Comments
Post a Comment