bvt123 / SCH

GNU General Public License v3.0
1 stars 4 forks source link

configure the name of "cluster" used for sharding #10

Open bvt123 opened 4 months ago

bvt123 commented 4 months ago

LagLive code:

         LEFT JOIN
     (
         SELECT host_name,
                shard_num
         FROM system.clusters
         WHERE cluster = 'sharded'
         ) AS hosts ON shard = hosts.shard_num

make cluster name configurable, without code change or add the requirements to the documentation