{Openstack, Linux, Opensource, Freedom, Technology}

Configure Multiple Default Routes, Linux

Courtesy Preface Use Case Implementation New Routing Table Add Policy Rules Flush the routing cache Testing Rules Further Reading Courtesy Tutorial credit goes to [Omar Hamad ] (https://www.linkedin.com/in/omermahgoub/) the real Architect I have seen in last few years. Working with him for the past 3 Years, and learned a Lot. We are going to miss u :( Preface When configuring a Linux host with multiple interface, each with its own default gateway, ensuring route symmetric is a bet challenging for any given pair of endpoint. [Read More]

Change network bandwidth of KVM Guest OS

Preface Some cloud providers, limited the Bandwidth based on Flavors. Which is part of their Business rules. So, Guest virtual machines wont be able to reach the limit which fixed in the Flavor using metadata. This tutorial will help you to change the Network BW without restarting the Guest virtual machine. List the Current virsh domiflist instance-0000be23 Interface Type Source Model MAC ------------------------------------------------------- tap973d62dc-4f bridge qbr973d62dc-4f virtio fa:16:3e:fb:24:e0 virsh domiftune instance-0000be23 tap973d62dc-4f inbound. [Read More]

Benchmarking Cloud using Rally

Preface Installation Create a Test Scenario Export the Test Results to HTML More Scenarios Preface Rally is a framework used to Validate multinode Openstack Deployment. Rally automates and unifies multi-node OpenStack deployment, cloud verification, benchmarking & profiling. Rally does it in a pluggable way, making it possible to check whether OpenStack is going to work well on, say, a 1k-servers installation under high load. Thus it can be used as a basic tool for an OpenStack CI/CD system that would continuously improve its SLA, performance and stability. [Read More]

Bash Tips

Preface History Using ! Using part of Command Preface One of the fancy feature of Bash is the command history. History will store all the command run by the User, which will be in /home/$USER/.bash_history. This will help the user to edit / reclass previously applied commands. To get a command previous run in command you can use UP arrow or DOWN arrow keys. History 288 cd layouts/ 289 ls 290 cd . [Read More]

CURL, find your website Speed.

Page loading speed is very important now a days. If you are a web administrator, or a server administrator who is particularly responsible for organizing the things together, then you have to make it a point that users don’t get disappointed while accessing your site – so there is really need for speed curl -s -w 'Testing Website Response Time for :%{url_effective}\n\nLookup Time:\t\t%{time_namelookup}\nConnect Time:\t\t%{time_connect}\nPre-transfer Time:\t%{time_pretransfer}\nStart-transfer Time:\t%{time_starttransfer}\n\nTotal Time:\t\t%{time_total}\n' -o /dev/null http://www.google.com Output for Google. [Read More]

Monitor your Linux box using Glances

Preface Features Installation Output Preface Glances is a cross-platform command-line curses-based system monitoring tool based on Python Programming language. Glances is using the psutil library to grab informations from the Operating Systm. Glance will monitr CPU, Load Average, Memory, Network Interfaces, Disk I/O, Processes and File System spaces utilization. Glances is released under GPL, and works on FreeBSD and Linux systems. Many options available in Glances. Glance will allow the System administrator to set thresholds (Careful, Warning and Critical) in configuration file and informations will be shown in colors which indicates the bottleneck in the system. [Read More]

Compute Service (Nova) Architecture

API server Message queue Compute worker These basic categories describe the service architecture and information about the cloud controller. API server At the heart of the cloud framework is an API server, which makes command and control of the hypervisor, storage, and networking programmatically available to users. The API endpoints are basic HTTP web services which handle authentication, authorization, and basic command and control functions using various API interfaces under the Amazon, Rackspace, and related models. [Read More]

How to find the Swap usage of Guest VMs KVM

  • How to find the Swap usage of Virtual Machines from a Swapped KVM host
find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") printf "%10s %-30s %20s\n",process["Pid"],process["Name"],process["VmSwap"]}' '{}' \;|grep qemu
  • Output
     3529 qemu-system-x86                            15112 kB
      6362 qemu-system-x86                           151732 kB
     16441 qemu-system-x86                            32040 kB
     25338 qemu-system-x86                           267232 kB
     29052 qemu-system-x86                            66408 kB
     34747 qemu-system-x86                             7252 kB
     34876 qemu-system-x86                            26576 kB
     44797 qemu-system-x86                            11164 kB
     44838 qemu-system-x86                            77052 kB
     45507 qemu-system-x86                            13928 kB
     53475 qemu-system-x86                             8144 kB
     55232 qemu-system-x86                            22288 kB

How to install OpenVPN in Openstack Environment

Preface Use Case Deployment Setup Installation VDC Configuration Client Configuration Preface OpenVPN is an open-source commercial software that implements Virtual Private Network (VPN) techniques to create secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It uses a custom security protocol that utilizes SSL/TLS for key exchange. It is capable of traversing network address translators (NATs) and firewalls. It was written by James Yonan and is published under the GNU General Public License. [Read More]