My GAE Front-end instance hours keep increasing even though the application is no being used and there are no instances running (because i manually shut them down!!). My question has several sub-questions to it, here they are:
What is the major component that affect front-end instance hours? In my current implementation of the system, I am making extensive use of the following google resources: Memcache, task queue and NDB datastore. I know for a fact that the datastore doesn't have much to do with the front-end instances (or maybe i am wrong) but does Memcache inflict front-end instance hours? Up until yesterday, my application was running perfectly fine and instance hours were being use (as you would expect) as the task queue was being used. Which led me to believe that the main factor was using the task queue and sending multiple requests in a short period of time. But this morning I added some extra memcache usage and It started acting up. Also, does static resources affect instance hours?
How to optimize application, what are the main things to consider? Google API calls, URL calls in general, again memcache?
Application Information:
On my app.yaml file here is some of the configuration information:
- default_expiration: 15m (I had it 1h before, but changed for testing purposes)
- instance_class: F2 (I need to have it as F4 for some processing, but changed it to F2 again for testing purposes)
- threadsafe: yes
I need to have some clear understanding of instance hours, the posts i have read here are not clear enough! If you have deep understanding of how google calculates the front-end instance hours please let me know! what causes it to go up, how to manage it and all these things.
Some extra visual context:
As you see on this picture, there are no instances deployed (AKA no instances running) yet billing is just going up and they summary chart is just going crazy!, look at all those spikes!
Anything would be greatly appreciated!