zoukankan      html  css  js  c++  java
  • Elasticsearch集群

    详细Elasticsearch安装:

    https://www.cnblogs.com/littlehb/p/8406378.html

    安装之前需先优化内核:

    https://www.cnblogs.com/kgdxpr/p/3342102.html

    简单安装:

    --下载
    wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.0.zip
    unzip elasticsearch-6.3.0.zip
    mv elasticsearch-6.3.0 elasticsearch
    
    --增加用户
    adduser elasticsearch
    echo elasticsearch | passwd --stdin elasticsearch
    chown -R elasticsearch /usr/local/elasticsearch
    
    --启动
    su elasticsearch -l -c "/usr/local/elasticsearch/bin/elasticsearch"

    修改Elasticsearch的jvm配置(为服务器总内存的一半)

    vi /usr/local/elasticsearch/config/jvm.options
    
    -Xms4g
    -Xmx4g

    master配置文件:

    cluster.name: bigData
    node.name: master_node
    node.master: true
    node.data: false
    network.host: 10.10.14.170
    http.port: 9200
    transport.tcp.port: 9300
    discovery.zen.ping.unicast.hosts: ["10.10.14.170:9300", "10.10.14.171:9300", "10.10.14.172:9300", "10.10.14.173:9300"]
    
    bootstrap.memory_lock: false
    bootstrap.system_call_filter: false
    
    discovery.zen.minimum_master_nodes: 1
    discovery.zen.ping_timeout: 10s
    
    gateway.recover_after_nodes: 3
    gateway.recover_after_time: 5m
    gateway.expected_nodes: 2
    
    http.cors.enabled: true
    http.cors.allow-origin: "*"
    
    path.repo: /usr/local/test    #做快照用的

    dataNode配置文件:

    cluster.name: bigData
    node.name: node1
    node.master: false
    node.data: true
    network.host: 10.10.14.171
    http.port: 9200
    transport.tcp.port: 9300
    discovery.zen.ping.unicast.hosts: ["10.10.14.170:9300", "10.10.14.171:9300", "10.10.14.172:9300", "10.10.14.173:9300"]
    
    bootstrap.memory_lock: false
    bootstrap.system_call_filter: false
    
    discovery.zen.minimum_master_nodes: 1
    discovery.zen.ping_timeout: 10s
    
    gateway.recover_after_nodes: 3
    gateway.recover_after_time: 5m
    gateway.expected_nodes: 2
    
    path.repo: /usr/local/test
  • 相关阅读:
    费马小定理
    Big Number阶乘位数计算(斯特林公式)
    V
    矩阵快速幂求斐波那契
    奇迹
    缘分
    求导
    拓扑排序
    线段树
    单调栈
  • 原文地址:https://www.cnblogs.com/kgdxpr/p/9257581.html
Copyright © 2011-2022 走看看