Is it okay or recommended for performance/load balancing to point the A Record for your mobile subdomain to a separate server, with its own IP address?
Is it okay (or even recommended for performance) to point mobile subdomain A record to different IP?
1 Answers
I'm assuming you're meaning you have something of the form example.com
and mobile.example.com
?
There is nothing inherently wrong with these being served from different IPs for load balancing or other purposes. It's not going to be an intelligent distribution of traffic based on actual load - but if it meets your needs : then as a cheap and easy solution I say go for it.
Is it recommended? I wouldn't really worry about this so much as does it meet your needs? If it does, great.
As a generic "enterprise" solution it's not a complete solution in that it has no intelligence. If 99% of the traffic is hitting one server and the other is idle that's not a very effective use of resources. Typically in a enterprise solution you'd have something out front to do the load balancing - NGINX, Netscaler Proxies, Apache, even IIS with ARR/URL Rewrite - configured in a high-availability pair or more, and then in which you define your web farms behind them and what rules are to be used for traffic distribution and affinity. This solution also allows you to scale by adding more servers to your web farms if you need to. If you don't need the extra headache and expense though this is just overkill.
-
Cool. I was mostly just making sure it wasn't frowned upon by Google, etc.. or considered sneaky... or would get flagged for something. I figure it could work pretty well as a poor man's load balancer, not intelligent per se, but useful. Especially for the remainder of my shared hosting account's paid term... – ChefBoyRDang Nov 10 '15 at 03:16