Skip to content

Decouple engine_store_ffi and raftstore#157

Merged
CalvinNeo merged 5 commits intopingcap:raftstore-proxy-6.2from
CalvinNeo:fix-add-more-info
Sep 5, 2022
Merged

Decouple engine_store_ffi and raftstore#157
CalvinNeo merged 5 commits intopingcap:raftstore-proxy-6.2from
CalvinNeo:fix-add-more-info

Conversation

@CalvinNeo
Copy link
Member

@CalvinNeo CalvinNeo commented Sep 2, 2022

Signed-off-by: CalvinNeo calvinneo1995@gmail.com

What problem does this PR solve?

Issue Number: ref pingcap/tiflash#5170

Problem Summary:

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
f
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
@CalvinNeo CalvinNeo changed the title Refactor some log when handing snapshot Decouple engine_store_ffi and raftstore Sep 5, 2022
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
f
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Comment on lines +738 to +739
pool: Builder::new(thd_name!("snap-generator"))
.max_thread_count(snap_generator_pool_size)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also a "snap_handle_pool_size". Not sure whether this should be used or removed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snap_generator_pool_size and snap_handle_pool_size are different configs:

  1. snap_generator_pool_size is used by TiKV to generate snapshot
  2. snap_handle_pool_size is used by Proxy to perform row2column work, and is to be decoupled

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants