From 43767e3697da84684e7e77684e9651743083f6b4 Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Fri, 3 Apr 2020 17:15:29 -0700 Subject: [PATCH] adding serviceDnsName to service, instanceCloseDelayDuration to stateless service and ApplicationTypeVersionsCleanupPolicy to cluster --- .../2019-11-01-preview/application.json | 12 +++++++++++ .../preview/2019-11-01-preview/cluster.json | 20 +++++++++++++++++++ .../ClusterPutOperation_example_max.json | 15 +++++++++++--- .../ServicePutOperation_example_max.json | 8 ++++++-- 4 files changed, 50 insertions(+), 5 deletions(-) diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json index 4ae0382caf94..0c05124b3ff9 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json @@ -1998,6 +1998,10 @@ } ] } + }, + "serviceDnsName": { + "type": "string", + "description": "Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name." } } }, @@ -2161,6 +2165,10 @@ "type": "integer", "minimum": -1, "description": "The instance count." + }, + "instanceCloseDelayDuration": { + "type": "string", + "description": "Delay duration for RequestDrain feature to ensures that the endpoint advertised by the stateless instance is removed before the delay starts prior to closing the instance. This delay enables existing requests to drain gracefully before the instance actually goes down (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview). It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds." } } }, @@ -2177,6 +2185,10 @@ "type": "integer", "minimum": -1, "description": "The instance count." + }, + "instanceCloseDelayDuration": { + "type": "string", + "description": "Delay duration for RequestDrain feature to ensures that the endpoint advertised by the stateless instance is removed before the delay starts prior to closing the instance. This delay enables existing requests to drain gracefully before the instance actually goes down (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview). It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds." } } }, diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json index 008aa9eafbfe..36558717a519 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json @@ -510,6 +510,18 @@ "ResourceMonitorService" ] }, + "ApplicationTypeVersionsCleanupPolicy": { + "required": [ + "maxUnusedVersionsToKeep" + ], + "properties": { + "maxUnusedVersionsToKeep": { + "type": "integer", + "minimum": 0, + "description": "Number of unused versions per application type to keep." + } + } + }, "ApplicationDeltaHealthPolicy": { "type": "object", "description": "Defines a delta health policy used to evaluate the health of an application or one of its child entities when upgrading the cluster.\n", @@ -882,6 +894,10 @@ "$ref": "#/definitions/UpgradeMode", "description": "The upgrade mode of the cluster when new Service Fabric runtime version is available.\n\n - Automatic - The cluster will be automatically upgraded to the latest Service Fabric runtime version as soon as it is available.\n - Manual - The cluster will not be automatically upgraded to the latest Service Fabric runtime version. The cluster is upgraded by setting the **clusterCodeVersion** property in the cluster resource.\n" }, + "applicationTypeVersionsCleanupPolicy": { + "$ref": "#/definitions/ApplicationTypeVersionsCleanupPolicy", + "description": "The policy used to clean up unused versions." + }, "vmImage": { "type": "string", "description": "The VM image VMSS has been configured with. Generic names such as Windows or Linux can be used." @@ -957,6 +973,10 @@ "upgradeMode": { "$ref": "#/definitions/UpgradeMode", "description": "The upgrade mode of the cluster when new Service Fabric runtime version is available.\n\n - Automatic - The cluster will be automatically upgraded to the latest Service Fabric runtime version as soon as it is available.\n - Manual - The cluster will not be automatically upgraded to the latest Service Fabric runtime version. The cluster is upgraded by setting the **clusterCodeVersion** property in the cluster resource.\n" + }, + "applicationTypeVersionsCleanupPolicy": { + "$ref": "#/definitions/ApplicationTypeVersionsCleanupPolicy", + "description": "The policy used to clean up unused versions." } }, "description": "Describes the cluster resource properties that can be updated during PATCH operation." diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/examples/ClusterPutOperation_example_max.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/examples/ClusterPutOperation_example_max.json index 910c41d2a53d..47237407cf04 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/examples/ClusterPutOperation_example_max.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/examples/ClusterPutOperation_example_max.json @@ -132,7 +132,10 @@ "BackupRestoreService", "ResourceMonitorService" ], - "eventStoreServiceEnabled": true + "eventStoreServiceEnabled": true, + "applicationTypeVersionsCleanupPolicy": { + "maxUnusedVersionsToKeep": 2 + } } } }, @@ -286,7 +289,10 @@ "BackupRestoreService", "ResourceMonitorService" ], - "eventStoreServiceEnabled": true + "eventStoreServiceEnabled": true, + "applicationTypeVersionsCleanupPolicy": { + "maxUnusedVersionsToKeep": 2 + } } } }, @@ -439,7 +445,10 @@ "BackupRestoreService", "ResourceMonitorService" ], - "eventStoreServiceEnabled": true + "eventStoreServiceEnabled": true, + "applicationTypeVersionsCleanupPolicy": { + "maxUnusedVersionsToKeep": 2 + } } } } diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/examples/ServicePutOperation_example_max.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/examples/ServicePutOperation_example_max.json index e15dffe4214e..fe9e63fd28a3 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/examples/ServicePutOperation_example_max.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/examples/ServicePutOperation_example_max.json @@ -29,7 +29,9 @@ "servicePlacementPolicies": [], "defaultMoveCost": "Medium", "instanceCount": 5, - "servicePackageActivationMode": "SharedProcess" + "instanceCloseDelayDuration": "00:00:30", + "servicePackageActivationMode": "SharedProcess", + "serviceDnsName": "my.service.dns" } } }, @@ -63,7 +65,9 @@ "servicePlacementPolicies": [], "defaultMoveCost": "Medium", "instanceCount": 5, - "servicePackageActivationMode": "SharedProcess" + "instanceCloseDelayDuration": "00:00:30", + "servicePackageActivationMode": "SharedProcess", + "serviceDnsName": "my.service.dns" } } }