elasticsearch 集群搭建
2016-02-29 22:57
441 查看
需要编辑的文件是config/elasticsearch.yml文件
需要配置的项目有:
在同一个网络中,如果启用多播,就会自动发现,生产环境中建议使用单播,有更好的稳定性。
遇到这个问题,一直以为是自己的网络问题,想偏了。
应该细细阅读配置文件,或者是去官方文档上细细阅读,如果想把ELK应用于生产环境,真得需要对文档熟悉,提高工作的效率。
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html
需要配置的项目有:
# Use a descriptive name for your cluster: # cluster.name: Hadoop # # ------------------------------------ Node ------------------------------------ # # Use a descriptive name for the node: # #node.name: nn2 node.name: ${HOSTNAME} # # Set the bind address to a specific IP (IPv4 or IPv6): # network.host: 192.168.56.122 # # Set a custom port for HTTP: # # http.port: 9200 # # For more information, see the documentation at: # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html> # # ---------------------------------- Gateway ----------------------------------- # # Block initial recovery after a full cluster restart until N nodes are started: # # gateway.recover_after_nodes: 3 # # For more information, see the documentation at: # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html> # # --------------------------------- Discovery ---------------------------------- # # Elasticsearch nodes will find each other via unicast, by default. # # Pass an initial list of hosts to perform discovery when new node is started: # The default list of hosts is ["127.0.0.1", "[::1]"] # discovery.zen.ping.unicast.hosts: ["nn1","nn2","dn1"]
在同一个网络中,如果启用多播,就会自动发现,生产环境中建议使用单播,有更好的稳定性。
遇到这个问题,一直以为是自己的网络问题,想偏了。
应该细细阅读配置文件,或者是去官方文档上细细阅读,如果想把ELK应用于生产环境,真得需要对文档熟悉,提高工作的效率。
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html
相关文章推荐
- linux第1天 fork exec 守护进程
- CodeForces 589B-Layer Cake-暴力模拟
- jsp的9大隐式对象的使用总结
- 一连U盘就报错“蓝屏”系统是:win 7
- bzoj3196 tyvj1730 二逼平衡树
- 不要24小时都想念同一个人_52jdss 经典说说
- Android Ⅰ
- 该死的bug滚去吧!万恶的IE(陆续更新)
- 因31亿美元债务,鸿海宣布暂缓入主夏普
- Framework分析-点击Launcher中的图标启动Activity
- C++ stl队列Queue用法介绍:删除,插入等操作代码举例
- HTML系列(二):头部meta元素
- ArrayList去重复以及遍历
- 有质量和碰撞的小球
- iOS-layoutSubvies和drawRect何时调用
- 一步步构建自己的AngularJS(2)——scope之$watch及$digest
- php+mysql注入
- 设计模式(3)---基本原则
- c语言结构体排序示例
- 【VS开发】图像颜色