News for hackers. Stuff that matters.
Re:Twitter migrates data to Google Cloud by indigochill on Wednesday January 23, 2019 @03:25AM (#18976609)
In what way(s) do you find GCP better than AWS? My company was using both for a while but has migrated more towards AWS lately. But I'm just learning my way around cloud development now so I don't have insight into the major differences between providers.
Re:Twitter migrates data to Google Cloud by manigandham on Wednesday January 23, 2019 @07:22AM (#18977605)
GCP has the fastest, simplest, and cheapest primitives for building. Organization and project hierarchy combined with IAM permissions (integrated with G Suite if you use it) make security and access easy. Every project has its own namespace and can be transferred to different owners or billed separately.

VMs don't have a mess of instance types, just standard but customizable cpu/ram with any disks and local SSDs attached. Live-migrated, billed to the second, and automatically grouped per cpu/ram increments for billing discounts.

Networking is 2gbps/core upto 16gpbs/instance with low latency and high throughput regardless of zone and doesn't need placement groups. VPCs are globally connected and can be peered and shared easily across projects so that it's maintained in one place across multiple teams. Fast global load balancing with a single IP across many protocols and immediate scaling.

Storage is fast with uncapped bandwidth and has strongly consistent listings. BigQuery, BigTable and lots of other services have "no-ops" so there's no overhead other than getting your work done. Support is also flat rate and not a ripoff percentage.

The major downsides to GCP are the lack of managed services, limited and outdated versions for what they do offer, poor documentation and broken SDKs, and dealing with the opinionated approach of their core in-house products. This usually means as a startup that you are more productive on AWS or Azure because you can get going in a few clicks with a vast ecosystem, while GCP is a better home for larger companies that have everything built and just need strong core offerings with operational simplicity.

Re:Twitter migrates data to Google Cloud by lnkmails on Wednesday January 23, 2019 @12:05PM (#18980058)
Your reasoning and the conclusion resonates a lot with my own findings for a project that we tried to bootstrap. GCP's GKE and Istio integration are becoming more compelling to consider them for containerized workloads. EKS isn't quite there. One of the things we are struggling with is finding a qualified partner who can help us build our new project on GCP. We don't have a mature infrastructure team and while we try to bootstrap one, we would like to rely on partners to help us move the needle. Even partners in GCP premier list don't have case studies of migrating monoliths to GCP. Most of them talk about GSuite migration which isn't quite the same. AWS wins this battle. They have far more mature partners with better track record and thought leadership. I wonder if you see this the same way. Maybe partnership is not crucial for you? Some insights from the community would help.
Re:Twitter migrates data to Google Cloud by manigandham on Wednesday January 23, 2019 @02:51PM (#18982037)
Yes. AWS biggest advantage now is the giant marketplace of vendors and partners so you can get help and managed services for just about anything.

In my experience, most startups just want managed options they can run themselves rather than engaging partners but if that's what you need then AWS will have more companies to offer, although GCP does have qualified partners. I recommend contacting one of the GCP developer advocates either in this thread or on twitter for help, or email me separately and I'll put you in touch.

Also I havent worked with them but https://shinesolutions.com/ has put out plenty of articles and case studies that seems to show they're pretty capable, that might work for you.

Re:Twitter migrates data to Google Cloud by vira28 on Wednesday January 23, 2019 @05:39PM (#18983932)
Just curious, Which support tier you are using from GCP?

For an early stage startup/Indie developer, GCP support model is not appeasing. $100 Per user for development role is unacceptable. (at least to us, the stage where we are now)

Re:Twitter migrates data to Google Cloud by manigandham on Wednesday January 23, 2019 @07:57PM (#18985003)
We use the production roles but you don't have to signup every single person, just those who file tickets and interact with support.

If you're very early then you can also try the older support pricing: https://cloud.google.com/support/premium/

If that's still too expensive then you can probably rely on the free support and forums until you have more spend and revenue.

Re:Twitter migrates data to Google Cloud by boulos on Wednesday January 23, 2019 @04:38PM (#18983315)
Depending where you're based, there are some very good partners that can help here. It really depends on what level of cooperation you're looking for from "here, you do it" to "just give us guidance along the way".

https://cloud.google.com/solutions/migration-center/ is a reasonable jumping off point. Sorry if that didn't come up more clearly.

Re:Twitter migrates data to Google Cloud by lnkmails on Monday January 28, 2019 @10:55AM (#19018406)
We have talked to Velostrata and some other GCP partners. It's hard to assess their usefulness. Unfortunately, they don't have much of open source credibility. Picking by case studies seems like picking out a car by reading advertising material.
Re:Twitter migrates data to Google Cloud by ed_elliott_asc on Wednesday January 23, 2019 @02:58PM (#18982125)
I did some perf testing of van’s across azure, gcp and aws.

Gcp was always exactly the same perf, on the button exactly.

Azure was all over the place, fast then slow then fast then slow.

Aws was in the middle.

If you want guaranteed perf then go with gcp 100%

Re:Twitter migrates data to Google Cloud by CreepGin on Wednesday January 23, 2019 @01:45PM (#18981237)
> The major downsides to GCP are the lack of managed services, limited and outdated versions for what they do offer, poor documentation and broken SDKs, and dealing with the opinionated approach of their core in-house products. This usually means as a startup that you are more productive on AWS or Azure because you can get going in a few clicks with a vast ecosystem, while GCP is a better home for larger companies that have everything built and just need strong core offerings with operational simplicity.

That is spot on. After a year of research and testing on GCP and AWS, I concluded with the same thing. AWS is much more startup/indie-friendly.

Re:Twitter migrates data to Google Cloud by crankylinuxuser on Wednesday January 23, 2019 @09:42AM (#18978470)
Our blocker in using GCP is that they do not offer a managed Oracle Database. AWS does with RDS.

We hate Oracle like the next person, but we're locked in. And there's no way we're going to the "Oracle Cloud"

Re:Twitter migrates data to Google Cloud by manigandham on Wednesday January 23, 2019 @10:32AM (#18978988)
That's more on Oracle than Google, and probably unlikely to ever happen at this point. They've already increased licensing costs to make it more expensive to run in other clouds.
Re:Twitter migrates data to Google Cloud by CobrastanJorji on Wednesday January 23, 2019 @02:12PM (#18981566)
You know, that's kind of weird. You'd think they'd be really worried about the general trend and would be introducing smaller, cheaper versions of cloud Oracle. Are they just that convinced that people will stick with Oracle? I wonder what makes them think that. I'm not familiar enough with Oracle to take a guess.
Re:Twitter migrates data to Google Cloud by dijit on Wednesday January 23, 2019 @10:13AM (#18978763)
What about running oracle on a google instance with a regional disk? Sure, it's not as sexy as a managed service but functionally it would be very similar.
Re:Twitter migrates data to Google Cloud by ticmasta on Wednesday January 23, 2019 @10:56AM (#18979273)
Not only is it not sexy, it's probably the most work. You're now administering the server, storage & the database; you're the DBA for your Oracle instance and databases; Oracle loves to hammer this scenario for licensing (they'd rather you pay for their "cloud") and paying a premium for the underlying hardware that needs to managed remotely.

I can understand why this is a no-go for the GP.

Re:Twitter migrates data to Google Cloud by dijit on Wednesday January 23, 2019 @11:46AM (#18979853)
Yeah, I understand it too; We're currently being squeezed by MS licensing in GCP (but it's basically free in Azure!).

This is the cost of lock-in.

Personally I'd rather have the expertise on staff than pay oracle (and microsoft) for this shitty behaviour.

Re:Twitter migrates data to Google Cloud by zjaffee on Wednesday January 23, 2019 @01:25PM (#18980984)
What are you talking about, google support is absolutely "some rip off percentage". If you are saying it isn't you clearly aren't working with it at any sort of scale.

Edit: I'm being downvoted but it's true, if you need enterprise support you're paying the same percentages you would on any other cloud service.

Re:Twitter migrates data to Google Cloud by manigandham on Wednesday January 23, 2019 @03:18PM (#18982388)
https://cloud.google.com/support/#support-options

The role-based support is flat-rate but you're right that the Enterprise tier is $15k or percentage spend. From my experience, most companies are fine with the 1-hour production tier.

I haven't worked with GCP beyond 6 figure scale but I dont think that matters. If you need the 15-min response times and the TAM guidance then that's the fee but at least you can opt-out if you don't.

Re:Twitter migrates data to Google Cloud by dijit on Wednesday January 23, 2019 @04:27AM (#18976897)
Hey! I'm actually glad you asked. :)

So, obviously my experience is based on my use-case so things that are important to me are predictability of resources and consistency of data.

From a resource perspective (GCP:Compute) there seems to be a tendency of setting CPU affinity for certain cores, often in the same NUMA zone on the host. This means my tickrate doesn't get hijacked on certain cores randomly. That's quite nice honestly and it's something that on-prem hyperconverged VM solutions don't manage. The NUMA zone affinity / samezone affects our performance quite drastically as certain applications (such as in-memory databases or gameworlds) allocate large chunks of memory and then do little updates millions of times a second. This means memory bandwidth is very important.

GCP also has live migration of instances which is 100% transparent to the application (even the CPU clock seems to be moved over), unlike my colleagues on AWS who get 24h notifications of host machine maintenances I've never had to "deal" with even a single instance outage since starting up on GCP 1y ago. But I would assume if AWS hasn't moved on solving this problem they will soon.

Things like VPC networking being inter-zone by default is something that just makes sense and solves some headaches that I hear other teams having.

From a storage performance perspective, on AWS we were hard-capped to 5GBps per instance to S3, such a hard limit does not exist for GCP instances to cloud storage so we're able to make use of it. (in fact, I can often saturate my 10GBit interface limit even to non-google instances). A n AWS sales rep that this hard-limit can't be removed no matter how much we pay.

I can't attest to the difference in APIs, since I use terraform and that abstracts away anything I would be using.

Regarding storage again; we had reps from AWS talking to us at length and they would not guarantee that fsync() would be honoured on elastic storage. They stated that "it should never be needed" but honestly I'm not comfortable with that answer. I mean, my bare-metal database instances haven't gone down in 3 years but it doesn't mean I'm going to start decreasing the consistency for raw throughput.

There's a lot more but these are the most important things that I can think of right now.

Re:Twitter migrates data to Google Cloud by _msw_ on Wednesday January 23, 2019 @12:16PM (#18980193)
Hi! I'm from the EC2 team.

The fixed performance EC2 instances (in contrast to instances with burstable performance) all have dedicated physical CPU allocations, and 1:1 affinity from vCPU to the underlying CPU. Similarly, memory allocations are fixed, pre-allocated, and are aligned to the NUMA properties of the host system. When combined with both our Xen hypervisor and Nitro hypervisor, this provides practically all of the performance of the host system with regard to memory latency and bandwidth.

See: https://twitter.com/_msw_/status/1045032259189760000

With our latest 25 Gbps and 100 Gbps capable instances, EC2 to S3 traffic can make use of all of the bandwith provided to the instance.

Please send me more information about the interaction you had on the EBS side, msw at amazon dot com. All writes to EBS are durability recorded to nonvolatile storage before the write is acknowledged to the operating system running in the EC2 instance. fsync() does not necessarily force unit access, and explicit FUA / flush / barriers are not required for data durability (unlike some storage devices or cloud storage systems). Perhaps there was confusion about the question that was asked.

Re:Twitter migrates data to Google Cloud by romeisendcoming on Thursday January 24, 2019 @01:18PM (#18991298)
Can attest to very little CPU performance loss via OpenMP applications over bare metal. Maybe as little as 5% for our use case (numerical modeling of weather impacts).
Re:Twitter migrates data to Google Cloud by parasubvert on Wednesday January 23, 2019 @07:51AM (#18977719)
Re: NUMA, I had thought it was fairly straightforward to peg VMs to particular NUMA nodes (or declare CPU or memory affinity) in VMware. I agree GCP does it well (better than the other public clouds!), but I've also seen this done well on-prem.
Re:Twitter migrates data to Google Cloud by dijit on Wednesday January 23, 2019 @08:02AM (#18977756)
I have too, which is why I singled out hyper-converged.

In hyper converged environments the storage and the compute live together on a service mesh and thus some processing is done on the hypervisor to manage storage, those processes don't have an affinity (in the case of vmware for example) so a guest VM core gets suspended for a couple of hundred clock ticks sometimes.

Re:Twitter migrates data to Google Cloud by _msw_ on Wednesday January 23, 2019 @12:32PM (#18980358)
Hi! I'm from the EC2 engineering team.

This is a super challenging problem for general purpose virtualization stacks. EC2 has been working to avoid any guest VM interruptions. With the Nitro hypervisor, there are no management tasks that share CPUs with guest workloads.

See more here, including data from a real customer with real-time requirements running on EC2 under the Nitro hypervisor: https://youtu.be/e8DVmwj3OEs?t=1796

Re:Twitter migrates data to Google Cloud by parasubvert on Thursday January 24, 2019 @09:38AM (#18989002)
That's a good point, I have seen cases where we've separated a portion of nodes for VSAN or ScaleIO out to a separate cluster to avoid this behaviour on latency sensitive workloads. These nodes don't need a ton of RAM and you'd better have good E-W bandwidth for them, but it's always a tradeoff...
Re:Twitter migrates data to Google Cloud by _msw_ on Wednesday January 23, 2019 @12:23PM (#18980272)
Hi! I'm from the EC2 team.

This is a great tool to help uncover if CPU and memory NUMA within a VM aligns to the physical host or not:

https://www.cl.cam.ac.uk/research/srg/netos/projects/ipc-ben...

Paper from the USENIX 2012 conference: http://anil.recoil.org/papers/drafts/2012-usenix-ipc-draft1....

EC2 instances have been NUMA optimized since we launched our CC1 instances in 2010. I encourage you to try ipc-bench on your cloud provider of choice, if CPU and NUMA affinity is important to your workload.

Re:Twitter migrates data to Google Cloud by afpx on Wednesday January 23, 2019 @06:17AM (#18977322)
Regarding the 5 gbps cap, they said at re:invent 2017 that they increased the cap to 25 gpbs. Did that never happen?

https://m.youtube.com/watch?v=9x8hz1oRWbE

Re:Twitter migrates data to Google Cloud by manigandham on Wednesday January 23, 2019 @10:36AM (#18979037)
Yes it did: https://aws.amazon.com/blogs/aws/the-floodgates-are-open-inc...

However it may depend on instance type and other factors. This complexity is a problem with AWS.

Re:Twitter migrates data to Google Cloud by philliphaydon on Wednesday January 23, 2019 @07:06AM (#18977534)
What 24 hour host machine maintaince? Maybe once a year I get an email 1 month in advance that a server will be rebooted or I can do it myself... I stop/start on the week and don’t get another email for another year...
Re:Twitter migrates data to Google Cloud by numbsafari on Wednesday January 23, 2019 @07:23AM (#18977607)
Three years on GCP here... I’ve not once received one of these notifications. In my prior 7 years on AWS, these happened all the time, especially when you run a lot of VMs in different zones/regions (probably less visible if you are all in one zone).

Live migrations is amazing.

Now if only Google paid more attention to certain features of their GLB... amazing tech with showstopper bugs means amazing tech I can’t use. (Also means it’s not so amazing)

Re:Twitter migrates data to Google Cloud by manigandham on Wednesday January 23, 2019 @10:34AM (#18979021)
It depends on a lot, like region, instance type, security issues, etc. No notices is still better than any, and live migration also helps with reliability by moving your VM if possible instead of it going down with the host.
Re:Twitter migrates data to Google Cloud by acranox on Wednesday January 23, 2019 @07:21AM (#18977602)
I think he means the notice is sent 24h before the scheduled maintenance. They don’t always provide a lot of advance notice.
Re:Twitter migrates data to Google Cloud by philliphaydon on Wednesday January 23, 2019 @07:38AM (#18977657)
That's why I'm confused, 7 years on AWS and never had less than 1 month notice.
Re:Twitter migrates data to Google Cloud by electroly on Wednesday January 23, 2019 @10:53AM (#18979244)
Sounds like you've never seen an actual hardware failure; you've only seen scheduled maintenance. You don't get any notice at all with host failures. You get an email like this:

"We have important news about your account (AWS Account ID: XXXX). EC2 has detected degradation of the underlying hardware hosting your Amazon EC2 instance (instance-ID: i-XXXX) in the us-east-1 region. Due to this degradation, your instance could already be unreachable. After 2018-12-28 19:00 UTC your instance, which has an EBS volume as the root device, will be stopped."

The stop date is 2 weeks after the email is sent, but as the message states, the instance is likely already dead. It was already dead in this case. GCP will live migrate your instance to another host.

Re:Twitter migrates data to Google Cloud by philliphaydon on Wednesday January 23, 2019 @11:36AM (#18979738)
That's the email I get. I had 1 in 2018 but it was 4 weeks from the received date, not 2. Only a couple of our servers are older than 12 months tho, we usually generate new AMI's roll them out to keep them up to date.
Re:Twitter migrates data to Google Cloud by dijit on Wednesday January 23, 2019 @07:45AM (#18977692)
I wouldn't jinx it.

Like the parent said; we used to receive these notices quite frequently and the amount of time varies wildly. I should ask the teams who currently/primarily use AWS perhaps the situation has changed?

But it was not uncommon to have 24hrs of notice, especially for instances in US-EAST2 for some reason.

Re:Twitter migrates data to Google Cloud by philliphaydon on Wednesday January 23, 2019 @11:37AM (#18979751)
We use us-west-2, but I'm touching wood non-the-less.
Re:Twitter migrates data to Google Cloud by shaklee3 on Wednesday January 23, 2019 @09:22AM (#18978294)
Can you explain more about that 5Gbps per instance to s3? Is that documented anywhere? How many prefixes were you using?
Re:Twitter migrates data to Google Cloud by cloakandswagger on Wednesday January 23, 2019 @10:37AM (#18979048)
This was 5Gbps until January of last year, when it was increased to 25Gbps:

https://aws.amazon.com/blogs/aws/the-floodgates-are-open-inc...

Re:Twitter migrates data to Google Cloud by manigandham on Wednesday January 23, 2019 @10:36AM (#18979041)
Re:Twitter migrates data to Google Cloud by dklsafhjskljfl on Wednesday January 23, 2019 @03:49AM (#18976717)
Aside from pricing (different workloads yield different results), I'd say that:

GCP has much more modern APIs (they got to do "right" the first time around, while AWS had to learn from their "mistakes")

GCP is less mature with documentation, but still excellent (AWS is first class). I've found bugs, and others I know have run into straight up wrong docs - a quick message to support yielded the correct information and docs update within the week.

GCP is far more "opinionated" about how you should run a service. AWS is opinionated as well, but less so. What this means is that while GCP will sell you resources in traditional way, to go GCP native or from scratch really requires buying into the GCP "way" of doing things more than AWS does. Basically, K8S or go home.

We use GCP and I enjoy it quite a bit. I have extensive AWS experience as well, but no strong preference.

Re:Twitter migrates data to Google Cloud by lrem on Wednesday January 23, 2019 @04:10AM (#18976825)
GCP is not done "right the first time". Most of the interesting things you see in GCP are 3rd-5th generations of internal products.
Re:Twitter migrates data to Google Cloud by falcor84 on Wednesday January 23, 2019 @04:49AM (#18976974)
How is that a contradiction? You are saying that by the time the products made it to become external SPIs, they were already battle tested, right?
Re:Twitter migrates data to Google Cloud by lrem on Thursday January 24, 2019 @03:06PM (#18992403)
That's true, but I wasn't trying to contradict, only explain why some Google's products feel so polished since early access. Also explains why some designs may feel awkward: they were assuming the user to be Google products, with all the ballast of building for a billion users.