Load Testing
https://loader.io Load Testing with Siege load Benchmark
https://loader.io Load Testing with Siege load Benchmark
iftop vnstat
To list all VM on a KVM server, run Example To view all Virtual machines including stopped VM’s, use –all option. To see all network See virsh
To see information about a KVM node, run virsh nodeinfo Example root@s3-m12:~# virsh nodeinfo CPU model: x86_64 CPU(s): 8 CPU frequency: 1861 MHz CPU socket(s): 1 Core(s) per socket: 4 Thread(s) per core: 2 NUMA cell(s): 1 Memory size: 16423092 KiB root@s3-m12:~# See virsh
Install KVM Install Linux KVM on Debian 10 Install Linux KVM on Ubuntu Install Linux KVM on CentOS 7 Install Linux KVM on CentOS 8 KVM Networking Linux KVM Bridge network on Ubuntu Configure KVM Bridge Network on Debian 10 Configure KVM Bridge Network using netplan Working with KVM virsh Virt Manager KVM VNC Allow … Read more
virsh command is used to manage KVM vps. It is part of libvirt package. http://libvirt.org To list KVM virtual machines, run Start a VM To shutdown a VM, run To delete a VM, run Connect to a Remote Server You need SSH Key based authentication setup. List All VM List All Running VM Get Info … Read more
lxc allow you to take snapshot, restore snapshot of a container. Here we create a snapshot, then delete the /etc folder from the container. Now the container is useless. Restore the container from snapshot to get it work again. To list all snapshots of a container, run To delete a snapshot, run Container snapshots are … Read more
To create LXD containers, run LXD is a tool to manage LXC (Linux Containers). lxd allow you to create and manage lightweight Linux containers, it is like docker, but more like an actual virtual machine. LXD is more user-friendly than using LXC directly, has more features like clustering of servers. On Ubuntu/Debian, run Before you … Read more
To list UUID for all your storage devices, run ”’blkid -c /dev/null”’ blkid – locate/print block device attributes Example boby@bizhat ~ $ sudo blkid -c /dev/null [sudo] password for boby: /dev/sda1: UUID=”c17be3a7-dd65-448a-8930-b9d0369c6575″ TYPE=”ext4″ /dev/sda2: UUID=”c72e257f-b210-4f81-b1de-e5130d61454e” TYPE=”ext4″ /dev/sda3: UUID=”ab289ee4-fa14-4da0-af60-a9c4360327b2″ TYPE=”swap” /dev/sda5: UUID=”b1ebdc91-64a8-46b0-a9ee-8e71c659bba0″ TYPE=”ext4″ /dev/sda8: LABEL=”Drive J” UUID=”01CE4B5BC914BE10″ TYPE=”ntfs” /dev/sdb1: UUID=”67fd4ee7-1123-433c-aab4-ed877051976d” TYPE=”ext4″ /dev/sdb5: UUID=”28f4e904-ecfa-4a9f-b632-60c58c826cfc” TYPE=”swap” /dev/sdb6: UUID=”19ca47a8-d894-44ff-a7af-77fa16635e98″ … Read more
The program atop is an interactive monitor to view the load on a Linux system. To install on Ubuntu/Debian On CentOS/RHEL On CentOS, you will need epel repo enabled. atop commands p – show process by cpu usaged – show process by disk io usagem – show process by memory usage. View Historical Data One … Read more
apt-get used to manage packages in Debian/Ubuntu server. Install A Package apt-get install PKG_NAME Uninstall a software (keep configuration file) apt-get remove PKG_NAME Uninstall a software and its configuration files apt-get –purge remove PKG_NAME To upgrade a software apt-get upgrade PKG_NAME Update Package Info apt-get update Remove Unwanted Programs apt-get autoremove Back to apt
When you run exim mail server, it is good to keep an eye on number of emails in mail queue. here is a PHP script that will check number of emails in queue, if it exceed pre-set number, it will email you. Create file mkdir /usr/serverok/ vi /usr/serverok/mail_q_monitor.php Add following content.