Disable catalog refresh timer by default

未关闭
#360 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

  • #363 来自 @olevitt —— 已关闭,未合并

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
java

调研方向

从 catalogs.refresh.ms 设置以及链接的 onyxia-api README 中记录的 catalogs 配置开始。将默认值更改为 0,同时保留管理员覆盖设置的能力,并记录同步、registry 故障、加载和外部 catalog 相关的注意事项;完成的标准是默认禁用该功能,并记录这些注意事项。

由索引模型根据 Issue 内容生成。

描述

Currently Onyxia refresh the catalogs every 5 minutes (see https://github.com/InseeFrLab/onyxia-api?tab=readme-ov-file#catalogs-configuration- catalogs.refresh.ms).
There are some caveats associated with catalog refreshs :

  • In case you have multiple API pods, having one refreshed and not the other means they may be desynched resulting in user facing bugs
  • Refresh may fail due to a temporary failure in registry
  • Refreshing the catalogs and fetching all packages every x minutes may cause some heavy load (see #358 for possible mitigation)
  • Periodic refresh on catalogs you don't maintain yourself may result in app breaking unexpectedly

I suggest we disable the refresh by default (setting 0 to catalogs.refresh.ms by default) while still allowing admin to override it. I also suggest we document the caveats.

主要语言
Java
星标
34
派生
34
平均合并
9 分钟
30 天内合并 PR
4

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

InseeFrLab/onyxia-api 的其他 Issue

查看 InseeFrLab/onyxia-api 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。