Search code examples
azure-service-fabric

How does `diagnosticsStore` works in standalone service fabric?


Trying to understand how diagnosticsStore works in service fabric. Inside config file I can see it requires SMB file to be provided but I don't see an option to specify username/password. How exactly individual hosts will authenticate to that share in stand alone cluster secured with X509 certificates which are in workgroup. Also what is storeType value is? Does it mean it's possible to use something other then SMB to store that information?

"properties": { "diagnosticsStore": { "metadata": "Please replace the diagnostics file share with an actual file share accessible from all cluster machines. For example, \\\\machine1\\DiagnosticsStore.", "dataDeletionAgeInDays": "21", "storeType": "FileShare", "connectionstring": "\\\\machine1\\DiagnosticsStore" },


Solution

  • AFAIK, there is no way to provide username\password in diagnosticStore.

    The cluster's account will be used to access network share. Service fabric node works under Network Account by default, but you can change account for entire cluster (not recommended) or change account for each service. This article for AD user, but local should also work by providing . (dot) as domain name. You will need to create same user with same password on all your workgroup joined servers (don't forget to give required permission for this account to make sure that service can do it job)

    storeType can be azureStorage (source: https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-manifest)