You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2022/08/01 19:58:59 UTC
[GitHub] [cassandra] josh-mckenzie commented on a diff in pull request #1761: Cassandra 17781 - Add separate thread pool for Secondary Index building so it doesn't block compactions
josh-mckenzie commented on code in PR #1761:
URL: https://github.com/apache/cassandra/pull/1761#discussion_r934867456
##########
src/java/org/apache/cassandra/config/Config.java:
##########
@@ -325,6 +325,9 @@ public MemtableOptions()
public volatile int concurrent_materialized_view_builders = 1;
public volatile int reject_repair_compaction_threshold = Integer.MAX_VALUE;
+ // The number of executors to use for building secondary indexes
+ public int concurrent_index_builders = 2;
Review Comment:
🤔 I think we should have a JMX extension for it and promote it as a first class citizen in the .yaml. If we end up using this same thread pool for index building for SASI it's probably something that's going to see _a lot_ more usage than it is today.
I originally kept it as the very primitive "let's just break the scheduling coupling" with the suspicion that https://issues.apache.org/jira/browse/CASSANDRA-11218 would make this work here moot, however now that I think on it a bit more there's no predicting when and if that other work will be completed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org