You must update the httpd.conf
file on each web server in the cluster. The httpd.conf
file is usually in apache/conf
on a Linux machine and ProgramData\CloudBees\Software Delivery Automation\apache\conf
on a Windows machine.
To configure all the web servers for clustered mode operation and give them the name of the load balancer:
-
Locate the
ecconfigure
tool.On Linux, it is usually at
/opt/cloudbees/sda/bin/ecconfigure
.On Windows, it is usually at
C:\Program Files\CloudBees\Software Delivery Automation\bin\ecconfigure.exe
. -
Run the tool with the following option on each web server.
ecconfigure --webTargetHostName <load_balancer_FQDN>
where < load_balancer_FQDN > is the fully qualified domain name of your CloudBees CD/RO server’s load balancer machine.
The
--webTargetHostName
argument modifies the CloudBees CD/RO web server configuration and therefore also attempts to restart the CloudBees CD/RO web server. If you used theecconfigure
command withoutsudo
as recommended, thecommanderApache
service will not start and produces an error. Therefore, you must restart it manually afterward usingsudo
. You can also use the--skipServiceRestart
argument to avoid theecconfigure
command’s restart attempt and the error message.