This is a fairly basic question about state server but assume there are 2 servers behind a load balancer. How do I configure the session state server?

So, I have machine1 and machine2. I would assume that I would need to install the state server on 1 machine only and then use the internal IP to refer to that machine. Is this correct? As oppose too, I would not install state server on both machines.