resurfaceio goreplay output-s3 minio 兼容处理

实际上此问题与以前版本goreplay对于s3 的支持是一样的

参考处理

添加了新的环境变量AWS_FORCE_PATH_STYLE以及AWS_DISABLE_SSL,具体代码在rongfengliang/goreplay-new/blob/resurface/s3_reader.go 中

参考使用

export AWS_ACCESS_KEY_ID=minio
export AWS_SECRET_ACCESS_KEY=minio123
export AWS_ENDPOINT_URL=http://localhost:9000
export AWS_DEBUG=true
export AWS_FORCE_PATH_STYLE=true
export AWS_DISABLE_SSL=true
./gor-mac-amd64 --input-raw :9000 --input-raw-protocol binary --output-file s3://goreplay/%Y-%m-%d-%H-%M.gz

效果

说明

此问题以前我实际写过处理的方法,只是目前是基于resurfaceio 的goreplay 进行的调整,同时添加了新的环境变量,同时相关修改的包我已经push github 了ongfengliang/resurfaceio-gor 可以直接使用

参考资料

https://github.com/rongfengliang/resurfaceio-gor
https://github.com/rongfengliang/goreplay-new
https://github.com/resurfaceio/goreplay
https://www.cnblogs.com/rongfengliang/p/13341248.html
https://github.com/rongfengliang/goreplay-new/blob/resurface/s3_reader.go

posted on   荣锋亮  阅读(7)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2023-03-05 napi 简单使用
2023-03-05 napi 基于rust 开发nodejs addons 的框架
2022-03-05 dremio 的配置管理简单说明
2020-03-05 基于pgspider+ postgres fdw+ cube.js+hasura graphql-engine的数据分析&&展示方案
2020-03-05 cube.js 集成citus pg 扩展实现多租户的数据分析
2020-03-05 hasura graphql-engine + pgspider citus 加强hasura的大数量graphql 处理能力
2020-03-05 pgspider Citus 集成使用

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示