File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -302,11 +302,28 @@ data:
302302    set -ex 
303303    COMMAND="${@:-start}" 
304304
305+     cat <<'EOF' > /etc/ironic/ironic-api-uwsgi.ini 
306+     [uwsgi] 
307+     add-header = Connection: close 
308+     buffer-size = 65535 
309+     die-on-term = true  
310+     enable-threads = true  
311+     exit-on-reload = false  
312+     hook-master-start = unix_signal:15 gracefully_kill_them_all 
313+     http-socket = 0.0.0.0:6385 
314+     lazy-apps = true  
315+     log-x-forwarded-for = true  
316+     master = true  
317+     processes = 1 
318+     procname-prefix-spaced = ironic-api: 
319+     route-user-agent = ^kube-probe.* donotlog: 
320+     thunder-lock = true  
321+     worker-reload-mercy = 80 
322+     module = ironic.wsgi:application 
323+     EOF 
324+ 
305325    function start () { 
306-       exec ironic-api \ 
307-             --config-file /etc/ironic/ironic.conf \ 
308-             --config-dir /etc/ironic/ironic.conf.d \ 
309-             ${OPTIONS} 
326+       exec uwsgi --ini /etc/ironic/ironic-api-uwsgi.ini 
310327    } 
311328
312329    function stop () { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments