How to kill a specific instance on Pivotal Cloud Foundry

+1 vote
I am working on a POC to deploy some application workloads on PCF platform. I want to simulate auto-recovery of my application.

For example, where if one instance running the application goes down, PCF would automatically create another one according to my requirement.

I cannot find any option to manually kill a running instance to generate an artificial failure.

Any help will be appreciated.
Jul 25, 2018 in Other DevOps Questions by Hannah
• 14,080 points
146 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Use the following command

cf restart-app-instance

This will issue an API call that terminates the indicated app instance (index numbers start at one).
answered Jul 25, 2018 by Kalgi
• 35,750 points

Related Questions In Other DevOps Questions

0 votes
1 answer

How to get issues count based on rules in a sonar project?

There are API docs in the footer ...READ MORE

answered May 4, 2018 in Other DevOps Questions by DareDev
• 6,520 points
154 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,200 points
48 views
0 votes
1 answer

Setting up CICD on a local server

As to how to integrate git repo ...READ MORE

answered May 31, 2018 in Other DevOps Questions by ajs3033
• 7,000 points

edited May 31, 2018 by ajs3033 23 views
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How to stop sqlplus command in unix shell script when any sql fails

One idea would be to launch the ...READ MORE

answered Jul 16, 2018 in Other DevOps Questions by Kalgi
• 35,750 points
154 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.