有没有办法禁用etcd中的历史记录保存?

我将使用etcd作为我的应用程序的KV,我不需要记录键值.

当我搜索etcd时,我找不到关于禁用历史记录的信息.

我不想在etcd中使用压缩功能.

推荐答案

事件历史记录是etcd的一部分.

早在2015年issue 4432年("考虑将事件移出etcd")时,人们就承认:

Events account for the overwhelming majority of our etcd write volume, which is causing a variety of performance and stability problems.
We could consider a different delivery mechanism for the events.

但目前,这仍由etcd管理.

在您的 case 中,还有其他键值参考,可能比etcd更容易管理.我用prologic/bitcask.

Go相关问答推荐

try 用GitHub操作中的release标签更新version. go文件,但失败了

GetSecretValue,get identity:get credentials:无法刷新缓存的凭据

即使HTTP服务器正在使用GO和Protobuf、SQL Server启动,请求也不返回结果

如何使用 AWS sdk 在 Go 中正确解组 PartiQL 查询的结果?

仅使用公共 api 对 alexedwards/scs 进行简单测试

使用goroutines在Golang中验证 struct

「GORM错误」不支持的数据类型:&[],不正确的模式

在 Windows 11 上运行 go mod tidy 时的 gitlab 权限问题

是否可以从 golang 中的参数推断类型?

无法使用 Golang 扫描文件路径

Go gmail api 快速入门导致本地主机拒绝连接 ERR_CONNECTION_REFUSED

具有未导出字段的 struct 类型之间的转换

未定义 protoc protoc-gen-go 时间戳

如何使用 math/big 对 bigInt 进行取模?

如何优雅地映射到 Go 中返回可变长度数组的方法?

将 Simple Go Web 应用程序部署到 Elastic Beanstalk

如何在 docker 文件中安装 golang 包?

Golang 'defer' 导致发送(接收)API 响应延迟

如何获得Ent中数字列的总和

Go 错误处理、类型断言和 net package包