Predix_Logo
  • Categories
    • Questions
    • Predix | Updates
      • Pricing
      • Product
    • Deloitte - Private
    • How-To
    • Accenture-Private
  • Explore
    • Topics
    • Questions
    • Articles
    • Feedback or Feature Requests
  • Sign in
  • Home /
  • Questions /
avatar image
0
Question by Rob.Schafer@bhge.com · May 07, 2018 at 01:26 PM · cloud-foundry-cli

Does 'cf restart-app-instance' do anything?

So I have a Predix app scaled to 2 instances and instance 0 is down. I'd like to use 'cf restart-app-instance myapp 0' to restart the one crashed instance. But that command never seems to do anything. Logs don't show any activity after the restart-app-instance is issued.

Does that command actually work in the Predix environment? I'm working in AWS West.

Comment
Add comment
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
0

Answer by Siva Balan · May 07, 2018 at 01:56 PM

Yes that command works and we have used it successfully many times in US West. You may want to try that command on an instance that is in "running" state to see if it works for you. I cannot recall if I have tried to make it work on an instance that is in "crashed" state.

In Diego, the instances in crashed state are attempted to start in increasing time intervals for a certain number of times before it gives up completely by the health manager. Your instance is probably in a state where it cannot be restarted.

Comment
Add comment · Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Rob.Schafer@bhge.com · May 07, 2018 at 02:22 PM 0
Share

Ok, thanks, that makes sense. It's mainly an issue in our Production environment; we have some high-availability/high-workload apps that run at a larger instance count (6-12) and it'd be nice to be able to restart a crashed instance.by itself. Some of these apps have some weird startup interactions that requires us to start them an instance at a time (by starting with 1-2 instances and scaling until we reach the desired instance count) and these are especially tedious to restore to service.

Follow this Question

Answers Answers and Comments

89 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Tip: deploying to CF after macOS Sierra update 2 Answers

Is there any CF CLI command to check the current runtime environment is DEA or DIEGO? [not the appwise checking command] 1 Answer

Getting an error when trying to download droplet for any app 2 Answers

Manifest.yml Error Pushing Predix Data Exchange app 2 Answers

cf create-user failed 1 Answer

GE Monogram
  • Legal
  • Cookies
  • Forum Terms
  • Contact Us
  • Copyright © 2017 General Electric Company. All rights reserved.


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Submit your feedback or feature request
  • Categories
  • Questions
  • Predix | Updates
    • Pricing
    • Product
  • Deloitte - Private
  • How-To
  • Accenture-Private
  • Explore
  • Topics
  • Questions
  • Articles
  • Feedback or Feature Requests