apple / apple/foundationdb

broadcastDBInfoRequest should minimize cross DC/Locality calls

Open
#9,777 0 comments 0 reactions 1 assignee Claimed by @xis19 View on GitHub
Dominant language
C++
Stars
16.7k
Forks
1.6k
Avg merge
1d 20h
Merged PRs (30d)
126

Description

`broadcastDBInfoRequest()` today takes a list of workers, ordered by `processID`, divides them into batches, and sends a batch to one worker. The worker receives the batch recursively calls `broadcastDBInfoRequest()` to distribute the request.

This broadcast doesn't take the network topology into consideration. As a result, cluster controller may send a request to a remote DC, which then forwards the request back to the primary DC. A better way is to minimize cross DC or Locality traffic by dividing batches such that the workers in the same batch belong to a DC/Locality.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.