Skip to content

Activespaces multiple cache nodes Backing store

ykalidin edited this page May 26, 2021 · 2 revisions

Introduction

This page describes deployment steps for Activespaces store Application with multiple cache nodes in Cloud foundry.

Deployment

  1. Clone the repo:

    git clone https://github.com/TIBCOSoftware/be-tools.git
    cd be-tools/cloud/cloud-foundry/examples
  2. Update environment variables for your BE image in as2store.yml file in cache and inference env sections.

  3. Use the below command to deploy Business Events application:

    cf push cache-0 -u process
    cf push cache-1 -u process
    cf push inference -u process
  4. If your docker image is in a Private repository update Docker username in manifest file.Also add 'CF_DOCKER_PASSWORD=PASSWORD' environment variable in above commands.

    CF_DOCKER_PASSWORD=PASSWORD cf push <APP-NAME> -u process

    Note: If your Private repository is AWS ECR refer here. Google Container registry refer here.

Service Discovery

For Activespaces Service Discovery add below network policies with respect to application cluster type.

cf add-network-policy cache-0 cache-1 --port 50000 --protocol tcp
cf add-network-policy cache-1 cache-0 --port 50000 --protocol tcp
cf add-network-policy cache-0 inference --port 50000 --protocol tcp
cf add-network-policy inference cache-0 --port 50000 --protocol tcp
cf add-network-policy cache-1 inference --port 50000 --protocol tcp
cf add-network-policy inference cache-1 --port 50000 --protocol tcp

Testing

Test the deployed application using the steps mentioned here.

Clone this wiki locally