无法在Service Fabric的clusterconfig.json中设置KtlLogger

时间:2016-05-25 19:13:48

标签: azure-service-fabric

我在自托管系统上在Servcie Fabric中设置KtlLogger时遇到了麻烦。

KtlLogger默认预先分配8GB的磁盘空间。我们正在一些磁盘空间有限的测试机器上部署它。我试图改变json有类似的东西:

"fabricSettings" : [{
                "name" : "Setup",
                "parameters" : [{
                        "name" : "FabricDataRoot",
                        "value" : "C:\\Service Fabric\\Data"
                    }, {
                        "name" : "FabricLogRoot",
                        "value" : "C:\\Service Fabric\\Log"
                    }
                ]
            }, {
                "name" : "KtlLogger",
                "parameters": [{
                        "name" : "SharedLogSizeInMB",
                        "value" : "3072"
                    }
                ]
            }
        ]

这会产生错误:

Create Cluster failed with exception: System.AggregateException: One or more errors occurred. ---> System.Fabric.WRPComm
on.ValidationException
at System.Fabric.WRPServiceCommon.Common.SettingsValidator.ValidateFabricSettings()
at System.Fabric.WRPServiceCommon.Common.DeployAnywhereSettingsValidator.Validate(Boolean isNewResource)
at System.Fabric.JsonImpl.ManifestConverter.ConvertFromJsonToXml(String jsonClusterConfigPath)
at System.Fabric.DeploymentManager.<CreateClusterAsyncInternal>d__a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Fabric.DeploymentManager.<CreateClusterAsync>d__0.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.ServiceFabric.Powershell.ClusterCmdletBase.NewCluster(String clusterConfigurationFilePath, String fabric
PackageSourcePath, Boolean rollbackOnFailure)
---> (Inner Exception #0) System.Fabric.WRPCommon.ValidationException
at System.Fabric.WRPServiceCommon.Common.SettingsValidator.ValidateFabricSettings()
at System.Fabric.WRPServiceCommon.Common.DeployAnywhereSettingsValidator.Validate(Boolean isNewResource)
at System.Fabric.JsonImpl.ManifestConverter.ConvertFromJsonToXml(String jsonClusterConfigPath)
at System.Fabric.DeploymentManager.<CreateClusterAsyncInternal>d__a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Fabric.DeploymentManager.<CreateClusterAsync>d__0.MoveNext()<---

任何人都知道如何覆盖默认的SharedLogSizeInMB?

0 个答案:

没有答案