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
outbraun.com |
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
cd /home/circleci/project/ | |
curl -s https://dl.google.com/go/go1.10.linux-amd64.tar.gz | sudo tar -xz -C /usr/local | |
export PATH=/usr/local/go/bin:/home/circleci/go/bin:$PATH | |
export GOPATH=/home/circleci/go | |
echo "export PATH=/usr/local/go/bin:/home/circleci/go/bin:$PATH" >> $BASH_ENV | |
echo "export GOPATH=/home/circleci/go" >> $BASH_ENV | |
go get github.com/kubernetes-sigs/kustomize |
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
// dependencies | |
var async = require('async'); | |
var AWS = require('aws-sdk'); | |
var util = require('util'); | |
// get reference to S3 client | |
var s3 = new AWS.S3(); | |
exports.handler = function(event, context, callback) { |
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
CREATE TABLE dse_perf.solr_slow_sub_query_log ( | |
core text, | |
date timestamp, | |
coordinator_ip inet, | |
query_id timeuuid, | |
node_ip inet, | |
component_prepare_millis map<text, bigint>, | |
component_process_millis map<text, bigint>, | |
elapsed_millis bigint, | |
num_docs_found bigint, |
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
function dountil() { | |
until $@ | |
do | |
sleep 1 | |
done | |
} |
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
0910 04:52:36.475706 1 goroutinemap.go:163] Operation for "createdefault/dse-data-dse-0dse-data-dse-0" failed. No retries permitted until 2017-09-10 04:54:36.475688212 +0000 UTC m=+488.871551674 (durationBeforeRetry 2m0s). Error: Failed to take snapshot of the volume pvc-a21b6745-8d56-11e7-8810-06af99585e9f: "aws_ebs is not supported volume for &v1.PersistentVolumeSpec{Capacity:v1.ResourceList{\"storage\":resource.Quantity{i:resource.int64Amount{value:214748364800, scale:0}, d:resource.infDecAmount{Dec:(*inf.Dec)(nil)}, s:\"\", Format:\"BinarySI\"}}, PersistentVolumeSource:v1.PersistentVolumeSource{GCEPersistentDisk:(*v1.GCEPersistentDiskVolumeSource)(nil), AWSElasticBlockStore:(*v1.AWSElasticBlockStoreVolumeSource)(0xc420827b90), HostPath:(*v1.HostPathVolumeSource)(nil), Glusterfs:(*v1.GlusterfsVolumeSource)(nil), NFS:(*v1.NFSVolumeSource)(nil), RBD:(*v1.RBDVolumeSource)(nil), ISCSI:(*v1.ISCSIVolumeSource)(nil), Cinder:(*v1.CinderVolumeSource)(nil), CephFS:(*v1.CephFSVolumeSource)(nil), FC:(*v1.FCVolum |
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 | |
set -xe | |
find /var/lib/cassandra/data -name '*-Data.db' -exec sh -c 'printf "{}"; sstablemetadata {} 2>&1 | grep -oP "(?<=Maximum timestamp\:)\s+([0-9]+)"' \; |
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
command: | |
- /bin/sh | |
- -c | |
- 'while true; do sleep 2; df -h; done' |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: cassandra-reaper | |
name: cassandra-reaper | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 8080 |
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
MILLISECOND (\d{3}) | |
FLUSHSIZE %{BASE10NUM}(KiB|GiB|MiB) | |
JAVALOGBACKTIMESTAMP %{YEAR}-%{MONTHNUM}-%{MONTHDAY}[T ]%{HOUR}:%{MINUTE}:%{SECOND},%{MILLISECOND} | |
CASS_BASE ^%{LOGLEVEL:level} \[(%{DATA:process}:%{INT:threadId}|%{DATA:process})\] %{JAVALOGBACKTIMESTAMP:timestamp} %{WORD:java_file}.java:%{INT:line_number} - | |
# WARN [MemtableFlushWriter:20342] 2016-06-29 08:35:35,936 SSTableWriter.java:240 - Compacting large partition limo/read_audit_history:2016-6-29 (115624250 bytes) | |
CASS_COMPACTION_LARGE_KEY %{CASS_BASE} %{DATA:msg} %{WORD:keyspace}\/%{WORD:table}:%{DATA:partition_key} \(%{INT:size_bytes} bytes\) | |