• elk3


     视频来自:

     

     

     

     

     

     

     

     

     bootstrap.memory_lock要设置为true,默认使用物理内存

    mini_mum_nodes:1表示es集群中最小的matser节点数目,默认就是1,当es集群数目较少的时候,设置为1就可以了,当es集群数目很大,master节点一般设置为2或者4

    如果设置过大会导致es启动失败

    ping-timeout设置集群中节点自动发生的时间,如果3秒之内还ping不到其他节点,说明其他节点就失败,如果网络网络不稳定,可以将改值设置大一点

    multicast.eambed是否启动多波发现其他节点,默认要关闭

    unicast.hosts 设置集群中哪些节点时master节点,节点之间通信使用9300端口不要写错了

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    kafak的设置

    # The id of the broker. This must be set to a unique integer for each broker.
    broker.id=0 每个节点要唯一

    listeners = listener_name://host_name:port

    IP地址为当前机器的ip,也可以设置域名,需要在、etc/hosts目录下做映射

    # A comma separated list of directories under which to store log files
    log.dirs=/tmp/kafka-logs

    kafak存储数据就是放在logs目录下的

    num.partitions=1

    分区数量要大于等于消费者的数量,才能保证每个消费者获得消费的数据

    # The minimum age of a log file to be eligible for deletion due to age
    log.retention.hours=168

    设置kafak消息保存的时间,上面是设置按照小时进行保存

    kafka-topics.sh可以查看当前kafak有哪些topics ,后面要加上zookeeper的集群信息

  • 相关阅读:
    MXNet中bucket机制注记
    MXNet中LSTM例子注记
    Bellman update中Value Iteration收敛证明
    关于分类问题中的激活函数特性影响
    mxnet包含NDArray的列表更新
    FeatureMap Viewer以及中心化对统计分布变化的影响讨论
    [ufldl]Supervised Neural Networks
    【ufldl tutorial】Convolution and Pooling
    【ufldl tutorial】Softmax Regression
    【leetcode刷题笔记】Rotate Image
  • 原文地址:https://www.cnblogs.com/kebibuluan/p/11974063.html
Copyright © 2020-2023  润新知