|
|
@ -5,6 +5,9 @@ |
|
|
|
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
|
|
|
<Parameters> |
|
|
|
<Parameter Name="BasketData_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="LocationsApi_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="PaymentApi_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="MarketingApi_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="GracePeriodManager_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="MongoDb_InstanceCount" DefaultValue="-1" /> |
|
|
@ -12,64 +15,29 @@ |
|
|
|
<Parameter Name="WebSPA_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="WebMVC_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="SqlServer_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="Redis_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="Rabbit_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="OrderingApi_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="IdentityApi_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="CatalogAPI_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="CatalogApi_InstanceCount" DefaultValue="-1" /> |
|
|
|
<Parameter Name="BasketApi_InstanceCount" DefaultValue="-1" /> |
|
|
|
</Parameters> |
|
|
|
<!-- Import the ServiceManifest from the ServicePackage. The ServiceManifestName and ServiceManifestVersion |
|
|
|
should match the Name and Version attributes of the ServiceManifest element defined in the |
|
|
|
ServiceManifest.xml file. --> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="MarketingApiPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ServiceManifestRef ServiceManifestName="BasketDataPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
<Policies> |
|
|
|
<ContainerHostPolicies CodePackageRef="Code"> |
|
|
|
<PortBinding ContainerPort="6379" EndpointRef="BasketDataTypeEndpoint"/> |
|
|
|
</ContainerHostPolicies> |
|
|
|
</Policies> |
|
|
|
</ServiceManifestImport> |
|
|
|
|
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="GracePeriodManagerPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="MongoDbPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="WebStatusPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="WebSPAPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="WebMVCPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="SqlServerPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="RedisPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="RabbitPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="OrderingApiPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="IdentityApiPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="CatalogAPIPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="BasketApiPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
@ -97,15 +65,6 @@ |
|
|
|
</ContainerHostPolicies> |
|
|
|
</Policies> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="RedisPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
<Policies> |
|
|
|
<ContainerHostPolicies CodePackageRef="Code"> |
|
|
|
<PortBinding ContainerPort="6379" EndpointRef="RedisTypeEndpoint"/> |
|
|
|
</ContainerHostPolicies> |
|
|
|
</Policies> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="IdentityApiPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
@ -169,23 +128,65 @@ |
|
|
|
</ContainerHostPolicies> |
|
|
|
</Policies> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="MarketingApiPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
<Policies> |
|
|
|
<ContainerHostPolicies CodePackageRef="Code"> |
|
|
|
<PortBinding ContainerPort="80" EndpointRef="MarketingApiTypeEndpoint"/> |
|
|
|
</ContainerHostPolicies> |
|
|
|
</Policies> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="PaymentApiPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
<Policies> |
|
|
|
<ContainerHostPolicies CodePackageRef="Code"> |
|
|
|
<PortBinding ContainerPort="80" EndpointRef="PaymentApiTypeEndpoint"/> |
|
|
|
</ContainerHostPolicies> |
|
|
|
</Policies> |
|
|
|
</ServiceManifestImport> |
|
|
|
<ServiceManifestImport> |
|
|
|
<ServiceManifestRef ServiceManifestName="LocationsApiPkg" ServiceManifestVersion="1.0.0" /> |
|
|
|
<ConfigOverrides /> |
|
|
|
<Policies> |
|
|
|
<ContainerHostPolicies CodePackageRef="Code"> |
|
|
|
<PortBinding ContainerPort="80" EndpointRef="LocationsApiTypeEndpoint"/> |
|
|
|
</ContainerHostPolicies> |
|
|
|
</Policies> |
|
|
|
</ServiceManifestImport> |
|
|
|
<DefaultServices> |
|
|
|
<!-- The section below creates instances of service types, when an instance of this |
|
|
|
application type is created. You can also create one or more instances of service type using the |
|
|
|
ServiceFabric PowerShell module. |
|
|
|
|
|
|
|
The attribute ServiceTypeName below must match the name defined in the imported ServiceManifest.xml file. --> |
|
|
|
<Service Name="MarketingApi" ServicePackageActivationMode="ExclusiveProcess"> |
|
|
|
<Service Name="BasketData"> |
|
|
|
<StatelessService ServiceTypeName="BasketDataType" InstanceCount="[BasketData_InstanceCount]"> |
|
|
|
<SingletonPartition /> |
|
|
|
</StatelessService> |
|
|
|
</Service> |
|
|
|
<Service Name="LocationsApi"> |
|
|
|
<StatelessService ServiceTypeName="LocationsApiType" InstanceCount="[LocationsApi_InstanceCount]"> |
|
|
|
<SingletonPartition /> |
|
|
|
</StatelessService> |
|
|
|
</Service> |
|
|
|
<Service Name="PaymentApi"> |
|
|
|
<StatelessService ServiceTypeName="PaymentApiType" InstanceCount="[PaymentApi_InstanceCount]"> |
|
|
|
<SingletonPartition /> |
|
|
|
</StatelessService> |
|
|
|
</Service> |
|
|
|
<Service Name="MarketingApi"> |
|
|
|
<StatelessService ServiceTypeName="MarketingApiType" InstanceCount="[MarketingApi_InstanceCount]"> |
|
|
|
<SingletonPartition /> |
|
|
|
</StatelessService> |
|
|
|
</Service> |
|
|
|
<Service Name="GracePeriodManager" ServicePackageActivationMode="ExclusiveProcess"> |
|
|
|
<Service Name="GracePeriodManager"> |
|
|
|
<StatelessService ServiceTypeName="GracePeriodManagerType" InstanceCount="[GracePeriodManager_InstanceCount]"> |
|
|
|
<SingletonPartition /> |
|
|
|
</StatelessService> |
|
|
|
</Service> |
|
|
|
<Service Name="MongoDb" ServicePackageActivationMode="ExclusiveProcess"> |
|
|
|
<Service Name="MongoDb"> |
|
|
|
<StatelessService ServiceTypeName="MongoDbType" InstanceCount="[MongoDb_InstanceCount]"> |
|
|
|
<SingletonPartition /> |
|
|
|
</StatelessService> |
|
|
@ -210,11 +211,6 @@ |
|
|
|
<SingletonPartition /> |
|
|
|
</StatelessService> |
|
|
|
</Service> |
|
|
|
<Service Name="Redis"> |
|
|
|
<StatelessService ServiceTypeName="RedisType" InstanceCount="[Redis_InstanceCount]"> |
|
|
|
<SingletonPartition /> |
|
|
|
</StatelessService> |
|
|
|
</Service> |
|
|
|
<Service Name="Rabbit"> |
|
|
|
<StatelessService ServiceTypeName="RabbitType" InstanceCount="[Rabbit_InstanceCount]"> |
|
|
|
<SingletonPartition /> |
|
|
@ -230,8 +226,8 @@ |
|
|
|
<SingletonPartition /> |
|
|
|
</StatelessService> |
|
|
|
</Service> |
|
|
|
<Service Name="CatalogAPI"> |
|
|
|
<StatelessService ServiceTypeName="CatalogAPIType" InstanceCount="[CatalogAPI_InstanceCount]"> |
|
|
|
<Service Name="CatalogApi"> |
|
|
|
<StatelessService ServiceTypeName="CatalogApiType" InstanceCount="[CatalogApi_InstanceCount]"> |
|
|
|
<SingletonPartition /> |
|
|
|
</StatelessService> |
|
|
|
</Service> |
|
|
|