You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need this feature as well and I consider it to be very important for guaranteeing stability during Nginx reloads.
Here are some suggestions to be considered.
Making running init_by_lua during "nginx -t" conditional by a directive
Adding a new phase like config_test_by_lua therefore seperating it from init_by_lua, so resolving the reason why this feature was removed in the first place.
The text was updated successfully, but these errors were encountered:
Thank you, it is certainly a valid workaround, however harder for me to implement in my current setup (hundreds of servers). With the current openresty toolset, it's easier for me to track reload failures and manually check error.log. If possible in the future config_test_by_lua_block kind of extra phase would be very meaningful for the usage cases of openresty.
So the issue is well explained here
init_by_lua is no longer run in Nginx config test??
I need this feature as well and I consider it to be very important for guaranteeing stability during Nginx reloads.
Here are some suggestions to be considered.
The text was updated successfully, but these errors were encountered: