Skip to content

Instantly share code, notes, and snippets.

Avatar

jsimanjuntak

View GitHub Profile
@ruanbekker
ruanbekker / cheatsheet-elasticsearch.md
Last active Sep 7, 2021
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
View cheatsheet-elasticsearch.md
@stephen-puiszis
stephen-puiszis / elasticsearch-cheatsheet.txt
Last active Jul 28, 2021
Elasticsearch Cheatsheet - An Overview of Commonly Used Elasticsearch API Endpoints and What They Do
View elasticsearch-cheatsheet.txt
# Elasticsearch Cheatsheet - an overview of commonly used Elasticsearch API commands
# cat paths
/_cat/allocation
/_cat/shards
/_cat/shards/{index}
/_cat/master
/_cat/nodes
/_cat/indices
/_cat/indices/{index}
@bengarrett
bengarrett / percona-xtrabackup.md
Last active Apr 30, 2020
Installing and using Percona XtraBackup on Ubuntu 14.04 for MySQL backups.
View percona-xtrabackup.md

Installing and using Percona XtraBackup

For MySQL/MariaDB database servers on Ubuntu.

Set-up and Install

Add Percona to your repository.

Backup your sources.

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

Edit your sources.
View Graylog2_Appliance_Upgrade.sh
#!/bin/bash
#Provided by @mrlesmithjr
#EveryThingShouldBeVirtual.com
# Graylog2 upgrade script for Ubuntu
set -e
# Setup logging
# Logs stderr and stdout to separate files.
exec 2> >(tee "./graylog2/upgrade_graylog2.err")
@denji
denji / nginx-tuning.md
Last active Sep 17, 2021
NGINX tuning for best performance
View nginx-tuning.md

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.