How do i configure apache for load balancing with stickiness to ensure that if 1 node goes lower then all of the demands for your node will visit a machine that we would like it to go.

Ex: We've 3 nodes A, B, C. load was distributed evenly according to jsessionid. C goes lower. All of the session with jsessionid getting more quantity of even figures (, 2, 4, 6, 8) visit machine B and all sorts of the session with jssessionid getting more quantity of odd figures (1,3, 5, 7, 9) visit machine A. If both of them are equal then session should visit a.

I wasn't able to offer the identical scenario as i am unable to wordpress plugin any formula to choose nodes but i can live and eat naming the nodes and routing request according to node id. Also once any node goes lower so when a brand new request comes for dead node, it'll visit any random node where i'll pass the right node id and all sorts of the substituent calls goes to that particular node. which solves my purpose.