Skip to content

rhcloud inodes quota at 95% #73

Closed
Closed

Description

@cben

[splitting off #57]

Uh-oh: warning in Openshift console:
Warning: Gear 546a6d7e5973cac907000028 is using 95.6% of inodes allowed


Back to Openshift quota issue.
Following https://help.openshift.com/hc/en-us/articles/202399760-Disk-Quota-Exceeded-Now-What- :

[mathdown-cben.rhcloud.com 546a6d7e5973cac907000028]> quota -s
Disk quotas for user 546a6d7e5973cac907000028 (uid 4040):
Filesystem blocks quota limit grace files quota limit grace
/dev/mapper/EBSStore01-user_home01
617M 0 1024M 76453 0 80000
So inodes are tight but overall space is also 60% used.

Notable, partially overlapping, parts of storage used:
360M app-root
257M app-deployments/2015-01-25_18-20-02.081
212M app-root/runtime/repo
212M app-deployments/2015-01-25_18-20-02.081/repo
170M app-deployments/2015-01-25_18-20-02.081/repo/MathJax
169M app-root/runtime/repo/MathJax
104M app-root/logs
45M app-root/runtime/dependencies/.npm
45M app-deployments/2015-01-25_18-20-02.081/dependencies/.npm

AFAICT app-root vs app-deployments/2015... are copies, not symlinks nor hardlinks.

app-root/logs contains miniscule haproxy logs and 10x10M nodejs.log* consiting of stdout/err from my server.js.
For unclear reason, my logs consist predominantly of GET /: (abridged sort | uniq -c | sort -n):

      1  GET /administrator/index.php
      1  GET /blog/
      1  GET /templates/cn/template.xml
      1  GET /user/
      1  GET /xmlrpc.php?rsd=1
      2  GET /wp-login.php
...
      2  GET /MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BBBold.js?rev=2.4-beta-2
      2  GET /?doc=demo
...
     14  GET /robots.txt
     15  GET /favicon.ico
...
     21  GET /MathJax/extensions/Safe.js?rev=2.4-beta-2
     27  GET /CodeMirror/addon/dialog/dialog.css
     27  GET /?doc=about
     28  GET /MathJax/config/TeX-AMS_HTML-full.js?rev=2.4-beta-2
    513  HEAD /
 446038  GET /

[Interesting. That's a LOT of hits for /, especially for a server not linked to almost anywhere on the net. Though the domain has existed for a long time.]

After running rhc app-tidy mathdown, went from 95.6% to 95.4% inodes :-(

quota -s
Disk quotas for user 546a6d7e5973cac907000028 (uid 4040):
Filesystem blocks quota limit grace files quota limit grace
/dev/mapper/EBSStore01-user_home01
513M 0 1024M 76292 0 80000


Following https://forums.openshift.com/disk-quotas to count inodes:

> for i in *; do echo -n "$i: ";  find $i | sort -u | wc -l ; done | sort -rn 
nodejs: 47
haproxy: 34
git: 38
gear-registry: 4
app-root: 38110
app-deployments: 38098

Drilling down leads to almost everything being in repo: 36462 -> MathJax: 33761 -> fonts: 29949 ->-> TeX: 29419 -> png: 29330.
Aha.

Activity

  1. cben commented on Feb 15, 2015

    @cben
    OwnerAuthor

    Paid for 1GB more (now 2GB per gear) and this also doubled the inode limit:

    quota -s
    Disk quotas for user 546a6d7e5973cac907000028 (uid 4040):
    Filesystem blocks quota limit grace files quota limit grace
    /dev/mapper/EBSStore01-user_home01
    513M 0 2048M 76293 0 160k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions