Overview
To deploy applications on Common Runtime for Applications (CRA), you need to first deploy CRA worker instances that will host your application code, written as vertices. Each CRA instance has a unique name. To run CRA worker instances on local consoles, make sure you have downloaded sources and built the solution (we assume Debug mode).
Creating CRA instances on consoles
We assume that you will run all your CRA instances locally on consoles of one or more machines. If you want to instead deploy to Kubernetes, check out this page. Once you have deployed CRA, you can check this page to deploy a sample application.
We have a bootstrap worker executable that runs a Coral worker instance, in the CRA.Worker
project. We need to provide the Azure storage account key, either via the app.config of CRA.Worker
(if you are not on .NET core), or using the environment variable AZURE_STORAGE_CONN_STRING
, as follows:
set AZURE_STORAGE_CONN_STRING=your_storage_key
Assume we want to create two CRA instances, named crainst01
and crainst02
. We run src/CRA.Worker/bin/Debug/CRA.Worker.exe
in two command prompt windows. In the first console, run:
CRA.Worker.exe crainst01 10000
This creates and runs a CRA worker named instance1
listening on port 10000. An optional third parameter can be used to provide an explicit IP address.
Then, create the second CRA instance in the second console (this could be on the same or a different physical machine) as follows:
CRA.Worker.exe crainst02 11000
That's it! You have deployed a cluster with two CRA instances. We can run CRA vertices on each of these two instances, as described in the tutorial here.