#7502 has been merged into main but we need to backport this to 2.x still so that we are not missing the resource tracking features whenever concurrent search is GA in 2.x.
ThreadpoolType.RESIZABLE does not exist in 2.x so we will need to use the existing auto queue threadpool type instead.
Closed backport PR: #7613