Hi guys,
One thing we are planning to work of for Fremont (the branch for
whatever we call the release after Drizzle7) is native sharding in
libdrizzle.
We have a couple of proposals on how to do this and want to get some
feedback:
Method 1:
Implement a function like:
drizzle_con_st* drizzle_con_get_shard(const char* key, size_t length);
This will return the connection for the shard based on a key. Later on
we will support things like server grouping.
Then in layers such as the PHP drizzle module we could add functionality
to do something like:
$drizzle->shardQuery($key, $query);
Method 2:
A callback method so that a custom sharding handler can be added (a
default one would be included)
The first would mostly consist of slightly modifying hashing code which
is already in libmemcached. The second I haven't given much though
cycles too yet.
Please let us know what you think.
Kind Regards
--
Andrew Hutchings - LinuxJedi - http://www.linuxjedi.co.uk/
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp