How to flush threadpool write queue?

GET _cat/thread_pool?v

Elasticsearch version: 7.1

How can we solve this problem of heavy write?

Meanwhile, what's the quick fix?

Is it possible to flush/empty write and search queue?

How can we reset failed/rejected count for these operations?