Testing disk performance with fio

Disk performance is often the main performance issue in any high traffic servers and databases. Instane sizing at humio do provide a good way to measure the disk read/write bandwidth using fio. The test might simulate how humio will read/write. However, change the parameters accordingly. Read more : https://docs.humio.com/cluster-management/infrastructure/instance-sizing/ sudo fio –filename=/data/fio-test.tmp –filesize=1Gi –bs=256K -rw=read […]

elasticsearch on docker

# docker pull elasticsearch:6.8.5 SCRIPT=`realpath $0` BASE=`dirname $SCRIPT`         mkdir -p $BASE/esdata1         docker run -p 9200:9200 –name elasticsearch -v $BASE/esdata1:/usr/share/elasticsearch/data \         -e “http.host=0.0.0.0” \         -e “cluster.name=elasticlogging” \         -e “node.name=esnode1” \         -e “node.master=true” […]

All about docker

Docker installation (Ubuntu) sudo apt update sudo apt -y install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable” sudo apt update apt-cache policy docker-ce sudo apt -y install docker-ce sudo systemctl status docker Add into bashrcalias drm=”docker rm”alias dps=”docker ps -a”alias dmi=”docker images”function da […]

elasticsearch reference

Tools– head for Chrome (ElasticSearch Head – Chrome Web Store)– Postman (link)– Insomenia (link)– elasticdump – nodejs (link) Monitoring– ps_mem.py – monitor real memory utilization (github link)– ps -eo size,pid,user,command –sort -size | awk ‘{ hr=$1/1024 ; printf(“%13.2f Mb “,hr) } { for ( x=4 ; x< =NF ; x++ ) { printf(“%s “,$x) } […]

Web server tuning (apache and nginx)

Key points enable http2 & change mpm prefork to event php-fpm   Enable http2 On apache + prefork to event – https://techwombat.com/enable-http2-apache-ubuntu-16-04/ sudo add-apt-repository ppa:ondrej/apache2 sudo apt update sudo apt upgrade sudo apt install php7.0-fpm sudo a2enmod proxy_fcgi setenvif sudo a2enconf php7.0-fpm sudo a2dismod php7.0 sudo a2dismod mpm_prefork sudo a2enmod mpm_event sudo service apache2 restart sudo […]

Elasticsearch notes

Useful links Elasticdump – http://blog.ruanbekker.com/blog/2017/11/22/using-elasticdump-to-backup-elasticsearch-indexes-to-json/ sudo npm install n -g sudo n stable   https://www.digitalocean.com/community/tutorials/how-to-interact-with-data-in-elasticsearch-using-crud-operations Delete by time https://hobo.house/2016/02/18/how-to-manually-clean-indexes-from-elasticsearch/  

Installing cuckoo sandbox on Mac OS

Cuckoo sandbox is an automated malware analysis system. Its does utilize virtualization engine to isolate malware execution and analysis. You will be given a web-interface, as well as CLI tools to communicate with cuckoo, such to upload, and reviewing all reports. I’ve found a complete tutorial on this. http://advancedmalwareprotection.blogspot.com/2012/03/installing-cuckoo-on-max-os-x-lion.html Hope this would help anyone to […]