This file contains 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
AWSTemplateFormatVersion: 2010-09-09 | |
Parameters: | |
Environment: | |
Type: String | |
Default: Production | |
Description: The name of the enviornment this cluster is being deployed to. | |
EmrVersion: | |
Type: String | |
Default: emr-5.29.0 |
This file contains 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 | |
function extract() | |
{ | |
while read line | |
do | |
arr=( $(echo $line | tr ';' ' ') ) | |
addr=${arr[15]::-1} | |
ip=$(echo $addr | cut -d: -f1) | |
port=$(echo $addr | cut -d: -f2) |
This file contains 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
- address: "/ip4/54.85.152.129/tcp/3000" | |
id: "000000000000000000000000000000000000000000000010" | |
- address: "/ip4/89.162.97.131/tcp/9003" | |
id: "000000000000000000000000000000000000001313139003" | |
- address: "/ip4/89.162.97.131/tcp/9004" | |
id: "000000000000000000000000000000000000001313139004" | |
- address: "/ip4/89.162.89.137/tcp/9005" | |
id: "000000000000000000000000000000000000001313139005" | |
- address: "/ip4/89.162.89.137/tcp/9006" | |
id: "000000000000000000000000000000000000001313139006" |
This file contains 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
[ | |
{ | |
"address": "/ip4/13.56.0.226/tcp/3000", | |
"id": "7ddf203c86a012e8863ef19d96aabba23d2445c492d86267" | |
}, | |
{ | |
"address": "/ip4/54.183.149.167/tcp/3000", | |
"id": "df02383863ae5e14fea5d51a092585da34e689a73f704613" | |
}, | |
{ |
This file contains 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 | |
# | |
# Author: Michael Fazio (sandstone.io) | |
# | |
# This script monitors a Jormungandr node for "liveness" and executes a shutdown if the node is determined | |
# to be "stuck". A node is "stuck" if the time elapsed since last block exceeds the sync tolerance | |
# threshold. The script does NOT perform a restart on the Jormungandr node. Instead we rely on process | |
# managers such as systemd to perform restarts. | |
POLLING_INTERVAL_SECONDS=30 |