Register-ServiceFabricApplicationType on a secure cluster always times out

后端 未结 2 1583
再見小時候
再見小時候 2021-01-16 07:47

When this command is executed while connected to a secure cluster:

Register-ServiceFabricApplicationType -ApplicationPathInImageStore \'MyType\' -TimeoutSec         


        
相关标签:
2条回答
  • 2021-01-16 08:29

    If this is a cluster that is hosted by Azure, these settings will be reverted to default values the next time cluster code or configuration upgrade is performed. Please change them by setting the value in the Service Fabric resource via Azure Resource Explorer or PowerShell. This will ensure that these settings are preserved.

    "fabricSettings": [
          {
            "name": "EseStore",
            "parameters": [
              {
                "name": "MaxCursors",
                "value": "32768"
              }
            ]
          }
    
    ],
    

    On the local development cluster you can modify the default cluster manifest XML files located in C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\ with following section and then recreate the cluster.

    <Section Name="EseStore">
      <Parameter Name="MaxCursors" Value="32768" />
    </Section>
    
    0 讨论(0)
  • 2021-01-16 08:30

    Here's what worked for us in a very similar situation:

    Please apply the following mitigation steps (one node at a time) on all nodes:

    1. Go to data root of cluster, by default it is “D:\SvcFab\” or C:\ProgramData\Microsoft\SF if you didn’t specify datapath attribute in deployment. Look for folder by name . Inside that folder you will see file Fabric.Package.current.xml. create a backup.
    2. Open the Fabric.Package.current.xml file and look for Fabric.Config version:
    3. Go to config folder for that version and look for Settings.xml file.
    4. Take a backup of Settings.xml file and open the Settings.xml file.
    5. Look for section named “EseStore”.
    <Section Name="EseStore">
    
    </Section>
    
    1. If section is present, add this parameter to section (prefer to type these text in the Settings.xml file than copy-pasting as copy-pasting sometimes appends extra invalid characters at the end).
    <Section Name="EseStore">
    <Parameter Name="MaxCursors" Value="32768" />
    </Section>
    
    1. If the section with name “EseStore” is not present, add the section name with parameter as and save the file.
    2. Kill FileStoreService.exe on the node.
    3. Wait for the FileStoreService.exe to come back up and then proceed to next node.

    After you are done applying mitigation to all nodes and cluster is back up healthy, please retry deploying the package. Please make sure for testing in testing machine first before use on production.

    0 讨论(0)
提交回复
热议问题