dougao2830 2018-03-12 13:54
浏览 186

PHP Elasticsearch集群

I have an application in PHP.

It uses Elastic search for searching( search , insert) operations.

I want to speed my application. So ,Recently i have made the ElasticSearch to clustering concept (Totally 3 nodes- data nodes also : 03)

Initial Node : node-1

New nodes : node-2, node-3

In my application , i have configured php to conenct to one of the ES ( node-1) in my code.

I need to know,

   1) Is it enough to point one of the ES clustering node among ( node1, node2 , node3 ) in the PHP configurations ?
   2) Will itself do some internal process to split the requests based on load
   3) What are all the internal process ( php -> ES clustering )?
   4) Do i need to give the all the IP in PHP configurations 
    Or
   5) I need to mention for insert it should go to node-1 for search it should go to node-2 like that for proper functioning / speed up the process 

   6) How do i know which request goes to which node ?
  • 写回答

1条回答 默认 最新

  • dqiaw48488 2018-03-12 16:31
    关注

    To answer questions for 1-4, you need to purely depend on your elasticsearch configurations. What things you pointed out will support in elasticsearch configuration. Elasticsearch supports master-data failover. Question 5 is quit complex for which you can simply point out master IP for balancing. Operation like insert, search, etc. will be done by ES itself based on the node availability. We need not worry about it. Could you brief me on Question 6?

    评论

报告相同问题?

悬赏问题

  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?