参考地址:https://www.jianshu.com/p/6f3e3e989959
一、ElasticSearch 安装,安装机器:
192.168.10.107
192.168.10.108
192.168.9.178
yyapp@H-LAPP-V307 config]$ cat elasticsearch.yml |grep -v "#" |grep -v "^$" cluster.name: skywalking_elk_cluster node.name: node_master_01 node.master: true node.data: true network.host: 0.0.0.0 http.port: 9200 http.cors.enabled: true http.cors.allow-origin: "*" path.data: /data/es-data path.logs: /log/es-logs thread_pool.write.queue_size: 2000 discovery.zen.minimum_master_nodes: 2 discovery.zen.ping.unicast.hosts: ["192.168.10.107:9300","192.168.10.108:9300","192.168.9.178:9300"]
二、zook
[yyapp@H-LAPP-V307 conf]$ cat zoo.cfg # The number of milliseconds of each tick tickTime=2000 # The number of ticks that the initial # synchronization phase can take initLimit=10 # The number of ticks that can pass between # sending a request and getting an acknowledgement syncLimit=5 # the directory where the snapshot is stored. # do not use /tmp for storage, /tmp here is just # example sakes. dataDir=/data/zookeeper # the port at which the clients will connect clientPort=2181 server.1=192.168.10.107:2888:3888 server.2=192.168.10.108:2888:3888 server.3=192.168.9.178:2888:3888 # the maximum number of client connections. # increase this if you need to handle more clients #maxClientCnxns=60 # # Be sure to read the maintenance section of the # administrator guide before turning on autopurge. # # http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance # # The number of snapshots to retain in dataDir #autopurge.snapRetainCount=3 # Purge task interval in hours # Set to "0" to disable auto purge feature #autopurge.purgeInterval=1
3、SkyWalking集群部署