Skip to content

Ligthtning : Increase io size(BlockSize) of pebble DB #45037

@AricSu

Description

@AricSu

Enhancement

Well, recently, I got a question that's if we have any option to increase io size of pebble DB.

  1. I found here is the only area changing something about LevelOptions. So, untill now, Tidb-lightning hasn't had a way to control it.

  2. What the user want is when they are hiting the IOPS limit of the EBS drives in read data from pebble into SSTs of TiKV. In this way, "Pebble could relatively read more data at once to reduce iops"

type LevelOptions struct {
// BlockRestartInterval is the number of keys between restart points
// for delta encoding of keys.
//
// The default value is 16.
BlockRestartInterval int

// BlockSize is the target uncompressed size in bytes of each table block.
//
// The default value is 4096.
BlockSize int

more info --> https://pingcap.zendesk.com/agent/tickets/1896

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/feature-requestCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions