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

feat(split): update some split related perf-counter #797

Merged
merged 1 commit into from
Mar 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/replica/replica_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ bool partition_split_context::cleanup(bool force)
CLEANUP_TASK(check_state_task, force)
}

splitting_start_ts_ns = 0;
splitting_start_async_learn_ts_ns = 0;
splitting_copy_file_count = 0;
splitting_copy_file_size = 0;
parent_gpid.set_app_id(0);
is_prepare_list_copied = false;
is_caught_up = false;
Expand Down
4 changes: 4 additions & 0 deletions src/replica/replica_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,10 @@ void replica_stub::on_gc()
_counter_bulk_load_running_count->set(bulk_load_running_count);
_counter_bulk_load_max_ingestion_time_ms->set(bulk_load_max_ingestion_time_ms);
_counter_bulk_load_max_duration_time_ms->set(bulk_load_max_duration_time_ms);
_counter_replicas_splitting_count->set(splitting_count);
_counter_replicas_splitting_max_duration_time_ms->set(splitting_max_duration_time_ms);
_counter_replicas_splitting_max_async_learn_time_ms->set(splitting_max_async_learn_time_ms);
_counter_replicas_splitting_max_copy_file_size->set(splitting_max_copy_file_size);

ddebug("finish to garbage collection, time_used_ns = %" PRIu64, dsn_now_ns() - start);
}
Expand Down
1 change: 1 addition & 0 deletions src/replica/split/replica_split_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,7 @@ void replica_split_manager::child_partition_active(
return;
}

_stub->_counter_replicas_splitting_recent_split_succ_count->increment();
_replica->_primary_states.last_prepare_decree_on_new_primary =
_replica->_prepare_list->max_decree();
_replica->update_configuration(config);
Expand Down