Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

feat(disk_balance): close origin replica and update replica dir #668

Merged
merged 104 commits into from
Feb 22, 2021

Conversation

foreverneverer
Copy link
Contributor

@foreverneverer foreverneverer commented Nov 12, 2020

replica migration status

client(shell)--->replicaServer--->metaServer
      +                +              +
      |                |              |
      +-------start--->+ ->IDLE       |
      |                |    +         |
      |                |    v         |
      |                |  MOVING      |
      |                |    +         |
      |                |    v         |
      |                |  MOVED       |
      |                |    +         |
      |                |    v         |
      |                |  CLOSED      |
      |                |    +         |
      |                |    v         |
      |          +-----+ <-LEARN<-----+
      |          |     |
      |          v     |
      |     LearnSucess|
      |          +     |
      |          |     |
      +          +---->+

as above, this pr complete the work from MOVED to CLOSED

Config

[replication]
+ gc_disk_migration_tmp_replica_interval_seconds = 86400 #1day
+ gc_disk_migration_origin_replica_interval_seconds = 604800 #7day

Perf-counter

eon.replica_stub.replicas.tmp.replica.dir.count
eon.replica_stub.replicas.origin.replica.dir.count

Note

_useless_dir_reserve_seconds_command is deleted

src/replica/replica_stub.cpp Outdated Show resolved Hide resolved
src/replica/replica_stub.cpp Outdated Show resolved Hide resolved
src/common/fs_manager.cpp Outdated Show resolved Hide resolved
src/replica/replica.cpp Show resolved Hide resolved
src/replica/replica_disk_migrator.cpp Outdated Show resolved Hide resolved
src/replica/replica_disk_migrator.cpp Show resolved Hide resolved
src/replica/replica_disk_migrator.h Show resolved Hide resolved
src/replica/replica_stub.cpp Outdated Show resolved Hide resolved
src/replica/replica_stub.cpp Outdated Show resolved Hide resolved
src/replica/disk_cleaner.cpp Outdated Show resolved Hide resolved
src/replica/disk_cleaner.cpp Outdated Show resolved Hide resolved
src/replica/disk_cleaner.cpp Show resolved Hide resolved
src/replica/disk_cleaner.cpp Outdated Show resolved Hide resolved
src/replica/disk_cleaner.cpp Outdated Show resolved Hide resolved
src/replica/disk_cleaner.cpp Outdated Show resolved Hide resolved
src/replica/disk_cleaner.cpp Outdated Show resolved Hide resolved
src/replica/disk_cleaner.h Outdated Show resolved Hide resolved
src/replica/replica.cpp Show resolved Hide resolved
src/replica/replica_disk_migrator.cpp Show resolved Hide resolved
src/replica/replica_init.cpp Outdated Show resolved Hide resolved
src/replica/disk_cleaner.h Outdated Show resolved Hide resolved
src/replica/replica_stub.cpp Show resolved Hide resolved
neverchanje
neverchanje previously approved these changes Feb 20, 2021
@hycdong hycdong added the type/perf-counter PR that made modification on perf-counter, which should be noted in release note. label Feb 22, 2021
@foreverneverer foreverneverer added the type/config-change PR that made modification on configs, which should be noted in release note. label Feb 22, 2021
@foreverneverer foreverneverer merged commit 660bf06 into XiaoMi:master Feb 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/config-change PR that made modification on configs, which should be noted in release note. type/perf-counter PR that made modification on perf-counter, which should be noted in release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants