Skip to content

Commit

Permalink
2018-05-08 补充 kafka、FastDFS 内容
Browse files Browse the repository at this point in the history
  • Loading branch information
judasn committed May 8, 2018
1 parent e4ca44c commit 12369a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion markdown-file/FastDFS-Install-And-Settings.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# FastDFS 安装和配置


## 它是什么
## FastDFS 介绍

- FastDFS 介绍:<http://www.oschina.net/p/fastdfs>
- 官网下载 1:<https://github.com/happyfish100/fastdfs/releases>
- 官网下载 2:<https://sourceforge.net/projects/fastdfs/files/>
- 官网下载 3:<http://code.google.com/p/fastdfs/downloads/list>
- 主要场景:
- 小图片
- 音频、小视频
- 其他类型小文件
- 更加复杂的文件存储场景可以选择:[Ceph](https://ceph.com/)
- 支持对象存储、块存储和文件存储
- 高性能、高可靠性和高扩展

### 单机安装部署(CentOS 6.7 环境)

Expand Down
2 changes: 2 additions & 0 deletions markdown-file/Kafka-Install-And-Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- Topic:可以理解为:消息主题、消息标签(物理上不同 Topic 的消息分开存储,逻辑上一个 Topic 的消息虽然保存于一个或多个 broker 上但用户只需指定消息的 Topic 即可生产或消费数据而不必关心数据存于何处)
- Partition:Partition 是物理上的概念,每个Topic包含一个或多个Partition。一般有几个节点集群,填写分区最好是等于大于节点值。分区目的主要是数据分片。副本为 1 的时候每个节点都会存有一份,目的主要是容错。
- Consumer Group:每个 Consumer 属于一个特定的 Consumer Group(可为每个 Consumer 指定 group name,若不指定 group name 则属于默认的 group)一般一个业务系统集群指定同一个一个 group id,然后一个业务系统集群只能一个节点来消费同一个消息。
- Consumer Group 信息存储在 zookeeper 中,需要通过 zookeeper 的客户端来查看和设置
- 业界常用的 docker 镜像:
- [wurstmeister/kafka-docker(不断更新,优先)](https://github.com/wurstmeister/kafka-docker/)
- Spring 项目选用依赖包的时候,对于版本之间的关系可以看这里:<http://projects.spring.io/spring-kafka/>
Expand Down Expand Up @@ -566,6 +567,7 @@ group.initial.rebalance.delay.ms=0

## 资料

- [管理Kafka的Consumer-Group信息](http://lsr1991.github.io/2016/01/03/kafka-consumer-group-management/)
- <http://www.ituring.com.cn/article/499268>
- <http://orchome.com/kafka/index>
- <https://www.jianshu.com/p/263164fdcac7>
Expand Down

0 comments on commit 12369a4

Please sign in to comment.