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: Ambud Sharma | |
# | |
set -eu | |
export STORM_LOC=/tmp/apache-storm-1.0.2 | |
CONFIG="" |
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
import java.util.Calendar; | |
import java.util.HashMap; | |
import java.util.Map; | |
import net.opentsdb.core.Aggregators; | |
import net.opentsdb.core.DataPoints; | |
import net.opentsdb.core.Query; | |
import net.opentsdb.core.TSDB; | |
import net.opentsdb.utils.Config; |
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
<html> | |
<!-- | |
Copyright 2017 Ambud Sharma | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.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
version: '2' | |
services: | |
elasticsearch: | |
image: elasticsearch | |
ports: | |
- "9200:9200" | |
- "9300:9300" | |
kibana: | |
image: kibana | |
ports: |
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
# Test job that demonstrates how to use the latency target | |
# profiling. Fio will find the queue depth between 1..128 | |
# that fits within the latency constraints of this 4k random | |
# read workload. | |
[global] | |
bs=4k | |
rw=randrw | |
random_generator=lfsr | |
direct=1 |
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: Ambud Sharma | |
# | |
# Purpose: To run kafka Kafka Producer / Consumer benchmark and create results | |
# | |
export NUM_RECORDS=10000000 | |
export TOPIC_NAME_PREFIX="perf" | |
export CLUSTER_SIZE=3 | |
export DRIVE_COUNT=1 |
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: Ambud Sharma | |
# Purpose: Install AWS ENA driver for Enhanced Networking | |
# | |
sudo yum -y install kernel-devel-$(uname -r) | |
sudo yum -y install gcc git | |
git clone https://github.com/amzn/amzn-drivers.git | |
cd amzn-drivers/kernel/linux/ena |
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
package com.srotya.lambda.noderecovery; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.Map; | |
import com.amazonaws.auth.AWSCredentialsProvider; | |
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; | |
import com.amazonaws.services.ec2.AmazonEC2; | |
import com.amazonaws.services.ec2.AmazonEC2ClientBuilder; |
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: Ambud Sharma | |
# License: Apache 2.0 | |
USER=$1 | |
if [ -z $USER ]; then | |
USER="kafka" | |
fi |
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
/** | |
* Copyright 2017 Ambud Sharma | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |