Skip to content

Instantly share code, notes, and snippets.

Proficiency scale: Novice, Intermediate, Proficient
MG and MJ core infrastructure stack:
AWS (EC2, S3, Route53, IAM, NLB, etc) - Proficient
Kafka - Proficient
Zookeeper - Proficient
Etcd - Proficient
MongoDB - Proficient
Elasticsearch - Proficient
{
"domain":{
"id": "573d717af3b9c45de8c96ee0",
"name": "taxify.eu",
"sid": "9a49fa"},
"tags": ["behavioural", "vero"],
"timestamp": 1556217328.721777,
"envelope": {
"i-id": "5cc1fdf0b0536e0001754712",
"sender": "postmaster@taxify.eu",
def parallel_run(self, command, compute_list, with_sudo, parallel_size):
import paramiko
client_key = paramiko.RSAKey.from_private_key_file('/home/someuser/.ssh/id.rsa')
client = ParallelSSHClient(compute_list, pool_size=parallel_size, pkey=client_key, timeout=3, num_retries=1)
try:
output = client.run_command(command, sudo=with_sudo)
except (AuthenticationException, UnknownHostException, SSHException, ConnectionErrorException) as conn_error:
output = "Failed"
self.logger.error(conn_error)
[root@servers ~] cat /etc/exports
/export 10.13.238.0/24(rw,fsid=0,insecure,no_subtree_check,sync)
[root@servers ~] lvdisplay
--- Logical volume ---
LV Name /dev/raid10/drbd
VG Name raid10
LV UUID AZewL8-SB3A-3flE-zu3K-QDeZ-vkgU-e5Vv0j
LV Write Access read/write
LV Status available
# open 1
LV Size 290.00 GiB
Current LE 74240
[root@servers ~] apt-get install nfs-kernel-server drbd8-utils heartbeat
[root@servers ~] update-rc.d -f nfs-kernel-server remove