Medivh's castle

数据蜘蛛工作室

安装

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

brew install influxdb

ln -sfv /usr/local/opt/influxdb/*.plist ~/Library/LaunchAgents

# 配置文件在/etc/influxdb/influxdb.conf ,如果没有就将/usr/local/etc/influxdb.conf 拷一个过去

配置缓存:cache-max-memory-size

#启动服务

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.influxdb.plist

#停止服务

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.influxdb.plist

#前台启动

influxd -config /usr/local/etc/influxdb.conf

查看influxdb运行配置

influxd config


启动客户端

influx -precision rfc3339

阅读全文 »

一、freeswitch

注意区分CentOS 6/7,不同版本编译的时候会有些差别。比如6上不会提示opus-devel,但是7必须安装。

阅读全文 »

简介

ZooKeeper 是一个开源的分布式协调服务,由雅虎创建,是 Google Chubby 的开源实现。
分布式应用程序可以基于 ZooKeeper 实现诸如数据发布/订阅、负载均衡、命名服务、分布式协
调/通知、集群管理、Master 选举、配置维护,名字服务、分布式同步、分布式锁和分布式队列
等功能。

阅读全文 »

elasticsearch 部分查询语句

1
2
3
4
5
6
7
8
9
# 获取集群的节点列表:
curl 'localhost:9200/_cat/nodes?v'

# 列出所有索引:
curl 'localhost:9200/_cat/indices?v'

创建一个名为“customer”的索引,然后再查看所有的索引:
curl -X PUT 'localhost:9200/customer?pretty'
curl 'localhost:9200/_cat/indices?v'
阅读全文 »

设定副本和切片数量

1
2
number_of_replicas 是数据备份数,如果只有一台机器,设置为0
number_of_shards 是数据分片数,默认为5,有时候设置为3
阅读全文 »

按照需求来分,将实例区分为单机和集群两种类型。

  • 单机适合容量和性能要求不高的小型存储
  • 集群应对性能和容量要求较高的场景
阅读全文 »

注意logstash启动的时候有个坑,如果启动指定目录,那么必须保证该目录下都是配置文件,否则就会误以为都是配置文件。

配置pom文件

阅读全文 »
0%