Create NCache Management Service
NCache management service is a service used for management and monitoring purposes by accessing the Web Manager. In order to access the Web Manager, a host port 8251 needs to be accessed and that cannot be done in Open configuration mode as it does not allow host to port mapping. For this purpose NCache management service is separated from the NCache cluster service. This service is created in the default NAT mode.
The service file contains the same container image as in NCache cluster service, however the endpoint is created to expose the port 8251 for management with "http" protocol as shown below:
<?xml version="1.0" encoding="utf-8"?>
<ServiceManifest Name="NCacheWebManagerPkg"
Version="1.0.0"
xmlns="http://schemas.microsoft.com/2011/01/fabric"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ServiceTypes>
<StatelessServiceType ServiceTypeName="NCacheWebManagerType" UseImplicitHost="true" />
</ServiceTypes>
<CodePackage Name="Code" Version="1.0.0">
<EntryPoint>
<ContainerHost>
<ImageName>alachisoft/ncache</ImageName>
</ContainerHost>
</EntryPoint>
</CodePackage>
<ConfigPackage Name="Config" Version="1.0.0" />
<Resources>
<Endpoints>
<Endpoint Name="web-management" Protocol="http" UriScheme="http" Port="8251" Type="Input" CodePackageRef="Code" />
</Endpoints>
</Resources>
</ServiceManifest>
See Also
Deploying NCache in Azure Service Fabric
Create Service Fabric Cluster
Create NCache Cluster service
Create NCache Cluster