HUE-7860 [core] Integrate non IO blocking Python Webserver

Review Request #12332 - Created Jan. 10, 2018 and submitted

Ying Chen
hue
master
HUE-7860
hue
romain
commit 0ec2e1a416aaa7c7bd29df0931e7c7a032ab4ded 
Author: Ying Chen <yingchen@cloudera.com>
Date:   Wed Jan 10 12:14:59 2018 -0800

    HUE-7860 [core] Integrate non IO blocking Python Webserver
      Add runserver command

:100644 100644 65410349c3... fc620f8d81... M    desktop/conf.dist/hue.ini
:100644 100644 19a713175f... 2eec474859... M    desktop/conf/pseudo-distributed.ini.tmpl
:100644 100644 9b1ce68bcf... 8b61af98b2... M    desktop/core/src/desktop/conf.py
:100644 100644 88b3c0001e... 93b23901aa... M    desktop/core/src/desktop/management/commands/runcpserver.py
:000000 100644 0000000000... 8af95fbca9... A    desktop/core/src/desktop/management/commands/rungunicornserver.py


  • 0
  • 0
  • 21
  • 0
  • 21
Description From Last Updated
  1. 
      
  2. To also update in https://github.com/cloudera/hue/blob/master/desktop/conf.dist/hue.ini

  3. not spawning but gunicorn

  4. nit: no spaces

    false -> true

  5. desktop/core/src/desktop/conf.py (Diff revision 4)
     
     
  6. desktop/core/src/desktop/conf.py (Diff revision 4)
     
     
     
     
     
     
     
     
     
     
     
     

    to add to ini too

  7. desktop/core/src/desktop/conf.py (Diff revision 4)
     
     

    worker classes: gevent or evenlet, gthread or sync.

  8. desktop/core/src/desktop/conf.py (Diff revision 4)
     
     

    worker processes. If not specified uses: number of CPU * 2) + 1

  9. desktop/core/src/desktop/conf.py (Diff revision 4)
     
     

    default=None?

  10. Could we avoid to have 2 lists of options?

  11. Could we pick cherrypy_server_threads for now too here?

  12. 
      
  1. 
      
  2. Gunicorn --> CherryPy

  3. Does not work if imported on top?

  4. We can look at HTTPS in next iteration

  5. .. if conf.GUNICORN_NUMBER_OF_WORKERS.get() is not None else ..

  6. 
      
  1. We can ship it when we are sure it does not break Python 2.6

  2. 
      
Review request changed

Status: Closed (submitted)

Loading...