If you already used the auto-register switch to register this Server Role as a Capability when you installed it as a standalone microservice, you can skip this task. If you did not, you can make this microservice discoverable through the Discovery Endpoint by hand by adding it as a Capability to the Discovery Service's Storage Layer configuration file and update the Capability registry by rerunning the Discovery Service registration tool.
Procedure
- Navigate to the configuration location of your Discovery Service installation.
- From this location, copy cd_storage_conf.xml to the location in which you saved the Discovery Service registration tool (the file discovery-registration.jar), and open it for editing.
- Find the
ConfigRepository section and its Roles subsection.
- Find the
Role element with its Name attribute set to DeployerCapability.
- If you have set up a single Content Deployer, ensure that this
Role element has a Url attribute, set to http://HOST:PORT/httpupload, where http://HOST:PORT identifies the base URL of the Content Deployer microservice. By default, this microservice runs on port 8084.
- Alternatively, if you have set up multiple Content Deployer destinations, do the following:
- Ensure that this
Role element has a Strategy attribute, set to MIRROR.
- Inside this
Role element, insert a Urls subsection, itself containing two or more Url subelements. Each Url element must have a Value attribute, set to the URL of the destination, and can have a DestinationName attribute, set to the name of this destination.
- Inside the
Role element, set the value for the following Property subelement:
<Property Name="encoding" Value="ENCODINGVALUE" />
where ENCODINGVALUE is the encoding of the target machine(s), for example, UTF-8.
- Save and close cd_storage_conf.xml.
- Open a command prompt.
- Enter the following command:
java -jar discovery-registration.jar update
The tool registers the configured Capabilities.