omap functions in librados.h
Hi,
I'm looking for the omap functions in librados.h, but they only seem to be implemented in librados.hpp?
I want to store about 6000 objects in a RADOS pool, but I want to give them some attributes I can query for, this should be possible with the omap functionality, shouldn't it?
Do to this I want to use phprados, but that is using the C-functions, so that's why I'm asking.
Has this been forgotten or is there something blocking it?
Wido
Quoted 8 lines · Wido den Hollander
Hi,
I'm looking for the omap functions in
librados.h, but they only seem to be implemented in librados.hpp?I want to store about 6000 objects in a RADOS pool, but I want to give them some attributes I can query for, this should be possible with the omap functionality, shouldn't it?
What do you mean, query for? You can look at an object and ask if it has "foo=bar" in its omap, but you can't say "give me all objects with 'foo=bar'".
Quoted 4 lines
Do to this I want to use phprados, but that is using the C-functions, so that's why I'm asking.
Has this been forgotten or is there something blocking it?
It'll probably be inconvenient as always due to memory management, but it's not blocked by anything that I'm aware of.
-Greg
Quoted 6 lines · Gregory Farnum
Quoted 5 lines · Wido den Hollander
Hi,
I'm looking for the omap functions in
librados.h, but they only seem to be implemented in librados.hpp?
Quoted 7 lines
Quoted 3 lines
I want to store about 6000 objects in a RADOS pool, but I want to give them some attributes I can query for, this should be possible with the omap functionality, shouldn't it?
What do you mean, query for? You can look at an object and ask if it has "foo=bar" in its omap, but you can't say "give me all objects with 'foo=bar'".
Ah, I must have understood that differently. I thought that leveldb was added so you could give objects attributes you could query.
So yes: "Give me all objects that have foo=bar"
I thought I saw some discussion regarding this.
Any ideas besides setting up a own external database with this information?
Wido
Quoted 13 lines
Quoted 5 lines
Do to this I want to use phprados, but that is using the C-functions, so that's why I'm asking.
Has this been forgotten or is there something blocking it?
It'll probably be inconvenient as always due to memory management, but it's not blocked by anything that I'm aware of.
-Greg
--
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 18 lines · Wido den Hollander
Quoted 15 lines · Gregory Farnum
Quoted 11 lines · Wido den Hollander
Hi,
I'm looking for the omap functions in
librados.h, but they only seem to be
implemented in librados.hpp?I want to store about 6000 objects in a RADOS pool, but I want to give them
some attributes I can query for, this should be possible with the omap functionality, shouldn't it?
Quoted 7 lines
Quoted 4 lines
What do you mean, query for? You can look at an object and ask if it has "foo=bar" in its omap, but you can't say "give me all objects with 'foo=bar'".
Ah, I must have understood that differently. I thought that leveldb was added so you could give objects attributes you could query.
No, leveldb is just a nice fast store — sorry!
Quoted 5 lines
So yes: "Give me all objects that have foo=bar"
I thought I saw some discussion regarding this.
Any ideas besides setting up a own external database with this information?
Well, you could maintain the data in a single rados object, if it doesn't need to get too large. Or Eleanor (one of our friendly interns!) has been writing a prototype distributed b-tree database thingy that you might want to look at.
But there are presently no plans to (or ideas of how to) implement a generic query-able set of attributes which are co-located with nodes. -Greg
--
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 34 lines · Gregory Farnum
Quoted 18 lines · Wido den Hollander
Quoted 15 lines · Gregory Farnum
Quoted 11 lines · Wido den Hollander
Hi,
I'm looking for the omap functions in
librados.h, but they only seem to be
implemented in librados.hpp?I want to store about 6000 objects in a RADOS pool, but I want to give them
some attributes I can query for, this should be possible with the omap functionality, shouldn't it?Quoted 7 lines
Quoted 4 lines
What do you mean, query for? You can look at an object and ask if it has "foo=bar" in its omap, but you can't say "give me all objects with 'foo=bar'".
Ah, I must have understood that differently. I thought that leveldb was added so you could give objects attributes you could query.
No, leveldb is just a nice fast store — sorry!
Quoted 5 lines
So yes: "Give me all objects that have foo=bar"
I thought I saw some discussion regarding this.
Any ideas besides setting up a own external database with this information?
Quoted 8 lines
Well, you could maintain the data in a single rados object, if it doesn't need to get too large. Or Eleanor (one of our friendly interns!) has been writing a prototype distributed b-tree database thingy that you might want to look at.
But there are presently no plans to (or ideas of how to) implement a generic query-able set of attributes which are co-located with nodes. -Greg
--
I'm talking about 6000 objects ranging from 600MB to 4GB each, so that is even stretching the limit of a single object, that's why I would like that layer on top of librados: http://article.gmane.org/gmane.comp.file-systems.ceph.devel/6176
I would definitely want to take a look at that b-tree database!
Wido
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
Quoted 34 lines · Gregory Farnum
Quoted 18 lines · Wido den Hollander
Quoted 15 lines · Gregory Farnum
Quoted 11 lines · Wido den Hollander
Hi,
I'm looking for the omap functions in
librados.h, but they only seem to be
implemented in librados.hpp?I want to store about 6000 objects in a RADOS pool, but I want to give them
some attributes I can query for, this should be possible with the omap functionality, shouldn't it?Quoted 7 lines
Quoted 4 lines
What do you mean, query for? You can look at an object and ask if it has "foo=bar" in its omap, but you can't say "give me all objects with 'foo=bar'".
Ah, I must have understood that differently. I thought that leveldb was added so you could give objects attributes you could query.
No, leveldb is just a nice fast store — sorry!
Quoted 5 lines
So yes: "Give me all objects that have foo=bar"
I thought I saw some discussion regarding this.
Any ideas besides setting up a own external database with this information?
Quoted 8 lines
Well, you could maintain the data in a single rados object, if it doesn't need to get too large. Or Eleanor (one of our friendly interns!) has been writing a prototype distributed b-tree database thingy that you might want to look at.
But there are presently no plans to (or ideas of how to) implement a generic query-able set of attributes which are co-located with nodes. -Greg
--
Where is this distributed b-tree located? Is it open source as well? I'd be very interested too.
Regards,
Xiaopong
--
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 5 lines · Wido den Hollander
So yes: "Give me all objects that have foo=bar"
I thought I saw some discussion regarding this.
Any ideas besides setting up a own external database with this information?
What you want is called a secondary index. Ceph does not maintain one for you.
You pretty much have two choices:
1,. use an external service, such as ElasticSearch
2. manage the secondary index yourself: for every key "foo" you want to query for:
- as you set object "quux" key "foo" to value "bar", in another pool, set object "foo" key "bar:quux" to value "" (assuming ":" is a safe separator that cannot be in "bar")
- on delete, remove the above
- on modify, remove old value, add new one
- to handle larger scale, shard the index over multiple objects etc. There's a lot of prior art in the nosql ecosystem about this stuff. You could probably take Solandra and port that on top of RADOS instead of Cassandra, fi you really wanted to.
https://github.com/tjake/Solandra/
Quoted 9 lines · Wido den Hollander
Hi,
I'm looking for the omap functions in
librados.h, but they only seem to be implemented in librados.hpp?I want to store about 6000 objects in a RADOS pool, but I want to give them some attributes I can query for, this should be possible with the omap functionality, shouldn't it?
Quoted 6 lines
Do to this I want to use phprados, but that is using the C-functions, so that's why I'm asking.
Has this been forgotten or is there something blocking it?
Wido
The librados C++ api's ObjectOperation methods aren't implemented in the C api yet. There's no reason not to add them, it's just that no one's gotten to it yet. I can help if you're interested in implementing them, although I'll be away from email next week.
Josh