rails example single #6
Rails Bundle
This bundle contains two rails deployments, a "single" deployment that deploys
- One Rails charm
- One PostgreSQL charm
and a multi instance scalable bundle intended for large scale deployment that deploys:
- One Rails charm
- One PostgreSQL charm
- One HAProxy charm
- Two Logstash charms, one indexer and one agent
- One Kibana charm
- One Nagios charm
- One NRPE charm
- One Memcached charm
- One Redis charm
Usage
To deploy the single bundle:
juju-quickstart bundle:rails/example-single
This bundle deploys a "sample-app" as mentioned in the Rails charm] README. You can modify the charm to use your application by following the instructions in that document.
Scale out Usage
For the scalable bundle:
juju-quickstart bundle:rails/example-scalable
This bundle deploys a "sample-app" as mentioned in the Rails charm] README. You can modify the charm to use your application by following the instructions in that document.
You can horizontally scale any of the services included in the bundle, since the sample-app is already behind a load balancer you can scale out the rails app via:
juju add-unit sample-app
Check the PostgreSQL charm README for instructions on scaling out the database layer.