Is it possible to load balance across a set of nodejs servers using apache? I would also need to configure apache with a cert to provide ssl and only serve out https requests.
Simple setup would be 2 apache servers that would be my load balancers. All requests would come into one of those 2 load balancers over https.
From there the load balancers would need to determine which server to route the request to. This would be one of 6 servers that are all running the same node process.
I know there is mod_cluster, but I have only used that with JBoss setup and not really sure if this would work with nodejs servers.
I also realize this might not be the best setup as node is single threaded and I could try something like node cluster. However node cluster seems to scale vertically instead of horizontally.
I also know there is nginx and haproxy, although I have never used either of them and have a lot more experience with apache. Also not sure if haproxy and nginx support allowing only ssl connections with a certificate.
Is this type of load balancing possible w/ apache and if so how?