We can use the same setup as HaProxy where cluster act as a pure load balancer
I'll talk to that :)
Then we can have a another way called multiple balancers
That way, one server accepts the HTTP traffic
all others accepts direct DDP traffic
They need to have DNS
entires for each
Then browser directly connect to the DDP server
If the server is down, browser detects an error
then it'll try to connect to some other DDP server
There is no with DNS here
DNS issue comes
when we try to server HTTP traffic from two different servers
It's an issue, but it's also true if you HaProxy
solution is to use something like Route 53 which does health checks
And we can use a low TTL to get rid of caching
Hope, I answered well :)
And Cluster is one part of the tooling
We'll have a full high performance ddp-proxy which can do rate limits
SSL, monitorting and some other stuff
Arunoda Susiripala
@arunoda
Most of the other clustering solutions there to run inside a single data centers
Simon Mansfield
@Siyfion
They also mentioned SSL support and the performance benefit of terminating the SSL before the app-servers. I'm guessing this can't be avoided?
Arunoda Susiripala
@arunoda
I didn't get that?
If the DDP server is exposed to the public, we must have SSL
That's why we added it to Meteor Up
Michael Mason
@mjmasn
@arunoda thanks, makes sense, will have to look into Route 53. Our current DNS can only go as low as 5min TTL plus they only update records every 15 minutes which isn't ideal
so how does that SSL work? do you still need nginx or something?
Arunoda Susiripala
@arunoda
Right now cluster does not access SSL traffic
Since NodeJS suck at SSL
We don't do it
Yes we can use nginx, stud, haproxy or something
We are using it with Meteor Up
It has SSL support via stud
Soon we have a meteor-proxy (or ddp-proxy)
Which will be written in go
and it'll have SSL support
Simon Mansfield
@Siyfion
Sweet.
Arunoda Susiripala
@arunoda
I'll soon write some blog post about most of these and the current landscape of infrastructure services like docker, core os and where cluster fits in.
Simon Mansfield
@Siyfion
I think that would be really useful :)
Michael Mason
@mjmasn
@arunoda All sounds cool, I saw your tweet the other week about Go and wondered what you were going to do with that
Arunoda Susiripala
@arunoda
Actually it's better than node for handling high throughput stuff. But for building apps, meteor and node is good.