Skip to content

[Tech Request]: dynamic adjustment of disk-cache-size via RPC #16475

Closed

Description

@aylei

Is there an existing issue for the same tech request?

  • I have checked the existing issues.

Does this tech request not affect user experience?

  • This tech request doesn't affect user experience.

What would you like to be added ?

An API that allows set/get disk-cache-size at runtime, update to disk-cache-size should take effect before the RPC returns.

The get API is also a must-to-have since if we tune disk-cache-size dynamically, the configuration file is no longer the source of truth.

@reusee please evaluate whether we can ship this in mo 1.3, thanks!

Why is this needed ?

The ability to dynamically adjust the disk-cache-size parameter at runtime via RPC would allow users to optimize disk cache usage based on the current workload and system performance without needing to restart the database service.

Additional information

No response

Activity

  1. added
    kind/tech-request
    on May 29, 2024
  2. added this to the 1.3.0-Backlog milestone on May 29, 2024
  3. modified the milestones: 1.3.0-Backlog, 1.3.0 on Jul 2, 2024
  4. xzxiong commented on Aug 7, 2024

    @xzxiong
    Contributor

    针对 #17868 的扩展,我梳理了一下 disk cache 的使用场景
    image

    根据我的理解,还有以下的问题 可能需要进一步完善:

    1. Cache 需要支持主动 Evict —— 并且保证并发安全,特别是还在使用的事务。
    2. 看看 cache 目前的大小? —— 至少要增加 cache size 的接口
    3. 怎么看 cache 变更完成?
  5. reusee commented on Oct 8, 2024

    @reusee
    Contributor

    done

  6. assigned and unassigned on Oct 8, 2024
  7. assigned and unassigned on Oct 17, 2024
  8. aressu1985 commented on Nov 4, 2024

    @aressu1985
    Contributor

    TEST DONE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/tech-requestphase/testing

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions