FlamingBytes

「Stay Hungry. Stay Foolish.」

Useful tools to analyze network latency

ping Ping is one of the most basic commands in network management, verifying network connectivity through the roundtrip times taken by the ICMP protocol packets sent to a target host. ping - send...

Linux Software RAID

What is RAID? RAID stands for either Redundant Array of Independent Disks, or Redundant Array of Inexpensive Disks. The intention of RAID is to spread your data across several disks, such that a s...

RAID

Redundant Array of Inexpensive Disks

RAID stands for Redundant Array of Inexpensive (Independent) Disks. On most situations you will be using one of the following four levels of RAIDs. RAID 0 RAID 1 RAID 5(6) RAID 10 (also k...

Upgrade kernel version in centos 7

Before upgrade 1 2 3 4 5 6 7 8 $ cat /etc/centos-release CentOS Linux release 7.4.1708 (Core) $ uname -r 3.10.0-693.el7.x86_64 $ cat /boot/grub2/grubenv saved_entry=CentOS Linux (3.10.0-693.el7....

Migrate docker data to different directory

This post guides us how to migrate the docker data from the existing directory to a target directory in the case that the old directory runs out of space. Stop the docker daemon 1 2 3 4 5 $ cat /...

Using gstack for docker container process

In a Docker container environment, we won’t get a valid stack trace directly on the container host as below. 1 2 3 4 5 6 7 8 9 10 11 12 13 $ ps -ef |grep smbd root 171118 167977 0 Apr22 ? ...

Network bonding

Introduction Network bonding enables the combination of two or more network interfaces into a single-bonded (logical) interface, which increases the bandwidth and provides redundancy. If a specifi...

Enable ssh passwordless login

Install sshpass package To install sshpass package on the source server from which to enable ssh passwordless login to remote servers: 1 -bash-4.2# rpm -ivh sshpass-1.06-1.el7.x86_64.rpm Enable...

Tuning kernel parameters in Docker

Configure namespaced kernel parameters(sysctl) at runtime The –sysctl sets namespaced kernel parameters (sysctls) in the container. For example, to turn on IP forwarding in the containers network ...

Sorting algorithm

In this post, it includes the following sorting algorithms. The code is self explained. selection sort insert sort bubble sort quick sort merge sort 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1...