Blog

Design notes

How to estimate the traffic of a cloud index

Before you index a big library, work out how many requests it takes, how many bytes come down and who pays for them. This note gives the quantities, the formulas and a way to check them on a small sample. It has no result numbers, because the right numbers are yours.

Updated

Posted 2026-11-27 (Singapore time). This is a method note. It reports no measurements and no benchmark results.

If you have a library of ten terabytes and a million files in several places, the question is not “how fast is my connection”. It is “how many calls, how many bytes, how many hours and how many dollars, for which depth of index”. Those split into separate quantities, and each one has its own formula. Write them down before you start and you will know which one is the bottleneck.

Sample first: choose what to measure

Start by naming the library precisely. Is the ten terabytes decimal or binary? Which parts are online-only stubs that are not really on disk, which are native online documents, which are scans, and which sit in archive storage? Are there shared libraries or symbolic links that make the same file reachable twice? A million items spread over a few bucket prefixes costs a very different number of calls than a million items spread over hundreds of thousands of directories.

Then decide the depth of index, because the cost changes by stage:

Names only

List every item and keep path, size, dates and type. No file bodies are read. This is the cheapest stage and the first one an index does.

Selected text

Read the bodies of the file types you care about, such as PDF, Office files and text, and extract their words. Bytes come down now.

Plus OCR

Run text recognition on scans and photos. It adds CPU time, and on a hosted model it can add fees. Whether it applies depends on how many of your files are images.

Keep these three tiers separate in every calculation. Mixing them is the usual reason an estimate is wrong by a wide margin.

Counters: the quantities and the formulas

These are the quantities worth counting. The formulas use symbols so you can fill in your own measured values. Nothing here is a typical value.

QuantityHow to write itWhat to measure in your sample
File countN, split by type and by folderCounts per type, per depth, and how many empty folders
Listing requestsFlat paging: ceil(N / items per page). Folder by folder: sum over every folder, empty ones includedItems actually returned per page, not the documented maximum
Extra metadata callsN × share of items that need a details callWhich fields the listing does not return
Metadata bytesrequests × average response size, plus request bytes and retriesAverage and 95th percentile response size
Bytes to parsesum of (files per type × average size of that type × share you choose to read)Size distribution per type, and export size for online documents
OCR shareimage-like files ÷ N, and pages per scanned PDFPages per minute on your own machine or model
Change ratefiles added or modified per day ÷ NTwo listings a known time apart, compared by modified date and size
Quota userequests × cost units per method, compared with the limit per minute for your account or projectRate-limit responses and the highest sustainable request rate

A few notes on reading the table. The metadata stage must not read file bodies, so an online-only stub file in a synced folder should not be opened just to learn its type. Retries and failures add to every row, so record a failure rate from the sample. Cached results are subtracted, not ignored. For quotas, read the provider's own documentation for your account type: for example, Google lists its Drive limits as quota units per minute per project and per user, and the units differ by method. The figure is not “files per minute”, so convert before comparing. See the Drive quota guide for the current rules.

Putting the stages together, the lower bound on elapsed time for each stage is whichever of these is largest: requests divided by the sustainable request rate, quota units divided by the units you get per minute, bytes divided by measured throughput, OCR pages divided by pages per minute. Stages that cannot overlap are added. Stages that can run in parallel take the longest path.

Design sketch of an estimate view

Estimate before scanning “Archive bucket”Built from your sample. Nothing has been read yet.
Budget cap: you set it
Names only: list requests × measured response size, with a low and high range
Selected text: Σ bytes of chosen types plus retries, minus cache hits
Plus OCR: pages ÷ pages per minute on this computer
Narrow scopeStart, with pause

Design sketch of a planned screen. The real interface may differ.

Limits: from a sample to the whole library

Take a sample you are allowed to read, such as a few folders you own. Pick it by stratifying: some from each drive, each depth, each file type, large and small. Run the first stage on it with logging on and record, for each stage, request count, bytes, time, retries and rate-limit responses. Keep the median and the 95th percentile of page size and response time, not only the mean.

