Skip to content

Choose object storage provider for haikuports #141

Open
@kallisti5

Description

@kallisti5

With haikuporter's support of s3, we need to choose a object storage provider.
For context, this will be replacing our Digital Ocean volume block attachment which is $25 month / 250GiB

Assuming ~400GiB stored... 2TiB of egress a month (which gives us a lot of head room)
Assuming 35 million API ops a month (17M Class A, 17M Class B)

  • Wasabi $16-35 / month likely as we grow. Risk of pulling too much egress and getting shut off.
    • Pro: We use them today, "known evil"
    • Pro: Cheap as long as we don't pull more than we store. ($5.99 per TiB)
    • Con: Weird "storage amounts count for 3 months" system.
    • Con: Storage pricing is cheap, but inconsistent. If we use more egress then we store, they get upset and cut us off. (and have done it before). There's a lot of risk here of sudden cut-offs without clear resolution paths.
    • Con: We probably should put them behind some caching CDN. bunny.net is 0.005/per GiB. +$10/mo
  • telnyx - Likely $11-20 / month, $ per API operations a big risk. Haikuporter, hpkgbouncer, all hit APIs
    • Pro: Flat $0.006 per GiB stored. At 400 GiB that's $2.4
    • Pro: No egress fees (We started on Wasabi in this model... so I question it long term)
    • Con: Change operations (REST PUT COPY POST LIST) $0.5 per million.
    • Con: Read operations (REST GET SELECT) $0.04 per million
    • Con: New player
  • storj.io - Likely $12-20 / month
    • Pro: Flat $0.004 per GiB stored. At 400 GiB that's $1.6/month
    • Pro: Flat $0.006 per GiB egress. At 2TiB that's $12 / month
    • Pro: No per-operation costs
    • Pro: Lots of interesting use cases like hosting our own file gateways
    • Con: Not the cheapest.
    • Con: Would need CDN for + 10 / mo
  • Backblaze B2 - Likely $16-24 / month
    • Pro: Flat $6 per TiB
    • Pro: Free egress up to 3x their average monthly storage amount. Egress over average stored is $0.01/GiB. 2TiB - 400GiB = 1600GiB * 0.01 = $16 / month
    • Pro: Big company, been around for a long time
    • Con: Most expensive "cheap" s3 storage provider.
    • Con: Need for CDN likely at scale. Unlimited free egress with CDN partners: Fastly, Cloudflare, bunny.net, CacheFly, Coreweave, Equinix Metal, Vultr, PhoenixNAP. (I've looked at bunny.net before for DNS... they're pretty good. 2TiB $10/mo)
  • Digital Ocean Spaces - ~$23 per month for 400GiB + 2TiB xfer We don't like having to have multiple buckets to get reasonable pricing.
    • Pro: Flat $5 for 250GiB.
    • Pro: Can have multiple buckets for $5 / per 250GiB
    • Pro: 1TiB egress included.
    • Pro: Local to our nodes. May cut down egress bandwidth usage.
    • Con: Expensive 0.01/GiB egress after 1TiB. 2TiB total is $10
    • Con: Would need branch haikuports buckets for reasonable pricing, needing hpkgbouncer changes.
    • Con: Expensive 0.05 per GiB after 250GiB in a single bucket. 400GiB is $12.50/month

Notes: We don't have to go all-in on a single S3 provider. Haiku can remain at wasabi, haikuports can be "where ever". We can run one deployment of hpkgbouncer per repo.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions