2016-06-17 6 views
5

addtionalのノードタイプのローカルクラスタを設定しますは、どのように私はServiceManifest.xmlで指定された2つのノード・タイプを持つクラスタ構成を持つ

<?xml version="1.0" encoding="utf-8"?> 
<ServiceManifest Name="MKopa.M2M.ConfigurationPkg" 
       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> 
    <!-- This is the name of your ServiceType. 
     This name must match the string used in RegisterServiceType call in Program.cs. --> 
    <StatelessServiceType ServiceTypeName="ConfigurationType"> 
     <PlacementConstraints>(NodeType == Internal)</PlacementConstraints> 
    </StatelessServiceType> 
    </ServiceTypes> 

    <!-- Code package is your service executable. --> 
    <CodePackage Name="Code" Version="1.0.0"> 
    <EntryPoint> 
     <ExeHost> 
     <Program>MKopa.M2M.Configuration.Service.exe</Program> 
     </ExeHost> 
    </EntryPoint> 
    </CodePackage> 

    <!-- Config package is the contents of the Config directoy under PackageRoot that contains an 
     independently-updateable and versioned set of custom configuration settings for your service. --> 
    <ConfigPackage Name="Config" Version="1.0.0" /> 

    <Resources> 
    <Endpoints> 
     <!-- This endpoint is used by the communication listener to obtain the port on which to 
      listen. Please note that if your service is partitioned, this port is shared with 
      replicas of different partitions that are placed in your code. --> 
     <Endpoint Name="ServiceEndpoint" /> 
     <Endpoint Name="HttpEndpoint" Protocol="http" Port="8081"/> 
    </Endpoints> 
    </Resources> 
</ServiceManifest> 

これは、このように失敗するローカルクラスタへの展開を引き起こすことを私の問題NodeTypeはローカルクラスタに存在しません。

私はcluster.xmlファイルについて言及していますが、それを見つけましたが、変更を加えても効果がないようです。私はリセットを試みたが、開始し、停止するが、リセットは変更を無効にする。

ここだ答えは、私は、クラスタの稼働中にそれがどのように動作するかわからないが、私は地元を再インストールすることによってそれを行うことができました

答えて

6

:-)動的にサービスを開始していないことを望んでいますクラスタ。これらは私のステップだった:

  • ゴーC:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\
  • .\CleanCluster.ps1
  • を呼び出すことにより、既存のクラスタをアンインストール今、あなたはこのファイルを調整し、すべてのノードに配置プロパティを追加することができ、ファイルのバックアップC:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\NonSecure\ClusterManifestTemplate.xml
  • を作成します。 :
<NodeType ...> 
    <Endpoints>...</Endpoints> 
    <PlacementProperties> 
    <Property Name="NodeType" Value="Internal" /> 
    </PlacementProperties> 
</NodeType> 
  • これは御馳走を働いた.\DevClusterSetup.ps1
+0

を呼び出すことで、クラスタを再作成します! –

+0

Win7で実行している場合は、ClusterManifestTemplate_Win7.xmlテンプレートを変更してください。 – Creamstout10

+0

私自身の設定で「Service Fabric Local Cluster Manager」に余分なメニュー項目を追加する方法はありますか? –

関連する問題