-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathApplicationManifest.xml
72 lines (71 loc) · 3.58 KB
/
ApplicationManifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="utf-8"?>
<ApplicationManifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ApplicationTypeName="AzureServiceFabric.Demo.DiagnosticsType" ApplicationTypeVersion="1.0.0" xmlns="http://schemas.microsoft.com/2011/01/fabric">
<Parameters>
<Parameter Name="WebApi_InstanceCount" DefaultValue="-1" />
<Parameter Name="MyStateless_InstanceCount" DefaultValue="-1" />
<Parameter Name="ApplicationInsightsKey" DefaultValue="[ApplicationInsightsKey]" />
<Parameter Name="MyActorService_PartitionCount" DefaultValue="10" />
<Parameter Name="MyActorService_MinReplicaSetSize" DefaultValue="3" />
<Parameter Name="MyActorService_TargetReplicaSetSize" DefaultValue="3" />
</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="MyActorPkg" ServiceManifestVersion="1.0.0" />
<ConfigOverrides>
<ConfigOverride Name="Config">
<Settings>
<Section Name="ConfigurationSection">
<Parameter Name="ApplicationInsightsKey" Value="[ApplicationInsightsKey]" />
</Section>
</Settings>
</ConfigOverride>
</ConfigOverrides>
</ServiceManifestImport>
<ServiceManifestImport>
<ServiceManifestRef ServiceManifestName="WebApiPkg" ServiceManifestVersion="1.0.0" />
<ConfigOverrides>
<ConfigOverride Name="Config">
<Settings>
<Section Name="ConfigurationSection">
<Parameter Name="ApplicationInsightsKey" Value="[ApplicationInsightsKey]" />
</Section>
</Settings>
</ConfigOverride>
</ConfigOverrides>
</ServiceManifestImport>
<ServiceManifestImport>
<ServiceManifestRef ServiceManifestName="MyStatelessPkg" ServiceManifestVersion="1.0.0" />
<ConfigOverrides>
<ConfigOverride Name="Config">
<Settings>
<Section Name="ConfigurationSection">
<Parameter Name="ApplicationInsightsKey" Value="[ApplicationInsightsKey]" />
</Section>
</Settings>
</ConfigOverride>
</ConfigOverrides>
</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="WebApi">
<StatelessService ServiceTypeName="WebApiType" InstanceCount="[WebApi_InstanceCount]">
<SingletonPartition />
</StatelessService>
</Service>
<Service Name="MyStateless">
<StatelessService ServiceTypeName="MyStatelessType" InstanceCount="[MyStateless_InstanceCount]">
<SingletonPartition />
</StatelessService>
</Service>
<Service Name="MyActorService" GeneratedIdRef="15401979-3782-48a3-b91f-4f903d0cb963|Persisted">
<StatefulService ServiceTypeName="MyActorServiceType" TargetReplicaSetSize="[MyActorService_TargetReplicaSetSize]" MinReplicaSetSize="[MyActorService_MinReplicaSetSize]">
<UniformInt64Partition PartitionCount="[MyActorService_PartitionCount]" LowKey="-9223372036854775808" HighKey="9223372036854775807" />
</StatefulService>
</Service>
</DefaultServices>
</ApplicationManifest>