Skip to content

Instantly share code, notes, and snippets.

View fossxplorer's full-sized avatar

fossxplorer

View GitHub Profile
@fossxplorer
fossxplorer / OKD4 installation LB HAProxy config
Created April 12, 2021 18:16
OKD4 installation requires a load balancer and here is an HAProxy config
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
@fossxplorer
fossxplorer / rules-both.iptables
Created August 29, 2018 07:37 — forked from jirutka/rules-both.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
[root@acruxdb bench]# cat rssd{a..d}-steady-state_2*| egrep '^.*(read|write.*GB).*iops='
write: io=31299GB, bw=537093KB/s, iops=134273, runt=61106537msec
read : io=10433GB, bw=1548.5MB/s, iops=396408, runt=6899432msec
write: io=31299GB, bw=534024KB/s, iops=133505, runt=61457727msec
read : io=10433GB, bw=1555.3MB/s, iops=398132, runt=6869554msec
write: io=31299GB, bw=536998KB/s, iops=134249, runt=61117317msec
read : io=31299GB, bw=1553.7MB/s, iops=397727, runt=20629605msec
write: io=31299GB, bw=537087KB/s, iops=134271, runt=61107196msec
read : io=10433GB, bw=1545.1MB/s, iops=395745, runt=6910980msec
@fossxplorer
fossxplorer / blesta_nginx.conf
Created June 26, 2017 16:22
Nginx Blesta config
server {
listen 192.168.0.30:80;
#keepalive_timeout 70;
server_name blesta.domain.com www.blesta.domain.com;
access_log /var/log/nginx/blesta.domain.com_access_log main buffer=16k;
error_log /var/log/nginx/blesta.domain.com_error_log;
root /var/www/vhosts/blesta/blesta;
index index.html index.php;
fastcgi_intercept_errors on;
@fossxplorer
fossxplorer / pedantically_commented_playbook.yml
Created May 24, 2016 19:37 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.