News for hackers. Stuff that matters.
Re:DigitalOcean introduces Load Balancers by simplehuman on Tuesday February 14, 2017 @11:23AM (#13644626)
I am curious to hear what people use digital ocean for. It's great for running one-off servers and to run WordPress, ghost, lamp stack. But I can hardly imagine people using load balancers like in AWS. Does anyone have a usecase? Thanks.
Re:DigitalOcean introduces Load Balancers by wwalser on Tuesday February 14, 2017 @11:40AM (#13644786)
Um… production environments?

Early on you probably don't need it for the load but for handling recovery if an application server goes down.

Prior to now if you wanted to run a passable production environment for a small application you'd probably do something like a single persistent store behind 2 application servers fronted by an nginx to balance load across the two.

Doing that requires nginx config and finding an off the shelf package for handling healthchecks and automated removal of failed items from the nginx load balance rotation. Now DO will do that for you at slightly above the cost of you rolling it yourself but with the benefit of being (probably) more reliable and requiring near-zero time investment.

Edit: Other threads have pointed out that keepalive on the VM works for recovery on single compute instances. Seems likely that this is for DO's larger client who need recovery and multiple computes with load balanced across said compute surface.

Re:DigitalOcean introduces Load Balancers by simplehuman on Tuesday February 14, 2017 @12:03PM (#13644995)
So, I am not talking about the load balancer feature itself. I understand what it does.

My question is if any of DO users want this today? If so, I am interested in knowing their use case (what kind of app requires a load balancer and nothing else). I don't want some imaginative work load, I want to a real example. For example, I cannot use it for my wp installs because the db does not scale without some work.

Re:DigitalOcean introduces Load Balancers by neom on Tuesday February 14, 2017 @12:25PM (#13645229)
We use it for all our front-end infrastructure, AWS for all our backend infrastructure, the front-end devs prefer DO and can consume an API created by back end devs on AWS.
Re:DigitalOcean introduces Load Balancers by eicnix on Tuesday February 14, 2017 @12:44PM (#13645414)
Can you talk about the additional latency between your front-page and backend by running in different cloud environments?

How do you deal with a availability zone failure of a cloud provider?

Re:DigitalOcean introduces Load Balancers by neom on Tuesday February 14, 2017 @01:18PM (#13645711)
I couldn't tell you technically as I didn't build it, however, I use our app and it's very quick, I know that we keep our regions near each other (east east), front end can fail through nyc locations, we have no customers outside of the east coast either, so that helps as well. As far as back end, we are restricted to AWS GovCloud regardless.
Re:DigitalOcean introduces Load Balancers by drinchev on Tuesday February 14, 2017 @12:11PM (#13645080)
I'm using it for failover setup ( 2 x db + 2 x app + 1 x lb ) for small traffic app.

For the LB I use haproxy server only, which has it's own healthcheck.

Re:DigitalOcean introduces Load Balancers by bowersbros on Tuesday February 14, 2017 @05:48PM (#13648031)
We use Digital Ocean at shopblocks.

We use it for both production, and staging, though we do offload our database to Google Cloud.

On DO we host our application servers (frontend and backend), as well as our caching, search and monitoring services. These are all load balanced behind Haproxy.

Re:DigitalOcean introduces Load Balancers by johnnycarcin on Tuesday February 14, 2017 @11:33AM (#13644728)
The apps you listed (+ other similar apps) are exactly what I use DO for. To me they are the KISS cloud provider. Nothing super fancy but the flip side to that is that they are easy to use and interface with. When I want an MVP or a non-enterprise type app I go to DO. If I want something more complex or something that needs more PaaS-like services (databases, app hosting, etc) I turn to the big three.

EDIT: This is coming from someone who works at MSFT and gets a bit of Azure for free. To me it's all about using the right tool for the job.

Re:DigitalOcean introduces Load Balancers by ohstopitu on Tuesday February 14, 2017 @12:25PM (#13645235)
Azure's VMs was awesome till they decided to create the new portal and add in new features. Then they made networking insanely complicated.

But Azure is very pricy if you want to use it just for VMs.

Re:DigitalOcean introduces Load Balancers by vidarh on Tuesday February 14, 2017 @12:54PM (#13645494)
Depending on your workloads, DO servers can come out cheaper or more expensive than AWS, but bandwidth at DO is so much cheaper than AWS that for bandwidth intensive stuff I can't serve entirely out of Europe (where Hetzner is vastly cheaper than DO again), DO is often a much cheaper alternative.

Sometimes we use it as a cost-cutting do-it-yourself CDN in front of AWS for clients that insist on S3 for storage (and again where we can't just cache everything in Europe for latency reasons). For bandwidth heavy applications, you can pay for significant numbers of Droplets from the AWS bandwidth savings alone.

Lack of load balancers have meant resorting to DNS based failover and hoping clients handle short TTLs (it works reasonably well, but with occasional issues), but the cost reductions are sufficient to make that a worthwhile tradeoff for many clients.

Re:DigitalOcean introduces Load Balancers by gtf21 on Tuesday February 14, 2017 @12:07PM (#13645026)
We run our entire stack on DO - a couple of machines each with a small cluster of containers and a load balancer, plus a VPN server, database servers, rabbitmq server, etc.. I find it a very painless way to do things.
Re:DigitalOcean introduces Load Balancers by nsxwolf on Tuesday February 14, 2017 @11:29AM (#13644692)
If your DigitalOcean application suddenly became more popular and was performing poorly under load, why wouldn't you use this option? It would be a lot of work to move everything over to AWS.
Re:DigitalOcean introduces Load Balancers by simplehuman on Tuesday February 14, 2017 @11:31AM (#13644709)
Load balancer is not a magic bullet. It only expands the compute. Your DB, static pages, storage are all bottlenecks.

Don't get me wrong, I am just wondering if digital ocean wants to be AWS.

Re:DigitalOcean introduces Load Balancers by wwalser on Tuesday February 14, 2017 @11:44AM (#13644836)
> Load balancer is not a magic bullet. It only expands the compute. Your DB, static pages, storage are all bottlenecks.

I think we can make the generous assumption that you've profiled and decided that compute is the problem and not static pages or DB. If that were the case, why would you not use DO load balancing?

> I am just wondering if digital ocean wants to be AWS.

No, they want to be better than AWS. They absolutely want that AWS $$$. Selling to devs who create "MVPs" and prototypes might pay the bills for now but if they are going to grow into their valuation they need larger clients. Seems likely that large clients wanted load balancing.

Re:DigitalOcean introduces Load Balancers by lloeki on Tuesday February 14, 2017 @05:39PM (#13647950)
We're building a specialized Rails web app that gets deployed, customized and possibly extended (via additional engines) per tenant. Having a single VM per customer is just so KISS, simplifying every step of the process, billing, security, data isolation, load management... Any other solution would become ludicrously complex in comparison, for no reason at all, buzzwords be damned.
Re:DigitalOcean introduces Load Balancers by manigandham on Wednesday February 15, 2017 @09:13PM (#13657347)
What does this have to do with DO specifically? Any cloud provider can give you as many VMs as you want.
Re:DigitalOcean introduces Load Balancers by bdcravens on Tuesday February 14, 2017 @02:01PM (#13646114)
Services like Cloud66 let you target many different cloud providers, so the complexity of apps you deploy doesn't need to be any different on DO than AWS.

When you attach a load balancer, in AWS, it uses ELB; in DO it spins up an HAProxy instance. There are likely advantages to having parity between the stacks, having the load balancer higher in the stack.

Re:DigitalOcean introduces Load Balancers by mkagenius on Tuesday February 14, 2017 @11:27AM (#13644673)
> AWS

For me somehow, the load balancer nevers puts a server back again in rotation even though ssh and http directly access works. Need to boot up the ec2 and then it comes back in rotation.

Re:DigitalOcean introduces Load Balancers by meister on Tuesday February 14, 2017 @11:36AM (#13644751)
DO is cheap, you can achieve scaling and failover for a lower fee than with AWS. Their new load balancing solution is nice but lacks features and its price is 3x higher than what we provide at https://pikacloud.com.
Re:DigitalOcean introduces Load Balancers by _wmd on Tuesday February 14, 2017 @11:43AM (#13644821)
This is a short term illusion, with instance reservations and the wider variety of storage options available, AWS can work out cheaper even for small accounts.

Source: spent a several days in December cost modelling a few services for a client, was surprised by the result

Re:DigitalOcean introduces Load Balancers by sidlls on Tuesday February 14, 2017 @12:40PM (#13645375)
I have been under the impression that structuring a system to use AWS with portability in mind ends up costing as much or more than optimizing the structure for AWS such that one is effectively locked-in at scale. That's a trade-off that has to be factored in to a decision.

I mean granted I've only done rough guesstimates for some toy applications for myself and some friends and family, so I could be totally off base here.

Re:DigitalOcean introduces Load Balancers by disiplus on Tuesday February 14, 2017 @12:10PM (#13645061)
you can run this yourself with ngnix but if you have everything inside DO then the ability to easily add new droplets is great. create droplets on demand from snapshots, add them to load balance and you are ready.
Re:DigitalOcean introduces Load Balancers by corobo on Tuesday February 14, 2017 @12:01PM (#13644979)
> Pay as you use. Hourly rate, monthly billing.

Nah. I pay monthly, include monthly pricing. I can probably set up an nginx/varnish instance faster than I can calculate the monthly cost when you're billing by the hour.

Re:DigitalOcean introduces Load Balancers by falcolas on Tuesday February 14, 2017 @12:06PM (#13645024)
You aren't the audience, then. These offerings are for people who don't want to manage an nginx/varnish stack.

One thing that is nice is the automatic failover (of the routing stack) when a VM or datacenter goes down.

Re:DigitalOcean introduces Load Balancers by corobo on Tuesday February 14, 2017 @12:13PM (#13645099)
I'm not personally no, the company I work for is - that's why I looked.

Essentially what I'm after is Digitalocean's load balancing per-domain rather than per-infrastructure

If it was my own stuff I'd just do it myself, work can afford the premium if it includes a support team when things break

Re:DigitalOcean introduces Load Balancers by meister on Tuesday February 14, 2017 @12:08PM (#13645044)
Billing is based on usage for load balancers. You can't offer fixed monthly fee as users may consume all of your network or system capacity and pay as if they were using nothing. This is not a sustainable business.
Re:DigitalOcean introduces Load Balancers by corobo on Tuesday February 14, 2017 @12:29PM (#13645272)
I'm only really after a ballpark figure, multiply everything by 744 and say it's estimated. Put a price per gigabyte overage underneath
Re:DigitalOcean introduces Load Balancers by AYBABTME on Tuesday February 14, 2017 @12:15PM (#13645130)
DO's offering is a fixed monthly rate.
Re:DigitalOcean introduces Load Balancers by misframer on Tuesday February 14, 2017 @12:43PM (#13645407)
They're $0.03 per hour [0].

[0] https://www.digitalocean.com/pricing/

Re:DigitalOcean introduces Load Balancers by AYBABTME on Tuesday February 14, 2017 @03:08PM (#13646669)
Sorry I meant it's not billed by network usage, unlike the parent was saying is necessary.
Re:DigitalOcean introduces Load Balancers by squeaky-clean on Tuesday February 14, 2017 @01:04PM (#13645583)
It also says right on that page "$20 per month"
Re:DigitalOcean introduces Load Balancers by chrisper on Tuesday February 14, 2017 @02:25PM (#13646325)
I just run my VPN server there since they charge by hour. So I create my VPN on DO whenever I need it and destroy it automatically after a while. But for everything else I have a dedicated server at Hetzner.
Re:DigitalOcean introduces Load Balancers by cs02rm0 on Tuesday February 14, 2017 @02:00PM (#13646094)
In a word; redundancy.