GitHub user tmvcode added a comment to the discussion: How do I reload 
webserver_config.yml without restarting the webserver

Sorry I meant changes were made to webserver_config.py, not 
webserver_config.yml.  There is no webserver_config.yml. I also experimented 
with the webserver's 3 config properties below to force the gunicorn worker to 
refresh sooner. You can see from the log below the worker did restart in about 
~20 seconds.  The AUTH_LDAP_BIND_PASSWORD did refresh from reading a 
dynamically mounted volume password.txt file, but it had no effect.  I was able 
to log into the UI even though the AUTH_LDAP_BIND_PASSWORD was set to some 
wrong value (wrong_password).

[webserver]
worker_refresh_batch_size: 1
worker_refresh_interval: 20
workers: 1

```
[2024-10-25 04:11:07 +0000] [15] [INFO] Handling signal: ttin
[2024-10-25 04:11:07 +0000] [140] [INFO] Booting worker with pid: 140
setting AUTH_LDAP_BIND_PASSWORD before every request: xxx
10.240.47.193 - - [25/Oct/2024:04:11:07 +0000] "GET /login/ HTTP/1.1" 200 17363 
"https://10.240.32.31/home"; "EF-Strati-HealthCheck-Client-Heka/2.0"
[2024-10-25 04:11:08 +0000] [15] [INFO] Handling signal: ttou
[2024-10-25 04:11:08 +0000] [139] [INFO] Worker exiting (pid: 139)
[2024-10-25 04:11:09 +0000] [15] [ERROR] Worker (pid:139) was sent SIGTERM!
setting AUTH_LDAP_BIND_PASSWORD before every request: xxx
...

setting AUTH_LDAP_BIND_PASSWORD before every request: wrong_password
10.240.32.126 - - [25/Oct/2024:04:11:28 +0000] "GET /login/ HTTP/1.1" 200 17363 
"https://10.240.32.31/home"; "EF-Strati-HealthCheck-Client-Heka/2.0"
[2024-10-25 04:11:28 +0000] [15] [INFO] Handling signal: ttou
[2024-10-25 04:11:28 +0000] [140] [INFO] Worker exiting (pid: 140)
[2024-10-25 04:11:29 +0000] [15] [ERROR] Worker (pid:140) was sent SIGTERM!
setting AUTH_LDAP_BIND_PASSWORD before every request: wrong_password
```

GitHub link: 
https://github.com/apache/airflow/discussions/43239#discussioncomment-11047927

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscr...@airflow.apache.org

Reply via email to