jpsstack
jpsstack

Reputation: 1291

Stop inactive Bluemix apps

We want to use a shared Bluemix org which contains a number of demo apps. Is there a way of detecting, which apps haven't been used (e.g few http requests) in order to stop inactive apps?

Upvotes: 0

Views: 135

Answers (1)

Chris Snow
Chris Snow

Reputation: 24606

These cloud foundry docs state the following:

The Router emits RTR logs when it routes HTTP requests to the app. Router messages include the app name followed by a Router timestamp and then selections from the HTTP request.

You should get an idea of how many requests your apps are receiving by looking for RTR log entries.

Manually, you could check the console logs using the cf logs .. command, or by visiting the log page in the Bluemix console.

You could automate the check using the cloud foundry tools or using the cloud foundry apis to parse the applications logs.

https://docs.cloudfoundry.org/devguide/deploy-apps/streaming-logs.html#rtr

Upvotes: 1

Related Questions