EsharEditor / ambari-hue-service

Ambari stack service for easily installing and managing Hue on HDP cluster
Apache License 2.0
107 stars 68 forks source link

Hue High Availability? #21

Open OneCricketeer opened 7 years ago

OneCricketeer commented 7 years ago

This service gives the ability to install Hue on multiple hosts I assume like the other Ambari services, but does it provide the ability to load balance them via Nginx, for example?

I know Cloudera Manager provides the option to setup a load balancer, but could this be done in Amabri?

In a Jinja template for Nginx, you could so something like

upstream hue {
  ip_hash;

  # List all the Hue instances here for high availability.
  {% for server in serverlist %}
    server {{ server }}:8888 max_fails=3;
  {% endfor %}
}
EsharEditor commented 7 years ago

Hi cricket007: At present,this service dosen't provide the ability to load balance on multiple hosts. But I will update this service based on the information given. Thank you!

OneCricketeer commented 7 years ago

Cool. I'd consider making a pull request, but haven't had the opportunity to learn about making Ambari services yet.