Skip to contentSkip to conversation

Data distribution

DISCUSSION Martin Wilderoth 3 participants 3 messages Jun 26, 2011 – Jun 27, 2011 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hello

I have a ceph cluster of 6 osd 146gb each. I have copied a lot of data filling to 87%. Between the osd's the data is not evenly distributed

host1

/dev/sdb              137G  119G   15G  90% /data/osd0
/dev/sdc              137G  126G  7.4G  95% /data/osd1

host2

/dev/sdc              137G  114G   21G  85% /data/osd2
/dev/sdd              137G  130G  3.6G  98% /data/osd3

host3

/dev/sdb              137G  107G   27G  81% /data/osd4
/dev/sdc              137G   98G   36G  74% /data/osd5

During the copy i got I/O error, but after restarting the cluster it seems fine.

By some reason osd3 seems to have much more data than osd5. Is there a way of geting the data distributed better ?.

#2 lore raw
Quoted 13 lines · Martin Wilderoth

Hello

I have a ceph cluster of 6 osd 146gb each. I have copied a lot of data filling to 87%. Between the osd's the data is not evenly distributed

host1

/dev/sdb              137G  119G   15G  90% /data/osd0
/dev/sdc              137G  126G  7.4G  95% /data/osd1

host2

/dev/sdc              137G  114G   21G  85% /data/osd2
/dev/sdd              137G  130G  3.6G  98% /data/osd3
Quoted 7 lines

host3

/dev/sdb              137G  107G   27G  81% /data/osd4
/dev/sdc              137G   98G   36G  74% /data/osd5

During the copy i got I/O error, but after restarting the cluster it seems fine.

By some reason osd3 seems to have much more data than osd5. Is there a way of geting the data distributed better ?.

Hi Martin,

Since the distribution is pseudo-random, you'll get some variance from an even split. You can reweight the osds manually with:

ceph osd reweight osd3 new_weight

or use the more automatic:

ceph osd reweight-by-utilization 110

This reduces the weight of all osds that have a utilization that is more than 110% of the average utilization.

Josh

#3 lore raw
Quoted 28 lines · Josh Durgin
Quoted 13 lines · Martin Wilderoth

Hello

I have a ceph cluster of 6 osd 146gb each. I have copied a lot of data filling to 87%. Between the osd's the data is not evenly distributed

host1

/dev/sdb              137G  119G   15G  90% /data/osd0
/dev/sdc              137G  126G  7.4G  95% /data/osd1

host2

/dev/sdc              137G  114G   21G  85% /data/osd2
/dev/sdd              137G  130G  3.6G  98% /data/osd3
Quoted 7 lines

host3

/dev/sdb              137G  107G   27G  81% /data/osd4
/dev/sdc              137G   98G   36G  74% /data/osd5

During the copy i got I/O error, but after restarting the cluster it seems fine.

By some reason osd3 seems to have much more data than osd5. Is there a way of geting the data distributed better ?.

Hi Martin,

Since the distribution is pseudo-random, you'll get some variance from an even split. You can reweight the osds manually with:

ceph osd reweight osd3 new_weight

Quoted 7 lines

or use the more automatic:

ceph osd reweight-by-utilization 110

This reduces the weight of all osds that have a utilization that is more than 110% of the average utilization.

Josh

That said if the data is this unevenly distributed something odd is going on. Are you using anything besides the filesystem on this cluster? If not we probably need to figure out if there's a problem with the hashing. -Greg