Skip to content

Instantly share code, notes, and snippets.

@snajpa
Created July 12, 2015 15:28
Show Gist options
  • Save snajpa/9bacee81075645f1fa90 to your computer and use it in GitHub Desktop.
Save snajpa/9bacee81075645f1fa90 to your computer and use it in GitHub Desktop.
vpsFree.cz Cluster Stats
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