hbdisk

package
v0.0.0-...-0a8b275 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package hbdisk implement a hb disk driver. A designated disk is sliced into per node data chunks received the exchanged dataset.

Index

Constants

This section is empty.

Variables

View Source
var (
	// PageSize is the directio block size
	PageSize = directio.BlockSize

	// MetaSize is the size of the header reserved on dev to store the
	// slot allocations.
	// A 4MB meta size can index 1024 nodes if pagesize is 4k.
	MetaSize = 4 * 1024 * 1024

	// SlotSize is the data size reserved for a single node
	SlotSize = 1024 * 1024

	// MaxSlots is maximum number of slots that can fit in MetaSize
	MaxSlots = MetaSize / PageSize
)

Functions

func New

func New() hbcfg.Confer

Types

type T

type T struct {
	hbcfg.T
}

func (*T) Configure

func (t *T) Configure(ctx context.Context)

Configure implements the Configure function of Confer interface for T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL