which port number is ml-gradle calling when performing a mlDeploy

Viewed 57

Which is the port number is used by gradle internally while performing mlDeploy, mlRelaodModules, and mlLoadModules tasks in MarkLogic?

1 Answers

The mlDeploy, mlReloadModules, and mlLoadModules tasks will use the configured ports for mlRestPort and mlAppServicesPort, depending upon the resource.

Ports used for loading modules

ml-gradle has to handle REST modules - options, transforms, services, and namespaces - differently from non-REST modules, as REST modules must be loaded via an app-specific REST server. However, not every MarkLogic app has a REST server. For this reason, ml-gradle takes the following approach by default:

  • Non-REST modules are loaded via the port defined by mlAppServicesPort, which defaults to 8000. This port is nearly guaranteed to exist in every ML cluster, making it a safe choice.
  • REST modules are loaded via the port defined by mlRestPort, which does not have a default value.

See the Property reference for all of the properties that are used for connecting to these ports.

Related