This Cookbook Configure Apache web server for load balancing two Tomcat server.
recipe::load_balancer_setup
- install apache2 on ubuntu
- install tomcat7, libapache2-mod-jk, openjdk-7-jdk, mysql-server-5.6
- configure load balancing
- restart service apache2, tomcat
recipe::start_service
- start apache2, tomcat7, mysql service
Note: Followed https://www.systemcodegeeks.com/web-servers/apache/set-tomcat-apache-mod_jk-cluster/ so packages installed in the cookbook as per Ubuntu.
Just include apache_tomcat_app
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[apache_tomcat_app::load_balancer_setup] recipe[apache_tomcat_app::start_service]"
]
}
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Khushboo Kumari