matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.76k stars 274 forks source link

[Enhancement]: transferring connection in proxy should be more proactive #11048

Open volgariver6 opened 1 year ago

volgariver6 commented 1 year ago

Is there an existing issue for enhancement?

What would you like to be added ?

we should add a flag to tell the tunnel that the connection to backend should be transferred, rather than wait for the right time to do the transfer. Because the transferring may never happen in a busy state.

Why is this needed ?

No response

Additional information

No response

aylei commented 11 months ago
image

In high TPS scenario, the connection transfer is extremely slow

volgariver6 commented 10 months ago

暂时没有太好的方案,等把手头其他issue做完再好好想一下

LiSong0214 commented 10 months ago

我觉得这件事还是挺重要的,尤其是serverless实例会自动扩缩容,这会使得扩容的机器很难拿到session

volgariver6 commented 7 months ago

已经写完代码,但是对性能可能有影响,有时间需要再讨论一下

volgariver6 commented 6 months ago

done

tianyahui-python commented 6 months ago

等待升级到qaa验证

tianyahui-python commented 6 months ago

等待升级到qaa验证

tianyahui-python commented 6 months ago

测试不通过, AP session 不迁移, tp session 连接被断开