Skip to contentSkip to conversation

Safe maximum number of RADOS namespaces

DISCUSSION Wido den Hollander 5 participants 11 messages Jan 6, 2017 – Jan 10, 2017

lore
Share & tools
lore
#0 lore raw

Hi,

Together with a customer we are looking in to writing a application which will store a few PB of data using raw RADOS (librados C) and we are looking into using the RADOS namespaces to separate data.

For each 'section' we want to use a namespace in RADOS, but that would mean we would start off with 30M namespaces and this number might grow to 50M within a few years.

Is the a limitation for RADOS/FileStore/BlueStore for the amount of namespaces it can handle? (In a single pool?)

I want to test this, but writing a minimal of 30M objects takes a bit of time, so I figured I'd ask first.

Wido

#1 lore raw
Quoted 7 lines · Wido den Hollander

Hi,

Together with a customer we are looking in to writing a application which will store a few PB of data using raw RADOS (librados C) and we are looking into using the RADOS namespaces to separate data.

For each 'section' we want to use a namespace in RADOS, but that would mean we would start off with 30M namespaces and this number might grow to 50M within a few years.

Is the a limitation for RADOS/FileStore/BlueStore for the amount of namespaces it can handle? (In a single pool?)

I don't think we currently track a list of namespaces anywhere, so there shouldn't be any limit. The namespace effectively acts a special prefix to the object name. This could possibly change if we ever added per-namespace statistics anywhere though.

John

Quoted 7 lines

I want to test this, but writing a minimal of 30M objects takes a bit of time, so I figured I'd ask first.

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

#2 lore raw
Quoted 9 lines

Op 6 januari 2017 om 16:37 schreef John Spray <[email protected]>:

Quoted 4 lines · Wido den Hollander

Hi,

Together with a customer we are looking in to writing a application which will store a few PB of data using raw RADOS (librados C) and we are looking into using the RADOS namespaces to separate data.

Quoted 8 lines
Quoted 3 lines

For each 'section' we want to use a namespace in RADOS, but that would mean we would start off with 30M namespaces and this number might grow to 50M within a few years.

Is the a limitation for RADOS/FileStore/BlueStore for the amount of namespaces it can handle? (In a single pool?)

I don't think we currently track a list of namespaces anywhere, so there shouldn't be any limit. The namespace effectively acts a special prefix to the object name. This could possibly change if we ever added per-namespace statistics anywhere though.

Understood. I expected this, but I wanted to double-check anyway. We will run tests with this in the future so we will know more then.

Wido

Quoted 14 lines

John

Quoted 7 lines

I want to test this, but writing a minimal of 30M objects takes a bit of time, so I figured I'd ask first.

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

#3 lore raw

Namespaces are pretty much just a prefix, nothing tracks them. Are you using them simply to avoid name conflicts?
-Sam

Quoted 40 lines · Wido den Hollander
Quoted 9 lines

Op 6 januari 2017 om 16:37 schreef John Spray <[email protected]>:

Quoted 4 lines · Wido den Hollander

Hi,

Together with a customer we are looking in to writing a application which will store a few PB of data using raw RADOS (librados C) and we are looking into using the RADOS namespaces to separate data.

Quoted 8 lines
Quoted 3 lines

For each 'section' we want to use a namespace in RADOS, but that would mean we would start off with 30M namespaces and this number might grow to 50M within a few years.

Is the a limitation for RADOS/FileStore/BlueStore for the amount of namespaces it can handle? (In a single pool?)

I don't think we currently track a list of namespaces anywhere, so there shouldn't be any limit. The namespace effectively acts a special prefix to the object name. This could possibly change if we ever added per-namespace statistics anywhere though.

Understood. I expected this, but I wanted to double-check anyway. We will run tests with this in the future so we will know more then.

Wido

Quoted 10 lines

John

Quoted 7 lines

I want to test this, but writing a minimal of 30M objects takes a bit of time, so I figured I'd ask first.

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

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

#4 lore raw
Quoted 2 lines · Samuel Just

Namespaces are pretty much just a prefix, nothing tracks them. Are you using them simply to avoid name conflicts?

I assumed for some sort of data and/or security segregation using cephx? 30M pools is not exactly feasible...

Signature · 2 lines
Cheers,
~Blairo
#5 lore raw
Quoted 7 lines

Op 7 januari 2017 om 2:03 schreef Blair Bethwaite <[email protected]>:

