Rails apps with puma on cluster mode not catching up flag changes when local evaluation is enabled
@zachaysan đang làm issue này rồi.
Từ ngày 18/6/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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)
- Ngôn ngữ chính
- Ruby
- Star
- 12
- Fork
- 6
- Merge trung bình
- 28 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Flagsmith/flagsmith-ruby-client
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Dependency Dashboard Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 15/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
Tất cả issue của Flagsmith/flagsmith-ruby-client
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
ds-drift
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
we-promise/sure#3693 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
simp/pupmod-simp-simp#395 ·