many log files on azure service fabric

拟墨画扇 提交于 2019-12-12 10:57:35

问题


I have a azure service fabric development cluster running locally with two applications.

After a two week holiday I come back and see that my hard drive is completely full, consequently nothing really works anymore.

the sfdevcluster\log\traces folder has many *.etl files all larger than 100MB. And all kinds of other log files > 250 MB are present

So my questions: how to disable tracing/logging on azure service fabric and are there tools to administer log files?


回答1:


This turned out to be a bug in Service Fabric, upgrade your local cluster to the latest version 6.1.472.9494 which will fix the issue. more details here




回答2:


The powerShell script file that does the cluster setup magic is:

Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\DevClusterSetup.ps1

Looking inside, there is a function called DeployNodeConfiguration which sets the logs and data path using the PowerShell command New-ServiceFabricNodeConfiguration. Unfortunately, It does not seem that there is a way to limit the size of those folders.

I believe that your slowness / freeze is due to insufficient space on the OS drive (happened to me too haha). A workaround can be to set the location of those folders to a non-OS drive with a limited amount of space.

Hope this helps



来源:https://stackoverflow.com/questions/39763013/many-log-files-on-azure-service-fabric

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!