envoyproxy/envoy

Lua: global table to store state between threads

Open

#4027 aperta il 1 ago 2018

Vedi su GitHub
 (8 commenti) (3 reazioni) (0 assegnatari)C++ (5373 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (27.997 star)
Metriche merge PR
 (Merge medio 8g) (378 PR mergiate in 30 g)

Descrizione

Description: Lua state is per worker and it will be non-trivial/impossible to share it between threads. A global storage for Lua is to provide a Lua API that wraps a metadata/table that calls into C++ code with proper locking to set/get items in a global table. All Lua code can access global table and share state in different Envoy Lua filters.

The original request is from #4008

Guida contributor