On Mon, Oct 16, 2017 at 01:00:53AM +0000, Tim Jones wrote: > Background Print Service Equitrac > > Load Balancing 2 back-ends high ports when service is restarted the service > comes up on a new random port, My backend config looks like this so I can > survive at least some windows updates, > > > Send<https://outlook.aut.ac.nz/owa/?ae=Item&a=New&t=IPM.Note&cc=MTQuMy4zNjEuMSxlbi1HQiwxNCxIVE1MLDAsMA==&pspid=_1508114789849_552210540#> > > [cid:86eeedc7-4b2b-4080-81e1-8e83e7a03aad] > > > Any ideas on how to do this better? > > > frontend EQUITRAC_TCP_4916x > bind xxx.xxx.xxx.xxx:49156-56306 > mode tcp > > > backend EQUITRAC_TCP_4916x_BACKEND > mode tcp > balance roundrobin > description Random Equitrac port 49159:49172 > > server fujix1:49156_NM fujix1:49156 check port > 49156 weight 1 downinter 30s inter 15s > server fujix1:49157_NM fujix1:49157 check port > 49157 weight 1 downinter 30s inter 15s > server fujix1:49158_NM fujix1:49158 check port > 49158 weight 1 downinter 30s inter 15s > > and so on down the list
If you need to simply forward to the same port, you can keep a single server and remove the port value. It will then automatically forward to the same port it received the traffic on. But you will not be able to run checks except if you force the check port. But I suspect in this case you don't care about checks as they're enabled only to find the appropriate port. willy