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
190 views

1 answer to this question.

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
• 37,320 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,810 points
218 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,240 points
65 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,240 points

edited May 31, 2018 by ajs3033 24 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
• 37,320 points
283 views