Search code examples
opendaylight

Can module-shards.conf be configured differently on different cluster nodes?


I remember the question asked on this forum about multiple shards per module how-does-multiple-shards-per-module-support-works-in-odl-nitrogen The answer was that MD-SAL really uses only the first shard to start transactions for the module. Can it be used for splitting a module among different cluster nodes? If on the first node module default is configured to have two shards default-1 and default-2, but on the second node it is configured to have only default-2 shard, it looks like we may have two leaders for the same namespace (on node 1 it will be default-1 and on node 2 it will be default-2). It will be very desirable but is it possible? Is it possible to configure a module differently on different nodes?


Solution

  • It may be possible to configure it in that manner but not sure why it would be desirable. Also only 1 shard per module is supported so no point in defining default-1 and default-2 on node 1. If the purpose is for each node to maintain its own local copy of the data in the default space, then that can be achieved by configuring only the local node as a replica.