Skip to content

[Adaptive Server Selector] support for strictReplicaGroup routing strategy #12507

Description

@MeihanLi

It seems currently Adaptive Server Selector is partially supported for strictReplicaGroup. But it breaks the assumption that by default, for strictReplicaGroup routing, queries are routed to servers from 1 replica group only.

I tested and figured out that for an upsert table with 2 replica groups, queries can be routed to servers from 2 replica groups depending on the server performance.

For example, a tenant has 4 servers, the table has 2 partitions, 2 replicas, 2 replica groups. For select count(*) query, it can pick serverA and serverD from 2 different RGs or serverA and serverB from 1 RG to serve the query.

RG assignment:
RG 0: serverA, serverB
RG 1: serverC, serverD
segments are assigned as below:
partition 0     serverA              serverC
partition 1     serverB              serverD

Are there any other concerns on turning on adaptive server selector for strictReplicaGroup routing tables except that? Also I was wondering if anyone is looking into supporting numReplicaGroupsToQuery with Adaptive Server Selection. What's the plan for it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement to existing functionality

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions