Skip to content

moves hosting request processing from tserver to manager#3437

Merged
keith-turner merged 4 commits intoapache:elasticityfrom
keith-turner:hosting-request
May 30, 2023
Merged

moves hosting request processing from tserver to manager#3437
keith-turner merged 4 commits intoapache:elasticityfrom
keith-turner:hosting-request

Conversation

@keith-turner
Copy link
Copy Markdown
Contributor

@keith-turner keith-turner commented May 27, 2023

Processing of hosting request was moved from the tserver to manager so that the tablet group watcher could be notified. This considerably reduces the delay in getting an ondemand tablet hosted.

Introduced a cache to avoid reprocessing hosting request for the same tablet in a short time period.

Modified the update of the hosting request column to use a conditional mutation. This avoids a metadata read before write (the read is now done by the mutation conditions) and avoids race conditions.

Moving the hosting request to the manager could introduce scaling problems, however the cache can help with this. The reduced latency for hosting ondemand tablet is needed, so if there are scaling problems a solution will need to be found that has low latency for hosting.

Processing of hosting request was moved from the tserver to manager so
that the tablet group watcher could be notified.  This considerably
reduces the delay in getting an ondemand tablet hosted.

Introduced a cache to avoid reprocessing hosting request for the same
tablet in a short time period.

Modified the update of the hosting request column to use a conditional
mutation.  This avoids a metadata read before write (the read is now
done by the mutation conditions) and avoids race conditions.

Moving the hosting request to the manager could introduce scaling
problems, however the cache can help with this. The reduced latency for
hosting ondemand tablet is needed, so if there are scaling problems a
soluting will need to be found that has low latency for hosting.
@keith-turner keith-turner changed the title moves hostng request processing from tserver to manager moves hosting request processing from tserver to manager May 27, 2023
@keith-turner keith-turner linked an issue May 27, 2023 that may be closed by this pull request
@keith-turner keith-turner merged commit 1893fd4 into apache:elasticity May 30, 2023
@ctubbsii ctubbsii added this to the 4.0.0 milestone Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

OnDemand Follow-on: Optimize how clients request tablet hosting

3 participants