Hello! I’m trying to create a low-cost cluster. I do not have much knowledge, I am learning. I will use the Digital Ocean $ 10 plan for the hosts.
I did not quite understand the concept of service alias. Does it make any sense to put Nginx as load balancer and server cache in front and use the alias service as discoverer of hosts? The service passes alias for Nginx the list of hosts?
I do not want to use the haproxy to enjoy the proxy cache of Nginx. I could use them, but I want to decrease the overhead since I have not much money.
That makes sense?
Internet -> nginx load balancer + Cache -> Service Alias -> Hosts APP -> Service Alias -> Mongo DB Replicas.
How would Nginx configuration to allow this? I’m not asking to do the work for me, just to show me the way. Thank you!
Using Google Translator.