apple/foundationdb

DD: Build teams in batches to avoid slow task from DD

Open

#2,102 opened on 2019年9月12日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)C++ (13,912 stars) (1,266 forks)batch import
data distributiongood first issue

説明

The current DD build all required teams in one big atomic block.

When there are a lot of teams to build, say over 6000 teams, DD will take tens of seconds (say 20 seconds) to build all teams without yield. This leads to slow task which makes DD non-responsive to other requests, such as heart beat. Slow tasks can lead to problems: such as cluster controller can mark a live DD as dead, and data balance can be blocked.

The solution to this issue is to break the non-stopping block of buildTeams() into smaller asynchronous blocks. When a lot of teams are to build, buildTeams() will build some of them (say 100 teams) and yield. Later, buildTeams() build another batch of teams.

This issue is related to Issue #2096.

コントリビューターガイド

DD: Build teams in batches to avoid slow task from DD · apple/foundationdb#2102 | Good First Issue