Quoted 2 lines · Samuel Just

Namespaces are pretty much just a prefix, nothing tracks them. Are you using them simply to avoid name conflicts?

Yes, but also to be able to list objects (I know, slow!) per 'user'.

Quoted 4 lines

I assumed for some sort of data and/or security segregation using cephx? 30M pools is not exactly feasible...

Eventually yes. We have 30M users in this system now and using namespaces seems like a clean way to separate their data inside RADOS.

Might use different cephx users in the future if we want to.

Wido

Quoted 7 lines
Signature · 6 lines
Cheers,
~Blairo
--
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
#6 lore raw

30M namespaces is not a problem since they are pretty much just object name prefixes. 30M different cephx users probably would be a problem. -Sam

Quoted 28 lines · Wido den Hollander
Quoted 7 lines

Op 7 januari 2017 om 2:03 schreef Blair Bethwaite <[email protected]>:

Quoted 2 lines · Samuel Just

Namespaces are pretty much just a prefix, nothing tracks them. Are you using them simply to avoid name conflicts?

Yes, but also to be able to list objects (I know, slow!) per 'user'.

Quoted 4 lines

I assumed for some sort of data and/or security segregation using cephx? 30M pools is not exactly feasible...

Eventually yes. We have 30M users in this system now and using namespaces seems like a clean way to separate their data inside RADOS.

Might use different cephx users in the future if we want to.

Wido

Quoted 7 lines

--
Cheers,
~Blairo
--
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

#7 lore raw
Quoted 6 lines

Op 9 januari 2017 om 17:00 schreef Samuel Just <[email protected]>:

30M namespaces is not a problem since they are pretty much just object name prefixes. 30M different cephx users probably would be a problem.

Yes, figured so. Not going that route now. Will use namespaces to separate data from our application's users in RADOS to make it all future proof.

Don't want to play with object name prefixes if RADOS already provides this.

Hint: https://github.com/42on/librmb

Wido

Quoted 35 lines

-Sam

Quoted 15 lines · Wido den Hollander
Quoted 7 lines

Op 7 januari 2017 om 2:03 schreef Blair Bethwaite <[email protected]>:

Quoted 2 lines · Samuel Just

Namespaces are pretty much just a prefix, nothing tracks them. Are you using them simply to avoid name conflicts?

Yes, but also to be able to list objects (I know, slow!) per 'user'.

Quoted 4 lines

I assumed for some sort of data and/or security segregation using cephx? 30M pools is not exactly feasible...

Quoted 13 lines

Eventually yes. We have 30M users in this system now and using namespaces seems like a clean way to separate their data inside RADOS.

Might use different cephx users in the future if we want to.

Wido

Quoted 7 lines

--
Cheers,
~Blairo
--
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

#8 lore raw
In reply to Samuel Just
Quoted 3 lines · Samuel Just

30M namespaces is not a problem since they are pretty much just object name prefixes. 30M different cephx users probably would be a problem. -Sam

This is sort of the interesting bit of the problem. If you have a limited number of users you want to be able to collectively read 30M namespaces (without wide permissions) then you need to *enumerate* those 30M namespaces within their keyrings, and the OSDAuthCaps structure is unlikely to handle that well (although we don't really know).

Otherwise, you need a different keyring for each namespace, and that has two separate points of contention:
1) If they're all online frequently, that's a whole bunch of independent connections to the OSDs. (I sort of assume this is not likely.)
2) Storing each of those keyrings in the monitor LevelDB instances. I think the only analogue here is the limited throughput of very large RWG bucket indices; I think the situation ought to be quite a bit better for the monitors — but I don't have any real data about it. -Greg

Quoted 34 lines · Wido den Hollander
Quoted 15 lines
Quoted 7 lines

Op 7 januari 2017 om 2:03 schreef Blair Bethwaite <[email protected]>:

Quoted 2 lines · Samuel Just

Namespaces are pretty much just a prefix, nothing tracks them. Are you using them simply to avoid name conflicts?

Yes, but also to be able to list objects (I know, slow!) per 'user'.

Quoted 4 lines

I assumed for some sort of data and/or security segregation using cephx? 30M pools is not exactly feasible...

Quoted 13 lines

Eventually yes. We have 30M users in this system now and using namespaces seems like a clean way to separate their data inside RADOS.

Might use different cephx users in the future if we want to.

Wido

Quoted 7 lines

