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
• 18,570 points
1,412 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
• 52,350 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,890 points
1,830 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,230 points
503 views
+1 vote
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,644 views
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
• 52,350 points
3,805 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP