Skip to contentSkip to conversation

Newbie questions

DISCUSSION Adam Nielsen 3 participants 4 messages Oct 1, 2012 – Oct 6, 2012

lore
Share & tools
lore
#0 lore raw

Hi all,

I've been investigating cluster filesystems for a while now, and I have a few questions about Ceph I hope you don't mind me asking here. This is in the context of using Ceph as a POSIX filesystem and alternative to something like NFS.

1. Is Ceph stable enough for "real" use yet? I read that upgrading to
v0.48 required a reformat, which I imagine would be a bit of an issue in a production system. Is this how upgrades are normally done? Is anyone running Ceph in a production environment with real data yet?

2. Why does the wiki say that you can run one or three monitor daemons, but
running two is worse than one? Wouldn't running two be less work than running three?

3. If I have multiple disks in a machine that I can dedicate to Ceph, is it
better to RAID them and present Ceph with a single filesystem, or do you get better results by giving Ceph a filesystem on each disk and letting it look after the striping and any faulty disks?

4. How resilient is the system? I can find a lot of information saying one
node can go away without any data loss, but does that mean losing a second node will take everything down? Can you configure it such that every node has a complete copy of the cluster, so as long as any one node survives, all the data is available?

5. Given that the cluster filesystem contains files, which are then stored
as other files in a different filesystem, does this affect performance much? I'm thinking of something like a git repository which accesses file metadata a lot, and seems to suffer a bit if it's not running off a local disk.

Hopefully I'm not asking questions which are already covered in the documentation - if so please point me in the right direction.

Many thanks,
Adam.

#1 lore raw

Hello Adam,

Quoted 11 lines · Adam Nielsen

Hi all,

I've been investigating cluster filesystems for a while now, and I have a few questions about Ceph I hope you don't mind me asking here. This is in the context of using Ceph as a POSIX filesystem and alternative to something like NFS.

1. Is Ceph stable enough for "real" use yet? I read that upgrading to
v0.48 required a reformat, which I imagine would be a bit of an issue in a production system. Is this how upgrades are normally done? Is anyone running Ceph in a production environment with real data yet?

The rbd and radosgw are considered stable. CephFS on the other hand is not advised for production.

With 0.48 (aka argonaut) came big changes, and that made the upgrade a one-way street: upgrading to 0.48 was possible, but going back was not. Argonaut's release notes made that bit clear
(http://ceph.com/releases/v0-48-argonaut-released/)

And yes, there are production systems backed up by Ceph. Probably the one with most visibility is Dreamhost's DreamObjects
(http://dreamhost.com/cloud/dreamobjects/) which is now on an open public beta.

Quoted 3 lines

2. Why does the wiki say that you can run one or three monitor
daemons, but running two is worse than one? Wouldn't running two be less work than running three?

First of all, a better source for update documentation would be
http://ceph.com/docs/master/

The monitors must reach a quorum, thus it is advised to have an odd-number of monitors. Having an even-number of monitors may result in some confusion if both halves disagree on something such as "what's the most recent version of a given map". Hence, running an odd-number of monitors is advised.

Quoted 4 lines

3. If I have multiple disks in a machine that I can dedicate to Ceph,
is it better to RAID them and present Ceph with a single filesystem, or do you get better results by giving Ceph a filesystem on each disk and letting it look after the striping and any faulty disks?

I'm sure someone else will be able to address this better than I am!

Quoted 6 lines

4. How resilient is the system? I can find a lot of information
saying one node can go away without any data loss, but does that mean losing a second node will take everything down? Can you configure it such that every node has a complete copy of the cluster, so as long as any one node survives, all the data is available?

Depending on the replication level, how the data is placed across the cluster and how many nodes you have in place, I would say it is fairly certain that you wouldn't lose any data. I, for one, haven't got to configure and deal with such a system (although other have), but ceph is all about avoiding such data loss.

See, data is replicated across the cluster osds. As long as the surviving nodes also have the data that was lost on the other two, three, ..., servers, your cluster should be up and running.

You can configure how data is placed across the cluster by configuring the crush map (http://ceph.com/docs/master/cluster-ops/crush-map/). I don't know if having a complete copy of the cluster in each node is the best idea ever, unless you are aiming for either a small-ish aggregated storage capacity or massive servers.

Quoted 5 lines

5. Given that the cluster filesystem contains files, which are then
stored as other files in a different filesystem, does this affect performance much? I'm thinking of something like a git repository which accesses file metadata a lot, and seems to suffer a bit if it's not running off a local disk.

Well, yes. Adding an extra layer of abstraction is bound to result in performance loss. But on the other hand, using those native file systems simplify ceph's task, design and also allows ceph to leverage certain capabilities those file systems offer and that would otherwise need to be supported by ceph itself (btrfs snapshots come to mind). So, I suppose there's a trade-off here.

How much it affects performance? Well, there are a couple of recent threads in the mailing list regarding such issues (feel free to skim over them), and how they are being address.

Quoted 3 lines

Hopefully I'm not asking questions which are already covered in the documentation - if so please point me in the right direction.

http://ceph.com/docs/master/

Cheers,
-Joao

Quoted 3 lines

Many thanks,
Adam.

#2 lore raw
In reply to Adam Nielsen
Quoted 11 lines · Adam Nielsen

Hi all,

I've been investigating cluster filesystems for a while now, and I have a few questions about Ceph I hope you don't mind me asking here. This is in the context of using Ceph as a POSIX filesystem and alternative to something like NFS.

1. Is Ceph stable enough for "real" use yet? I read that upgrading to v0.48
required a reformat, which I imagine would be a bit of an issue in a production system. Is this how upgrades are normally done? Is anyone running Ceph in a production environment with real data yet?

The upgrade to v0.48 required a conversion the first time each ceph-osd daemon was started with new code. It was transparent to the user except for the fact that the conversion was slow. It is also atypical.

The goal is for all future Ceph upgrades to be transparent and rolling (i.e., upgrade one daemon/machine at a time while the cluster remains completely available). This is an absolute requirement for upgrades/updates within a stable series (e.g., v0.48 -> v0.48.2), and a high priority and probability between versions (argonaut -> bobtail, v0.51 -> v0.52, etc.).

Quoted 4 lines

3. If I have multiple disks in a machine that I can dedicate to Ceph, is it
better to RAID them and present Ceph with a single filesystem, or do you get better results by giving Ceph a filesystem on each disk and letting it look after the striping and any faulty disks?

There are arguments to be made for both configurations. Currently we are using (and generally recommending) one ceph-osd per disk. I would consider going the RAID route if you have limited RAM on the node or have a high-end RAID array that you want to take full advantage of.

sage

#3 lore raw

Thanks both for your answers - very informative. I think I will set up a test Ceph system on my home servers to try it out.

I have one more question:

Ceph seems to handle failed nodes well enough, but what about failed network links? Say you have a few systems in two locations, connected by a single link. If the link fails, you will have two isolated networks, each of which will think the other has failed and presumably will try to go on as best it can. What happens when the link comes back up again? What if the same file was modified by both isolated clusters when the link was down? What version will end up back in the cluster?

Thanks again,
Adam.