Using Hazelcast Jet for PCF
This topic describes how developers use Hazelcast Jet for Pivotal Cloud Foundry (PCF).
After your PCF operator installs the Hazelcast Jet for PCF tile, it automatically registers itself to the Marketplace.
Follow these steps to create an instance of the Hazelcast Jet service based on an available plan and bind it to your app. The plans available to you are determined by your PCF operator. For more information about configuring plans, see Installing and Configuring Hazelcast Jet for PCF.
To check availability of Hazelcast Jet for PCF, enter the following command:
$ cf marketplace
$ cf marketplace Getting services from marketplace in org system / space system as admin... OK
service plans description app-autoscaler bronze, gold Scales bound applications in response to load (beta) hazelcast-jet t2.micro, t2.small, m3.medium Hazelcast Jet Service
Create a file named
hazelcast-jet.jsonusing this sample Hazelcast Jet JSON file as a template.
YOUR_LICENSE_KEYwith your active Hazelcast Enterprise License or a trial license. For more information, see License.
To create a cluster, enter the following command:
$ cf create-service hazelcast-jet PLAN SERVICE_INSTANCE_NAME -c hazelcast-jet.json
$ cf create-service hazelcast-jet t2.micro micro-cluster -c hazelcast-jet.json Creating service instance micro-cluster in org system / space system as admin... OK
Create in progress. Use 'cf services' or 'cf service micro-cluster' to check operation status.
To bind the service to your app, enter the following commands:
$ cf bind-service MY-APPLICATION SERVICE_INSTANCE_NAME $ cf restage MY-APPLICATION
$ cf bind-service myapp micro-cluster $ cf restage myapp
Start using the Hazelcast Jet. Necessary parameters are passed to your application in
VCAP_SERVICESenvironment variables. For more information, see Sample Spring Boot Application to use Hazelcast Jet for PCF.