Live data from Hacker News

Google Cloud Platform’s new interactive CLI

cloudplatform.googleblog.com

51–60 of 79 posts

Re: Google Cloud Platform’s new interactive CLI

#51

I made something even better. Its for AWS though: https://github.com/svolpe43/cfsh

Nice! I worked a little bit on something similar for Azure in PowerShell. PowerShell has a really cool feature where you basically implement the filesystem navigation API for your app in C# or similar - how to show a path, get its children etc., and then all the PowerShell built-ins just work when you point it there.

Re: Google Cloud Platform’s new interactive CLI

#52

I wish they would spend more time finishing the halfway done projects they've started (and fully documenting them), rather than continue to launch new ones. For instance...Google CloudSQL - Great! Postgres - Beta...Postgres from AppEngine python...err, we'll get around to it, maybe. Just giving one example, but my point is - finish what you've started before making new. I think recent articles I've read about launchi…

+100 - i was waiting for them to launch Postgres prod. It just doesnt go live. Even worse, they have had trouble in exposing max_connections as configurable PostgreSQL flag ( https://issuetracker.google.com/issues/37271935 )

It's a product decision to not make this configurable to make the service supportable. It's not a technical issue.

Re: Google Cloud Platform’s new interactive CLI

#54

I made something even better. Its for AWS though: https://github.com/svolpe43/cfsh

Nice! I worked a little bit on something similar for Azure in PowerShell. PowerShell has a really cool feature where you basically implement the filesystem navigation API for your app in C# or similar - how to show a path, get its children etc., and then all the PowerShell built-ins just work when you point it there.

That is pretty cool! I had to write all that stuff from scratch.

Re: Google Cloud Platform’s new interactive CLI

#55

I wish they would spend more time finishing the halfway done projects they've started (and fully documenting them), rather than continue to launch new ones. For instance...Google CloudSQL - Great! Postgres - Beta...Postgres from AppEngine python...err, we'll get around to it, maybe. Just giving one example, but my point is - finish what you've started before making new. I think recent articles I've read about launchi…

+100 - i was waiting for them to launch Postgres prod. It just doesnt go live. Even worse, they have had trouble in exposing max_connections as configurable PostgreSQL flag ( https://issuetracker.google.com/issues/37271935 )

That is an understandably automatic control feature to keep the DB instance running well since PostgreSQL doesn't handle connection scaling well. The recommendation is to use pgbouncer, which you can also combine with the GCP cloudsql proxy into a separate container and use that way.

We deploy that onto GKE as a service and have our apps use that. Some setup required but cleaner overall.

Re: Google Cloud Platform’s new interactive CLI

#56

I wish they would spend more time finishing the halfway done projects they've started (and fully documenting them), rather than continue to launch new ones. For instance...Google CloudSQL - Great! Postgres - Beta...Postgres from AppEngine python...err, we'll get around to it, maybe. Just giving one example, but my point is - finish what you've started before making new. I think recent articles I've read about launchi…

That's the biggest problem with GCP. Not these small projects (since they have multiple teams working on things and everything progresses in parallel) but the very big lack of managed services and polished features.

The underlying tech and building primitives are the best, so if you just need fast VMs with solid cpu/io/networking then it all works well. Unfortunately that's not enough to compete with AWS and Azure which have so many turnkey services that let you focus on more productive things.

Re: Google Cloud Platform’s new interactive CLI

#58

Earlier quoted context omitted.

+100 - i was waiting for them to launch Postgres prod. It just doesnt go live. Even worse, they have had trouble in exposing max_connections as configurable PostgreSQL flag ( https://issuetracker.google.com/issues/37271935 )

That is an understandably automatic control feature to keep the DB instance running well since PostgreSQL doesn't handle connection scaling well. The recommendation is to use pgbouncer, which you can also combine with the GCP cloudsql proxy into a separate container and use that way. We deploy that onto GKE as a service and have our apps use that. Some setup required but cleaner overall.

I assume CloudSQL is google’s alternative to AWS RDS. Less of an excuse to not make the setting user configurable when the competition (AWS) does.

Re: Google Cloud Platform’s new interactive CLI

#59
post #10
post #4

Is this an open-source library one could use to make one's own interactive tools? Just curious. Anyone have pointers? Edit: I am slightly familiar with this family of tools. I was curious if there was a pointer to exactly the one used here.

I think this is quite popular: https://github.com/jonathanslenders/python-prompt-toolkit For Rust this library seems nice: https://github.com/kbknapp/clap-rs (it generates autocompletion scripts for shells)

To build on Rust's options, there's the Structopt library[0] that generates a CLI interface using clap-rs from an annotated struct, which is a very, very nice experience for making command line tools.

[0]https://github.com/TeXitoi/structopt

Post reply on HN