SlideShare uma empresa Scribd logo
1 de 2
数据库设计思路是尽量做垂直分区,没有 Sharding。不过在反范式(denormalized)方面做得比
较彻底,不用表连接(JOIN)方法者复杂的查询。


M. Tim Jones is an embedded firmware architect and the author of Artificial Intelligence: A Systems Approach,
GNU/Linux Application Programming (now in its second edition), AI Application Programming (in its second
edition), and BSD Sockets Programming from a Multilanguage Perspective. His engineering background ranges
from the development of kernels for geosynchronous spacecraft to embedded systems architecture and
networking protocols development. Tim is a Consultant Engineer for Emulex Corp. in Longmont, Colorado.

http://ceph.newdream.net/2010/04/v0-20-released/




使用 qemu 建立简单的 ceph 分布式文件系统测试环境

1. 下载代码并编译
git clone git://ceph.newdream.net/git/ceph.git
git clone git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client.git



2. 配置服务端环境并启动服务
2.1 添加 use_xattr
在/etc/fstab 中,找到服务端所在文件系统的位置,添加 use_xattr 选项。比如
UUID=c0fb46f4-6b8d-41a3-b026-5850b9f51865 / ext3
relatime,user_xattr,errors=remount-ro 0 1
重启系统

2.2 建立文件夹
mkdir -p dev/osd0
mkdir out
mkdir log

2.3 启动 ceph 服务, ip 地址可以根据自己的环境选择
./vstart.sh -n -d -m 192.168.0.100

3. 测试服务端配置
./csyn --syn makedirs 2 2 2
./csyn --syn walk
执行后,应该可以看到很多文件夹和文件

4. 编译 linux 客户端
4.1 配置
make menuconfig , 在文件系统中选择 ceph

5. 启动 qemu 加载 ceph 文件系统
mount -t ceph 192.168.0.100:/ /mnt/ceph
touch abc
6. 验证
./csyn --syn walk
应该可以看到刚刚建立的文件 abc




http://www.docin.com/p-44802740.html

Mais conteúdo relacionado

Semelhante a Architect Document

Firefox OS Overview
Firefox OS OverviewFirefox OS Overview
Firefox OS OverviewYan-ren Tsai
 
20030623 linuxbasic and-security
20030623 linuxbasic and-security20030623 linuxbasic and-security
20030623 linuxbasic and-security建融 黃
 
twMVC#41 hololens2 MR
twMVC#41 hololens2 MRtwMVC#41 hololens2 MR
twMVC#41 hololens2 MRtwMVC
 
Linux运维趋势 第0期 运维自动化
Linux运维趋势 第0期 运维自动化Linux运维趋势 第0期 运维自动化
Linux运维趋势 第0期 运维自动化51CTO
 
Ceph Day Beijing - Leverage Ceph for SDS in China Mobile
Ceph Day Beijing - Leverage Ceph for SDS in China MobileCeph Day Beijing - Leverage Ceph for SDS in China Mobile
Ceph Day Beijing - Leverage Ceph for SDS in China MobileCeph Community
 
Ceph Day Beijing - Leverage Ceph for SDS in China Mobile
Ceph Day Beijing - Leverage Ceph for SDS in China MobileCeph Day Beijing - Leverage Ceph for SDS in China Mobile
Ceph Day Beijing - Leverage Ceph for SDS in China MobileDanielle Womboldt
 
VSCode Remote Development 介紹
VSCode Remote Development 介紹VSCode Remote Development 介紹
VSCode Remote Development 介紹Philip Zheng
 
[精彩回顾]Linux新手教程
[精彩回顾]Linux新手教程[精彩回顾]Linux新手教程
[精彩回顾]Linux新手教程NJU OPEN
 
VSCode Remote Development
VSCode Remote DevelopmentVSCode Remote Development
VSCode Remote DevelopmentPhilip Zheng
 
2018 VLSI/CAD Symposium Tutorial (Aug. 7, 20:00-21:00 Room 3F-VII)
2018 VLSI/CAD Symposium Tutorial (Aug. 7, 20:00-21:00 Room 3F-VII)2018 VLSI/CAD Symposium Tutorial (Aug. 7, 20:00-21:00 Room 3F-VII)
2018 VLSI/CAD Symposium Tutorial (Aug. 7, 20:00-21:00 Room 3F-VII)Simen Li
 
和Android源代码一起工作 | 海豚浏览器 胡继堂
和Android源代码一起工作 | 海豚浏览器 胡继堂和Android源代码一起工作 | 海豚浏览器 胡继堂
和Android源代码一起工作 | 海豚浏览器 胡继堂imShining @DevCamp
 
漫談 Source Control Management
漫談 Source Control Management漫談 Source Control Management
漫談 Source Control ManagementWen-Shih Chao
 
An overview of virtual machine architectures
An overview of virtual machine architecturesAn overview of virtual machine architectures
An overview of virtual machine architecturesLishi He
 
2020 gops-旷视城市大脑私有云平台实践-刘天伟
2020 gops-旷视城市大脑私有云平台实践-刘天伟2020 gops-旷视城市大脑私有云平台实践-刘天伟
2020 gops-旷视城市大脑私有云平台实践-刘天伟Tianwei Liu
 

Semelhante a Architect Document (20)

Build Your Own Android Toolchain from scratch
Build Your Own Android Toolchain from scratchBuild Your Own Android Toolchain from scratch
Build Your Own Android Toolchain from scratch
 
