what's the bootstrap_room used for in PD disaggregation? #6314
-
|
the code _generate_bootstrap_room for each request in a batch, but it's seems different bootstrap_room value for different requests can't be guaranteed: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It is the PD pair connection establishment process ID for each request. Since we reuse the connection in the engine, you can consider it as the unique ID in the PD context. Since |
Beta Was this translation helpful? Give feedback.
It is the PD pair connection establishment process ID for each request. Since we reuse the connection in the engine, you can consider it as the unique ID in the PD context. Since
random.randint(0, 2**63 - 1)is a very large range, it is nearly impossible for two requests to have an identical room ID within a period of time. Also, I added bootstrap_room clear func in the latest fault tolerance PR, so it will not cause any trouble even if they repeat after a period of time.