Skip to content

Instantly share code, notes, and snippets.

for i in `seq 101 300`; do sleep 5; echo "scaling to $i nodes"; kubectl scale --replicas $i -f hab_testring.yaml -n new-phone-whodis; done
~15 minutes of scaling
16 services per hab-sup
100 - 300 nodes, 1 node every 5 seconds
cat scale_100_30.tcpdump | awk '{sum += $NF} END {print sum}'
1205992527
1.123 GB
#!/bin/sh
set -x
mkdir -p /tmp/certificates
RANDFILE=/tmp/certificates/.rnd
#First, create a private key for the CA:
openssl genrsa -out /tmp/certificates/MyRootCA.key 2048
The following rules apply for both the Admin client and the Node certs:
If the Public Certifcate contains the X509v3 extensions section, it must have both Client and Server Authentication:
X509v3 Extended Key Usage:
TLS Web Client Authentication, TLS Web Server Authentication
Alternatively, if the Public Certificate does not even have the X509v3 extensions section this is also acceptable and known to work.
#!/usr/bin/env ruby
require 'json'
require 'faker'
input_filename = ARGV[0]
output_filename = ARGV[1]
desired_size = (ARGV[2].to_f) * 1048576
ohai_object = JSON.parse(File.read(input_filename))
"links" : [
"71st Tony Awards",
"Academica Press",
"Academy Awards",
"Adolf Northern",
"Afanasy Fet",
"Alan Dobie",
"Albanian language",
"Aleksey Arakcheyev",
"Alessio Boni",
@thomascate
thomascate / gist:529f60c494378d4a9d46a2d7feb39115
Created November 13, 2019 23:37
Chef Automate backup sql
#!/usr/bin/env bash
date_stamp=$(date +"%Y%m%d%H%M%S")
backup_path=${1:-/mnt/automate_backups/postgresql/pg_dump/$date_stamp}
echo $backup_path
mkdir -p $backup_path
PATH=$PATH:$(HAB_LICENSE=accept-no-persist hab pkg path core/postgresql11)/bin
export PATH
@thomascate
thomascate / gist:b29b5ea249da23108d59eed405484c84
Created November 13, 2019 23:41
Chef Automate restore sql
#!/usr/bin/env bash
if [ -z "$1" ]; then
echo "backup gz file not provided"
exit 1
fi
echo "restoring $backup_path"
restore_path=$1
Boards
1 MI 2020-03-17 08:50:27
2 Inner Layer 2020-03-17 08:56:23
3 Lamination 2020-03-17 13:43:43
4 Drilling 2020-03-17 20:53:14
5 Copper Deposition 2020-03-18 12:26:19
6 Image the outer layers 2020-03-18 23:31:39
7 Pattern Plating 2020-03-19 02:24:01
8 Automatic Optical Inspection(AOI) 2020-03-19 09:27:00