原创 python 字典 dict

help(dict) python 字典 class dict(object) | dict() -> new empty dictionary | dict(mapping) -> new dictionary in

原创 crush 核心函數 crush_do_rule

crush 核心函數 crush_do_rule 位置crush/mapper.c 重要過程 crush_do_rule: do crushrules iteratively crush_choose_firstn: ch

原创 ceph翻譯 Ceph: A Scalable, High-Performance Distributed File System

Ceph: A Scalable, High-Performance Distributed File System Ceph:一個可擴展,高性能分佈式文件系統 Sage A. Weil Scott A. Brandt Et

原创 python 字符串操作 str

python 字符串操作 help(str) class str(basestring) | str(object) -> string | | Return a nice string representatio

原创 Ceph剖析:數據分佈之CRUSH算法與一致性Hash

Ceph剖析:數據分佈之CRUSH算法與一致性Hash 寫的非常好,忍不住轉載 作者:吳香偉 發表於 2014/09/05 版權聲明:可以任意轉載,轉載時務必以超鏈接形式標明文章原始出處和作者信息以及版權聲明 http:

原创 VIM設置

python 設置 set nu filetype plugin indent on autocmd FileType python setlocal et sta sw=2 sts=4 autocmd FileType pyth

原创 Markdown編輯器使用說明

Markdown編譯器語法說明 1.標題格式 標題是每篇文章都需要也是最常用的格式,在 Markdown中,如果一段文字被定義爲標題,只要在這段文字前加 #+空格號即可。 一級標題 #, 二級標題 ##, 三級標題 ### .

原创 windows 獲得系統信息 GetSystemInfo

#include <windows.h> #include <stdio.h> #pragma comment(lib, "user32.lib") void main() { SYSTEM_INFO siSysInfo;

原创 ceph 日誌01

1. 對象存儲 問:我可以存儲多少數據? 您可以存儲的總數據容量和對象個數不受限制。各個 Amazon S3 對象的大小範圍可以從最小 0 字節到最大 5 TB。可在單個 PUT 中上傳的最大數據元爲 5 GB。對於大於 100

原创 CRUSH詳解

CRUSH詳解 CRUSH簡介 CRUSH全稱Controlled Replication Under Scalable Hashing,是一種數據分發算法,類似於哈希和一致性哈希。哈希的問題在於數據增長時不能動態加Bucket,

原创 ceph osdmap crush 分析

1 maps 更新 1.1 更新規則 Because cluster map changes may be frequent, as in a very large system where OSDs failures a

原创 ceph 譯文 RADOS:A Scalable, Reliable Storage Service for Petabyte-scale Storage Clusters

RADOS:A Scalable, Reliable Storage Service for Petabyte-scale Storage Clusters 論文翻譯 摘要 塊式和麪向對象的存儲架構形成了一種以提升擴展性的存儲cl

原创 Dynamo 譯文 Dynamo: Amazon's Highly Available Key-value Store

Dynamo: Amazon’s Highly Available Key-value Store Dynamo:Amazon的高可用性的鍵-值存儲系統 摘要 巨大規模系統的可靠性是我們在Amazon.com,這個世界上最大的電子

原创 STL bitmap 使用

/* description: STL bitmap的使用 author:Jason date:20160521 */ #include<stdio.h> #include <bitset> #include<iostream

原创 STL Map使用

/* description: STL map使用 author:Jason date:20160521 */ #include<stdio.h> #include <map> #include<iostream> using