--
Cheers,
~Blairo
--
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

#9 lore raw
Quoted 9 lines

Op 9 januari 2017 om 23:34 schreef Gregory Farnum <[email protected]>:

Quoted 3 lines · Samuel Just

30M namespaces is not a problem since they are pretty much just object name prefixes. 30M different cephx users probably would be a problem. -Sam

Quoted 7 lines

This is sort of the interesting bit of the problem. If you have a limited number of users you want to be able to collectively read 30M namespaces (without wide permissions) then you need to *enumerate* those 30M namespaces within their keyrings, and the OSDAuthCaps structure is unlikely to handle that well (although we don't really know).

Yes, it is. For us it is currently not a problem. We are just going to use the namespaces with a key that has access to all the data in a pool. We might do something in the future with limiting keys to a namespace, but that's not relevant right now for us.

Good point though Greg.

Wido

Quoted 49 lines

Otherwise, you need a different keyring for each namespace, and that has two separate points of contention:
1) If they're all online frequently, that's a whole bunch of independent connections to the OSDs. (I sort of assume this is not likely.)
2) Storing each of those keyrings in the monitor LevelDB instances. I think the only analogue here is the limited throughput of very large RWG bucket indices; I think the situation ought to be quite a bit better for the monitors — but I don't have any real data about it. -Greg

Quoted 30 lines · Wido den Hollander
Quoted 15 lines
Quoted 7 lines

Op 7 januari 2017 om 2:03 schreef Blair Bethwaite <[email protected]>:

Quoted 2 lines · Samuel Just

Namespaces are pretty much just a prefix, nothing tracks them. Are you using them simply to avoid name conflicts?

Yes, but also to be able to list objects (I know, slow!) per 'user'.

Quoted 4 lines

I assumed for some sort of data and/or security segregation using cephx? 30M pools is not exactly feasible...

Quoted 13 lines

Eventually yes. We have 30M users in this system now and using namespaces seems like a clean way to separate their data inside RADOS.

Might use different cephx users in the future if we want to.

Wido

Quoted 7 lines

--
Cheers,
~Blairo
--
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

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

#10 lore raw

Notably, listing a namespace is pretty much just listing the entire pool and filtering out everything not in that namespace. Similarly, there is no efficient way to list the set of namespaces with objects in them.
-Sam

Quoted 72 lines · Wido den Hollander
Quoted 9 lines

Op 9 januari 2017 om 23:34 schreef Gregory Farnum <[email protected]>:

Quoted 3 lines · Samuel Just

30M namespaces is not a problem since they are pretty much just object name prefixes. 30M different cephx users probably would be a problem. -Sam

Quoted 7 lines

This is sort of the interesting bit of the problem. If you have a limited number of users you want to be able to collectively read 30M namespaces (without wide permissions) then you need to *enumerate* those 30M namespaces within their keyrings, and the OSDAuthCaps structure is unlikely to handle that well (although we don't really know).

Yes, it is. For us it is currently not a problem. We are just going to use the namespaces with a key that has access to all the data in a pool. We might do something in the future with limiting keys to a namespace, but that's not relevant right now for us.

Good point though Greg.

Wido

Quoted 49 lines

Otherwise, you need a different keyring for each namespace, and that has two separate points of contention:
1) If they're all online frequently, that's a whole bunch of independent connections to the OSDs. (I sort of assume this is not likely.)
2) Storing each of those keyrings in the monitor LevelDB instances. I think the only analogue here is the limited throughput of very large RWG bucket indices; I think the situation ought to be quite a bit better for the monitors — but I don't have any real data about it. -Greg

Quoted 30 lines · Wido den Hollander
Quoted 15 lines
Quoted 7 lines

Op 7 januari 2017 om 2:03 schreef Blair Bethwaite <[email protected]>:

Quoted 2 lines · Samuel Just

Namespaces are pretty much just a prefix, nothing tracks them. Are you using them simply to avoid name conflicts?

Yes, but also to be able to list objects (I know, slow!) per 'user'.

Quoted 4 lines

I assumed for some sort of data and/or security segregation using cephx? 30M pools is not exactly feasible...

Quoted 13 lines

Eventually yes. We have 30M users in this system now and using namespaces seems like a clean way to separate their data inside RADOS.

Might use different cephx users in the future if we want to.

Wido

Quoted 7 lines

--
Cheers,
~Blairo
--
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

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