Installation LEK Cluster
2015-06-30 15:47
267 查看
The structure of cluster like this:
We used four VM:
A 10.32.xxx.213 ubuntu12.04
B 10.32.xxx.214 ubuntu12.04
C 10.13.xxx.85 ubuntu14.04
D 10.32.xxx.160 ubuntu14.04
Building up this cluster is not complicated: same as installing single node LEK, just add a Redis which act as a broker!
We use redis 3.0.2, you can install it like this:
Now, everything has installed. We can run this cluster and just make the kibana get data from shipper.
In shipper B and D, the logstash’s configuration file:
In A, the logstash’s configuration file:
After all these, then yon can run your cluster smoothly.
We used four VM:
A 10.32.xxx.213 ubuntu12.04
B 10.32.xxx.214 ubuntu12.04
C 10.13.xxx.85 ubuntu14.04
D 10.32.xxx.160 ubuntu14.04
Building up this cluster is not complicated: same as installing single node LEK, just add a Redis which act as a broker!
We use redis 3.0.2, you can install it like this:
$ wget http://download.redis.io/releases/redis-3.0.2.tar.gz $ tar xzf redis-3.0.2.tar.gz $ cd redis-3.0.2 $ make //build $ make install //install $ cd utils $ ./install_server.sh //The script will ask you a few questions and will setup everything you need to run Redis properly as a background daemon that will start again on system reboots.
Now, everything has installed. We can run this cluster and just make the kibana get data from shipper.
In shipper B and D, the logstash’s configuration file:
input { file { path => ['/var/log/syslog', '/var/log/kern.log'] type => "syslog" } } output { redis { data_type => "channel" key => "logstash-*" host => "10.32.xxx.213" port => 6379 }
In A, the logstash’s configuration file:
input { redis { data_type => "pattern_channel" key => "logstash-*" host => "10.32.xxx.213" port => "6379" } } output { stdout { } elasticsearch { host => "10.13.xxx.85" protocol => "http" } }
After all these, then yon can run your cluster smoothly.
相关文章推荐
- Problem C Andy's First Dictionary(set的使用)
- jdk安装
- C#加密类
- Android Fragment详解
- Android Fragment详解
- [leetcode][hash] Anagrams
- 字符串匹配——KMP算法
- Android手机的休眠状态
- Linux基础必懂:eth0,eth1,eth2,lo是什么意思?
- Understanding the Objective-C Runtime
- linux下qt使用svn的问题
- JavaWeb学习记录(十九)——开发JSTL自定义标签
- 盒子模型,块级元素和行内元素特性与区别。
- ecmobile实现支付宝支付和百度云推送遇到的问题及解决方案(android)
- saltstack内置执行模块useradd
- iOS ibeacon后台运行相关文章
- Tomcat源码学习——第1章
- apache 与 tomcat的关系
- select ......for update 语句解释 (文章中有些地方描述的不是很准确)
- 【C语言】在两个数成对出现的数组中找到一个单独的数。