问题描述
有问题的文件为 replicatorshared.log ,它是计算机上最大的单个文件,甚至大于Windows 10交换文件.我可以停止集群并删除文件,并且在集群启动时将再次创建该文件.
The file in question is replicatorshared.log, and it is the largest single file on my machine, even larger than the Windows 10 swap file. I can stop the cluster and delete the file, and it will be created again when the cluster starts.
-
我可以控制此文件的初始大小吗?
Can I control the initial size of this file?
此文件的用途是什么,它在一开始就需要很大?
What is this file used for that it needs to be so large at the outset?
推荐答案
查看此文档以获取更多信息:
Check out this doc for more info:
您要修改的设置是SharedLogSizeInMB.
The setting you are interested in modifying is SharedLogSizeInMB.
另请参阅: https://github.com/Azure/service- fabric-issues/issues/138
根据您的环境,配置将如下所示:
Depending on your environment the config will look like this:
<Section Name="KtlLogger">
<Parameter Name="SharedLogSizeInMB" Value="4096"/>
</Section>
或者这个:
"fabricSettings": [
{
"name": "KtlLogger",
"parameters": [
{
"name": "SharedLogSizeInMB",
"value": "4096"
}
]
}
]
这篇关于群集启动时,Service Fabric本地群集会创建8 GB文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!