- Schedule a game day (testing when systems go down)
- Develop a hypothesis of what might happen.
- Communicate plan
- Execute during the day, make sure all teams are available
- Document results (Restore system if/when things fail, document those)
- Learn from mistakes and make the system better
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 main | |
import ( | |
"fmt" | |
"strconv" | |
) | |
//let's define a struct | |
type car struct { |
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
#!/usr/bin/env python3 | |
import subprocess | |
import sys | |
#Use Python instead of shell scripts! | |
#Broken out into classes to create nice object oriented code. | |
#Using Sys and subprocess modules to execute shell commands, checking each exit code and doing the things! | |
class ExecutePrograms: |
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
- hosts: all | |
become: true | |
tasks: | |
#Provisions PVs and everything! | |
- name: volume group creation | |
lvg: | |
vg: data_vg | |
pvs: | |
- /dev/nvme0n1 |
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
#Unabashedly stolen and modified from: https://rancher.com/docs/rancher/v2.x/en/installation/ha/create-nodes-lb/nginx/ | |
worker_processes auto; | |
worker_rlimit_nofile 40000; | |
events { | |
worker_connections 8192; | |
} | |
- 3 Ubuntu Nodes running docker
- DNS Entries for all three nodes
- Create partition on the data drive:
fdisk /dev/xvdb
(New, primary, defaults, defaults) - Create XFS file system on the data drive:
mkfs.xfs -i size=512 /dev/xvdb1
- Add disk to /etc/fstab:
/dev/xvdb1 /data/brick1 xfs defaults 1 2
- Mount the drive:
mount -a
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
<?php | |
//print out values of variables | |
var_dump($_SERVER[‘REMOTE_ADDR’]); | |
var_dump($_SERVER[‘HTTP_X_FORWARDED_FOR’]); | |
?> |
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
aric@thinkpad-p51:~$ kubectl config get-contexts | |
CURRENT NAME CLUSTER AUTHINFO NAMESPACE | |
* ops-cluster-nonprod ops-cluster-nonprod user-k744f | |
aric@thinkpad-p51:~$ kubectl cluster-info | |
Kubernetes master is running at https://rancher.dev.internal.domain.com/k8s/clusters/c-gvhfk | |
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. | |
Unable to connect to the server: x509: certificate signed by unknown authority |
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
time="2018-07-19T18:46:30.081127537Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete" [314/1866] | |
time="2018-07-19T18:46:39Z" level=info msg="shim docker-containerd-shim started" address="/containerd-shim/moby/051e05ee32231b9bfcef66825485f865fda39e9435801667dfe7b220b2fc8e04/shim.sock" debug=false modu | |
le="containerd/tasks" pid=31306 | |
time="2018-07-19T18:49:26Z" level=info msg="shim reaped" id=051e05ee32231b9bfcef66825485f865fda39e9435801667dfe7b220b2fc8e04 module="containerd/tasks" | |
time="2018-07-19T18:49:26.262151003Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete" |
NewerOlder