Configuring using the command line
If you are using the command line, follow these steps:
- Start the dsserver on Dispatcher:
-
Run the following command as root user: dsserver
-
dsserver runs as a service that starts automatically.
-
- Start the executor function of Dispatcher:
dscontrol executor start
- Add the cluster address to the Dispatcher configuration:
dscontrol cluster add www.company.com
- Add the http protocol port to the Dispatcher configuration:
dscontrol port add www.company.com:80
- Add each of the Web servers to the Dispatcher configuration:
dscontrol server add www.company.com:80:server2.company.com
dscontrol server add www.company.com:80:server3.company.com
- Configure the workstation to accept traffic for the cluster address:
dscontrol executor configure www.company.com
- Start the manager function of Dispatcher:
dscontrol manager start
Dispatcher now does load balancing based on server performance.
- Start the advisor function of Dispatcher:
dscontrol advisor start http 80
Dispatcher now ensures that client requests are not sent to a failed Web server.
Your basic configuration with locally attached servers is now complete.