guihecheng commented on pull request #3168: URL: https://github.com/apache/ozone/pull/3168#issuecomment-1061335396
> I raised [HDDS-6424](https://issues.apache.org/jira/browse/HDDS-6424) to discuss the KeyInputStream issue, and I will try to get some people to give it attention before changing the code. That's great, thanks Stephen! I wonder whether it is better to fix this KeyInputStream issue after EC branch got merged since it is a relatively big change that affects non-EC read path. But I do not hold a strong opinion on this :) > For this PR, a global thread pool probably makes sense, but I think we should make it an elastic pool immediately in this PR. A fixed pool is going to require expert knowledge from a user, which isn't good. With an elastic pool with sensible limits, the user should never have to worry about it. I believe Java has elastic pools built in, so we only need to change to a different pool factor, right? Sure, I'll take a step forward in this PR adopting an elastic pool, thanks for the suggestion! For the pool size limit issue, I have one more point: An ordinary user should never have to bother finding out a best value for it, but an expert user should be able to control over the max thread resources used. For the ofs/o3fs case, the client is integrated into the application that has its own business logic that consumes resources, so ozone client resources should be bounded. So a configurable upper bound limit could be introduced. I also check HDFS for reference, HDFS has got a similar item that limits the max pool size: "dfs.client.read.striped.threadpool.size"(default: 18). -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
