Rails apps with puma on cluster mode not catching up flag changes when local evaluation is enabled
@zachaysan 已经在做这个了。
开始于 2024年6月18日。
评估
这个 Issue 还没有评估数据。
描述
Context
When the following conditions are met, the local environment of the rails server does not refresh the flag states...the environment document request actually happens, tough.
- rails app
- puma (on cluster mode - even with 1 worker 1 thread)
- local evaluation enabled
- booting with
rails scommand
Steps to reproduce
- Create a new rails app
- Configure puma with cluster mode (set a value above zero for
workersonconfig/puma.rb) - Create an initializer, defining the global variable, just like the documentation shows. Local evaluation must be enabled
- boot the server with
rails s - check if the flagsmith client is responding to flag state changes on the flagsmith dashboard between every environment document request
Useful info
- Works normally with puma on single mode
- Puma worker and thread count does not matter to the issue
- On puma cluster mode, it seems like there is something wrong with the puma boot using the
bundle exec rails scommand, since runningbundle exec puma -t 1:1 -w 1:1looks fine - Worth mentioning that the local evaluation on the
rails cconsole, the normal behavior occurs - Tested on macOs Ventura 13.6.7 (M1 chip) and Ubuntu 22 (x64)
Example project
https://github.com/Guilherme2112/flagsmith-rails-example
(basic instructions at README)
- 主要语言
- Ruby
- 星标
- 12
- 派生
- 6
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Flagsmith/flagsmith-ruby-client 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 3/5 1-2 天 新手友好度 15/100
-
难度 4/5 3-5 天 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 42/100
查看 Flagsmith/flagsmith-ruby-client 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
yegor256/rubocop-elegant#92 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
ecosyste-ms/awesome#812 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
rails/mission_control-jobs#347 ·
-
PROJECT: ILR/DRS
难度 2/5 1-3 小时 新手友好度 72/100
thewca/worldcubeassociation.org#15914 ·
维护者通常 1 天内回复