News for hackers. Stuff that matters.
Re:Low-Cost VPS Testing by thesandlord on Friday December 06, 2019 @04:53PM (#21726344)
Give Google Cloud Run a try. Can run any Docker container, and billing is per request. It is basically a fully managed knative.

https://cloud.google.com/run

My side projects all run for free.

(I work for Google Cloud)

Re:Low-Cost VPS Testing by asdkhadsj on Friday December 06, 2019 @05:09PM (#21726493)
That.. is really impressive! Had no idea about this, thanks!

For a well rounded review, can you or anyone comment on similar offerings with competitors? I was not familiar with per-request containers, but it sounds like exactly what I wanted.

Thoughts?

Re:Low-Cost VPS Testing by arcticfox on Friday December 06, 2019 @06:35PM (#21727185)
I've been trying every Docker platform for years (Joyrnt Triton, Tutum, k8s on various platforms)... Cloud Run is by far my favorite
Re:Low-Cost VPS Testing by AtroxDev on Friday December 06, 2019 @06:45PM (#21727258)
I fully agree with this. I'm using Cloud Run since the day it got into beta and never been happier. It beats all the other platforms (for docker) IMO.
Re:Low-Cost VPS Testing by ivoecpereira on Friday December 06, 2019 @09:04PM (#21727959)
Out of curiosity, what are you using for your databases?
Re:Low-Cost VPS Testing by thesandlord on Saturday December 07, 2019 @11:17AM (#21731004)
I use Cloud Firestore, it's also serverless and is really easy to use for building SPAs as you can do a lot of things with just frontend code and trigger cloud functions when things in the database change.

I do wish there was a serverless SQL option like AWS has, but nothing yet. Can always use Cloud SQL, but as others have mentioned you need to access it over a public IP (for now)

Re:Low-Cost VPS Testing by helpfulgoogler on Tuesday December 10, 2019 @03:48PM (#21756697)
Have you seen the instructions for using a Unix socket with Cloud SQL from Cloud Run?

https://cloud.google.com/sql/docs/mysql/connect-run

Re:Low-Cost VPS Testing by drewnick on Friday December 06, 2019 @09:39PM (#21728097)
Not OP but I can setup DB of choice on an instance or group of instances and access directly from the Cloud Run containers. Our particular main stack is on MongoDB 3.4 so we deployed Atlas on the VPC and the containers access it just fine.
Re:Low-Cost VPS Testing by ivoecpereira on Saturday December 07, 2019 @06:14AM (#21729658)
For side projects doesn't it end up being a little too expensive?
Re:Low-Cost VPS Testing by ksec on Sunday December 08, 2019 @12:17AM (#21734450)
As far as I am aware, there is nothing like CloudRun where your whole App are changed at a per second / request intervals. ( Although No Private Network means Your SQL requires Public IP which is a big No No )

I haven't tried using it though, and my recent submission [1] where BaseCamp had problem with GCP and moved back to AWS.

[1] https://news.ycombinator.com/item?id=21733996

Re:Low-Cost VPS Testing by helpfulgoogler on Tuesday December 10, 2019 @03:51PM (#21756726)
Although a public IP address is required, you don't need to poke any holes in the firewall. As a result, it is not a problem from a security perspective.

https://cloud.google.com/sql/docs/mysql/connect-run

Re:Low-Cost VPS Testing by ldoughty on Saturday December 07, 2019 @12:02AM (#21728574)
Cloud run looks cool, but doesn't seem to support databases ? Unless it supports linked containers?

I like that it's a mix of AWS lambda scaling with more open environments... Though it's hard to read through the marketing... "Nearly instance availing from 1 to 1000"

Re:Low-Cost VPS Testing by dstaley on Saturday December 07, 2019 @02:15AM (#21728953)
Cloud Run user here. It does not support running a database as a Cloud Run service; you'd need to connect to a Cloud SQL instance. This is one area I really hope PaaS providers improve on in the future. The closest thing at the moment is Aurora Serverless on AWS, especially with their neat HTTP connection system. That being said, cold starts are even worse since they're now the start up time for your application in addition to the start up time for Aurora Serverless.
Re:Low-Cost VPS Testing by cstpdk on Saturday December 07, 2019 @02:45AM (#21729032)
But, correct me if this has changed please, last i checked Cloud Run did not support private networks. So you SQL instance has to be exposed to the internet, correct?
Re:Low-Cost VPS Testing by chimera77 on Sunday December 08, 2019 @02:02PM (#21737518)
Your Cloud SQL instance would have a public IP, but would not be exposed to the internet. All traffic is blocked by default. Only GCP service accounts with the right permissions can make connections to your SQL instance, or IPs added to a whitelist (not recommended).
Re:Low-Cost VPS Testing by cstpdk on Tuesday December 10, 2019 @05:35AM (#21751303)
Ah, thanks for clearing that up, I was unaware. How is the traffic blocked by default? Firewall layer?
Re:Low-Cost VPS Testing by helpfulgoogler on Tuesday December 10, 2019 @03:53PM (#21756737)
Yes. There is a proxy in front of the database which only allows whitelisted traffic (dangerous) or traffic with a valid cert (safe).
Re:Low-Cost VPS Testing by dstaley on Saturday December 07, 2019 @03:06AM (#21729086)
Yes, Cloud Run requires your Cloud SQL instance to have a public IP address.
Re:Low-Cost VPS Testing by ivoecpereira on Saturday December 07, 2019 @06:12AM (#21729651)
You might want to check out FaunaDB.
Re:Low-Cost VPS Testing by dstaley on Saturday December 07, 2019 @03:28PM (#21732367)
Unfortunately FaunaDB isn't a SQL database, so it's in the same class as things like Cloud Firestore, AWS DynamoDB, and Mongo Atlas. Good datastores for serverless applications, but not so great for traditional applications migrated to serverless.