Skip to content

Instantly share code, notes, and snippets.

@portante
Created April 10, 2018 12:00
Show Gist options
  • Save portante/f1fe5285cc9e55240c4f531e5fd03381 to your computer and use it in GitHub Desktop.
Save portante/f1fe5285cc9e55240c4f531e5fd03381 to your computer and use it in GitHub Desktop.
A simple script to change the bulk queue size for ES in OpenShift.
#!/bin/bash
ES_URL='https://localhost:9200'
curl_put='curl -s -X PUT --cacert /etc/elasticsearch/secret/admin-ca --cert /etc/elasticsearch/secret/admin-cert --key /etc/elasticsearch/secret/admin-key'
$curl_put $ES_URL/_cluster/settings?pretty -d "{\"persistent\" : {\"threadpool.bulk.queue_size\" : $1}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment