[CONTROLLER-1405] Provide ability to put content of multiple modules in a single shard Created: 18/Aug/15 Updated: 14/Nov/18 Resolved: 14/Nov/18 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | clustering |
| Affects Version/s: | Lithium |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Moiz Raja | Assignee: | Natarajan Dhiraviam |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Currently we have 2 options. Create a shard per module and put the all the modules which do not have a configured shard into the default shard. It would be nice if we could have the data for some related modules stored together in one shard. This will help us distribute data better across a cluster without forcing us to configure one shard per module which has it's own overhead (RAFT related heartbeats and such) |
| Comments |
| Comment by Tom Pantelis [ 25/Aug/15 ] |
|
Moiz notes via email: A shard can contain, So let’s say inventory could actually be split into 2 shards we would have a configuration as follows, name=“inventory” , { name=“inventory-2”, replicas=[“member-1”, “member-3”] }] The ShardStrategy would then be able to figure out if the data went in “inventory-1” or “inventory-2” shard. So based on the initial design we would need to have the configuration as follows. name=“inventory,topology” ] which basically says that inventory and topology data goes into the inventory-topology shard. |
| Comment by Natarajan Dhiraviam [ 12/Oct/15 ] |
|
Conclusion from last discussion was : So initial configuration would like this: ] + Until micro-sharding strategy aspects are worked out, spanning a module across shards shall not be considered. |
| Comment by Natarajan Dhiraviam [ 12/Nov/15 ] |
|
For multi-module sharding, tried aggregating inventory & lacp into a single shard, in a Single Node cluster setup. Was able to see inventory-lacp shard becoming Leader successfully. module-shards.conf: ] Attached is the karaf log extract, jolokia output |
| Comment by Natarajan Dhiraviam [ 12/Nov/15 ] |
|
For multi-module sharding, tried aggregating inventory & lacp into a single shard, in a Single Node cluster setup. Was able to see inventory-lacp shard becoming Leader successfully. module-shards.conf: ] Attached is the karaf log extract, jolokia output |
| Comment by Natarajan Dhiraviam [ 12/Nov/15 ] |
|
Attachment inv-lacp.log has been added with description: Karaf output inventory-lacp multi-module shard karaf log extract for single node cluster |
| Comment by Natarajan Dhiraviam [ 12/Nov/15 ] |
|
Attachment JolokiaOutput.txt has been added with description: JolokiaOutput inventory-lacp multi-module shard Jolokia output for single node cluster |