Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
512 views
in Technique[技术] by (71.8m points)

automation - How to test or validate multiple instances of app hosted in PCF (Cloud Foundry)

We had hosted Sprint boot application in PCF and configured to 3 instances. As a QA how to validate multiple instances. Is there a any tool which can help us to validate.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Go Router sends the traffic to any of the instance running in PCF. So there are few things that you can do;

  1. Login to PCF Apps manager and select the app - ensure you can see 3 instances up and running. It also provides you the details of CPU and memory consumption by each instance

  2. If you have access, you may ssh into the container using below command - all containers must be accessible cf ssh <appname> -i n Where n=0, 1, 2

  3. Multiple Instances can also be referred via the monitoring tool if you have configured any

  4. Run the apps and look into the logs; it will show you the detail as which instance it has gone to

    [APP/PROC/WEB/0] --> Instance 1
    [APP/PROC/WEB/1] --> Instance 2
    [APP/PROC/WEB/2] --> Instance 3


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...