Then scale each stratum on its own and add them up. Weigh by your real file counts per stratum, not by the sample's. Produce three ranges, one per depth of index above, each with a low and a high value based on the spread you saw. If your sample has only one kind of folder, say so and widen the range accordingly.

Extrapolation fails in known ways. A sample from one folder does not predict a library with a very different layout. A sample taken at a quiet hour does not predict throttling at a busy one. A drive that was nearly empty when you sampled it says little about one that is full of large video. And the change rate matters after the first run: repeated scans cost listing requests again unless the service offers change feeds or cursors, so write the incremental cost separately from the first-run cost.

Who pays: costs on your own cloud account

Some of the costs never touch FileFlock, and they are yours to estimate.

  • Requests. Object stores such as Amazon S3 charge per request, and list requests are priced differently from reads. Multiply each request type by its price in your region.
  • Data out. Bytes leaving the cloud toward your computer are usually charged as transfer out. If you only list, that is small. If you read bodies, it is your content-bytes figure times the price per gigabyte.
  • Cold storage. Archive classes can add retrieval fees and delays. A listing is not affected, but reading a body might be.
  • Hosted AI. If you bring your own API key for a cloud model, you pay that provider for tokens or image units. A local model costs time and power on your own device instead. See how cited answers work for the design.
  • Your own disk. The index is stored on your computer: metadata rows, a full-text index, any vector data, plus working space for rebuilds and temporary downloads.

For WebDAV, check the server's own limits and whether a deep tree costs one request per folder. For a local folder there are no cloud request fees, and the cost is disk reads and CPU. See Amazon S3 pricing for the categories your bill uses. Services such as Google Drive, OneDrive and Dropbox mostly constrain you by quota and fair-use rules rather than per-request fees. Check each provider's terms for your plan.

Using the estimate

An estimate is for choosing a plan: which depth of index you can afford, which folders to leave out, what time of day to run, and what budget to cap. Narrow the scope first and widen later. Related tasks follow the same arithmetic. Copying between clouds adds an upload leg, so check cloud transfer. Finding duplicates needs content bytes or hashes, so see duplicates and space. Searching needs the index you built, as described in unified search.

When you are done, write down the inputs next to the result: sample, date, settings and range. That is the difference between an estimate and a guess. Notes on other methods will appear on the blog, and task-based answers are in the help center. If you want a use case worked through, such as several client drives or years of personal files, say so in the launch notice form.

FileFlock is in development, with no installer and no price. Everything above is a method for estimating; none of it is a measured result. Read about the project or the privacy design.

Common questions

Why not just divide the library size by a download speed?

Because the first stage of an index does not download files. It lists them. A million small items can cost far more requests than a few large ones, and the time is set by request rate and quotas, not by bandwidth. Downloading file bodies is a later, optional stage. See why indexing takes time.

How big should the sample be?

Big enough to contain every kind of folder and file you have, in roughly the right mix, and no bigger. Stratify by drive, folder depth, file type and size. Then record the spread, not only the average. The spread tells you how wide to make the final range.

Which of these costs are on my own cloud account?

Mainly with storage you run yourself, such as Amazon S3: per-request charges, data transfer out, and retrieval fees for cold storage. Check your provider's price list for your region. Services with per-user accounts, such as Google Drive, mostly limit you by quota rather than bill you per request.

Does FileFlock show an estimate in the app?

That is the design: before a large scan starts, the app is meant to show an estimate, a budget cap you can set and a pause button. It is in development, so treat that as a plan, and the method below as something you can use today with any tool.

Launch notice

Be first to try FileFlock.

FileFlock is in development for Windows, Mac and Linux. Leave an email and we will write once, when it is ready to download.

Your computer
Where your files live
Mostly for

One email at launch, plus a reply if you ask a question. No newsletter. See the privacy policy.