1

We are running multiple load tests every day against one of our GAE apps. We use the following pattern:

  1. Start a load test and let it run for a few hours.
  2. Look at graphs.
  3. Optionally deploy a new version of our app with performance improvements.
  4. Go back to 1.

Each load test creates a couple hundred front end instances. We would like to terminate those between individual load tests even when we are not deploying a new version of our app.

Is there a way to terminate all dynamic instances? Right now we either have to deploy a new version or terminate all instances by hand.

Lipis
  • 21,388
  • 20
  • 94
  • 121
Ingo
  • 1,552
  • 10
  • 31

2 Answers2

1

We had a similar problem - I found that disabling the app in Application Settings and then re-enabling it terminated all 88 instances we had running, without any other adverse effects.

Julian
  • 1,241
  • 12
  • 14
  • Wouldn't disabling the app stop all incoming traffic temporarily? – Ingo May 10 '14 at 02:45
  • Yes of course, but the question asks how to terminate _all_ dynamic instances. Even so, it's only down for a few seconds. – Julian May 13 '14 at 18:06
0

Maybe have them all periodically probe the datastore (or memcache) for a kill value?

Dave W. Smith
  • 24,318
  • 4
  • 40
  • 46
  • Yes, each instance could probe a datastore/memcache kill value. But how could it trigger it's own shutdown based on that? – Ingo Jun 04 '13 at 19:04