You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing a PR using a kind (Kubernetes IN Docker) cluster for testing, I hit this error:
INFO: And grab some stats
INFO: idle [94.38] free [23529112] launch [0] node [kind-worker2] inodes_free [30909596
30909596
30909596]
./k8s_scale_nc.sh: line 124: 30909596
30909596
30909596: syntax error in expression (error token is "30909596
30909596")
Tracking that down to the code:
local inode_free=$(kubectl exec -ti $name -- sh -c "df -i | awk '/^overlay/ {print \$4}'" | sed 's/\r//')
...
local inode_used=$((node_baseinode[$node]-inode_free))
The root problem looking like the code presumes there will only be one overlay mount point, but under kind it seems there are three.... from an exec sh into the stats pod, we can see:
Not sure on the best solution here. Looking for input @dklyle@askervin - can we just take the first instance, or should we sum all instances, or should we treat each instance separately?
I'm also wondering if moving from the stats pod to the collectd data would fix this or make the solution better?
The text was updated successfully, but these errors were encountered:
Testing a PR using a kind (Kubernetes IN Docker) cluster for testing, I hit this error:
Tracking that down to the code:
The root problem looking like the code presumes there will only be one
overlay
mount point, but underkind
it seems there are three.... from anexec sh
into the stats pod, we can see:Not sure on the best solution here. Looking for input @dklyle @askervin - can we just take the first instance, or should we sum all instances, or should we treat each instance separately?
I'm also wondering if moving from the stats pod to the collectd data would fix this or make the solution better?
The text was updated successfully, but these errors were encountered: