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
<server> | |
<app-id = "{{dept}}-{{app}}-{{service}}" /> | |
<app-port>{%if app_port == ""%}8080{%else%}{{app_port}}{%endif%}</app-port> | |
<memcached-servers> | |
{%each memcached_servers as name ip%} | |
<server> | |
<name>{{name}}</name> | |
<ip>{{ip}}</ip> | |
<server> | |
{%endeach%} |
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 -l | |
function get_stats { | |
( | |
echo "stats" | |
echo "" | |
sleep 1 | |
echo "quit" | |
) | telnet $1 6082 2>&1 | |
} |
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 | |
INTERVAL=$1 | |
THRESHOLD=$2 | |
if [ "" == "$INTERVAL" -o "" == "$THRESHOLD" ]; then | |
echo "You must insert interval and cpu threshold" | |
exit 1 | |
fi | |
while [ 1 ]; do |
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
import java.net.InetAddress; | |
import java.util.Arrays; | |
public class Reachable { | |
public static void main(String[] args) { | |
try { | |
long startTime; | |
boolean result; | |