Firefox OS Overview
Firefox OS OverviewFirefox OS Overview
Firefox OS Overview
 
20030623 linuxbasic and-security
20030623 linuxbasic and-security20030623 linuxbasic and-security
20030623 linuxbasic and-security
 
Jobforcompal
JobforcompalJobforcompal
Jobforcompal
 
twMVC#41 hololens2 MR
twMVC#41 hololens2 MRtwMVC#41 hololens2 MR
twMVC#41 hololens2 MR
 
Go
GoGo
Go
 
How A Compiler Works: GNU Toolchain
How A Compiler Works: GNU ToolchainHow A Compiler Works: GNU Toolchain
How A Compiler Works: GNU Toolchain
 
Linux运维趋势 第0期 运维自动化
Linux运维趋势 第0期 运维自动化Linux运维趋势 第0期 运维自动化
Linux运维趋势 第0期 运维自动化
 
Ceph Day Beijing - Leverage Ceph for SDS in China Mobile
Ceph Day Beijing - Leverage Ceph for SDS in China MobileCeph Day Beijing - Leverage Ceph for SDS in China Mobile
Ceph Day Beijing - Leverage Ceph for SDS in China Mobile
 
Ceph Day Beijing - Leverage Ceph for SDS in China Mobile
Ceph Day Beijing - Leverage Ceph for SDS in China MobileCeph Day Beijing - Leverage Ceph for SDS in China Mobile
Ceph Day Beijing - Leverage Ceph for SDS in China Mobile
 
04
0404
04
 
VSCode Remote Development 介紹
VSCode Remote Development 介紹VSCode Remote Development 介紹
VSCode Remote Development 介紹
 
Ox office現在。即未來(201509)
Ox office現在。即未來(201509)Ox office現在。即未來(201509)
Ox office現在。即未來(201509)
 
[精彩回顾]Linux新手教程
[精彩回顾]Linux新手教程[精彩回顾]Linux新手教程
[精彩回顾]Linux新手教程
 
VSCode Remote Development
VSCode Remote DevelopmentVSCode Remote Development
VSCode Remote Development
 
2018 VLSI/CAD Symposium Tutorial (Aug. 7, 20:00-21:00 Room 3F-VII)
2018 VLSI/CAD Symposium Tutorial (Aug. 7, 20:00-21:00 Room 3F-VII)2018 VLSI/CAD Symposium Tutorial (Aug. 7, 20:00-21:00 Room 3F-VII)
2018 VLSI/CAD Symposium Tutorial (Aug. 7, 20:00-21:00 Room 3F-VII)
 
和Android源代码一起工作 | 海豚浏览器 胡继堂
和Android源代码一起工作 | 海豚浏览器 胡继堂和Android源代码一起工作 | 海豚浏览器 胡继堂
和Android源代码一起工作 | 海豚浏览器 胡继堂
 
漫談 Source Control Management
漫談 Source Control Management漫談 Source Control Management
漫談 Source Control Management
 
An overview of virtual machine architectures
An overview of virtual machine architecturesAn overview of virtual machine architectures
An overview of virtual machine architectures
 
2020 gops-旷视城市大脑私有云平台实践-刘天伟
2020 gops-旷视城市大脑私有云平台实践-刘天伟2020 gops-旷视城市大脑私有云平台实践-刘天伟
2020 gops-旷视城市大脑私有云平台实践-刘天伟
 

Architect Document

  • 1. 数据库设计思路是尽量做垂直分区,没有 Sharding。不过在反范式(denormalized)方面做得比 较彻底,不用表连接(JOIN)方法者复杂的查询。 M. Tim Jones is an embedded firmware architect and the author of Artificial Intelligence: A Systems Approach, GNU/Linux Application Programming (now in its second edition), AI Application Programming (in its second edition), and BSD Sockets Programming from a Multilanguage Perspective. His engineering background ranges from the development of kernels for geosynchronous spacecraft to embedded systems architecture and networking protocols development. Tim is a Consultant Engineer for Emulex Corp. in Longmont, Colorado. http://ceph.newdream.net/2010/04/v0-20-released/ 使用 qemu 建立简单的 ceph 分布式文件系统测试环境 1. 下载代码并编译 git clone git://ceph.newdream.net/git/ceph.git git clone git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client.git 2. 配置服务端环境并启动服务 2.1 添加 use_xattr 在/etc/fstab 中,找到服务端所在文件系统的位置,添加 use_xattr 选项。比如 UUID=c0fb46f4-6b8d-41a3-b026-5850b9f51865 / ext3 relatime,user_xattr,errors=remount-ro 0 1 重启系统 2.2 建立文件夹 mkdir -p dev/osd0 mkdir out mkdir log 2.3 启动 ceph 服务, ip 地址可以根据自己的环境选择 ./vstart.sh -n -d -m 192.168.0.100 3. 测试服务端配置 ./csyn --syn makedirs 2 2 2 ./csyn --syn walk 执行后,应该可以看到很多文件夹和文件 4. 编译 linux 客户端 4.1 配置 make menuconfig , 在文件系统中选择 ceph 5. 启动 qemu 加载 ceph 文件系统 mount -t ceph 192.168.0.100:/ /mnt/ceph touch abc
  • 2. 6. 验证 ./csyn --syn walk 应该可以看到刚刚建立的文件 abc http://www.docin.com/p-44802740.html