It takes up to 10 minutes to join new master

I found this discussion. Looks like setting of masterTerminationFix: true can fix the issue. is this setting set in elasticsearch.yml? is it dynamic setting?