meteorhacks / cluster

Clustering solution for Meteor with load balancing and service discovery
https://meteorhacks.com/cluster-a-different-kind-of-load-balancer-for-meteor.html
MIT License
631 stars 80 forks source link

Looks like cluster is changing initial html too #85

Open artpolikarpov opened 9 years ago

artpolikarpov commented 9 years ago

I always thought that cluster only changes the path to the socket. But it the initial html is changing too. The index.html is serving from a random server, even if CLUSTER_BALANCER_URL is not set.

How to avoid that?

artpolikarpov commented 9 years ago

And all static content too (including css & js). That’s bad. Because diring deploying new version client may ask for /123.js, but that file will not exists on all server A, only on B, and client will stuck.

artpolikarpov commented 9 years ago

And that’s super bad if Cordova build will download that broken 123.js from wrong server. Because it will contain html, and js code. After that Cordova build will go down and there will no way to cure it. Only reinstalling.

artpolikarpov commented 9 years ago

So... Is it possible to disable static content managing in cluster? And give it control over DDP only?

maxpain commented 9 years ago

+1