ceph radosgw 对象寻址和元数据组织

1. 对象寻址

rgw对象寻址的过程就是“拼接对象串“的过程,再结合bucket.pool就能对应到rados对象。

1.1 普通对象

1.2 multipart 对象



1.3 非multipart versioned对象


1.4 multipart versioned 对象


2. rgw元数据pool的作用

    struct RGWZoneParams {                                                                             
      rgw_bucket domain_root; // .rgw  // bucket 元数据信息                                            
      rgw_bucket control_pool; // .rgw.control // watch/notify cache                                                        
      rgw_bucket gc_pool; // .rgw.gc // 辅助gc                                                         
      rgw_bucket log_pool; // .log   // op/meta/data                                                   
      rgw_bucket intent_log_pool; // .intent-log // 没有用                                                     
      rgw_bucket usage_log_pool; // .usage // 读写等统计信息                                               
      rgw_bucket user_keys_pool; // .users.uid //存储用户AK和uid的对应关系                                             
      rgw_bucket user_email_pool; // .users.email //email 和 uid的对应关系                                                     
      rgw_bucket user_swift_pool; // .users.swift // swift key和uid的对应关系                               
      rgw_bucket user_uid_pool; // .users.uid // 用户信息和用户创建的buckets                                                        
    };                                                                                                
                                                                                                       
    // 每个placement 都要设置如下3中pool                                                               
    struct RGWZonePlacementInfo {                                                                      
      string index_pool; // .rgw.buckets.index                                                         
      string data_pool; // dpool1                                                                      
      string data_extra_pool; // .rgw.buckets.extra // multiupload 临时对象                                                   
    }                                                                                                  
                                                                                                       
    rgw region root pool // .rgw.root // zone/region(zonegroup) 信息                               
    rgw zone root pool // .rgw.root                                                                
          
     jewel版之后添加的                                                                                             
    metadata_heap // .rgw.lc // lifecycle 信息                                                  
    life_cycle // .rgw.meta // metadata heap //metadata 信息(bucket/user等)  


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值