Home
FlamingBytes
Cancel

How to delete partition in Linux

Identify the disk which contains the partitions $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 9.5G 0 rom nvme0n1 ...

Useful Elastic cluster APIs

Cluster settings $ curl -q -s http://10.10.10.1:39200/_cluster/health { "cluster_name": "rally-benchmark", "status": "green", "timed_out": false, "number_of_nodes": 3, "number_of_data_no...

Benchmarking Elasticsearch cluster with Rally

Install Rally on each node Prerequisites $ yum update $ yum install openssl-devel bzip2-devel libffi-devel $ yum groupinstall "Development Tools" Install Python 3.8+ $ wget https://www.python....

Quick start with Elastic Rally benchmark

Rally is the macrobenchmarking framework for Elasticsearch. This post follows the instructions here to install Rally and run the very first benchmark(aka race). Install python Python 3.8+ includi...

Overwrite the Elastic Rally track parameters

Each track allows to overwrite the corresponding parameters using –track-params. For example, the track geonames allows to overwrite the following parameters. bulk_size (default: 5000) bulk_...

Key concepts in Elastic Rally

Pipelines A pipeline is a series of steps that are performed to get benchmark results. This is not intended to customize the actual benchmark but rather what happens before and after a benchmark. ...

Quick guide to setup the Grafana and Prometheus dashboard

Install node-exporter on each target nodes $ docker run --restart=always --name nd-export -d -p 9100:9100 -v /proc:/host/proc -v /sys:/host/sys -v /:/rootfs:ro,rslave --net=host quay.io/prometheus...

Getting started with Elasticsearch and Kibana

Install elasticsearch Add user for elasticsearch [root@vm1 home]# groupadd es [root@vm1 home]# useradd es -g es [root@vm1 home]# passwd es [root@vm1 home]# cd es Download elasticsearch [root@v...

Install git from source

$ wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.38.1.tar.xz $ tar xvf git-2.38.1.tar.xz $ cd git-2.38.1/ $ make configure $ ./configure --prefix=/usr/local $ make install $ git --...

go-ycsb load db terminated with message 'Got signal [hangup] to exit'

During database load phase with go-ycsb, the load process is terminated and the message ‘Got signal [hangup] to exit’ is reported. $ nohup ./bin/go-ycsb load cockroach -P workloads/workloadd --thr...

Limit usable memory size in Linux

In one case, I need to limit the usable memory size to 128GB from a system which has 1TB memory. $ cat /proc/meminfo | grep MemTotal MemTotal: 1056493068 kB Edit /etc/default/grub file Ad...

Install Golang from source

$ wget https://dl.google.com/go/go1.15.5.linux-amd64.tar.gz $ tar -C /usr/local -xvzf go1.15.5.linux-amd64.tar.gz $ cat /usr/local/go/VERSION go1.15.5 $ vim .bash_profile PATH=$PATH:$HOME/bin:/us...

YCSB performance benchmark on CockroachDB

Intro to go-ycsb go-ycsb is a Go port of YCSB. It fully supports all YCSB generators and the Core workload so we can do the basic CRUD benchmarks with Go. Install golang package $ wget https://d...

Using kubeconfig to configure access to remote Kubernetes cluster

Install kubectl binary The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster res...

Set up CockroachDB cluster with HAProxy load balancing

Each CockroachDB node is an equally suitable SQL gateway to your cluster, but to ensure client performance and reliability, it’s important to use load balancing. Performance: Load balancer...

Understanding Azure disk bursting

Currently, there are two managed disk types that can burst, premium SSDs, and standard SSDs. Other disk types cannot currently burst. There are two models of bursting for disks: An on-demand burst...

Setup CockroachDB in docker container

Create docker volume Create docker volume on each host: [root@host1 ~]# docker volume create --driver local --opt type=ext4 --opt device=/dev/nvme2n1 vol1 [root@host1 ~]# mkfs.ext4 /dev/nvme2n1 [...

Using netstat to check network package retransmission

$ while [ 1 ]; do netstat -s | grep 'segments retransmited' ; sleep 1; done 2500906 segments retransmited 2500912 segments retransmited 2501072 segments retransmited 2501102 segment...

CockroachDB TPC-C performance benchmarking

Provision VMs Create 4 VM instances, 3 for CockroachDB nodes and 1 for the TPC-C workload. On each VM, disable firewall and enable ntp service. $ systemctl stop firewalld $ systemctl disable fir...

CockroachDB performance benchmarking

CockroachDB key concepts Range - CockroachDB stores all user data (tables, indexes, etc.) and almost all system data in a giant sorted map of key-value pairs. This keyspace is divided into...