Index Bulk Queue Size Update

I have updated the bulk queue size of the cluster using the Cluster API settings. I am trying to understand if this is the way to go about it.

curl -XPUT localhost:9200/_cluster/settings -d '{"persistent" : {"threadpool.bulk.queue_size" : 100}}'

That is one way, yes.
Another is via the elasticsearch.yml file.

Thanks. I have now added it to the elasticsearch.yml file.