Skip to contentSkip to conversation

Proporttions of each role in a cluster

DISCUSSION Sylar 4 participants 6 messages Mar 7, 2011 – Mar 8, 2011

lore
Share & tools
lore

Sylar

author
#0 lore raw

Hi,
Recently I want to build an environment of 20 servers(2U) to test Ceph. Each 2U server has 4 cores, 16GB RAM and 4 TeraBytes for storage. I would like to know how many MDSs, OSDes and MONs should I set for the best performance?
Now I set 1 MDS, 19 OSDes and 5 MONs out of 19 OSDes.
I am not sure whether 1 MDS is enough for 19 OSDes or not, maybe I need to set 2 MDSs?
As for the Monitors, I am not sure whether 5 is OK or not.(Maybe I need to set more to ensure that the environment is always being monitored?)

And I would like to know the proportions of each role(MDS,OSD,MON) in a cluster. Because in the future, we will have more servers to build and test.
Thanks in advance!
--
Best Regards,
Sylar Shen

#1 lore raw

Hi,

Quoted 3 lines · Sylar

Hi,
Recently I want to build an environment of 20 servers(2U) to test Ceph. Each 2U server has 4 cores, 16GB RAM and 4 TeraBytes for storage.

How is the storage build up inside the 2U server? 2x2TB? 4x1TB? Are there hardware RAID controllers inside the boxes?

Quoted 2 lines

I would like to know how many MDSs, OSDes and MONs should I set for the best performance?

What is your goal? Are you indenting to use the POSIX Filesystem Ceph or do you want to use RADOS/RBD? For example, run Virtual Machines with Qemu/KVM.

Quoted 3 lines

Now I set 1 MDS, 19 OSDes and 5 MONs out of 19 OSDes.
I am not sure whether 1 MDS is enough for 19 OSDes or not, maybe I need to set 2 MDSs?

If the boxes have multiple disks I would advise running a OSD per disk, if one disk than files, you only have to recover from the data-loss from one disk. This would involve creating a CRUSH map which prevents storing multiple copies inside one physical box.

The MDS performance depends on the number of I/O operations you are going to do. MDS'es can be scaled up, so when that becomes a problem I recommend adding one more.

Quoted 3 lines

As for the Monitors, I am not sure whether 5 is OK or not.(Maybe I need to set more to ensure that the environment is always being monitored?)

I think that 3 monitors should be sufficient in this situation, a odd number of monitors is the best practice. 1 is better then 2 for example.

Quoted 3 lines

And I would like to know the proportions of each role(MDS,OSD,MON) in a cluster. Because in the future, we will have more servers to build and test.

The rule is:

MDS: Lots of RAM, fast CPU and low latency network
MON: Lightweight and a few gigs of local storage
OSD: More RAM is better (More caching), Fast network

Wiki: http://ceph.newdream.net/wiki/Designing_a_cluster

