I followed the instruction at this link to setup Pound load-balancer on my fedora server. Everything works fine. Pound is running on port 80. Now I want to configure Pound on a different port and balance 2 other different backend servers.
I found this other link, which details how to accomplish this. But that tutorial path do not match Fedora 22 paths.
The thing is, I want to either (i)configure Pound on multiple ports which balances different IPs on each port OR (ii) run 2 different instances of Pound with separate config files for each port
Finally figured it out myself.
Initial Setup
Step 1
Create pound config files for each instance separately. The default file will be at /etc/pound.cfg
Step 2
Create dummy pid files for each instance separately. The default file will be at /var/run/pound.pid
Step 3
Edit the default configuration file and assign different http port for each instance.
Modify "Control" path and backend servers to load balance for each instance
pound1.cfg
Edit config for 2nd instance
pound2.cfg
Step 4
Copy pound service file to create individual file for each instance. This will be located at /usr/lib/systemd/system/pound.service
Edit service file to use appropriate config and pid file
pound1.service
pound2.service
Step 5
Now reload the systemctl daemon and start running both the services
If you face any issues, check the status using the below command, which helped me identify some issues
Note: I have removed the https config in my cfg files, since i didn't need them