Remove LogEvent SequenceID or change to 64 bit ?
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- csharp
调研方向
首先阅读 issue #4139,并比较关于 SequenceID 和 Counter 的 layout-renderer wiki 页面。追踪 SequenceID 如何递增和被使用,然后确定已完成的工作是移除它、合并 renderer,还是更改其范围;完成工作需要达成一致的方向以及相应的测试。
由索引模型根据 Issue 内容生成。
描述
Random thoughts after looking at #4139. And the overhead from synchronizing cpu-caches to atomically increment a counter that very few people uses, and unexpectedly can become negative after some days.
Lets say we have an application that handles 10.000 requests/sec. This application writes a single logevent for each request.
This means the application will write 36..000.000 logevents/hour. And 864.000.000 logevents/day.
Right now the SequenceID is an integer and can hold 2,147,483,647 events, before it becomes negative. So that is 3 days without restarts. Many applications often run 7 days without restarts.
Maybe the SequenceID-property should only increment when calling the propery-getter? (Skip on constructor)
Maybe https://github.com/NLog/NLog/wiki/SequenceId-layout-renderer should be replaced by https://github.com/NLog/NLog/wiki/Counter-layout-renderer ? (Merge into one)
- 主要语言
- C#
- 星标
- 6.5k
- 派生
- 1.4k
- 平均合并
- 15 小时 27 分钟
- 30 天内合并 PR
- 23
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NLog/NLog 的其他 Issue
-
.NET Matrix未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
DateLayoutRenderer default Format should be culture invariant可能已有人在做 @HarnageaGabriel 于 70 天前认领。 未关闭breaking behavior change breaking change
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
Move away from AppVeyor and Azure Pipelines (SonarQube analysis)可能已有人在做 @304NotModified 今天认领。 未关闭
难度 4/5 3-5 天 新手友好度 45/100
维护者通常 1 天内回复
-
Switch to trusted publishing (and GitHub actions)可能已有人在做 @304NotModified 于 10 天前认领。 未关闭build-config
NLog/NLog#6306 · 14 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
platform support unit-tests
难度 4/5 3-5 天 新手友好度 52/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
Open-Systems-Pharmacology/OSPSuite.Core#3049 ·
维护者通常 1 天内回复
-
needs attention public-client untriaged
难度 2/5 1-3 小时 新手友好度 73/100
AzureAD/microsoft-authentication-library-for-dotnet#6242 ·
维护者通常 2 天内回复
-
难度 1/5 1-3 小时 新手友好度 90/100
criticalmanufacturing/cli#882 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Dome-Works/DOME#129 ·
维护者通常 1 天内回复
-
bug sev:L
难度 2/5 1-3 小时 新手友好度 82/100
Systemorph/MeshWeaver#7480 ·
维护者通常 1 天内回复