Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate Fly.io App & Postgres Deployment #72

Closed
nelsonic opened this issue Mar 2, 2021 · 13 comments
Closed

Investigate Fly.io App & Postgres Deployment #72

nelsonic opened this issue Mar 2, 2021 · 13 comments

Comments

@nelsonic
Copy link
Member

nelsonic commented Mar 2, 2021

https://fly.io/docs/reference/postgres

@nelsonic
Copy link
Member Author

Logging into the Fly Forum https://community.fly.io using GitHub OAuth requires "Act on your behalf" permissions ...

image

This feels like a violation of the principal of least privilege. 🤷‍♂️
I know it's "just" a Discourse instance, but I don't remember granting this for the Elixir Forum ... 💭

Reading: https://github.community/t/why-does-this-forum-need-permission-to-act-on-my-behalf/120453

@nelsonic
Copy link
Member Author

After reading the entire thread, which was quite repetitive, the conclusion is that when people setup a Discourse Forum instance as a GitHub App instead of just using GitHub OAuth, the scopes have a terrible wording. Apparently it only gets access to Email Address.

It's the same case for: https://github.community
image

I would definitely prefer it if they updated their wording, this is terrible UX. 🤦
But I'm going to go ahead and use the Fly forum. 👍

@nelsonic
Copy link
Member Author

@nelsonic
Copy link
Member Author

As far as I'm concerned this is the deal-maker for me considering using Fly.io for Phoenix projects: 😍
https://twitter.com/chris_mccord/status/1428821074553315332
image

@nelsonic
Copy link
Member Author

Continue: https://fly.io/docs/hands-on/start/

@nelsonic
Copy link
Member Author

@nelsonic nelsonic mentioned this issue Oct 1, 2021
2 tasks
@nelsonic
Copy link
Member Author

nelsonic commented Oct 7, 2021

@nelsonic nelsonic changed the title Investigate Fly.io Postgres Deployment Investigate Fly.io App & Postgres Deployment Oct 14, 2021
@nelsonic
Copy link
Member Author

https://fly.io/docs/about/pricing
The first thing on the pricing page is the "Free Tier": https://fly.io/docs/about/pricing/#free-tier
image

Looks we will be able to run the Hits App off "Free Tier" (except for the persistent storage ...)
One VM for the App and two for Postgres (with backup).

The VMs are reasonably priced: https://fly.io/docs/about/pricing/#virtual-machines
image

Persistent Volumes: https://fly.io/docs/about/pricing/#persistent-volumes $0.15/GB per month
image

200GB x $0.15 = $30/month

By contrast AWS Elastic Block Store (EBS) appears cheaper on the surface: https://aws.amazon.com/ebs/pricing/
image

The same 200GB on AWS EBS would cost $34.25/month ...

https://fly.io/docs/about/pricing/#postgresql-clusters
image

https://fly.io/docs/about/pricing/#outbound-data-transfer
image

Not suuuper happy about paying for outbound data transfers. Especially not $0.02/gb ... 💭 💸
We'll have to see if egress bandwidth becomes an issue. ⏳
back-of-the-envelope calculation:
1kb (per hit), 1000 projects, 1000 hits/month = 1Gb
If Fly.io gives us 160Gb of "free tier" bandwidth per month, then we can have 160M hits per month "free".
We will monitor this and if it gets out-of-hand we'll have to revise it. 👍

@nelsonic
Copy link
Member Author

nelsonic commented Nov 1, 2021

Hits app deployed to Fly.io: dwyl/hits#128
Screen Shot 2021-11-01 at 1 07 07 AM

@nelsonic
Copy link
Member Author

nelsonic commented Nov 1, 2021

Investigation complete. App deployed. ✅
Next: dwyl/hits#130

@nelsonic
Copy link
Member Author

nelsonic commented Nov 3, 2021

The "usage" is a little concerning: https://fly.io/organizations/personal/usage

image

like why do they charge for accessing data in the DB 🤷‍♂️
surely it's on the same subnet and doesn't count as "outbound" ...? 💭

@nelsonic
Copy link
Member Author

We're 1/3 through the month of November and we've used 12.6 GB of outbound data transfer:

image

This is good considering the "Free Tier" is 160 GB #72 (comment) and it was my only "concern" with using Fly.io. 💭

@nelsonic
Copy link
Member Author

Continuous Deployment: dwyl/hits#133

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

No branches or pull requests

1 participant