Skip to contentSkip to conversation

Could rados pool support tree view feature ?

DISCUSSION Jeff Wu 3 participants 5 messages Dec 19, 2011 – Dec 20, 2011

lore
Share & tools
lore

Jeff Wu

author
#0 lore raw

Hi ,

Could rados pool support tree view feature ?for instance :

$rados lspools -m 172.16.10.10
data
metadata
rbd
Product:00000001

├── 00011
│   └── 00012
|        └── 00013
Product:00000002
├── 00021
│   └── 00022
|        └── 00023
Product:00000003
├── 00031
│   └── 00032
|        └── 00033

This feature is very useful for us,if not,how to implement it ?

Thanks,
Jeff Wu

--
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

#1 lore raw
Quoted 10 lines · Jeff Wu

Could rados pool support tree view feature ?for instance :

$rados lspools -m 172.16.10.10
data
metadata
rbd
Product:00000001

├── 00011
│   └── 00012
|        └── 00013

What type are the 00011 and 00012 entries? Are they pools or objects, or what? RADOS pools are flat namespaces of objects, there's no tree structure there.

You should be able to write that easily, for example less than 100 lines of Python using the "rados" module gets you the listing of the pools and the objects in them, and then you can use whatever your custom logic is for creating that tree shape.

The Ceph team pretty much starts with the assumption that your pools are going to have at least millions of objects, so it's unlikely we'll write pretty visual navigation apps listing individual objects. The output would just be too long to be useful.
--
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

Hi ,Tommi
Thank you very much.

00011 and 00012 are sub-pools ,we want to map our iaas devices topology view meta data to these these sub-pools as a reference model.

Quoted 21 lines · Tommi Virtanen
Quoted 10 lines · Jeff Wu

Could rados pool support tree view feature ?for instance :

$rados lspools -m 172.16.10.10
data
metadata
rbd
Product:00000001

├── 00011
│   └── 00012
|        └── 00013

What type are the 00011 and 00012 entries? Are they pools or objects, or what? RADOS pools are flat namespaces of objects, there's no tree structure there.

You should be able to write that easily, for example less than 100 lines of Python using the "rados" module gets you the listing of the pools and the objects in them, and then you can use whatever your custom logic is for creating that tree shape.

Quoted 4 lines

The Ceph team pretty much starts with the assumption that your pools are going to have at least millions of objects, so it's unlikely we'll write pretty visual navigation apps listing individual objects. The output would just be too long to be useful.

--
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

#3 lore raw

Unfortunately pools are completely flat namespaces, and there's no hierarchical relationship between pools (well, really it's a feature, not something unfortunate). So any tree structure would need to be a completely external thing, which I guess you would probably do with naming conventions and some wrapper scripts.
-Greg

Quoted 33 lines · Jeff Wu

Hi ,Tommi
Thank you very much.

00011 and 00012 are sub-pools ,we want to map our iaas devices topology view meta data to these these sub-pools as a reference model.

Quoted 21 lines · Tommi Virtanen
Quoted 10 lines · Jeff Wu

Could rados pool support tree view feature ?for instance :

$rados lspools -m 172.16.10.10
data
metadata
rbd
Product:00000001

├── 00011
│   └── 00012
|        └── 00013

What type are the 00011 and 00012 entries? Are they pools or objects, or what? RADOS pools are flat namespaces of objects, there's no tree structure there.

You should be able to write that easily, for example less than 100 lines of Python using the "rados" module gets you the listing of the pools and the objects in them, and then you can use whatever your custom logic is for creating that tree shape.

Quoted 4 lines

The Ceph team pretty much starts with the assumption that your pools are going to have at least millions of objects, so it's unlikely we'll write pretty visual navigation apps listing individual objects. The output would just be too long to be useful.

Quoted 4 lines

--
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

--
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
#4 lore raw

Hi Greg ,

Thanks!

Jeff

Quoted 7 lines · Gregory Farnum

Unfortunately pools are completely flat namespaces, and there's no hierarchical relationship between pools (well, really it's a feature, not something unfortunate). So any tree structure would need to be a completely external thing, which I guess you would probably do with naming conventions and some wrapper scripts.
-Greg

Quoted 38 lines
Quoted 37 lines · Jeff Wu

Hi ,Tommi
Thank you very much.

00011 and 00012 are sub-pools ,we want to map our iaas devices topology view meta data to these these sub-pools as a reference model.

Quoted 21 lines · Tommi Virtanen
Quoted 10 lines · Jeff Wu

Could rados pool support tree view feature ?for instance :

$rados lspools -m 172.16.10.10
data
metadata
rbd
Product:00000001

├── 00011
│   └── 00012
|        └── 00013

What type are the 00011 and 00012 entries? Are they pools or objects, or what? RADOS pools are flat namespaces of objects, there's no tree structure there.

You should be able to write that easily, for example less than 100 lines of Python using the "rados" module gets you the listing of the pools and the objects in them, and then you can use whatever your custom logic is for creating that tree shape.

Quoted 4 lines

The Ceph team pretty much starts with the assumption that your pools are going to have at least millions of objects, so it's unlikely we'll write pretty visual navigation apps listing individual objects. The output would just be too long to be useful.

--
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

--
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