Ottomata has submitted this change and it was merged.

Change subject: Remove unused bash functions. Nothing calls this.
......................................................................


Remove unused bash functions. Nothing calls this.

Change-Id: Ie4f574df96296bc8c2dbe739ad4b2c571fbc9614
---
D modules/elasticsearch/files/es-tool
1 file changed, 0 insertions(+), 40 deletions(-)

Approvals:
  Ottomata: Verified; Looks good to me, approved
  Manybubbles: Looks good to me, but someone else must approve



diff --git a/modules/elasticsearch/files/es-tool 
b/modules/elasticsearch/files/es-tool
deleted file mode 100755
index 7bdb5c9..0000000
--- a/modules/elasticsearch/files/es-tool
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-function es_all_indexes() {
-    curl -s localhost:9200/_cluster/state | jq '.indices | keys[]'
-}
-
-function es_large_indexes() {
-    curl -s localhost:9200/_stats?level=shards | jq '.indices | keys[] as 
$index | {
-        index: $index,
-        shards: ([.[$index].shards[]] | length),
-        average_size: ([.[$index].shards[][].store.size_in_bytes] | add / 
length / 1024 / 1024 / 1024),
-        total_size: ([.[$index].shards[][].store.size_in_bytes] | add / 1024 / 
1024 / 1024)
-        }
-        | select(.total_size > 5)'
-}
-
-function es_moving_shards() {
-    curl -s localhost:9200/_cluster/state | jq -c '.nodes as $nodes |
-        .routing_table.indices[].shards[][] |
-        select(.relocating_node) | {index, shard, from: $nodes[.node].name, 
to: $nodes[.relocating_node].name}'
-}
-
-function es_unaliased_indexes() {
-    curl -s localhost:9200/_cluster/state | jq '.metadata.indices |
-        keys[] as $index |
-        select(.[$index].aliases | length == 0) | $index' | head
-}
-
-function es_rolling_upgrade_dashboard() {
-    watch -n5 'curl -s localhost:9200/_cat/health?v; curl -s 
localhost:9200/_cat/allocation?v | sort -rk5; curl -s 
localhost:9200/_cat/nodes?v\&h=h,ip,v,m | sort -rk3'
-}
-
-function es_num_open_files() {
-    for dir in 
/var/lib/elasticsearch/production-search-eqiad/nodes/0/indices/*/; do
-        count=$(sudo lsof -u elasticsearch +D ${dir} -a | wc -l)
-        if [ $count -eq 0 ]; then
-            echo "${dir}:${count}"
-        fi
-    done
-}

-- 
To view, visit https://gerrit.wikimedia.org/r/163944
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie4f574df96296bc8c2dbe739ad4b2c571fbc9614
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to