mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-26 11:30:36 +00:00
This implements the ability in load balancer to emit split or merge requests, cancel ongoing ones if they're no longer needed, and also finalize those that are ready for the topology changes. That's all based on average tablet size, collected by coordinator from all nodes, and split and merge thresholds. Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>
23 lines
339 B
C++
23 lines
339 B
C++
/*
|
|
* Copyright (C) 2024-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace service {
|
|
|
|
// This the default target size of tablets.
|
|
static constexpr uint64_t default_target_tablet_size = 5UL * 1024 * 1024 * 1024;
|
|
|
|
class tablet_allocator_impl;
|
|
|
|
class tablet_allocator;
|
|
|
|
}
|