libdrizzle sharding functions
So, we already have a list of servers in libdrizzled via the use of drizzle_
drizzle_con_st* drizzle_
This would use a consistent hashing algorithm similar to libketama for memcached (http://
http://
Alternatively the hashing algorithm from memcached can be used (since it is BSD licensed)
This will return a relevent connection for a key. Using this algorithm will help limit the amount of re-sorting required when adding/removing servers.
Then in layers such as the PHP drizzle library we could add functionality to do something like:
$drizzle-
Which would send the query straight to the shard.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- Andrew Hutchings
- Definition:
- New
- Series goal:
- Accepted for 7.1
- Implementation:
-
Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Work Items
Dependency tree

* Blueprints in grey have been implemented.