How to create a single node cluster (offline)
To create a single node Service Fabric cluster you would follow this page from the Service Fabric documentation.
This would generally be fine, but it does assume your server will be connected to the Internet.
If your server is hidden behind a corporate firewall and not able to access the internet, it is important to follow the instructions in the link above in section "Download the Service Fabric standalone package" and to set the property enableTelemetry to false.
This is documented, but it is easy to miss!
The location in the cluster jcon config is in the Properties section. I would put under the reliabilityLevel so it is clearly visible.
1
"properties": {
2
"reliabilityLevel": "Bronze",
3
"enableTelemetry": false,
4
"diagnosticsStore":
5
{
6
"metadata": "Please replace the diagnostics file share with an actual file share accessible from all cluster machines.",
7
"dataDeletionAgeInDays": "7",
8
"storeType": "FileShare",
9
"IsEncrypted": "false",
10
"connectionstring": "c:\\ProgramData\\SF\\DiagnosticsStore"
11
},
12
"nodeTypes": [
13
{
14
"name": "NodeType0",
15
"clientConnectionEndpointPort": "19000",
16
"clusterConnectionEndpointPort": "19001",
17
"leaseDriverEndpointPort": "19002",
18
"serviceConnectionEndpointPort": "19003",
Copied!
Always run the TestConfiguration.ps1 script before you create the cluster. This should be run on the server you are planning to create the cluster on.
Expected output should be something like:
1
PS C:\temp\Service-Fabric-Installs\SF-Install-5.5.216.0> .\TestConfiguration.ps1 -ClusterConfigFilePath .\ClusterConfig.Demo.json -FabricRuntimePackagePath ..\MicrosoftAzureServiceFabric.5.5.216.0.cab
2
Trace folder already exists. Traces will be written to existing trace folder: C:\temp\Service-Fabric-Installs\SF-Install-5.5.216.0\DeploymentTraces
3
Running Best Practices Analyzer...
4
Best Practices Analyzer completed successfully.
5
6
7
LocalAdminPrivilege : True
8
IsJsonValid : True
9
IsCabValid : True
10
RequiredPortsOpen : True
11
RemoteRegistryAvailable : True
12
FirewallAvailable : True
13
RpcCheckPassed : True
14
NoConflictingInstallations : True
15
FabricInstallable : True
16
DataDrivesAvailable : True
17
Passed : True
Copied!
Copy link