Project

General

Profile

Bug #65086

Updated by Samuel Just about 2 months ago

<pre> 
   MDS=0 MGR=1 OSD=3 MON=1 ../src/vstart.sh --without-dashboard -X --redirect-output --debug -n --no-restart --osds-per-host 1 
   ./bin/ceph osd primary-affinity 0 0 
   ./bin/ceph osd primary-affinity 1 0 
   ./bin/ceph osd pool create rbd 64 64 
   ./bin/ceph osd pool set rbd size 3 
   ./bin/rbd create rbd/image --size 4G 
   ./bin/rbd create rbd/image2 --size 4G 
   ./bin/rbd bench --io-type write --io-pattern rand --image rbd/image --io-threads 16 --io-total 250M 
   ./bin/ceph osd down 0 
   ./bin/rbd bench --io-type read --io-pattern rand --image rbd/image --io-threads 16 --io-total=100M --crush_location "host=$(hostname)-0" --rados_replica_read_policy=localize 
 </pre> 

 All reads will be bounced to the primary after osd.0 immediately comes back up.

Back