Rails apps with puma on cluster mode not catching up flag changes when local evaluation is enabled
I maintainer di solito rispondono entro 1 giorno
@zachaysan ci sta già lavorando.
Dal 18/6/2024.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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)
- Lingua principale
- Ruby
- Stelle
- 12
- Fork
- 8
- Merge medio
- 1g 54m
- PR unite (30g)
- 15
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Flagsmith/flagsmith-ruby-client
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
Flagsmith/flagsmith-ruby-client#122 ·
I maintainer di solito rispondono entro 1 giorno
-
Local evaluation buckets percentage splits with the server key, so results differ from FlagsmithAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Flagsmith/flagsmith-ruby-client#109 ·
I maintainer di solito rispondono entro 1 giorno
-
Dependency DashboardAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 15/100
Flagsmith/flagsmith-ruby-client#104 ·
I maintainer di solito rispondono entro 1 giorno
-
Local evaluation silently drops identity overrides on large environmentsForse già presa @marc-merino l’ha presa 51 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
Flagsmith/flagsmith-ruby-client#99 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
Flagsmith/flagsmith-ruby-client#93 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Flagsmith/flagsmith-ruby-client
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
openfoodfoundation/openfoodnetwork#15070 ·
I maintainer di solito rispondono entro 2 giorni
-
agent:triaged bug bughunt pm:bundler priority:p1 ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
SocketDev/socket-patch#2326 ·
I maintainer di solito rispondono entro 1 giorno
-
instrumentation-sidekiq
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
open-telemetry/opentelemetry-ruby-contrib#2735 ·
I maintainer di solito rispondono entro 2 giorni
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
majorsilence/Reporting#703 ·
I maintainer di solito rispondono entro 1 giorno
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raisingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
ruby/securerandom#92 ·