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 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度