Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Fedora 4 can handle at least 10 million objects containers, but performance degrades if there are too many children and/or grandchildren of a single node resource.

Table of Contents

Repository storage

...

Containers under a single

...

resource

Under a single noderesource, batches of 500 objects containers were created, each with a single 10KB datastream binary.  After each batch, the entire directory contents were listed using the REST API ("whole").  The test was then repeated using the limit parameter to list the first 1,000 objects containers ("paged").  Listing the objects containers scales roughly linearly in both cases, but much more steeply for listing all the children.  Using paging, acceptance is acceptable up to 30,000 children with no sharp increase observed.

5 million files in a 3-level hierarchy

4.85 million files were ingested using a three-level hierarchy (74 top-level nodesresources, 256 second-level nodes resources in each, 256 third-level nodes resources in each, and one 10KB datastream binary in each), taking 111 hours.  After each batch, three REST API operations were timed: listing the top level of the repository ("toplist"), listing a second-level node resource ("dirlist"), and retrieving a file ("fileget").  Performance retrieving files and listing the second-level nodes resources did not degrade with larger numbers of objectscontainers.  However, listing the top-level of the repository degraded roughly linearly as more objects containers were added, and became increasing erratic.

10 million files in a 4-level hierarchy

10 million files were ingested into a test repository running Fedora 4.0-beta1 (lib-devsandbox1.ucsd.edu) using a four-level hierarchy (39 top-level nodesresources, 64 second- through fourth-level nodesresources, and one 10KB datastream binary in each bottom-level noderesource), taking 54 days (averging 186K objectscontainers/day).  Ingest was done using a Java program, with a randomized datastream binary data.

After each batch (256K objectscontainers), three REST API operations were timed: listing the top level of the repository ("toplist"), listing a third-level node resource ("dirlist"), and retrieving a file ("fileget").  Performance retrieving files did not degrade with larger numbers of objectscontainers.  However, listing the top-level of the repository degraded roughly linearly as more objects containers were added, and listing a third-level node resource increased more rapidly, with increasing variability as more objects containers were created.

The duration of ingesting each batch of 256K objects containers also increased steadily:

Federated filesystem

Files in a single directory

Using a single directory, batches of 500 files were created to test performance.  After each batch, the entire directory contents were listed using the REST API ("whole").  The test was then repeated using the limit parameter to list the first 1,000 files ("paged").   Listing the files in the directory scales roughly linearly up to around 3,000 files, then degrades sharply.  Using paging to list only 1,000 files in a batch makes the degradation a slightly less severe.

16.7 million files in a 3-level hierarchy

16.7 million files were generated on a federated filesystem using a three-level hierarchy (256 top-level nodesresources, 256 second-level nodes resources in each, 256 third-level nodes resources in each, and one 10KB datastream binary in each), taking 26.78 hours.  After each batch, three REST API operations were timed: listing the top level of the repository ("toplist"), listing a second-level node resource ("dirlist"), and retrieving a file ("fileget").  Performance retrieving files and listing the second-level nodes resources did not degrade with larger numbers of objectscontainers.  However, listing the top-level of the repository degraded roughly linearly as more objects containers were added, and became increasing erratic.

16.7 million files in a 4-level hierarchy

16.7 million files were generated on a federated filesystem using a four-level hierarchy (64 objects containers per level, with each leaf object container having a single 10KB datastreambinary), taking 18.19 hours.  Performance retrieving files and listing the third-level nodes resources was essentially flat at less than 0.1 second.  After each batch, three REST API operations were timed: listing the top level of the repository ("toplist"), listing a third-level node resource ("dirlist"), and retrieving a file ("fileget").  Time to list the top-level of the repository increased linearly, but was still extremely fast even with a fully-populated hierarchy of 16.7 million objectscontainers/files – even the spike at the 24th batch was less than 1 second.

Conclusion

File retrieval performs very well, and seems to be unaffected by the number of files and the hierarchy used.  The performance of using the REST API to list the contents of a directory on a federated filesystem depends on the number of children and grandchildren nodesresources. So a 3-level hierarchy with 100-128 nodes resources at each level should allow a federated filesystem with 1-2 million files to perform well, but larger sets of files should use a 4-level (or deeper) hierarchy.