ConductR sandbox is a solution for managing Lightbend Reactive Platform applications across a cluster of machines. It is reactive from the ground up thus enabling operations to provide the resiliency required to unleash the full benefits of the Lightbend Reactive Platform in their organization.
ConductR is suitable for running microservices in a cluster. ConductR comes with a sandbox where we can test our project locally.
Now we will see how to run your project in the conduct sandbox.
Install conduct-cli which is used to communicate with the ConductR cluster:
sudo pip3 install conductr-cli
Adding sbt-conductr plugin
To use sbt-conductr for your project add the plugin to your project/plugins.sbt:
addSbtPlugin(“com.lightbend.conductr” % “sbt-conductr” % “2.3.0”)
Create and Run your Bundle on Conductr Sandbox
Enter into sbt command terminal and then follow these steps:
Step 1) Start Conductr sandbox :
sandbox run 2.1.12 -n 3 -–feature visualization
The above command will start a virtual sandbox environment in a local system.
conduct info will give you the conductR cluster info.
Step 2) Move to our project
Step 3) Create the bundle for the project :
This will create the bundle(in zip format) that will be later loaded to the conductR sandbox.
Step 4) Load your bundle
conduct load <click tab>
Step 5) Run your project
conduct run <project-impl>
check your conductR to see the running services:
Step 6) To see the project’s log:
conduct logs -n 100 <bundle-id>
Step 7) To Stop and unload the running Service
conduct stop <project-impl>
conduct unload <project-impl>
Step 8) To Stop the sandbox completely
ConductR also provides pre-configured bundles for Cassandra, Elasticsearch, zookeeper etc that we can use it directly if needed.
It also provides a visualization tool that we can use to see all running services. It looks like this:
Thanks for reading…!!
Lightbend ConductR – Lagom Doc