Created
July 12, 2015 15:28
-
-
Save snajpa/9bacee81075645f1fa90 to your computer and use it in GitHub Desktop.
vpsFree.cz Cluster Stats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snajpa@snajpabook:~$ echo "vpsFree.cz Cluster Stats"; echo; total_ram=0; total_cores=0; total_ct=0; for node in $VPSFREE_NODES; do total_ram=$(( $total_ram + $($node cat /proc/meminfo | grep MemTotal | awk '{ print $2; }') )); total_cores=$(( $total_cores + $($node cat /proc/cpuinfo | grep MHz | wc -l) )); total_ct=$(( $total_ct + $($node vzlist -H | wc -l) )); done; echo "RAM: $(( $total_ram / 1024 / 1024 )) GB"; echo "CPU: $total_cores cores"; echo "Containers: $total_ct"; | |
vpsFree.cz Cluster Stats | |
RAM: 2768 GB | |
CPU: 320 cores | |
Containers: 1007 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment