kirankumarpv commented on issue #4824: Any Instruction on Deploying Superset on 
AWS Elastic beanstalk?
URL: 
https://github.com/apache/incubator-superset/issues/4824#issuecomment-387182079
 
 
   Hi, 
   
   I have tried setting it up on Elastic Beanstalk. Initially ELB is throwing 
many errors as many of the pre-requisite tools that are required for deploying 
superset are not available when ELB tries to deploy the application. So, in 
order to overcome that, I had to use prehooks feature for ELB to install 
pre-requisites before actually AWS tries to deploy the application. 
   
   This is what i have setup in .ebextensions folders 
   
   01_pre_deps.config
   `packages:
     yum:
       gcc: []
       gcc-c++: []
       libffi-devel: []`
   
   91_update_env.config
   `files:
     "/opt/elasticbeanstalk/hooks/preinit/91_update_env.sh":
       mode: "000755"
       owner: root
       group: root
       content: |
         #!/usr/bin/env bash
         yum install gcc gcc-c++ libffi-devel python-devel python-pip 
python-wheel openssl-devel libsasl2-devel openldap-devel 
cyrus-sasl-devel.x86_64`
   
   99_init_superset.config
   `files:
     "/opt/elasticbeanstalk/hooks/appdeploy/post/99_init_superset.sh":
       mode: "000755"
       owner: root
       group: root
       content: |
         #!/usr/bin/env bash
         . /opt/python/run/venv/bin/activate
         fabmanager create-admin --app superset --username admin --password 
admin --firstname admin --lastname admin --email [email protected]
         superset db upgrade
         superset load_examples
         superset init
         gunicorn -w 4 -k gevent --timeout 120 -b  0.0.0.0:443 
--limit-request-line 0 --limit-request-field_size 0 --statsd-host 
localhost:8088 superset:app wsgi & `
   
   After doing the above, I was able to get the environment up and running but 
on AWS Beanstalk AWS automatically does a health check and deletes an instance 
if it finds the instance health is not right. 
   
   For the ELB environment that's being setup for superset, AWS is continuously 
failing health checks and it's invoking EC2 instances replacement due to which 
i wasn't able to get a stable ELB env up and running. 
   
   I need to find out why health checks are failing on AWS EC2 instances 
invoked by ELB and if that's resolved, then should be able to bring up stable 
env on ELB. 
   
   Thanks
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to