is it still possible to change these settings dynamicly in 5.X? if so, what's the API to do it?
See Settings changes | Elasticsearch Guide [5.2] | Elastic
Thread pool settings are now node-level settings. As such, it is not possible to update thread pool settings via the cluster settings API.