Skip to content

Commit

Permalink
change thread-pool-size default value (OpenAtomFoundation#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
Axlgrep authored and whoiami committed Aug 6, 2019
1 parent e3552b4 commit 735ebb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/pika.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ port : 9221
# Thread Number
thread-num : 1
# Thread Pool Size
thread-pool-size : 8
thread-pool-size : 12
# Sync Thread Number
sync-thread-num : 6
# Pika log path
Expand Down
2 changes: 1 addition & 1 deletion src/pika_conf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int PikaConf::Load()
}
GetConfInt("thread-pool-size", &thread_pool_size_);
if (thread_pool_size_ <= 0) {
thread_pool_size_ = 8;
thread_pool_size_ = 12;
}
if (thread_pool_size_ > 24) {
thread_pool_size_ = 24;
Expand Down

0 comments on commit 735ebb6

Please sign in to comment.