I'm running a Ceph cluster at the moment on Atom CPU's with 4GB of RAM, each machine has 4x2TB (4 OSD's in total) and uses about ~800MB of RAM, the other 3.2GB is used for caching.

Please, do note, Ceph is NOT production ready. Testing is needed and very welcome, but do not store you precious data on it. (Well, you can do it, but you've been warned!)

Wido

Quoted 9 lines

Thanks in advance!
--
Best Regards,
Sylar Shen

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw

2011/3/7 Wido den Hollander <[email protected]>

Quoted 8 lines

Hi,

Quoted 3 lines · Sylar

Hi,
Recently I want to build an environment of 20 servers(2U) to test Ceph. Each 2U server has 4 cores, 16GB RAM and 4 TeraBytes for storage.

How is the storage build up inside the 2U server? 2x2TB? 4x1TB? Are there hardware RAID controllers inside the boxes?

My storage(2U server) has 4*1TB for each and a hardware RAID controller is included.

Quoted 6 lines
Quoted 2 lines

I would like to know how many MDSs, OSDes and MONs should I set for the best performance?

What is your goal? Are you indenting to use the POSIX Filesystem Ceph or do you want to use RADOS/RBD? For example, run Virtual Machines with Qemu/KVM.

Actually I want to use both of them, but in different steps. First I want to try Ceph as a POSIX Filesystem and clients can mount Ceph by ceph-client protocol.
In this step, I want to do performance and stress tests, like using IOzone and dbench.
By the way, besides dbench, are there other tools that can be used to test the quantities of concurrent clients which do some simple reads and writes?
Because I would like to know based on my environment, what is the max numbers of clients that can do read and write at the same time.

Quoted 8 lines
Quoted 3 lines

Now I set 1 MDS, 19 OSDes and 5 MONs out of 19 OSDes.
I am not sure whether 1 MDS is enough for 19 OSDes or not, maybe I need to set 2 MDSs?

If the boxes have multiple disks I would advise running a OSD per disk, if one disk than files, you only have to recover from the data-loss from one disk. This would involve creating a CRUSH map which prevents storing multiple copies inside one physical box.

Yes, thanks for the advice.
I have saw the instructions in the sample.ceph.conf. And now I am doing exactly as you said.

Quoted 9 lines

The MDS performance depends on the number of I/O operations you are going to do. MDS'es can be scaled up, so when that becomes a problem I recommend adding one more.

Quoted 3 lines

As for the Monitors, I am not sure whether 5 is OK or not.(Maybe I need to set more to ensure that the environment is always being monitored?)

I think that 3 monitors should be sufficient in this situation, a odd number of monitors is the best practice. 1 is better then 2 for example.

Yes, an odd number is the best practice.
What I concerned is that the numbers of monitors when the scalability gets bigger.
For now, I think 3 is OK, too. But I will have more servers to be added in the future(more than 100 servers).

Quoted 12 lines
Quoted 3 lines

And I would like to know the proportions of each role(MDS,OSD,MON) in a cluster. Because in the future, we will have more servers to build and test.

The rule is:

MDS: Lots of RAM, fast CPU and low latency network
MON: Lightweight and a few gigs of local storage
OSD: More RAM is better (More caching), Fast network

Wiki: http://ceph.newdream.net/wiki/Designing_a_cluster

Quoted 8 lines

I'm running a Ceph cluster at the moment on Atom CPU's with 4GB of RAM, each machine has 4x2TB (4 OSD's in total) and uses about ~800MB of RAM, the other 3.2GB is used for caching.

Please, do note, Ceph is NOT production ready. Testing is needed and very welcome, but do not store you precious data on it. (Well, you can do it, but you've been warned!)
Wido

Thanks for your advice!
I think Ceph is a nice file system and hope that version 1.0 will be coming soon!
--
Best Regards,
Sylar Shen

#3 lore raw

On Monday, March 7, 2011 at 7:57 AM, Sylar Shen wrote:
Yes, an odd number is the best practice.

Quoted 4 lines

What I concerned is that the numbers of monitors when the scalability gets bigger.
For now, I think 3 is OK, too. But I will have more servers to be added in the future(more than 100 servers).

That's unlikely to be a problem for you. The monitors don't have too handle too many messages; they handle the cluster state but generally each OSD is going to send them (small) messages a couple times a second -- or possibly much less often.

Quoted 1 line

And I would like to know the proportions of each role(MDS,OSD,MON) in a cluster. Because in the future, we will have more servers to build and test.

3 monitors should be sufficient for any cluster you are likely to build (I don't know what he maximum is, but it's a lot). Configurations with 1 MDS are a lot more stable than configurations with multiple MDSes, so I'd start with that and if you find that you need to handle more metadata ops, you can add more -- adding MDSes to a running cluster is fairly simple. And put in all the OSDs you need to handle your storage size and bandwidth needs! :)
-Greg

#4 lore raw
In reply to Wido den Hollander
Quoted 4 lines

I'm running a Ceph cluster at the moment on Atom CPU's with 4GB of RAM, each machine has 4x2TB (4 OSD's in total) and uses about ~800MB of RAM, the other 3.2GB is used for caching.

Hi Wido,
would you recommend a Atom CPU for an OSD? At the moment I'm looking at this mainboard http://www.supermicro.com/products/motherboard/ATOM/ICH9/X7SPA.cfm?typ=H&IPMI=Y, I want to use it with 6 disks. The 800MB your machine uses is for all 4 OSD's together? Do you have any numbers for the CPU utilization?
I'm looking for the sweetspot of max IO-OPs/s per watt.

Thanks in advance.

martin

#5 lore raw

Hi,

Quoted 10 lines · Martin Mailand
Quoted 4 lines

I'm running a Ceph cluster at the moment on Atom CPU's with 4GB of RAM, each machine has 4x2TB (4 OSD's in total) and uses about ~800MB of RAM, the other 3.2GB is used for caching.

Hi Wido,
would you recommend a Atom CPU for an OSD? At the moment I'm looking at this mainboard
http://www.supermicro.com/products/motherboard/ATOM/ICH9/X7SPA.cfm?typ=H&IPMI=Y,
I want to use it with 6 disks.

I'm using the same board. Currently I have on running with 4 OSD's on it, but I hope to have 9 of them (each with 4 OSD's) running by the end of next week.

Quoted 2 lines

The 800MB your machine uses is for all 4 OSD's together? Do you have any numbers for the CPU utilization?

There are my current stats:

root@atom:~# free -m
             total       used       free     shared    buffers
cached
Mem:          3963       3871         92          0         34
3247
-/+ buffers/cache:        590       3373
Swap:         7627          2       7625
root@atom:~#
root@atom:~# pidof cosd
9314 8201 8101 8028
root@atom:~#
Quoted 1 line

I'm looking for the sweetspot of max IO-OPs/s per watt.

Although I haven't been benchmarking it really hard, I don't think the CPU will be a bottleneck. I did a expansion from 4 to 8 OSD's where the Atom machine hosts the new OSD's, about 500GB of data had to be copied to the box. The recovery pushed about 40MB/sec to the OSD's, where the CPU utilization was about 40%

I hope to have the 9 Atom machines running by next, that will give me some more information.

Wido

Quoted 10 lines

Thanks in advance.

martin

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html