This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "title": "System Resources", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "collectd_type:\"load\"", | |
| "alias": "Load", | |
| "color": "#70DBED", | |
| "id": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "configurations": [ | |
| { | |
| "nagios-env": { | |
| "nagios_contact": "admin@localhost" | |
| } | |
| } | |
| ], | |
| "host_groups": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| consul_dns_resolver() { | |
| sudo mkdir -p /etc/resolver | |
| echo "Writing resolver to /etc/resolver/consul" | |
| sudo tee /etc/resolver/consul << EOF | |
| domain consul | |
| search node.consul service.consul | |
| nameserver 192.168.59.103 | |
| EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #List of open file short by count: | |
| lsof 2>/dev/null | awk '{print $2}' | sort | uniq -c | sort -n | |
| lsof 2>/dev/null | wc -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| export HADOOP_LIBS=/usr/hdp/2.2.4.2-2/hadoop-mapreduce | |
| export JAR_EXAMPLES=$HADOOP_LIBS/hadoop-mapreduce-examples.jar | |
| export JAR_JOBCLIENT=$HADOOP_LIBS/hadoop-mapreduce-client-jobclient-2.6.0.2.2.4.2-2-tests.jar | |
| terasort(){ | |
| echo "############################################" | |
| echo Running terasort tests.. | |
| echo "############################################" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Octave / Matlab | |
| #The values are in seconds and the vectors are containing the execution time of first, second and 3rd run. | |
| #Texas | |
| teragen=[ 419 427 440 ]; [mean(teragen) std(teragen)] | |
| terasort=[ 2165 1735 1887 ]; [mean(terasort) std(terasort)] | |
| teravalidate=[ 162 147 144 ]; [mean(teravalidate) std(teravalidate)] | |
| #GCP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [root@tera-test-cent7-master3-5-1435741883353 ~]# docker logs 9618e34d64a6 | |
| ==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1 | |
| ==> Starting Consul agent... | |
| ==> Starting Consul agent RPC... | |
| ==> Consul agent running! | |
| Node name: 'tera-test-cent7-master3-5-1435741883353' | |
| Datacenter: 'dc1' | |
| Server: false (bootstrap: false) | |
| Client Addr: 0.0.0.0 (HTTP: 8500, HTTPS: -1, DNS: 53, RPC: 8400) | |
| Cluster Addr: 10.0.189.12 (LAN: 8301, WAN: 8302) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hibernate: | |
| /* named HQL query Stack.findById */ select | |
| stack0_.id as id1_18_0_, | |
| resources1_.id as id1_14_1_, | |
| instancegr2_.id as id1_9_2_, | |
| instanceme3_.id as id1_10_3_, | |
| stack0_.account as account2_18_0_, | |
| stack0_.consulServers as consulSe3_18_0_, | |
| stack0_.credential_id as credent14_18_0_, | |
| stack0_.description as descript4_18_0_, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| : << USAGE | |
| ################################## | |
| curl -L https://gist.githubusercontent.com/akanto/3bc6140a4aadece4677c/raw/7dc1661b3ce1e665e2bde82ba43f81c43d4e9bc4/docker-install | bash | |
| ################################## | |
| USAGE | |
| debug() { | |
| [[ "$DEBUG" ]] && echo "-----> $*" 1>&2 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "host_groups": [ | |
| { | |
| "name": "master", | |
| "components": [ | |
| { | |
| "name": "NAMENODE" | |
| }, | |
| { | |
| "name": "SECONDARY_NAMENODE" |
OlderNewer