TSO Time Window: Each TiDB server is allocated 3 seconds of TSO when requested. During these 3 seconds, if other TiDB servers request TSO, will it continue to be allocated?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tso时间窗口: 每个tidb server 请求时分配3秒钟的tso,这3秒钟内其他tidb server请求的话tso也是延续分配吗?

| username: xiaohetao

If the first TiDB server1 requests at 10 seconds, PD will allocate the TSO from 10 to 13 seconds to it. If another TiDB server2 requests TSO at 12 seconds, will TiDB server2 get the TSO from 14 to 17 seconds, continuing from server1?

| username: ddhe9527 | Original post link

It should not be that the entire 3 seconds of TSO is allocated to a single TiDB instance. PD generates the TSO for these 3 seconds in batches every 3 seconds and then caches it in its own memory. The TiDB Server will request the TSO in batches from PD through the PD Client.

| username: 张雨齐0720 | Original post link

The PD primary node distributes to all requests, not in a round-robin manner to each TiDB Server.

| username: OnTheRoad | Original post link

| username: xiaohetao | Original post link

:+1::handshake:

| username: 大鱼海棠 | Original post link

Brother, what’s the title of your book?

| username: OnTheRoad | Original post link

My own notes

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.