Microsoft.ServiceFabric 叢集/應用程式/服務 2020-12-01-preview
Bicep 資源定義
叢集/應用程式/服務資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.ServiceFabric/clusters/applications/services 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.ServiceFabric/clusters/applications/services@2020-12-01-preview' = {
parent: resourceSymbolicName
location: 'string'
name: 'string'
properties: {
correlationScheme: [
{
scheme: 'string'
serviceName: 'string'
}
]
defaultMoveCost: 'string'
partitionDescription: {
partitionScheme: 'string'
// For remaining properties, see PartitionSchemeDescription objects
}
placementConstraints: 'string'
serviceDnsName: 'string'
serviceLoadMetrics: [
{
defaultLoad: int
name: 'string'
primaryDefaultLoad: int
secondaryDefaultLoad: int
weight: 'string'
}
]
servicePackageActivationMode: 'string'
servicePlacementPolicies: [
{
type: 'string'
// For remaining properties, see ServicePlacementPolicyDescription objects
}
]
serviceTypeName: 'string'
serviceKind: 'string'
// For remaining properties, see ServiceResourceProperties objects
}
tags: {
{customized property}: 'string'
}
}
ServiceResourceProperties 物件
設定 serviceKind 屬性,以指定物件的類型。
針對 具狀態,請使用:
{
hasPersistedState: bool
minReplicaSetSize: int
quorumLossWaitDuration: 'string'
replicaRestartWaitDuration: 'string'
serviceKind: 'Stateful'
standByReplicaKeepDuration: 'string'
targetReplicaSetSize: int
}
針對 無狀態,請使用:
{
instanceCloseDelayDuration: 'string'
instanceCount: int
serviceKind: 'Stateless'
}
PartitionSchemeDescription 物件
設定 partitionScheme 屬性,以指定對象的類型。
針對 具名,請使用:
{
count: int
names: [
'string'
]
partitionScheme: 'Named'
}
針對 Singleton,請使用:
{
partitionScheme: 'Singleton'
}
針對 UniformInt64Range,請使用:
{
count: int
highKey: 'string'
lowKey: 'string'
partitionScheme: 'UniformInt64Range'
}
ServicePlacementPolicyDescription 物件
設定 類型 屬性,以指定物件的類型。
屬性值
Microsoft.ServiceFabric/clusters/applications/services
名字 | 描述 | 價值 |
---|---|---|
位置 | 它會在新的 API 中淘汰,資源位置取決於父資源。 | 字串 |
名字 | 資源名稱 | 字串 (必要) |
父母 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:叢集/應用程式 |
性能 | 服務資源屬性。 | ServiceResourceProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
NamedPartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
計數 | 數據分割的數目。 | int (必要) |
名字 | 'count' 參數所指定之大小陣列,以取得資料分割的名稱。 | string[] (必要) |
partitionScheme | 指定如何分割服務。 | 'Named' (必要) |
PartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
partitionScheme | 針對 type NamedPartitionSchemeDescription,設定為 'Named'。 針對 type SingletonPartitionSchemeDescription,設定為 'Singleton'。 針對 UniformInt64RangePartitionSchemeDescription 類型設定為 'UniformInt64Range',。 | 'Named' 'Singleton' 'UniformInt64Range' (必要) |
ProxyResourceTags
名字 | 描述 | 價值 |
---|
ServiceCorrelationDescription
名字 | 描述 | 價值 |
---|---|---|
方案 | ServiceCorrelationScheme,描述此服務與透過 ServiceName 指定的服務之間的關聯性。 | 'Affinity' 'AlignedAffinity' 'Invalid' 'NonAlignedAffinity' (必要) |
serviceName | 建立相互關聯性的服務名稱。 | 字串 (必要) |
ServiceLoadMetricDescription
名字 | 描述 | 價值 |
---|---|---|
defaultLoad | 僅適用於無狀態服務。 此服務為此計量所建立的預設負載量,以數位表示。 | int |
名字 | 計量的名稱。 如果服務選擇在運行時間報告負載,載入計量名稱應該完全符合 Name 中指定的名稱。 請注意,計量名稱區分大小寫。 | 字串 (必要) |
primaryDefaultLoad | 僅適用於具狀態服務。 當此服務是主要複本時,此服務針對此計量所建立的預設負載量,以數位表示。 | int |
secondaryDefaultLoad | 僅適用於具狀態服務。 當此服務是次要複本時,此服務針對此計量所建立的預設負載量,以數位表示。 | int |
重量 | 相較於為此服務設定的其他計量,服務負載計量相對權數為數位。 | 'High' 'Low' 'Medium' 'Zero' |
ServicePlacementPolicyDescription
名字 | 描述 | 價值 |
---|---|---|
類型 | (必要) |
ServiceResourceProperties
名字 | 描述 | 價值 |
---|---|---|
correlationScheme | 描述服務與其他服務相互關聯的清單。 | ServiceCorrelationDescription[] |
defaultMoveCost | 指定服務的移動成本。 | 'High' 'Low' 'Medium' 'Zero' |
partitionDescription | 描述如何分割服務。 | PartitionSchemeDescription |
placementConstraints | 放置條件約束做為字串。 放置條件約束是節點屬性上的布爾表達式,允許根據服務需求將服務限制為特定節點。 例如,若要將服務放在 NodeType 為藍色的節點上,請指定下列專案:“NodeColor == blue)”。 | 字串 |
serviceDnsName | 用於服務的 Dns 名稱。 如果指定此專案,則可以透過其 DNS 名稱存取服務,而不是服務名稱。 | 字串 |
serviceKind | 針對 statefulServiceProperties 類型 設定為 'Stateful'。 將 類型設為 'Stateless' StatelessServiceProperties。 | '具狀態' '無狀態' (必要) |
serviceLoadMetrics | 服務負載計量會指定為 ServiceLoadMetricDescription 物件的陣列。 | ServiceLoadMetricDescription[] |
servicePackageActivationMode | 服務套件的啟用模式 | 'ExclusiveProcess' 'SharedProcess' |
servicePlacementPolicies | 描述服務與其他服務相互關聯的清單。 | ServicePlacementPolicyDescription[] |
serviceTypeName | 服務類型的名稱 | 字串 |
SingletonPartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
partitionScheme | 指定如何分割服務。 | 'Singleton' (必要) |
StatefulServiceProperties
名字 | 描述 | 價值 |
---|---|---|
hasPersistedState | 旗標,指出這是否為永續性服務,它會將狀態儲存在本機磁碟上。 如果是,則此屬性的值為 true,如果不是 false,則為 false。 | bool |
minReplicaSetSize | 復本集大小下限為數位。 | int 約束: 最小值 = 1 |
quorumLossWaitDuration | 允許分割區處於仲裁遺失狀態的最大持續時間,以 ISO 8601 格式 (hh:mm:ss.ss.s) 表示。 | 字串 |
replicaRestartWaitDuration | 復本關閉和建立新復本的持續時間,以 ISO 8601 格式表示(hh:mm:ss.s)。 | 字串 |
serviceKind | 服務種類(無狀態或具狀態)。 | '具狀態' (必要) |
standByReplicaKeepDuration | 在移除之前,應該維護 StandBy 複本長度的定義,以 ISO 8601 格式表示(hh:mm:ss.s)。 | 字串 |
targetReplicaSetSize | 目標副本集大小為數位。 | int 約束: 最小值 = 1 |
StatelessServiceProperties
名字 | 描述 | 價值 |
---|---|---|
instanceCloseDelayDuration | RequestDrain 功能的延遲持續時間,可確保在關閉實例之前,先移除無狀態實例公告的端點。 此延遲可讓現有要求在實例實際關閉之前正常清空(/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview)。 它以 ISO 8601 格式表示(hh:mm:ss.s)。 | 字串 |
instanceCount | 實例計數。 | int 約束: 最小值 = -1 |
serviceKind | 服務種類(無狀態或具狀態)。 | '無狀態' (必要) |
UniformInt64RangePartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
計數 | 數據分割的數目。 | int (必要) |
highKey | 字串,指出分割區索引鍵範圍的上限 應該分割分割區 'count' |
字串 (必要) |
lowKey | 字串,指出分割區索引鍵範圍的下限 應該分割分割區 'count' |
字串 (必要) |
partitionScheme | 指定如何分割服務。 | 'UniformInt64Range' (必要) |
ARM 樣本資源定義
叢集/應用程式/服務資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.ServiceFabric/clusters/applications/services 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.ServiceFabric/clusters/applications/services",
"apiVersion": "2020-12-01-preview",
"name": "string",
"location": "string",
"properties": {
"correlationScheme": [
{
"scheme": "string",
"serviceName": "string"
}
],
"defaultMoveCost": "string",
"partitionDescription": {
"partitionScheme": "string"
// For remaining properties, see PartitionSchemeDescription objects
},
"placementConstraints": "string",
"serviceDnsName": "string",
"serviceLoadMetrics": [
{
"defaultLoad": "int",
"name": "string",
"primaryDefaultLoad": "int",
"secondaryDefaultLoad": "int",
"weight": "string"
}
],
"servicePackageActivationMode": "string",
"servicePlacementPolicies": [ {
"type": "string"
// For remaining properties, see ServicePlacementPolicyDescription objects
} ],
"serviceTypeName": "string",
"serviceKind": "string"
// For remaining properties, see ServiceResourceProperties objects
},
"tags": {
"{customized property}": "string"
}
}
ServiceResourceProperties 物件
設定 serviceKind 屬性,以指定物件的類型。
針對 具狀態,請使用:
{
"hasPersistedState": "bool",
"minReplicaSetSize": "int",
"quorumLossWaitDuration": "string",
"replicaRestartWaitDuration": "string",
"serviceKind": "Stateful",
"standByReplicaKeepDuration": "string",
"targetReplicaSetSize": "int"
}
針對 無狀態,請使用:
{
"instanceCloseDelayDuration": "string",
"instanceCount": "int",
"serviceKind": "Stateless"
}
PartitionSchemeDescription 物件
設定 partitionScheme 屬性,以指定對象的類型。
針對 具名,請使用:
{
"count": "int",
"names": [ "string" ],
"partitionScheme": "Named"
}
針對 Singleton,請使用:
{
"partitionScheme": "Singleton"
}
針對 UniformInt64Range,請使用:
{
"count": "int",
"highKey": "string",
"lowKey": "string",
"partitionScheme": "UniformInt64Range"
}
ServicePlacementPolicyDescription 物件
設定 類型 屬性,以指定物件的類型。
屬性值
Microsoft.ServiceFabric/clusters/applications/services
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2020-12-01-preview' |
位置 | 它會在新的 API 中淘汰,資源位置取決於父資源。 | 字串 |
名字 | 資源名稱 | 字串 (必要) |
性能 | 服務資源屬性。 | ServiceResourceProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 | 資源類型 | 'Microsoft.ServiceFabric/clusters/applications/services' |
NamedPartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
計數 | 數據分割的數目。 | int (必要) |
名字 | 'count' 參數所指定之大小陣列,以取得資料分割的名稱。 | string[] (必要) |
partitionScheme | 指定如何分割服務。 | 'Named' (必要) |
PartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
partitionScheme | 針對 type NamedPartitionSchemeDescription,設定為 'Named'。 針對 type SingletonPartitionSchemeDescription,設定為 'Singleton'。 針對 UniformInt64RangePartitionSchemeDescription 類型設定為 'UniformInt64Range',。 | 'Named' 'Singleton' 'UniformInt64Range' (必要) |
ProxyResourceTags
名字 | 描述 | 價值 |
---|
ServiceCorrelationDescription
名字 | 描述 | 價值 |
---|---|---|
方案 | ServiceCorrelationScheme,描述此服務與透過 ServiceName 指定的服務之間的關聯性。 | 'Affinity' 'AlignedAffinity' 'Invalid' 'NonAlignedAffinity' (必要) |
serviceName | 建立相互關聯性的服務名稱。 | 字串 (必要) |
ServiceLoadMetricDescription
名字 | 描述 | 價值 |
---|---|---|
defaultLoad | 僅適用於無狀態服務。 此服務為此計量所建立的預設負載量,以數位表示。 | int |
名字 | 計量的名稱。 如果服務選擇在運行時間報告負載,載入計量名稱應該完全符合 Name 中指定的名稱。 請注意,計量名稱區分大小寫。 | 字串 (必要) |
primaryDefaultLoad | 僅適用於具狀態服務。 當此服務是主要複本時,此服務針對此計量所建立的預設負載量,以數位表示。 | int |
secondaryDefaultLoad | 僅適用於具狀態服務。 當此服務是次要複本時,此服務針對此計量所建立的預設負載量,以數位表示。 | int |
重量 | 相較於為此服務設定的其他計量,服務負載計量相對權數為數位。 | 'High' 'Low' 'Medium' 'Zero' |
ServicePlacementPolicyDescription
名字 | 描述 | 價值 |
---|---|---|
類型 | (必要) |
ServiceResourceProperties
名字 | 描述 | 價值 |
---|---|---|
correlationScheme | 描述服務與其他服務相互關聯的清單。 | ServiceCorrelationDescription[] |
defaultMoveCost | 指定服務的移動成本。 | 'High' 'Low' 'Medium' 'Zero' |
partitionDescription | 描述如何分割服務。 | PartitionSchemeDescription |
placementConstraints | 放置條件約束做為字串。 放置條件約束是節點屬性上的布爾表達式,允許根據服務需求將服務限制為特定節點。 例如,若要將服務放在 NodeType 為藍色的節點上,請指定下列專案:“NodeColor == blue)”。 | 字串 |
serviceDnsName | 用於服務的 Dns 名稱。 如果指定此專案,則可以透過其 DNS 名稱存取服務,而不是服務名稱。 | 字串 |
serviceKind | 針對 statefulServiceProperties 類型 設定為 'Stateful'。 將 類型設為 'Stateless' StatelessServiceProperties。 | '具狀態' '無狀態' (必要) |
serviceLoadMetrics | 服務負載計量會指定為 ServiceLoadMetricDescription 物件的陣列。 | ServiceLoadMetricDescription[] |
servicePackageActivationMode | 服務套件的啟用模式 | 'ExclusiveProcess' 'SharedProcess' |
servicePlacementPolicies | 描述服務與其他服務相互關聯的清單。 | ServicePlacementPolicyDescription[] |
serviceTypeName | 服務類型的名稱 | 字串 |
SingletonPartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
partitionScheme | 指定如何分割服務。 | 'Singleton' (必要) |
StatefulServiceProperties
名字 | 描述 | 價值 |
---|---|---|
hasPersistedState | 旗標,指出這是否為永續性服務,它會將狀態儲存在本機磁碟上。 如果是,則此屬性的值為 true,如果不是 false,則為 false。 | bool |
minReplicaSetSize | 復本集大小下限為數位。 | int 約束: 最小值 = 1 |
quorumLossWaitDuration | 允許分割區處於仲裁遺失狀態的最大持續時間,以 ISO 8601 格式 (hh:mm:ss.ss.s) 表示。 | 字串 |
replicaRestartWaitDuration | 復本關閉和建立新復本的持續時間,以 ISO 8601 格式表示(hh:mm:ss.s)。 | 字串 |
serviceKind | 服務種類(無狀態或具狀態)。 | '具狀態' (必要) |
standByReplicaKeepDuration | 在移除之前,應該維護 StandBy 複本長度的定義,以 ISO 8601 格式表示(hh:mm:ss.s)。 | 字串 |
targetReplicaSetSize | 目標副本集大小為數位。 | int 約束: 最小值 = 1 |
StatelessServiceProperties
名字 | 描述 | 價值 |
---|---|---|
instanceCloseDelayDuration | RequestDrain 功能的延遲持續時間,可確保在關閉實例之前,先移除無狀態實例公告的端點。 此延遲可讓現有要求在實例實際關閉之前正常清空(/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview)。 它以 ISO 8601 格式表示(hh:mm:ss.s)。 | 字串 |
instanceCount | 實例計數。 | int 約束: 最小值 = -1 |
serviceKind | 服務種類(無狀態或具狀態)。 | '無狀態' (必要) |
UniformInt64RangePartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
計數 | 數據分割的數目。 | int (必要) |
highKey | 字串,指出分割區索引鍵範圍的上限 應該分割分割區 'count' |
字串 (必要) |
lowKey | 字串,指出分割區索引鍵範圍的下限 應該分割分割區 'count' |
字串 (必要) |
partitionScheme | 指定如何分割服務。 | 'UniformInt64Range' (必要) |
Terraform (AzAPI 提供者) 資源定義
叢集/應用程式/服務資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.ServiceFabric/clusters/applications/services 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.ServiceFabric/clusters/applications/services@2020-12-01-preview"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
correlationScheme = [
{
scheme = "string"
serviceName = "string"
}
]
defaultMoveCost = "string"
partitionDescription = {
partitionScheme = "string"
// For remaining properties, see PartitionSchemeDescription objects
}
placementConstraints = "string"
serviceDnsName = "string"
serviceLoadMetrics = [
{
defaultLoad = int
name = "string"
primaryDefaultLoad = int
secondaryDefaultLoad = int
weight = "string"
}
]
servicePackageActivationMode = "string"
servicePlacementPolicies = [
{
type = "string"
// For remaining properties, see ServicePlacementPolicyDescription objects
}
]
serviceTypeName = "string"
serviceKind = "string"
// For remaining properties, see ServiceResourceProperties objects
}
})
}
ServiceResourceProperties 物件
設定 serviceKind 屬性,以指定物件的類型。
針對 具狀態,請使用:
{
hasPersistedState = bool
minReplicaSetSize = int
quorumLossWaitDuration = "string"
replicaRestartWaitDuration = "string"
serviceKind = "Stateful"
standByReplicaKeepDuration = "string"
targetReplicaSetSize = int
}
針對 無狀態,請使用:
{
instanceCloseDelayDuration = "string"
instanceCount = int
serviceKind = "Stateless"
}
PartitionSchemeDescription 物件
設定 partitionScheme 屬性,以指定對象的類型。
針對 具名,請使用:
{
count = int
names = [
"string"
]
partitionScheme = "Named"
}
針對 Singleton,請使用:
{
partitionScheme = "Singleton"
}
針對 UniformInt64Range,請使用:
{
count = int
highKey = "string"
lowKey = "string"
partitionScheme = "UniformInt64Range"
}
ServicePlacementPolicyDescription 物件
設定 類型 屬性,以指定物件的類型。
屬性值
Microsoft.ServiceFabric/clusters/applications/services
名字 | 描述 | 價值 |
---|---|---|
位置 | 它會在新的 API 中淘汰,資源位置取決於父資源。 | 字串 |
名字 | 資源名稱 | 字串 (必要) |
parent_id | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:叢集/應用程式 |
性能 | 服務資源屬性。 | ServiceResourceProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 |
類型 | 資源類型 | “Microsoft.ServiceFabric/clusters/applications/services@2020-12-01-preview” |
NamedPartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
計數 | 數據分割的數目。 | int (必要) |
名字 | 'count' 參數所指定之大小陣列,以取得資料分割的名稱。 | string[] (必要) |
partitionScheme | 指定如何分割服務。 | 'Named' (必要) |
PartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
partitionScheme | 針對 type NamedPartitionSchemeDescription,設定為 'Named'。 針對 type SingletonPartitionSchemeDescription,設定為 'Singleton'。 針對 UniformInt64RangePartitionSchemeDescription 類型設定為 'UniformInt64Range',。 | 'Named' 'Singleton' 'UniformInt64Range' (必要) |
ProxyResourceTags
名字 | 描述 | 價值 |
---|
ServiceCorrelationDescription
名字 | 描述 | 價值 |
---|---|---|
方案 | ServiceCorrelationScheme,描述此服務與透過 ServiceName 指定的服務之間的關聯性。 | 'Affinity' 'AlignedAffinity' 'Invalid' 'NonAlignedAffinity' (必要) |
serviceName | 建立相互關聯性的服務名稱。 | 字串 (必要) |
ServiceLoadMetricDescription
名字 | 描述 | 價值 |
---|---|---|
defaultLoad | 僅適用於無狀態服務。 此服務為此計量所建立的預設負載量,以數位表示。 | int |
名字 | 計量的名稱。 如果服務選擇在運行時間報告負載,載入計量名稱應該完全符合 Name 中指定的名稱。 請注意,計量名稱區分大小寫。 | 字串 (必要) |
primaryDefaultLoad | 僅適用於具狀態服務。 當此服務是主要複本時,此服務針對此計量所建立的預設負載量,以數位表示。 | int |
secondaryDefaultLoad | 僅適用於具狀態服務。 當此服務是次要複本時,此服務針對此計量所建立的預設負載量,以數位表示。 | int |
重量 | 相較於為此服務設定的其他計量,服務負載計量相對權數為數位。 | 'High' 'Low' 'Medium' 'Zero' |
ServicePlacementPolicyDescription
名字 | 描述 | 價值 |
---|---|---|
類型 | (必要) |
ServiceResourceProperties
名字 | 描述 | 價值 |
---|---|---|
correlationScheme | 描述服務與其他服務相互關聯的清單。 | ServiceCorrelationDescription[] |
defaultMoveCost | 指定服務的移動成本。 | 'High' 'Low' 'Medium' 'Zero' |
partitionDescription | 描述如何分割服務。 | PartitionSchemeDescription |
placementConstraints | 放置條件約束做為字串。 放置條件約束是節點屬性上的布爾表達式,允許根據服務需求將服務限制為特定節點。 例如,若要將服務放在 NodeType 為藍色的節點上,請指定下列專案:“NodeColor == blue)”。 | 字串 |
serviceDnsName | 用於服務的 Dns 名稱。 如果指定此專案,則可以透過其 DNS 名稱存取服務,而不是服務名稱。 | 字串 |
serviceKind | 針對 statefulServiceProperties 類型 設定為 'Stateful'。 將 類型設為 'Stateless' StatelessServiceProperties。 | '具狀態' '無狀態' (必要) |
serviceLoadMetrics | 服務負載計量會指定為 ServiceLoadMetricDescription 物件的陣列。 | ServiceLoadMetricDescription[] |
servicePackageActivationMode | 服務套件的啟用模式 | 'ExclusiveProcess' 'SharedProcess' |
servicePlacementPolicies | 描述服務與其他服務相互關聯的清單。 | ServicePlacementPolicyDescription[] |
serviceTypeName | 服務類型的名稱 | 字串 |
SingletonPartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
partitionScheme | 指定如何分割服務。 | 'Singleton' (必要) |
StatefulServiceProperties
名字 | 描述 | 價值 |
---|---|---|
hasPersistedState | 旗標,指出這是否為永續性服務,它會將狀態儲存在本機磁碟上。 如果是,則此屬性的值為 true,如果不是 false,則為 false。 | bool |
minReplicaSetSize | 復本集大小下限為數位。 | int 約束: 最小值 = 1 |
quorumLossWaitDuration | 允許分割區處於仲裁遺失狀態的最大持續時間,以 ISO 8601 格式 (hh:mm:ss.ss.s) 表示。 | 字串 |
replicaRestartWaitDuration | 復本關閉和建立新復本的持續時間,以 ISO 8601 格式表示(hh:mm:ss.s)。 | 字串 |
serviceKind | 服務種類(無狀態或具狀態)。 | '具狀態' (必要) |
standByReplicaKeepDuration | 在移除之前,應該維護 StandBy 複本長度的定義,以 ISO 8601 格式表示(hh:mm:ss.s)。 | 字串 |
targetReplicaSetSize | 目標副本集大小為數位。 | int 約束: 最小值 = 1 |
StatelessServiceProperties
名字 | 描述 | 價值 |
---|---|---|
instanceCloseDelayDuration | RequestDrain 功能的延遲持續時間,可確保在關閉實例之前,先移除無狀態實例公告的端點。 此延遲可讓現有要求在實例實際關閉之前正常清空(/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview)。 它以 ISO 8601 格式表示(hh:mm:ss.s)。 | 字串 |
instanceCount | 實例計數。 | int 約束: 最小值 = -1 |
serviceKind | 服務種類(無狀態或具狀態)。 | '無狀態' (必要) |
UniformInt64RangePartitionSchemeDescription
名字 | 描述 | 價值 |
---|---|---|
計數 | 數據分割的數目。 | int (必要) |
highKey | 字串,指出分割區索引鍵範圍的上限 應該分割分割區 'count' |
字串 (必要) |
lowKey | 字串,指出分割區索引鍵範圍的下限 應該分割分割區 'count' |
字串 (必要) |
partitionScheme | 指定如何分割服務。 | 'UniformInt64Range' (必要) |