tendrl stragegy for ceph cluster map hierarchy
A message that is not in the archive (sent off-list or not yet received): [email protected]
Dear Ceph community,
I'm trying to understand how ceph cluster hierarchy feature relates and affects Tendrl project (http://tendrl.org/), which tries to provide web UI and API for ceph (and gluster) management.
The problem is that my understanding is based solely on reading Sage's thesis, documentation and playing around with toy sized clusters. So I would definitely appreciated someone with better understanding of ceph to check my thinking here. I'm forwarding my tendrl post below.
Btw: Tendrl project definitely welcomes you to show your opinions about tendrl plans/ides on tendrl-devel list :)
Signature · 79 lines
Martin Bukatovic USM QE team -------- Forwarded Message -------- Subject: tendrl stragegy for ceph cluster map hierarchy Date: Wed, 8 Mar 2017 11:08:23 +0100 From: Martin Bukatovic <[email protected]> Organization: Red Hat To: [email protected] Dear Tendrl community, I recently reviewed chapter 5 "Data Distribution" from Sage's Ceph thesis[1], (since I try to improve my understanding of Ceph in general) and noticed the importance of "cluster map hierarchy" (aka CRUSH Map Bucket Hierarchy[2]). In short, it's a tree structure in which: * nodes are called "buckets" * leaf nodes represent OSDs * inner (non leaf) nodes has a "bucket type", which influences efficiency and performance of cluster operations on OSDs and data stored there Design of this structure is important for performance, planned usage patterns, cluster expansion and failure domains (which means that poorly designed hierarchy could result in data loss which could be prevented if proper design had been used instead). Eg. one could define bucket node for each rack, which would make possible to define crash rules to make sure that at least one replica is placed in different rack to prevent data loss when particular rack is down/lost. Without proper cluster hierarchy, it's not possible to achieve that. If you are not familiar with the concept and are working or interested in features dealing with cluster import or creation, I would suggest to definitely check either mentioned chapter from the thesis or ceph documentation. So the big question here is *how is Tendrl planning to work with this feature*? We definitely can't ignore this now. Tendrl needs to have a clear strategy here from the beginning as this is something which can't be added or changed later easily. Since this is core low level feature, there is no particular use case JIRA for it. That said handling of cluster hierarchy is imho core part of the following JIRAs: * TEN-2 Install Ceph 2.x Cluster * TEN-4 Import a Ceph 2.x Cluster * TEN-164 UX: Create Ceph Cluster Design * TEN-190 Create Ceph cluster via UI My opinion is that we need to be able at least: * import any valid/supported cluster cluster with it's hierarchy, without breaking ceph or tendrl * communicate clearly with tendrl admin user how the cluster hierarchy created during ceph cluster creation would look like * make it possible for admin to define cluster hierarchy manually if he decides that what tendrl provides doesn't fit his needs * design the tendrl architecture/code so that it's possible to add additional cluster map setup features, validation later without significant refactoring of tendrl code [1] http://ceph.com/papers/weil-thesis.pdf (link temp. broken at the moment) [2] http://docs.ceph.com/docs/master/rados/operations/crush-map/#crush-map-bucket-hierarchy [TEN-2] https://tendrl.atlassian.net/browse/TEN-2
Hi Martin,
Quoted 6 lines · Martin Bukatovic
Dear Ceph community,
I'm trying to understand how ceph cluster hierarchy feature relates and affects Tendrl project (http://tendrl.org/), which tries to provide web UI and API for ceph (and gluster) management.
Quoted 8 lines
The problem is that my understanding is based solely on reading Sage's thesis, documentation and playing around with toy sized clusters. So I would definitely appreciated someone with better understanding of ceph to check my thinking here. I'm forwarding my tendrl post below.
Btw: Tendrl project definitely welcomes you to show your opinions about tendrl plans/ides on tendrl-devel list :)
Joined!
Quoted 55 lines
-------- Forwarded Message --------
Subject: tendrl stragegy for ceph cluster map hierarchy
Date: Wed, 8 Mar 2017 11:08:23 +0100
From: Martin Bukatovic <[email protected]>
Organization: Red Hat
To: [email protected]Dear Tendrl community,
I recently reviewed chapter 5 "Data Distribution" from Sage's Ceph thesis[1],
(since I try to improve my understanding of Ceph in general) and noticed the importance of "cluster map hierarchy" (aka CRUSH Map Bucket Hierarchy[2]).In short, it's a tree structure in which:
* nodes are called "buckets"
* leaf nodes represent OSDs
* inner (non leaf) nodes has a "bucket type", which influences efficiency and performance of cluster operations on OSDs and data stored thereDesign of this structure is important for performance, planned usage patterns, cluster expansion and failure domains (which means that poorly designed hierarchy could result in data loss which could be prevented if proper design had been used instead).
Eg. one could define bucket node for each rack, which would make possible to define crash rules to make sure that at least one replica is placed in different rack to prevent data loss when particular rack is down/lost. Without proper cluster hierarchy, it's not possible to achieve that.
If you are not familiar with the concept and are working or interested in features dealing with cluster import or creation, I would suggest to definitely check either mentioned chapter from the thesis or ceph documentation.
So the big question here is *how is Tendrl planning to work with this feature*?
We definitely can't ignore this now. Tendrl needs to have a clear strategy here from the beginning as this is something which can't be added or changed later easily.
Since this is core low level feature, there is no particular use case JIRA for it. That said handling of cluster hierarchy is imho core part of the following JIRAs:
* TEN-2 Install Ceph 2.x Cluster
* TEN-4 Import a Ceph 2.x Cluster
* TEN-164 UX: Create Ceph Cluster Design
* TEN-190 Create Ceph cluster via UIMy opinion is that we need to be able at least:
Quoted 9 lines
* import any valid/supported cluster cluster with it's hierarchy, without breaking ceph or tendrl
* communicate clearly with tendrl admin user how the cluster hierarchy created during ceph cluster creation would look like
* make it possible for admin to define cluster hierarchy manually if he decides that what tendrl provides doesn't fit his needs
* design the tendrl architecture/code so that it's possible to add additional cluster map setup features, validation later without significant refactoring of tendrl code
The "master" copy of the cluster hierarchy (datacenters, rows, racks, hosts, devices) is the CRUSH map. Ceph makes this easily accessible in JSON form, and provides a series of commands that let you adjust the hierachy (moving nodes of the tree around), so I think this is primarily a UI issue.
Usually the OSDs know enough to put the devices under the correct host, but usually hosts don't know where they exist within the larger cluster. (There are hooks to do this on the host, but it currently relies on something like ansible or chef or puppet to put this somewhere in /etc so that we can tell which rack etc the host lives in.) That means it's usually the admin who ensure the hosts are positioned properly in the overall hierarchy. So probably teh first thing would be to make the GUI let you create racks/rows/datacenters/whatever and drag parts of the tree around.
As far as visualizing the cluster, the key thing I think we should address from the get-go is how to do it in a way that will scale gracefully to clusters with 100s, 1000s, and 10000s of OSDs. The most promising thing I've seen (and admittedly I haven't seen much) was from a paper someone (Loic?) sent around a few weeks ago:
http://www.aviz.fr/wiki/uploads/Teaching2014/bundles_infovis.pdf
See, for example Fig 1 and Fig 13a. The circle grouping can scale down as the cluster scales up (or you zoom in/out). (And the actual subject of the paper--data flows--can be applied to show things like data movement during rebalancing/recovery or proposed CRUSH changes.)
sage
Quoted 9 lines · Sage Weil
Usually the OSDs know enough to put the devices under the correct host, but usually hosts don't know where they exist within the larger cluster. (There are hooks to do this on the host, but it currently relies on something like ansible or chef or puppet to put this somewhere in /etc so that we can tell which rack etc the host lives in.) That means it's usually the admin who ensure the hosts are positioned properly in the overall hierarchy. So probably teh first thing would be to make the GUI let you create racks/rows/datacenters/whatever and drag parts of the tree around.
That's a good point. Right now Tendrl is in a early stage of development and don't have this yet. That said, we need to consider this feature from the beginning.
I expect that ceph-ansible and ceph-installer provides a way to achieve this (for the node to know where in hierarchy it is for ceph to place it into correct place in the crush cluster hierarchy).
To Tendrl team: do we have a plan for such feature?
Quoted 6 lines
As far as visualizing the cluster, the key thing I think we should address from the get-go is how to do it in a way that will scale gracefully to clusters with 100s, 1000s, and 10000s of OSDs. The most promising thing I've seen (and admittedly I haven't seen much) was from a paper someone (Loic?) sent around a few weeks ago:
Quoted 6 lines
http://www.aviz.fr/wiki/uploads/Teaching2014/bundles_infovis.pdf
See, for example Fig 1 and Fig 13a. The circle grouping can scale down as the cluster scales up (or you zoom in/out). (And the actual subject of the paper--data flows--can be applied to show things like data movement during rebalancing/recovery or proposed CRUSH changes.)
Thanks for the link the the paper.
What is the opinion of the Tendrl design and gui people about this idea? We don't need to have a proper visualization of the cluster in 1st version, but when we start working on it, having scaling to 10000s OSDs in mind is a very good approach.
Signature · 2 lines
Martin Bukatovic USM QE team