Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-20464

Use similar directory hierarchy for thumbnails as for attachments

      At the moment the <CONF_HOME>/attachments and <CONF_HOME>/thumbnails directories have two different hierarchy structures, would be good to keep these similar.

      If there are enough pages creating thumbnails in Confluence, then the 32000 file limit of ext2/3 will be reached, as mentioned by G2G JP Support in a comment below.

      Workarounds
      1. Use a different filesystem with a higher file limit. ext4 has 64000 by default, and can be increased higher using "dir_nlink"
      2. Periodically clear out old thumbnail files so that the limit is not reached - since they are dynamically generated, the files will be repopulated as needed

            [CONFSERVER-20464] Use similar directory hierarchy for thumbnails as for attachments

            To give a bit more info on how this currently works, Confluence stores its thumbnails under the thumbnails directory under CONF_HOME. Within that directory, each page that contains thumbnails has a directory (with the page ID as the directory name), and within that the thumbnails for that page are kept. The filename pattern is:

            CONF_HOME/thumbnails/<page_id>/thumb_<attachment_id>_<attachment_version>

            As the original description says, if you have many pages that contain thumbnails, then the thumbnails top-level directory will fill up and bust its filesystem per-directory limits.

            Kenny MacLeod added a comment - To give a bit more info on how this currently works, Confluence stores its thumbnails under the thumbnails directory under CONF_HOME . Within that directory, each page that contains thumbnails has a directory (with the page ID as the directory name), and within that the thumbnails for that page are kept. The filename pattern is: CONF_HOME/thumbnails/<page_id>/thumb_<attachment_id>_<attachment_version> As the original description says, if you have many pages that contain thumbnails, then the thumbnails top-level directory will fill up and bust its filesystem per-directory limits.

            Thank you for creating this issue.

            The reason we would like to have this feature is that the filesystem allows one directory to contain only 32,000 files...

            Some customers with large Confluence base have many thumbnails within their filesystem, and this limitation is a headache for them.

            We would like to have hierarchical structure for thumbnails as in attachments.

            Regards,
            JP Support

            G2G JPSupport added a comment - Thank you for creating this issue. The reason we would like to have this feature is that the filesystem allows one directory to contain only 32,000 files... Some customers with large Confluence base have many thumbnails within their filesystem, and this limitation is a headache for them. We would like to have hierarchical structure for thumbnails as in attachments. Regards, JP Support

              kmacleod Kenny MacLeod
              mseager Michael S
              Affected customers:
              4 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: